Update.
[platform/upstream/glibc.git] / ChangeLog
1 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
2
3         * include/libc-symbols.h: Define hidden attribute for real also if
4         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
5
6         * csu/Makefile: Add rules to build Scrt1.o.
7         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
8
9 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
10
11         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
12         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
13         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
14         pa_short_int, pa_u_short_int and pa_float.
15
16 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
17
18         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
19         _IO_str_init_static_internal.
20         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
21         change size argument to _IO_size_t, don't limit sprintf to 64M.
22         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
23         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
24         _IO_size_t, don't limit swprintf to 256M.
25         (_IO_wstr_init_readonly): Remove.
26         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
27         Adjust prototypes.
28         (_IO_wstr_init_readonly): Remove prototype.
29         * libio/iovsprintf.c (_IO_vsprintf): Use
30         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
31         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
32         * libio/memstream.c (open_memstream): Likewise.
33         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
34         * libio/vasprintf.c (_IO_vasprintf): Likewise.
35         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
36         * stdio-common/tst-sprintf.c (main): Add new test.
37
38 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
39
40         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
41         other implementation in respect of multiple uses of parameter with
42         different types.
43
44 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
45
46         * sysdeps/unix/sysv/linux/kernel-features.h: Define
47         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
48
49 2003-05-22  Andreas Jaeger  <aj@suse.de>
50
51         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
52         directives.
53         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
54         * sysdeps/x86_64/strtok.S: Likewise.
55
56 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
57
58         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
59         to -60 and define SI_TKILL.
60
61 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62
63         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
64         (feexcp_mask_test): Likewise.
65
66 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
67
68         * locale/programs/locale.c (main): Fix typo in last patch.
69
70         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
71         __init_array_start, __init_array_end, __fini_array_start, and
72         __fini_array_end as hidden.
73
74 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
75
76         * locale/programs/locale.c (main): Report an error if setlocale()
77         fails [PR libc/2254].
78
79 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
80
81         * sysdeps/unix/sysv/linux/s390/system.c: New file.
82
83 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
84
85         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
86         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
87         LOADARGS_6): Don't error if syscall argument is a string literal.
88         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
89         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
90         LOADARGS_6): Likewise.
91
92 2003-05-21  Andreas Jaeger  <aj@suse.de>
93
94         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
95         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
96         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
97
98         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
99         (ENTRY): Likewise.
100         (END): Likewise.
101
102         * configure.in: Test for asm cfi directives.
103
104         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
105
106 2003-05-17  Andreas Jaeger  <aj@suse.de>
107
108         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
109
110         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
111
112 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
113
114         * rt/Makefile (tests): Add tst-clock_nanosleep.
115         * rt/tst-clock_nanosleep.c: New file.
116         * posix/Makefile (tests): Add tst-nanosleep.
117         * posix/tst-nanosleep.c: New file.
118
119         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
120
121         * include/features.h (__USE_XOPEN2K): Define also for
122         _POSIX_C_SOURCE>=200112L.
123
124         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
125         SI_TKILL code into SI_USER.
126         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
127
128         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
129
130 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
131
132         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
133         Remove sym argument, always use refsym.
134         (__process_machine_rela): Adjust callers.
135         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
136         Likewise.
137         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
138         Adjust prototype.
139         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
140
141 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
142
143         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
144         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
145         print numeric values.
146
147 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
148
149         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
150
151 2003-05-14  Andreas Schwab  <schwab@suse.de>
152
153         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
154
155 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
156
157         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
158         even if no DT_NEEDED is present.
159
160 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
161
162         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
163         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
164         __sigjmp_save) so we can't keep the saved unat value in a scratch
165         register (r16).  Use loc2 instead.
166
167 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
168
169         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
170         binaries it has to be relocatable.
171
172         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
173
174 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
175
176         * sysdeps/powerpc/bits/atomic.h
177         (__arch_compare_and_exchange_bool_8_rel): Define.
178         (__arch_compare_and_exchange_bool_16_rel): Define.
179         (__ARCH_REL_INSTR): Define if not already defined.
180         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
181         (__arch_atomic_decrement_if_positive_32):
182         Add "memory" to clobber list.
183         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
184         (__arch_compare_and_exchange_val_32_rel): Define.
185         (__arch_atomic_exchange_32): Remove.
186         (__arch_atomic_exchange_32_acq): Define.
187         (__arch_atomic_exchange_32_rel): Define.
188         (atomic_compare_and_exchange_val_rel): Define.
189         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
190         (atomic_exchange_rel): Define.
191         * sysdeps/powerpc/powerpc32/bits/atomic.h
192         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
193         (__arch_compare_and_exchange_bool_32_rel): Define.
194         (__arch_compare_and_exchange_bool_64_rel): Define.
195         (__arch_compare_and_exchange_val_64_rel): Define.
196         (__arch_atomic_exchange_64): Remove.
197         (__arch_atomic_exchange_64_acq): Define.
198         (__arch_atomic_exchange_64_rel): Define.
199         * sysdeps/powerpc/powerpc64/bits/atomic.h
200         (__arch_compare_and_exchange_bool_32_rel): Define.
201         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
202         (__arch_compare_and_exchange_bool_64_rel): Define.
203         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
204         (__arch_compare_and_exchange_val_64_rel): Define.
205         (__arch_atomic_exchange_64): Remove.
206         (__arch_atomic_exchange_64_acq): Define.
207         (__arch_atomic_exchange_64_rel): Define.
208         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
209         (__arch_atomic_decrement_if_positive_64):
210         Add "memory" to clobber list.
211         [!UP](__ARCH_REL_INSTR): Define as lwsync.
212
213 2003-05-11  Andreas Schwab  <schwab@suse.de>
214
215         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
216
217 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
218
219         * time/tst-strftime.c (do_test): Add tests for - flag.
220
221 2003-05-11  Jim Meyering  <jim@meyering.net>
222
223         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
224         the space-padded-by-default conversion specifiers, %e, %k, %l.
225
226 2003-05-11  Andreas Schwab  <schwab@suse.de>
227
228         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
229
230 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
231
232         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
233         already defined and when really needed.
234         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
235
236 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
237
238         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
239         headers, add defines from kernel header, move it from here...
240         * inet/netinet/igmp.h: ... to here.
241         * inet/Makefile (headers): Add netinet/igmp.h.
242         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
243         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
244
245 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
246
247         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
248         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
249
250 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
251
252         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
253         (remove __THROW from possible cancellation points).
254
255 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
256
257         * posix/sched.h (CPU_SETSIZE): Define.
258
259 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
260
261         * Makeconfig (gnulib): Remove -lgcc_eh again.
262
263         * posix/sched.h: Change prototypes of sched_getaffinity and
264         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
265         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
266         * sysdeps/generic/sched_setaffinity.c: Likewise.
267         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
268         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
269         __CPU_CLR, and __CPU_ISSET.
270         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
271         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
272         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
273
274         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
275         (atomic_exchange_rel): New #define.
276         * sysdeps/ia64/bits/atomic.h: Likewise.
277         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
278         atomic_exchange.
279         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
280         * sysdeps/powerpc/bits/atomic.h: Likewise.
281         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
282         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
283         * sysdeps/x86_64/bits/atomic.h: Likewise.
284         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
285
286         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
287
288 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
289
290         * malloc/thread-m.h: Remove special handling of thread_atfork if
291         HAVE_register_atfork_malloc is defined.
292
293 2003-05-07  Andreas Jaeger  <aj@suse.de>
294
295         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
296         information.
297
298 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
299
300         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
301         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
302         * libio/libioP.h: Declare _IO_old_init.
303         * libio/genops.c (_IO_no_init): Split in two.  New function
304         _IO_old_init.
305
306 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
307
308         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
309         variable.
310         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
311         is nonzero.
312         * include/unistd.h: Declare __libc_enable_secure_decided.
313         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
314         and AT_EGID.  If all found, set __libc_enable_secure and
315         __libc_enable_secure_decided.
316
317         * sysdeps/generic/libc-start.c [!SHARED]: Call
318         __libc_check_standard_fds after __libc_init_first.
319
320 2003-05-05  Roland McGrath  <roland@redhat.com>
321
322         * Makerules (common-before-compile): New variable.
323         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
324         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
325         to after all setting of before-compile.
326
327 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
328
329         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
330         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
331         * sysdeps/powerpc/powerpc32/bits/atomic.h
332         (__arch_compare_and_exchange_val_64_acq): Likewise.
333         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
334         (__arch_compare_and_exchange_val_8_acq,
335         __arch_compare_and_exchange_val_16_acq,
336         __arch_compare_and_exchange_val_64_acq): Likewise.
337         * sysdeps/sparc/sparc64/bits/atomic.h
338         (__arch_compare_and_exchange_val_8_acq,
339         __arch_compare_and_exchange_val_16_acq): Likewise.
340         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
341         __arch_compare_and_exchange_val_16_acq,
342         __arch_compare_and_exchange_val_64_acq): Likewise.
343         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
344         (__arch_compare_and_exchange_val_64_acq): Likewise.
345         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
346         up warning.
347         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
348
349         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
350         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
351         Return long instead of int.
352         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
353         0xfffff001u with -4095UL.
354
355 2003-05-05  Andreas Jaeger  <aj@suse.de>
356
357         * sysdeps/x86_64/fpu_control.h: New from i386.
358
359         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
360         Define if not defined.
361
362         * sunrpc/Makefile (generated-dirs): New variable.
363         * resolv/Makefile (generated): New variable.
364
365 2003-05-04  Roland McGrath  <roland@redhat.com>
366
367         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
368         Depend on $(before-compile).
369
370         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
371         pattern rule.  The implicit rule could be ruled out when $(objpfx)
372         didn't exist at the time of its consideration (ugh!).
373
374         * Makerules (+make-deps): Fix target matching.
375         Use $(sed-remove-dotdot).
376
377 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
378
379         * nscd/nscd.c (main): Parse config file right after parsing
380         parameters.  Then, if get_stats is true, call receive_print_stats.
381         Drop parameter from nscd_init call.
382         (get_stats): New variable.
383         (parse_opt): Set get_stats, don't call receive_print_stats here.
384         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
385         prototype.
386         * nscd/connections.c (stat_user, stat_uid): New variables.
387         (dbs): Make global.
388         (nscd_init): Don't read configuration file here.  Drop parameter.
389         (handle_request): Cleanup handling of non-database lookup requests.
390         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
391         Get UID of the specified user.  Use xstrdup instead of strdup.
392         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
393         check stat_user.
394         * nscd/Makefile (nscd-modules): Add xstrdup.
395         * nscd/nscd.conf: Document stat-user entry.
396
397 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
398
399         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
400         if not defined.
401
402 2003-04-22  Roland McGrath  <roland@redhat.com>
403
404         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
405         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
406         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
407         * elf/dl-support.c: Update defn.
408         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
409         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
410         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
411         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
412         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
413         set, set up a link_map for the preloaded, prelinked object.
414
415 2003-05-03  Roland McGrath  <roland@redhat.com>
416
417         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
418         * stdio-common/Makefile: ... not here.
419
420         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
421         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
422
423 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
424
425         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
426
427         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
428
429         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
430         comparing ftab elements.
431         (_dl_unmap): Fix typo in test.
432         (_dl_make_fptr): Fix typos introduced in last change.
433
434         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
435         original patch.  Use non-exported symbols.  Mark translatable
436         strings.  Pretty printing.
437
438 2003-05-02  Roland McGrath  <roland@redhat.com>
439
440         * Makerules (do-stamp): Do $(make-target-directory).
441
442 2003-04-07  H.J. Lu  <hjl@gnu.org>
443
444         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
445
446 2003-04-03  H.J. Lu  <hjl@gnu.org>
447
448         * sysdeps/ia64/dl-fptr.c: Moved to ...
449         * sysdeps/generic/dl-fptr.c: Here.
450
451         * sysdeps/generic/dl-fptr.h: New.
452         * sysdeps/ia64/dl-fptr.h: New.
453
454         * sysdeps/ia64/dl-symaddr.c: Moved to ...
455         * sysdeps/generic/dl-symaddr.c: here.
456
457         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
458         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
459         (ia64_fdesc): Likewise.
460         (ia64_fdesc_table): Likewise.
461         (__ia64_make_fptr): Likewise.
462         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
463         with _dl_boot_fptr_table.
464         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
465         `struct fdesc'.
466         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
467
468 2003-05-01  Roland McGrath  <roland@redhat.com>
469
470         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
471         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
472
473         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
474         Use $(make-target-directory).
475         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
476
477         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
478         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
479         (compile-command.s, compile-command.c): Likewise.
480         ($(objpfx)%.d): All such pattern rules removed.
481         ($(+sysdir_pfx)sysd-rules): Don't generate them.
482         ($(common-objpfx)dummy.d): Target removed.
483         (make-dummy-dep): Variable removed.
484         (generate-md5): Likewise.
485         (%.d: %.dt): New pattern rule.
486         (+depfiles): Use $(wildcard) function to get just existing *.d files
487         and .d files for existing *.dt files.
488         (common-clean): Remove all *.d and *.dt files.
489         (before-compile): Add $(objpfx). when it doesn't exist,
490         regardless of $(no_deps).
491         * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
492         (rtld-depfiles): Use .os.d instead of .d names.
493         Include existing *.d files and .d files for existing *.dt files.
494
495         * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
496         Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
497
498         * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
499         Do s-*.d includes only if we have some syscall routines in this subdir.
500
501         * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
502         @nobits.  The former is accepted by gas on any ELF platform.
503
504 2003-05-01  Ulrich Drepper  <drepper@redhat.com>
505
506         * sysdeps/unix/sysv/linux/semtimedop.c: New file.
507
508         * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
509
510 2003-04-29  Andreas Schwab  <schwab@suse.de>
511
512         * string/test-strcat.c (do_one_test): Fix attribute name.
513
514 2003-04-30  Alexandre Oliva  <aoliva@redhat.com>
515
516         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
517         uc_flags long for all ABIs.
518
519 2003-04-30  Andreas Jaeger  <aj@suse.de>
520
521         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
522         (DR_CONTROL_RESERVED): Use correct value for 64-bit.
523         Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
524         Add bi-arch support.
525
526 2003-04-30  Ulrich Drepper  <drepper@redhat.com>
527
528         * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
529         (__posix_memalign): Use __memalign_internal instead of memalign.
530
531 2003-04-29  Roland McGrath  <roland@redhat.com>
532
533         * configure.in: Search for AUTOCONF unconditionally.
534         Just don't complain about missing it under --without-cvs.
535
536         * include/libc-symbols.h (__symbol_set_attribute): New macro,
537         give hidden for [SHARED] and weak for [! SHARED].
538         (symbol_set_declare): Use that.  Never need weak_extern these days.
539         * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
540         Depend on $(..)Makerules.
541
542 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
543
544         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
545         variants of socket, bind, recvmsg, and sendto.
546
547         * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
548
549         * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
550         * signal/sigaddset.c: Add libc_hidden_def.
551         * signal/sigdelset.c: Likewise.
552
553 2003-04-29  Jakub Jelinek  <jakub@redhat.com>
554
555         * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
556         to the end of the file.
557
558         * configure.in: Change __oline__ to $LINENO.
559         (HAVE_BUILTIN_REDIRECTION): New check.
560         * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
561         * include/libc-symbols.h (libc_hidden_builtin_proto,
562         libc_hidden_builtin_def, libc_hidden_builtin_weak,
563         libc_hidden_builtin_ver): Define.
564         * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
565         strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
566         strspn, strstr): Add libc_hidden_builtin_proto.
567         * intl/plural.y: Include string.h.
568         * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
569         libc_hidden_builtin_def.
570         * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
571         * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
572         * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
573         * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
574         * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
575         * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
576         * sysdeps/alpha/memchr.S (memchr): Likewise.
577         * sysdeps/alpha/memset.S (memset): Likewise.
578         * sysdeps/alpha/strcat.S (strcat): Likewise.
579         * sysdeps/alpha/strchr.S (strchr): Likewise.
580         * sysdeps/alpha/strcmp.S (strcmp): Likewise.
581         * sysdeps/alpha/strcpy.S (strcpy): Likewise.
582         * sysdeps/alpha/strlen.S (strlen): Likewise.
583         * sysdeps/alpha/strncmp.S (strncmp): Likewise.
584         * sysdeps/alpha/strncpy.S (strncpy): Likewise.
585         * sysdeps/alpha/strrchr.S (strrchr): Likewise.
586         * sysdeps/arm/memset.S (memset): Likewise.
587         * sysdeps/arm/strlen.S (strlen): Likewise.
588         * sysdeps/generic/memchr.c (memchr): Likewise.
589         * sysdeps/generic/memcpy.c (memcpy): Likewise.
590         * sysdeps/generic/memmove.c (memmove): Likewise.
591         * sysdeps/generic/memset.c (memset): Likewise.
592         * sysdeps/generic/strcat.c (strcat): Likewise.
593         * sysdeps/generic/strchr.c (strchr): Likewise.
594         * sysdeps/generic/strcmp.c (strcmp): Likewise.
595         * sysdeps/generic/strcpy.c (strcpy): Likewise.
596         * sysdeps/generic/strcspn.c (strcspn): Likewise.
597         * sysdeps/generic/strlen.c (strlen): Likewise.
598         * sysdeps/generic/strncmp.c (strncmp): Likewise.
599         * sysdeps/generic/strncpy.c (strncpy): Likewise.
600         * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
601         * sysdeps/generic/strrchr.c (strrchr): Likewise.
602         * sysdeps/generic/strspn.c (strspn): Likewise.
603         * sysdeps/generic/strstr.c (strstr): Likewise.
604         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
605         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
606         * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
607         * sysdeps/i386/i586/memset.S (memset): Likewise.
608         * sysdeps/i386/i586/strchr.S (strchr): Likewise.
609         * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
610         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
611         * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
612         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
613         * sysdeps/i386/i686/memset.S (memset): Likewise.
614         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
615         * sysdeps/i386/memchr.S (memchr): Likewise.
616         * sysdeps/i386/memset.c (memset): Likewise.
617         * sysdeps/i386/strchr.S (strchr): Likewise.
618         * sysdeps/i386/strcspn.S (strcspn): Likewise.
619         * sysdeps/i386/strlen.c (strlen): Likewise.
620         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
621         * sysdeps/i386/strrchr.S (strrchr): Likewise.
622         * sysdeps/i386/strspn.S (strspn): Likewise.
623         * sysdeps/ia64/memchr.S (memchr): Likewise.
624         * sysdeps/ia64/memcpy.S (memcpy): Likewise.
625         * sysdeps/ia64/memmove.S (memmove): Likewise.
626         * sysdeps/ia64/memset.S (memset): Likewise.
627         * sysdeps/ia64/strcat.S (strcat): Likewise.
628         * sysdeps/ia64/strchr.S (strchr): Likewise.
629         * sysdeps/ia64/strcmp.S (strcmp): Likewise.
630         * sysdeps/ia64/strcpy.S (strcpy): Likewise.
631         * sysdeps/ia64/strlen.S (strlen): Likewise.
632         * sysdeps/ia64/strncmp.S (strncmp): Likewise.
633         * sysdeps/ia64/strncpy.S (strncpy): Likewise.
634         * sysdeps/m68k/memchr.S (memchr): Likewise.
635         * sysdeps/m68k/strchr.S (strchr): Likewise.
636         * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
637         * sysdeps/mips/mips64/memset.S (memset): Likewise.
638         * sysdeps/mips/memcpy.S (memcpy): Likewise.
639         * sysdeps/mips/memset.S (memset): Likewise.
640         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
641         * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
642         * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
643         * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
644         * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
645         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
646         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
647         * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
648         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
649         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
650         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
651         * sysdeps/powerpc/strcat.c (strcat): Likewise.
652         * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
653         * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
654         * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
655         * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
656         * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
657         * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
658         * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
659         * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
660         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
661         * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
662         * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
663         * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
664         * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
665         * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
666         * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
667         * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
668         * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
669         * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
670         * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
671         * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
672         * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
673         * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
674         * sysdeps/sh/memcpy.S (memcpy): Likewise.
675         * sysdeps/sh/memset.S (memset): Likewise.
676         * sysdeps/sh/strlen.S (strlen): Likewise.
677         * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
678         * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
679         * sysdeps/s390/s390-32/memset.S (memset): Likewise.
680         * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
681         * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
682         * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
683         * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
684         * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
685         * sysdeps/s390/s390-64/memset.S (memset): Likewise.
686         * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
687         * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
688         * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
689         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
690         * sysdeps/x86_64/memset.S (memset): Likewise.
691         * sysdeps/x86_64/strcat.S (strcat): Likewise.
692         * sysdeps/x86_64/strchr.S (strchr): Likewise.
693         * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
694         * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
695         * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
696         * sysdeps/x86_64/strlen.S (strlen): Likewise.
697         * sysdeps/x86_64/strspn.S (strspn): Likewise.
698         * string/string-inlines.c: Move...
699         * sysdeps/generic/string-inlines.c: ...here.
700         (__memcpy_g, __strchr_g): Remove.
701         (__NO_INLINE__): Define before including <string.h>,
702         undefine after.  Include bits/string.h and bits/string2.h.
703         * sysdeps/i386/i486/string-inlines.c: New file.
704         * sysdeps/i386/string-inlines.c: New file.
705         * sysdeps/i386/i486/Versions: Remove.
706         All GLIBC_2.1.1 symbols moved...
707         * sysdeps/i386/Versions (libc): ...here.
708
709 2003-04-29  Ulrich Drepper  <drepper@redhat.com>
710
711         * sysdeps/i386/fpu/Makefile: New file.
712         * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
713         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
714         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
715         * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
716         [PR libc/4987].
717
718 2003-04-28  Ulrich Drepper  <drepper@redhat.com>
719
720         * nscd/nscd_getgr_r.c: Compact code a bit.  Add some __builtin_expect.
721         * nscd/nscd_getpw_r.c: Likewise.
722         * nscd/nscd_gethst_r.c: Likewise.
723
724 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
725
726         * nscd/pwdcache.c: Initialize .version element in result.
727         * nscd/grpcache.c: Likewise.
728         * nscd/pwdcache.c: Likewise.
729
730 2003-04-27  Andreas Schwab  <schwab@suse.de>
731
732         * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
733         subdirectory.
734
735 2003-04-27  Andreas Schwab  <schwab@suse.de>
736
737         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
738
739 2003-04-27  Ulrich Drepper  <drepper@redhat.com>
740
741         * nscd/connections.c (client_queued): New variable.
742         (nscd_run): Revamp the loop.  Don't call poll except for cleanup
743         threads.  Keep track of the number of delays caused because of busy
744         worker threads.
745         * nscd/nscd.h: Declare client_queued.
746         * nscd/nscd_stat.c: Transmit and print client_queued information.
747
748         * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
749
750         * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
751         define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
752
753 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
754
755         * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
756         tracking of freed memory in static TLS block.
757         * elf/Makefile: Add rules to build and run tst-tls13.
758         * elf/tst-tls13.c: New file.
759         * elf/tst-tlsmod13.c: New file.
760         * elf/tst-tlsmod13a.c: New file.
761
762         * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
763
764         * elf/dl-reloc.c: Pretty printing.
765
766 2003-04-26  Roland McGrath  <roland@redhat.com>
767
768         * Makerules ($(common-objpfx)shlib.lds): New target.
769         (common-generated): Add it.
770         (build-shlib, build-module): Use that instead of generating every time.
771         ($(common-objpfx)libc.so): Depend on it.
772         (lib%.so rule): Likewise.
773         (build-module-helper-objlist): Remove %.lds.
774         (LDSEDCMD-c.so): Variable removed.
775         * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
776         Depend on $(common-objpfx)shlib.lds.
777         * dlfcn/Makefile ($(test-modules)): Likewise.
778
779 2003-04-26  Roland McGrath  <roland@frob.com>
780
781         * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
782
783 2003-04-26  Andreas Schwab  <schwab@suse.de>
784
785         * elf/dl-close.c (remove_slotinfo): Fix missing parens.
786
787 2003-04-25  Ulrich Drepper  <drepper@redhat.com>
788
789         * nscd/cache.c (cache_search): Keep track of how many chain links
790         we searched and update table statistics.
791         (cache_add): Keep track of how many values are in the table.
792         (prune_cache): Likewise.  Keep track of locking success.
793         Print messages about removed entries in separate pass.
794         * nscd/connections.c (handle_request): Don't print debug message here.
795         The caller will do it.  Keep track of locking success.
796         (nscd_run): Print debug message.  Also print PID of the client process.
797         * nscd/nscd.c (start_time): New variable.
798         (main): Remember start time.
799         * nscd/nscd.h: Declare start_time.
800         (struct database): Add more members for new statistics.
801         * nscd/nscd_stat.c: Add support for sending, receiving, and printing
802         of new statistics.
803
804         * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
805
806 2003-04-22  Jakub Jelinek  <jakub@redhat.com>
807
808         * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
809         * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
810         * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
811         NO_TLS_OFFSET.
812         * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
813         * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
814         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
815         * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
816         TLS_TCB_SIZE.
817
818 2003-04-24  Ulrich Drepper  <drepper@redhat.com>
819
820         * nss/getent.c: Implement alternative host database lookup via
821         getaddrinfo.
822
823         * include/ifaddrs.h: New file.
824         * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
825         AI_ADDRCONFIG...
826         * resolv/netdb.h: ...here.
827         * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
828         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
829         * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
830         AI_ADDRCONFIG.
831
832 2003-04-24  Roland McGrath  <roland@redhat.com>
833
834         * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
835
836 2003-04-24  Jakub Jelinek  <jakub@redhat.com>
837
838         * elf/dl-reloc.c (allocate_static_tls): Rename to...
839         (_dl_allocate_static_tls): ... this function.  No longer static.
840         (CHECK_STATIC_TLS): Adjust.
841         * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
842         * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
843         Add SYM_MAP argument.
844         (elf_machine_rela): Adjust caller.  Declare SYM_MAP unconditionally.
845         Check if SYM_MAP != NULL for R_PPC_DTPREL32.  Only handle 32-bit
846         TLS relocs here.  #ifdef out relocs which never appear in
847         .gnu.conflict section from dl-conflict.c processing.
848         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
849         Add SYM_MAP argument.  Handle 16-bit TLS relocs here.
850
851         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
852         out relocs which never appear in .gnu.conflict section from
853         dl-conflict.c processing.
854         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
855         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
856         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
857         Use r_type in RESOLVE macro.
858
859 2003-04-23  Ulrich Drepper  <drepper@redhat.com>
860
861         * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
862         NULL.  Remove code made redundant by this assumption.
863         (__yp_unbind): Add call to free.  Adjust all callers.
864
865         * nis/ypclnt.c (yp_all): Free the dom_binding object after
866         unbinding it.
867
868         * grp/initgroups.c (getgrouplist): Don't copy too much into the
869         user buffer if more groups are found than fit into it.
870
871         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
872         extend_alloca.
873
874 2003-04-23  Jakub Jelinek  <jakub@redhat.com>
875
876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
877         not rc == errno.  Use extend_alloca.
878
879         * elf/tst-tls12.c (main): Fix declaration.
880         * elf/tst-tls10.c (dummy): Make hidden instead of static.
881         * elf/tst-tlsmod7.c (dummy): Likewise.
882         * elf/tst-tlsmod8.c (dummy): Likewise.
883         * elf/tst-tlsmod9.c (dummy): Likewise.
884
885 2003-04-22  Roland McGrath  <roland@redhat.com>
886
887         * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
888         (open_not_cancel): Make last argument non-optional.
889         * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
890         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
891         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
892
893         * include/tls.h: Protect against multiple inclusion.
894
895 2003-04-22  Ulrich Drepper  <drepper@redhat.com>
896
897         * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
898         * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
899         open_socket.  Not static anymore.
900         (nscd_gethst_r): Use __nscd_open_socket.
901         * nscd/nscd_getgr_r.c (open_socket): Removed.
902         (nscd_getgr_r): Use __nscd_open_socket.
903         * nscd/nscd_getpw_r.c (open_socket): Removed.
904         (nscd_getpw_r): Use __nscd_open_socket.
905
906         * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
907         * nscd/connections.c (handle_request): Add cast to avoid warning.
908
909 2003-04-21  Ulrich Drepper  <drepper@redhat.com>
910
911         * signal/sigfillset.c: Moved to...
912         * sysdeps/generic/sigfillset.c: ...here.  If SIGCANCEL is defined
913         do not set the corresponding bit.
914
915         * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
916         SIGCANCEL.
917         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
918         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
919         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
920         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
921         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
922
923 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
924
925         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
926         first syscall parameter to const char*.
927
928 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
929
930         * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
931
932         * configure.in: Add AC_PROG_CXX.
933         * config.make.in (CXX): Define.
934
935         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
936         __len to size_t to avoid warnings.
937
938 2003-04-18  Jes Sorensen  <jes@wildopensource.com>
939
940         * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
941         2.5.67.
942         * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
943
944 2003-04-19  Ulrich Drepper  <drepper@redhat.com>
945
946         * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
947         UNREGISTER_ATFORK if d == NULL.
948
949         * catgets/nl_types.h: Remove __THROW marker from cancellation points.
950         * dirent/dirent.h: Likewise.
951         * dlfcn/dlfcn.h: Likewise.
952         * grp/grp.h: Likewise.
953         * iconv/iconv.h: Likewise.
954         * io/fcntl.h: Likewise.
955         * io/ftw.h: Likewise.
956         * libio/stdio.h: Likewise.
957         * misc/sys/mman.h: Likewise.
958         * misc/sys/select.h: Likewise.
959         * misc/sys/syslog.h: Likewise.
960         * misc/sys/uio.h: Likewise.
961         * posix/spawn.h: Likewise.
962         * posix/unistd.h: Likewise.
963         * posix/sys/wait.h: Likewise.
964         * pwd/pwd.h: Likewise.
965         * resolv/netdb.h: Likewise.
966         * rt/aio.h: Likewise.
967         * shadow/shadow.h: Likewise.
968         * signal/signal.h: Likewise.
969         * socket/sys/socket.h: Likewise.
970         * stdlib/stdlib.h: Likewise.
971         * streams/stropts.h: Likewise.
972         * string/string.h: Likewise.
973         * sysdeps/gnu/utmpx.h: Likewise.
974         * sysvipc/sys/msg.h: Likewise.
975         * termios/termios.h: Likewise.
976         * time/time.h: Likewise.
977         * wcsmbs/wchar.h: Likewise.
978         * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
979         functions.
980         * misc/daemon.c: Likewise.
981         * sysdeps/generic/backtracesymsfd.c: Likewise.
982         * sysdeps/generic/check_fds.c: Likewise.
983         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
984         * sysdeps/unix/sysv/linux/not-cancel.h: New file.
985         * sysdeps/generic/not-cancel.h: New file.
986         * csu/Makefile (distribute): Add not-cancel.h.
987         * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
988         * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
989         for assert.c and assert-perr.c to include <fatal-prepare.h>.
990         * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
991
992         * sysdeps/posix/remove.c (remove): Rewrite.  No need to restore
993         errno and unlink first.
994
995         * io/ftw.c (ftw_dir): In all places assume fchdir is available.
996
997 2003-04-18  Ulrich Drepper  <drepper@redhat.com>
998
999         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1000         INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1001
1002 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1003
1004         * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1005
1006         * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1007         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1008         replace.
1009
1010         * signal/Makefile (tests): Add tst-sigsimple.
1011         * signal/tst-sigsimple.c: New file.
1012
1013 2003-04-16  Jakub Jelinek  <jakub@redhat.com>
1014
1015         * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1016         tst-tls10.h.
1017         (tests): Add tst-tls1[0-2].
1018         (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1019         ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1020         ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1021         ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1022         ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1023         ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1024         ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1025         * elf/tst-tls10.c: New test.
1026         * elf/tst-tls11.c: New test.
1027         * elf/tst-tls12.c: New test.
1028         * elf/tst-tls10.h: New file.
1029         * elf/tst-tlsmod7.c: New file.
1030         * elf/tst-tlsmod8.c: New file.
1031         * elf/tst-tlsmod9.c: New file.
1032         * elf/tst-tlsmod10.c: New file.
1033         * elf/tst-tlsmod11.c: New file.
1034         * elf/tst-tlsmod12.c: New file.
1035
1036 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1037
1038         * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1039         * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1040         * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1041
1042 2003-04-17  Ulrich Drepper  <drepper@redhat.com>
1043
1044         * posix/regex.h: Include <sys/types.h>.
1045
1046         * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1047         The signal number must be checked.
1048         * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1049         The signal number must be checked [PR libc/5004].
1050
1051         * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1052         don't do anything fancy.
1053
1054         * sysdeps/generic/bits/libc-lock.h: Define
1055         __rtld_lock_define_initialized_recursive.
1056
1057         * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1058         contacting nscd if NOT_USENSCD_NAME > 0.
1059         * nss/nsswitch.c (__nss_disable_nscd): New function.
1060         * nss/nsswitch.h: Declare it.
1061         * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1062         * nscd/nscd.c (main): Call __nss_disable_nscd.
1063
1064 2003-04-16  Ulrich Drepper  <drepper@redhat.com>
1065
1066         * stdio-common/perror.c (perror): We don't need to set the offset
1067         to _IO_pos_bad, this is how streams are initialized.
1068
1069         * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1070         (time_output): If necessary, allocate new buffer for .name string if
1071         padding is required.
1072
1073         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1074         before copying.  This might leave holes in the list.  Adjust
1075         pointers if necessary.
1076         (netlink_receive): Allocate only one block.
1077         (free_netlink_handle): Adjust appropriately.
1078         (getifaddrs): Lots of cleanups.
1079
1080         * string/test-strncpy.c (do_one_test): Mark start and stop as
1081         possibly unused.
1082         * string/test-memchr.c: Likewise.
1083         * string/test-memcmp.c: Likewise.
1084         * string/test-memcpy.c: Likewise.
1085         * string/test-memmove.c: Likewise.
1086         * string/test-memset.c: Likewise.
1087         * string/test-strcat.c: Likewise.
1088         * string/test-strchr.c: Likewise.
1089         * string/test-strcmp.c: Likewise.
1090         * string/test-strcpy.c: Likewise.
1091         * string/test-strlen.c: Likewise.
1092         * string/test-strncmp.c: Likewise.
1093         * string/test-strpbrk.c: Likewise.
1094         * string/test-strrchr.c: Likewise.
1095         * string/test-strspn.c: Likewise.
1096
1097 2003-04-15  Roland McGrath  <roland@redhat.com>
1098
1099         * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1100
1101         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1102         INTUSE(__register_frame_info_bases).
1103
1104 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1105
1106         * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1107         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1108         AT_SYSINFO_EH_FRAME.  Adjust string width.
1109         (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1110         * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1111         Add _dl_sysinfo_eh_frame field.
1112         * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1113         * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1114         variable.
1115         [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1116         if _dl_sysinfo_eh_frame is non-NULL.
1117
1118         * Makeconfig (gnulib): Add -lgcc_eh.
1119
1120         * config.h.in: Define HAVE_FORCED_UNWIND.
1121
1122 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1123
1124         * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1125         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1126
1127 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
1128
1129         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1130         checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1131         against local symbol in conflict processing.
1132
1133 2003-04-15  Steven Munroe  <sjmunroe@us.ibm.com>
1134
1135         * sysdeps/powerpc/bits/atomic.h
1136         [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1137         [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1138         as abort stub.
1139         (__arch_compare_and_exchange_val_32_acq): Define.
1140         (atomic_compare_and_exchange_val_acq): Define.
1141
1142 2003-04-15  Ulrich Drepper  <drepper@redhat.com>
1143
1144         * include/atomic.h: Pretty printing.
1145
1146 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1147
1148         * stdio-common/vfscanf.c: Add casts to avoid warnings.
1149
1150 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1151
1152         * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1153         * sysdeps/x86_64/bits/atomic.h: Likewise.
1154
1155 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1156
1157         * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1158         POPARGS_1 to emit labels for the mov instructions.
1159
1160 2003-04-14  Jakub Jelinek  <jakub@redhat.com>
1161
1162         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1163
1164 2003-04-14  Roland McGrath  <roland@redhat.com>
1165
1166         * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1167         compiler warning.
1168
1169         * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1170
1171 2003-04-14  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1174         position.  Reported by jreiser@BitWagon.com.
1175
1176 2003-04-13  Ulrich Drepper  <drepper@redhat.com>
1177
1178         * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1179         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1180         * sysdeps/generic/unwind-dw2.c: Likewise.
1181         * sysdeps/generic/unwind-pe.h: Likewise.
1182
1183 2003-04-13  Alexandre Oliva  <aoliva@redhat.com>
1184
1185         * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1186         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1187         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1188         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1189         (mcontext_t): Make it match the 32-bit mips kernel in o32.
1190         * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1191         the mips and mips64 headers.
1192         (struct user): Port to n32/n64.
1193
1194 2003-04-12  Ulrich Drepper  <drepper@redhat.com>
1195
1196         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1197         avoid warning.
1198
1199         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1200         __ASSUME_VSYSCALL is defined don't add restorer.
1201         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1202         __ASSUME_VSYSCALL for 2.5.53.
1203
1204 2003-04-11  Ulrich Drepper  <drepper@redhat.com>
1205
1206         * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1207         Remove HAVE_CANCELBUF code.  Replace with code using the new
1208         initializers for unwind-based cleanup handling.
1209         * sysdeps/generic/unwind.h: Update from latest gcc version.
1210         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1211         places to allow unwind data generation.
1212         * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1213         * sysdeps/x86_64/bits/setjmp.h: Likewise.
1214         * sysdeps/sh/bits/setjmp.h: Likewise.
1215         * sysdeps/powerpc/bits/setjmp.h: Likewise.
1216         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1217         * sysdeps/alpha/bits/setjmp.h: Likewise.
1218
1219 2003-04-11  Roland McGrath  <roland@redhat.com>
1220
1221         * csu/tst-empty.c: New file.
1222         * csu/Makefile (tests, tests-static): Add it.
1223
1224 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
1225
1226         * string/test-strcmp.c (do_random_tests): Test whether return value
1227         has been promoted to wordsize if the ABI requires caller to do so.
1228         * string/test-strncmp.c (do_random_tests): Likewise.
1229         * string/test-memcmp.c (do_random_tests): Likewise.
1230
1231         * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
1232         before returning.
1233
1234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1235         (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
1236         is not defined, but the prctl constants are.
1237
1238         * string/tester.c (test_strcmp): Fix a typo.
1239
1240 2003-04-09  Ulrich Drepper  <drepper@redhat.com>
1241
1242         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
1243         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1244
1245 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
1246
1247         * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
1248         NewABI.
1249         (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
1250         NewABI.
1251         * sysdeps/mips/mips64/memcpy.S: Adjust register naming
1252         conventions.
1253         * sysdeps/mips/mips64/memset.S: Likewise.
1254         * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
1255         Use t0 instead of t4 as temporary.
1256
1257 2003-04-07  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * elf/ldconfig.c (parse_conf): Ignore leading whitespace.  Use
1260         feof_unlocked instead of feof.
1261         (add_dir): Ignore trailing whitespace.
1262
1263 2003-04-07  Jakub Jelinek  <jakub@redhat.com>
1264
1265         * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
1266         sum of SIZE1 and SIZE2 arguments.
1267
1268 2003-04-06  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * iconv/iconv_prog.c (process_block): Don't print message about
1271         invalid input if the -c option is used.
1272         (main): Correctly append IGNORE string for -c option.
1273
1274 2002-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1275
1276         * sysdeps/sh/bits/atomic.h: Moved to ...
1277         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here.  Add comments.
1278         (__arch_compare_and_exchange_val_*_acq): Add parens around macro
1279         arguments.
1280         (atomic_bit_set, atomic_bit_test_set): Likewise.
1281         (atomic_exchange_and_add): Likewise.  Don't evaluate VALUE argument
1282         twice.
1283         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1284
1285 2003-04-06  Roland McGrath  <roland@redhat.com>
1286
1287         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
1288         restoration as done for setcontext yesterday.
1289
1290 2003-04-06  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * elf/rtld.c: Revert 2003-03-14 change.
1293         * elf/dl-conflict.c (_dl_resolve_conflicts): Move
1294         #if ! ELF_MACHINE_NO_RELA conditional into the routine.
1295
1296 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1297
1298         * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
1299
1300         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1301         Always initialize *signgamp before returning an error.
1302
1303 2003-04-05  Roland McGrath  <roland@redhat.com>
1304
1305         * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
1306         below the stack pointer even if switching to the same context we are
1307         running right now.
1308
1309 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1310
1311         * catgets/gencat.c (read_input_file): Make sure that \n is not
1312         alone on the line before testing for continuation.
1313
1314         * math/test-tgmath.c (compile_test): Initialize c.
1315
1316 2003-04-05  Alexandre Oliva  <aoliva@redhat.com>
1317
1318         * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
1319         * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
1320         * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
1321         on mips n32.
1322         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
1323         XSTAT_IS_XSTAT64 must not be used for mips n64.  Use 64-bit data
1324         structure on n32 as well.
1325         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
1326         data types on n32 and n64.
1327
1328 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
1329
1330         * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
1331         after getting them.
1332
1333         * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
1334         HAVE_register_atfork_malloc is defined use __register_atfork_malloc
1335         instead of __register_atfork.
1336
1337 2003-04-05  Jakub Jelinek  <jakub@redhat.com>
1338
1339         * stdio-common/reg-printf.c (__register_printf_function): Calloc
1340         instead of malloc __printf_arginfo_table and __printf_function_table.
1341         Reported by John Reiser <jreiser@BitWagon.com>.
1342
1343 2003-04-04  Steven Munroe  <sjmunroe@us.ibm.com>
1344
1345         * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
1346         * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
1347
1348         * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
1349         defining.
1350
1351 2003-04-04  Alexandre Oliva  <aoliva@redhat.com>
1352
1353         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
1354         for n64 abi.
1355
1356 2003-04-03  Roland McGrath  <roland@redhat.com>
1357
1358         * configure.in: Fix up use of compilation flags to match the build:
1359         For .s files, $ASFLAGS;
1360         For .S files, $CPPFLAGS $ASFLAGS;
1361         For .c files, $CFLAGS $CPPFLAGS;
1362         when linking, add $LDFLAGS.
1363         * configure: Regenerated.
1364
1365 2003-04-03  Jakub Jelinek  <jakub@redhat.com>
1366
1367         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
1368         for atomic_compare_and_exchange_bool_acq failure.
1369
1370 2003-04-03  Ulrich Drepper  <drepper@redhat.com>
1371
1372         * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
1373         _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
1374         _POSXI2_LOCALEDEF to 200112L.  Remove _POSIX2_C_VERSION.
1375         Remove declaration of pthread_atfork.
1376
1377 2003-04-02  Ulrich Drepper  <drepper@redhat.com>
1378
1379         * locale/iso-639.def: Add many more languages from the current ISO 639.
1380
1381         * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
1382         * sysdeps/generic/semtimedop.c: New file.
1383         * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
1384         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
1385         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1386         * sysvipc/Makefile (routines): Add semtimedop.
1387         * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
1388         * sysvipc/sys/sem.h: Declare semtimedop.
1389
1390 2003-04-02  Daniel Jacobowitz  <drow@mvista.com>
1391
1392         * configure.in: Check for __register_frame_info in both
1393         -lgcc and -lgcc_eh.
1394         * configure: Regenerated.
1395
1396 2003-04-01  Roland McGrath  <roland@redhat.com>
1397
1398         * scripts/abilist.awk: Allow dots in soname suffix.
1399
1400         * scripts/abilist.awk (emit): Fix bailout condition.
1401
1402 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
1403
1404         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
1405         IA-64 version.
1406
1407         * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
1408         register as input to asm.
1409
1410 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
1411
1412         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
1413
1414 2003-04-01  Andreas Jaeger  <aj@suse.de>
1415
1416         * configure.in: Output as/ld as name if version is too old.
1417
1418 2003-03-31  Daniel Jacobowitz  <drow@mvista.com>
1419
1420         * configure.in: Don't require an installed C library in the test
1421         for ".set" assembler support.
1422
1423 2003-03-31  Roland McGrath  <roland@redhat.com>
1424
1425         * signal/tst-sigset.c: New file.
1426         * signal/Makefile (tests): Add it.
1427
1428 2003-03-31  Ulrich Drepper  <drepper@redhat.com>
1429
1430         * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
1431         * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
1432         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
1433         * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
1434         (__SIGRTMAX): Adjust accordingly.
1435         * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
1436         second compatibility symbol set.
1437         * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
1438
1439 2003-03-31  Andreas Schwab  <schwab@suse.de>
1440
1441         * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
1442         Define.
1443         (atomic_decrement_and_test): Fix test.
1444
1445 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
1446
1447         * sysdeps/sparc/sparc32/bits/atomic.h: New file.
1448         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
1449         * sysdeps/sparc/sparc64/bits/atomic.h: New file.
1450         * sysdeps/sparc/sparc32/atomicity.h: Removed.
1451         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
1452         * sysdeps/sparc/sparc64/atomicity.h: Removed.
1453
1454 2003-03-30  Roland McGrath  <roland@redhat.com>
1455
1456         * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
1457
1458         * intl/po2test.sed: Anchor substitution regexps to fix last change.
1459
1460 2003-03-29  Paolo Bonzini  <bonzini@gnu.org>
1461
1462         * intl/po2test.sed: Unify the transformations for msgid and msgstr
1463         and remove a useless s/// command.
1464
1465 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
1466
1467         * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
1468         directive into empty .prologue region to ensure that call-chain
1469         is terminated even for the first instruction.
1470
1471         * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
1472         to terminate call-chain right from the get-go.
1473
1474         * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
1475         stop bit between compare & branch.
1476
1477 2003-03-29  Ulrich Drepper  <drepper@redhat.com>
1478
1479         * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
1480         point correctly [PR libc/4993].
1481
1482         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
1483         netlink_open calls if netlink is known to not be available.
1484
1485 2003-03-29  Alexandre Oliva  <aoliva@redhat.com>
1486
1487         * configure.in: Add mips64* support.
1488         * sysdeps/mips/bits/endian.h: Make it bi-endian.
1489         * sysdeps/mips/mipsel/bits/endian.h: Removed.
1490         * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
1491         * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
1492         * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
1493         * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
1494         * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
1495         * sysdeps/mips/Implies: Moved wordsize-32 to...
1496         * sysdeps/mips/mips32/Implies: New file.
1497         * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
1498         ret_NOERRNO): New.
1499         (ret, PSEUDO_END): Moved past END.
1500         (PSEUDO): Moved to...
1501         * sysdeps/unix/mips/mips32/sysdep.h: New file.
1502         * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
1503         * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
1504         * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
1505         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
1506         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
1507
1508         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
1509         Re-introduce ENTRY.
1510
1511 2003-03-28  Thorsten Kukuk  <kukuk@suse.de>
1512
1513         * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
1514         * inet/test-ifaddrs.c: Allow AF_PACKET.
1515         * sysdeps/unix/sysv/linux/kernel-features.h: Add
1516         __ASSUME_NETLINK_SUPPORT.
1517
1518 2003-03-28  Ulrich Drepper  <drepper@redhat.com>
1519
1520         * elf/vismain.c (do_test): Comment out tests which fail in the moment.
1521
1522 2003-03-26  H.J. Lu  <hjl@gnu.org>
1523
1524         * elf/vismod.h (getvarlocal1): Return const char **.
1525         (getvarinmod1): Likewise.
1526         (getvaritcpt1): Likewise.
1527         (getvarlocal2): Likewise.
1528         (getvarinmod2): Likewise.
1529         (getvaritcpt2): Likewise.
1530         (getvaritcpt3): Likewise.
1531         * elf/vismain.c (do_test): Adjusted.
1532         * elf/vismod1.c (getvarlocal1): Return address.
1533         (getvarinmod1): Likewise.
1534         (getvaritcpt1): Likewise.
1535         * elf/vismod2.c (getvarlocal2): Likewise.
1536         (getvarinmod2): Likewise.
1537         (getvaritcpt2): Likewise.
1538         * elf/vismod3.c (getvaritcpt3): Likewise.
1539
1540 2003-03-28  Roland McGrath  <roland@redhat.com>
1541
1542         * elf/vismain.c (do_test): Print both addresses when they don't match.
1543
1544         * scripts/abilist.awk: If given -v filename_regexp and/or -v
1545         libname_regexp when parsing names, then produce output only
1546         for those matching the given regexps.  In combine mode, save all
1547         stanzas for a final sorting by stanza header at the end.
1548         Emit a blank line between stanzas.
1549
1550         * scripts/abilist.awk: When given -v combine=1, do parse_names and
1551         emit a single output stream with lib name in stanza header lines.
1552
1553         * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
1554
1555 2003-03-27  Roland McGrath  <roland@redhat.com>
1556
1557         * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
1558         (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
1559
1560 2003-03-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1561
1562         * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
1563         Return old value. Make asm output reg constraint earlyclobber.
1564         Renamed from...
1565         (__arch_compare_and_exchange_8_acq): ... this.
1566         (__arch_compare_and_exchange_val_16_acq):
1567         Return old value. Make asm output reg constraint earlyclobber.
1568         Renamed from...
1569         (__arch_compare_and_exchange_16_acq): ... this.
1570         (__arch_compare_and_exchange_val_32_acq):
1571         Return old value. Make asm output reg constraint earlyclobber.
1572         Renamed from...
1573         (__arch_compare_and_exchange_32_acq): ... this.
1574         (__arch_compare_and_exchange_val_64_acq):
1575         Renamed from...
1576         (__arch_compare_and_exchange_64_acq): ... this.
1577         (atomic_exchange_and_add): Use local variables and
1578         __arch_compare_and_exchange_val_64_acq.
1579         (atomic_add): Likewise.
1580         (atomic_add_negative, atomic_add_zero): Use local variables.
1581
1582 2003-03-28  Alexandre Oliva  <aoliva@redhat.com>
1583
1584         * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
1585
1586 2003-03-27  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * Makefile: Remove libmd5crypt goal.
1589
1590 2003-03-25  Jakub Jelinek  <jakub@redhat.com>
1591
1592         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
1593         special handling of relocations against local symbols.
1594
1595 2003-03-27  Steven Munroe  <sjmunroe@us.ibm.com>
1596
1597         * sysdeps/powerpc/bits/atomic.h
1598         (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
1599         [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
1600         Define PPC64 specific version.
1601         [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
1602         Change (mem) constraint to "b".
1603         [__powerpc64__] (__arch_atomic_exchange_and add_64):
1604         Replace addi with add. Change (value) contraint to "r".
1605         Change (mem) constraint to "b".
1606         [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
1607         (__arch_atomic_exchange_32): Change (mem) constraint to "b".
1608         (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
1609         (__arch_atomic_decrement_if_positive_32): New macro.
1610         (atomic_decrement_if_positive): Use __arch* macros.
1611
1612 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
1613
1614         * sysdeps/ia64/fpu/libm-test-ulps: Update.
1615
1616 2003-03-27  Roland McGrath  <roland@redhat.com>
1617
1618         * scripts/rpm2dynsym.sh: New file.
1619         * Makefile (distribute): Add it.
1620
1621 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
1622
1623         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
1624         ar.unat before returning.  Add missing .mem.offset directives
1625         to ensure file gets assembled without warnings.
1626         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
1627
1628 2003-03-27  Jakub Jelinek  <jakub@redhat.com>
1629
1630         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
1631         Return -1 instead of 0 if clock_getres failed.
1632
1633 2003-03-27  Roland McGrath  <roland@redhat.com>
1634
1635         * scripts/abilist.awk: If variable `parse_names' is set, grok the file
1636         header lines and write out foo.symlist files for each foo.so.NN listed.
1637
1638         * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
1639         This symbol is exported, and we don't want to hide it.
1640         Add libc_hidden_proto instead.
1641         (_IO_file_jumps): Add libc_hidden_proto.
1642         * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
1643         Remove INTVARDEF.
1644         * libio/fileops.c (_IO_file_jumps): Likewise.
1645         * libio/stdfiles.c: Don't use INTUSE on them.
1646         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
1647         * libio/iofopen.c (__fopen_internal): Likewise.
1648         * libio/freopen.c (freopen): Likewise.
1649         * libio/freopen64.c (freopen64): Likewise.
1650         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1651
1652         * Makerules (check-abi) [$(enable-check-abi) = warn]:
1653         Ignore exit status from diff.
1654         * configure.in (enable_check_abi): Document possible value "warn".
1655         Change default to no for now.
1656         * configure: Regenerated.
1657
1658         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
1659         macro calls and a #include <stub-tag.h> at the end.
1660         * Makerules ($(objpfx)stubs): Tweak sed commands.
1661
1662         * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
1663         caller column for *xattr syscalls, since they are in sysdeps/generic.
1664
1665         * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
1666         * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
1667
1668 2003-03-26  Roland McGrath  <roland@redhat.com>
1669
1670         * Makerules (check-abi-config): Use /thread instead of /tls when
1671         use-thread and not just use-tls is set.
1672
1673         * Makerules (update-abi): Put quotes around $(update-abi-config).
1674
1675         * elf/Makefile (check-abi): Depend on check-abi-ld.
1676         (update-abi): Depend on update-abi-ld.
1677
1678 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
1679
1680         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
1681         do not check for errors (unless testing for 32bit variant).
1682         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
1683
1684 2003-03-27  Philip Blundell  <philb@gnu.org>
1685
1686         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
1687         unconditional mov.  Remove nop.
1688
1689         * sysdeps/unix/sysv/linux/kernel-features.h
1690         (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
1691         * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
1692         when __ASSUME_VFORK_SYSCALL is defined.
1693         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
1694         __ASSUME_MMAP2_SYSCALL.
1695         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
1696         __ASSUME_REALTIME_SIGNALS.
1697
1698 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
1699
1700         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
1701         only if DL_NO_COPY_RELOCS is not defined.
1702         * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
1703
1704 2003-03-26  Roland McGrath  <roland@redhat.com>
1705
1706         * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
1707         SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
1708         * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
1709         (sysdep_routines): Add stub-syscalls.
1710         ($(objpfx)stub-syscalls.c): New target.
1711         (generated): Add stub-syscalls.c.
1712
1713         * tls.make.c: Also define use-tls according to USE_TLS macro.
1714
1715 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
1716
1717         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
1718         no-op padding element.
1719         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1720         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1721         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1722         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1723
1724 2003-03-26  GOTO Masanori  <gotom@debian.or.jp>
1725
1726         * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
1727         condition check for the return value of getgroups32.
1728
1729 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
1730
1731         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
1732         Fix a typo.
1733         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
1734         PSEUDO_END_NOERRNO): Define.
1735         * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
1736         Define to PSEUDO_END.
1737
1738 2003-03-26  Ulrich Drepper  <drepper@redhat.com>
1739
1740         * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
1741
1742 2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>
1743
1744         * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
1745         * iconvdata/bug-iconv4.c: New file.
1746         * iconvdata/Makefile (tests): Add bug-iconv4.
1747
1748 2003-03-25  H.J. Lu  <hjl@gnu.org>
1749
1750         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
1751         symbols twice.
1752         (_dl_lookup_versioned_symbol): Likewise.
1753
1754 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * csu/tst-atomic.c (do_test): Add some new
1757         atomic_compare_and_exchange_val_acq, atomic_add_zero,
1758         atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
1759         * include/atomic.h (atomic_add_negative, atomic_add_zero):
1760         Prefix local variable so that it doesn't clash with the one
1761         in atomic_exchange_and_add.
1762         * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
1763         pointers.
1764         (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
1765         * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
1766         value into register.
1767         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
1768         Cast newval to long.
1769         * sysdeps/x86_64/bits/atomic.h
1770         (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
1771         long.
1772         (atomic_exchange): Cast newvalue to long if sizeof == 8.
1773         (atomic_exchange_and_add): Cast value to long if sizeof == 8.
1774         (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1775         (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
1776
1777 2003-03-21  Martin Schwidefsky  <schwidefskyde.ibm.com>
1778
1779         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
1780         bit from backtrace addresses.
1781
1782 2003-03-21  Andreas Schwab  <schwab@suse.de>
1783
1784         * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
1785         __chown symbols.
1786
1787 2003-03-25  Roland McGrath  <roland@redhat.com>
1788
1789         * config.make.in (enable-check-abi): New variable from configure.
1790         * configure.in (enable_check_abi): New substituted variable,
1791         controlled by --{enable,disable}-check-abi (default yes).
1792         * configure: Regenerated.
1793         * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
1794         on check-abi dependency.
1795
1796 2003-03-26  Andreas Schwab  <schwab@suse.de>
1797
1798         * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
1799         * include/atomic.h: Likewise.
1800
1801         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
1802
1803 2003-03-25  Roland McGrath  <roland@redhat.com>
1804
1805         * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
1806         (__arch_atomic_exchange_64): New macro.
1807         (atomic_exchange): Use them.
1808         (__arch_atomic_exchange_and_add_32): New macro.
1809         (__arch_atomic_exchange_and_add_64): New macro.
1810         (atomic_exchange_and_add): Use them.
1811         Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
1812
1813 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
1814
1815         * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
1816         Define.
1817         * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
1818         ISA tests.
1819         (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
1820         (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
1821         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
1822         to decide whether to add padding.
1823         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
1824         to decide whether to add padding.
1825         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
1826         old_kernel_sigaction): Likewise.
1827
1828 2003-03-25  Ulrich Drepper  <drepper@redhat.com>
1829
1830         * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
1831         atomic_add_zero were supposed to do.
1832         * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
1833         to x86 behavior.
1834
1835         * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
1836         This matches the new timer implementation.
1837         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
1838         Likewise.
1839         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
1840         Likewise.
1841         * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
1842         timer info for what the kernel provides these days.
1843         (struct sigevent): Add _tid field.
1844         Define SIGEV_THREAD_ID.
1845         Remove struct __pthread_attr_s forward declaration.
1846         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
1847         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1848         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1849         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1850
1851         * Versions.def (librt): Add GLIBC_2.3.3.
1852
1853         * abilist/libpthread.abilist: Update for nptl.
1854
1855 2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>
1856
1857         * inet/netinet/in.h: Add IPPROTO_SCTP.
1858
1859 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
1860
1861         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
1862
1863 2003-03-24  Philip Blundell  <philb@gnu.org>
1864
1865         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
1866         Remove a1 from clobber list.
1867
1868 2003-03-24  Ulrich Drepper  <drepper@redhat.com>
1869
1870         * timezone/antarctica: Update from tzdata2003a.
1871         * timezone/asia: Likewise.
1872         * timezone/australasia: Likewise.
1873         * timezone/europe: Likewise.
1874         * timezone/iso3166.tab: Likewise.
1875         * timezone/northamerica: Likewise.
1876         * timezone/southamerica: Likewise.
1877         * timezone/zone.tab: Likewise.
1878
1879 2003-03-24  Steven Munroe  <sjmunroe@us.ibm.com>
1880
1881         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
1882
1883 2003-03-23  Ulrich Drepper  <drepper@redhat.com>
1884
1885         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
1886         unwanted expansion by definining to ret.  Patch by Ian Wienand.
1887
1888         * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
1889         the parameter description to denote no error checking.  Generate
1890         appropriate pseudo asm code.
1891         * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
1892         * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
1893         getpgrp, and getppid with 'E'.
1894         * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
1895         PSEUDO_END_NOERRNO, and ret_NOERRNO.
1896         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
1897         * sysdeps/unix/sysdep.h: Likewise.
1898         * sysdeps/unix/alpha/sysdep.h: Likewise.
1899         * sysdeps/unix/sparc/sysdep.h: Likewise.
1900         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
1901         * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
1902         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
1903         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1904         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1905         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
1906         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1907         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1908         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
1909         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1911
1912 2003-03-23  Roland McGrath  <roland@redhat.com>
1913
1914         * Makeconfig (+includes): Don't use $(last-includes).
1915
1916 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
1917
1918         * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
1919         * sysdeps/unix/sysv/linux/configure: Rebuilt.
1920
1921 2003-03-23  Jakub Jelinek  <jakub@redhat.com>
1922
1923         * sysdeps/alpha/fpu/libm-test-ulps: Update.
1924         * sysdeps/arm/libm-test-ulps: Update.
1925         * sysdeps/hppa/fpu/libm-test-ulps: Update.
1926         * sysdeps/ia64/fpu/libm-test-ulps: Update.
1927         * sysdeps/mips/fpu/libm-test-ulps: Update.
1928         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1929         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1930         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1931         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1932         * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
1933         * sysdeps/s390/fpu/libm-test-ulps: Update.
1934         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1935
1936 2003-03-22  Roland McGrath  <roland@redhat.com>
1937
1938         * include/atomic.h: Put parens around all macro arguments.
1939         (__atomic_val_bysize, __atomic_bool_bysize): New macros.
1940         (atomic_compare_and_exchange_val_acq): Use it.
1941         (atomic_compare_and_exchange_bool_acq): Likewise.
1942         (atomic_increment_and_test): Invert sense of test.
1943         (atomic_decrement_and_test): Likewise.
1944         * csu/tst-atomic.c: Update those tests to match.
1945
1946 2003-03-22  Jakub Jelinek  <jakub@redhat.com>
1947
1948         * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
1949         Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
1950         (atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
1951         __oldval variable in the macro, since it might be macro argument.
1952         (atomic_decrement_if_positive): Initialize __memp, remove setting
1953         of non-existent variable.
1954         (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
1955         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
1956         using atomic_compare_and_exchange_val_acq.
1957         (atomic_decrement_if_positive, atomic_bit_test_set): Define.
1958         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
1959         Renamed from...
1960         (__arch_compare_and_exchange_bool_8_acq): ... this.
1961         (__arch_compare_and_exchange_val_16_acq): Renamed from...
1962         (__arch_compare_and_exchange_bool_16_acq): ... this.
1963         (__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
1964         from...
1965         (__arch_compare_and_exchange_bool_32_acq): ... this.
1966         (__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
1967         from...
1968         (__arch_compare_and_exchange_bool_64_acq): ... this.
1969         (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
1970         variables types instead of assuming int.
1971         Change prefix of local variables to __arch.
1972         * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
1973         Remove.
1974         (atomic_compare_and_exchange_val_acq,
1975         atomic_compare_and_exchange_bool_acq): Define.
1976
1977         * csu/tst-atomic.c: New test.
1978         * csu/tst-atomic-long.c: New test.
1979         * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
1980
1981         * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
1982
1983         * sysdeps/s390/Versions: Add trailing newline.
1984
1985         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
1986         if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
1987
1988 2003-03-22  Andreas Schwab  <schwab@suse.de>
1989
1990         * sysdeps/m68k/fpu/libm-test-ulps: Update.
1991
1992         * sysdeps/m68k/m68020/bits/atomic.h: New file.
1993         * sysdeps/m68k/m68020/atomicity.h: Removed.
1994
1995 2003-03-22  Alexandre Oliva  <aoliva@redhat.com>
1996
1997         * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
1998         data structures and macros.  Protect from multiple inclusion.
1999
2000         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2001         typo in #if test.
2002
2003 2003-03-21  Andreas Jaeger  <aj@suse.de>
2004
2005         * sysdeps/i386/fpu/libm-test-ulps: Update.
2006
2007         * math/libm-test.inc (tgamma_test): Recompute some constants with
2008         36 digits precision.
2009         (lgamma_test): Likewise.
2010         (ccos_test): Likewise.
2011         (ccosh_test): Likewise.
2012         (clog10_test): Likewise.
2013         (csin_test): Likewise.
2014         (csinh_test): Likewise.
2015         (ctan_test): Likewise.
2016         (ctanh_test): Likewise.
2017
2018 2003-03-19  Jakub Jelinek  <jakub@redhat.com>
2019
2020         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2021
2022 2003-03-21  Roland McGrath  <roland@redhat.com>
2023
2024         * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2025         constraint to permit non-constant BIT argument.
2026         (atomic_bit_test_set): Likewise.
2027         * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2028         (atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
2029         For quadword case, use "i" constraint if __builtin_constant_p and < 32
2030         or "r" constraint otherwise.
2031
2032         * configure.in: Move AC_PROG_CC and other program-finding before all
2033         the version checks.
2034         * configure: Regenerated.
2035
2036 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2037
2038         * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2039         unaligned copying of 8-15 bytes.  From Chris Demetriou
2040         <cgd@broadcom.com>.  Fix label names.
2041         * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
2042         change as to memcpy.S.
2043         * sysdeps/mips/memcpy.S: Formatting changes.
2044         * sysdeps/mips/memset.S: Likewise.
2045
2046 2003-03-21  Roland McGrath  <roland@redhat.com>
2047
2048         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2049
2050 2003-03-21  Alexandre Oliva  <aoliva@redhat.com>
2051
2052         * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2053         * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2054
2055 2003-03-21  Roland McGrath  <roland@redhat.com>
2056
2057         * sysdeps/i386/i486/bits/atomic.h
2058         (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2059         version of the macro to avoid compile-time warnings.
2060         [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2061         (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2062         (atomic_increment, atomic_decrement): Likewise.
2063
2064 2003-03-21  Ulrich Drepper  <drepper@redhat.com>
2065
2066         * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2067         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2068
2069 2003-03-21  Roland McGrath  <roland@redhat.com>
2070
2071         * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2072
2073 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2074
2075         * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2076         atomic_compare_and_exchange_val_rel,
2077         atomic_compare_and_exchange_bool_acq, and
2078         atomic_compare_and_exchange_bool_rel instead of
2079         atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2080         * sysdeps/i386/i486/bits/atomic.h: Define
2081         __arch_compare_and_exchange_val_*_acq instead of
2082         __arch_compare_and_exchange_*_acq.
2083         * sysdeps/x86_64/bits/atomic.h: Likewise.
2084         * sysdeps/ia64/bits/atomic.h: Define
2085         __arch_compare_and_exchange_bool_*_acq instead of
2086         __arch_compare_and_exchange_*_acq.
2087         * sysdeps/powerpc/bits/atomic.h: Likewise.
2088         * sysdeps/s390/bits/atomic.h: Likewise.
2089         * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2090         * malloc/set-freeres.c: Likewise.
2091         * nscd/cache.c: Likewise.
2092         * stdlib/cxa_finalize.c: Likewise.
2093         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2094
2095 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2096
2097         * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2098         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2099         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2100
2101         * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2102         into high and low halves on n64.
2103         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2104         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2105         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2106
2107 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2108
2109         * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2110         correct atomic_compare_and_exchange_acq semantics.
2111
2112 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2113
2114         * sysdeps/mips/ieee754.h: Remove excess #endif.
2115
2116 2003-03-20  Roland McGrath  <roland@redhat.com>
2117
2118         * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2119         variable.  Remove superfluous memory clobber.
2120
2121         * include/atomic.h: Syntax braino fix.
2122
2123         * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2124         in decimal.  Don't bail if niced at start.  Just check that nice call
2125         bumps the total at all.
2126
2127 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2128
2129         * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2130         including pc, gp, sp and fp, as long long.
2131         * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2132         * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2133         Add gp argument, and set gp in the jmpbuf to it.
2134         * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2135
2136 2003-03-20  Ulrich Drepper  <drepper@redhat.com>
2137
2138         * include/atomic.h: Define atomic_exchange and
2139         atomic_decrement_if_positive if not already defined.  Add some
2140         __builtin_expect.
2141         * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2142         * sysdeps/x86_64/bits/atomic.h: Likewise.
2143         * sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
2144         * sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
2145         atomic_exchange, atomic_exchange_and_add, and
2146         atomic_decrement_if_positive
2147
2148 2003-03-20  Alexandre Oliva  <aoliva@redhat.com>
2149
2150         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2151         with a single instruction.
2152
2153         * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2154         properly for n64.
2155         (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2156         type.
2157         (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2158         Word before comparing with gotsym.  Take reloc_addr argument as
2159         void*.  Remove the code added for the compiler to drop any
2160         alignment assumptions.
2161
2162 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2163
2164         * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2165         * include/atomic.h: New file.
2166         * sysdeps/i386/i486/bits/atomic.h: New file.
2167         * sysdeps/x86_64/bits/atomic.h: New file.
2168         * sysdeps/s390/bits/atomic.h: New file.
2169         * sysdeps/sh/bits/atomic.h: New file.
2170         * sysdeps/ia64/bits/atomic.h: New file.
2171         * sysdeps/powerpc/bits/atomic.h: New file.
2172         * sysdeps/generic/bits/atomic.h: New file.
2173         * sysdeps/i386/i486/atomicity.h: Removed.
2174         * sysdeps/x86_64/atomicity.h: Removed.
2175         * sysdeps/s390/s390-32/atomicity.h: Removed.
2176         * sysdeps/s390/s390-64/atomicity.h: Removed.
2177         * sysdeps/ia64/atomicity.h: Removed.
2178         * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2179         * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2180         * elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
2181         use of macros from atomicity.h to new names and semantics.
2182         * gmon_mcount.c: Likewise.
2183         * malloc/set-freeres.c: Likewise.
2184         * nscd/cache.c: Likewise.
2185         * stdlib/cxa_finalize.c: Likewise.
2186         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2187
2188 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2189
2190         * sysdeps/mips/ieee754.h: New file, suitable to replace both
2191         ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2192         mips-specific for now.
2193
2194 2003-03-19  Ulrich Drepper  <drepper@redhat.com>
2195
2196         * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2197         hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
2198         * stdlib/tst-strtod.c: Add test for the bug.
2199
2200         * posix/tst-nice.c (do_test): Remove invalid of return value.
2201         Don't run test if initial level != 0.
2202
2203 2003-03-19  Amos Waterland  <apw@us.ibm.com>
2204
2205         * posix/tst-nice.c: New file.
2206         * posix/Makefile (tests): Add tst-nice.
2207
2208 2003-03-18  Roland McGrath  <roland@redhat.com>
2209
2210         * abilist: New directory of libfoo.abilist files maintained using
2211         scripts/merge-abilist.awk and "make update-abi" rules.
2212         * Makefile (distribute): Add abilist/*.abilist.
2213         * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2214         Depend on check-abi.
2215
2216         * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2217         * configure: Regenerated.
2218
2219         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2220
2221 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
2222
2223         * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2224         correctly.
2225
2226 2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>
2227
2228         * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2229
2230 2003-03-18  Ulrich Drepper  <drepper@redhat.com>
2231
2232         * Versions.def: Add GLIBC_2.3.3 for libpthread.
2233
2234 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
2235
2236         * sysdeps/generic/libc-start.c [!SHARED &&
2237         !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2238
2239 2003-03-17  Roland McGrath  <roland@redhat.com>
2240
2241         * include/ctype.h: Revert last change.
2242
2243 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
2244
2245         * argp/tst-argp1.c: Use test-skeleton.c.
2246         * locale/tst-C-locale.c: Likewise.
2247
2248 2003-03-17  Alexandre Oliva  <aoliva@redhat.com>
2249
2250         * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
2251         * sysdeps/mips/mips64/n64/Implies: New file.
2252         * sysdeps/mips/mips64/n64/Makefile: New file.
2253         * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
2254         * sysdeps/mips/mips64/n32/Implies: New file.
2255         * sysdeps/mips/mips64/n32/Makefile: New file.
2256         * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
2257         * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
2258         * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
2259         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
2260         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
2261         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
2262         * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
2263         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
2264         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
2265         * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
2266         * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
2267         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
2268         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
2269         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2270
2271         * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
2272         lib64 for mips64/n64 and lib32 for mips64/n32.
2273         (ldd_rewrite_script): Needed for all mips64 configurations.
2274         * sysdeps/unix/sysv/linux/configure: Rebuilt.
2275         * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
2276         * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2277
2278         * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
2279         well.
2280
2281         * sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
2282         asm/unistd.h into asm-unistd.h.
2283         * sysdeps/unix/sysv/linux/mips/configure: Generated.
2284         * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
2285         of syscall list.
2286         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
2287         * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
2288         asm/unistd.h.
2289
2290         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
2291         * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
2292         long type for registers on n32.
2293
2294         * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
2295         3 ABIs.
2296         * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
2297         BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
2298         * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
2299         (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
2300         * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
2301         * sysdeps/unix/mips/brk.S: Likewise.
2302         * sysdeps/unix/mips/sysdep.S: Likewise.
2303         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2304         * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
2305         * sysdeps/mips/sys/ucontext.h: Likewise.
2306         * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
2307         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2308         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2309         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2310         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
2311         * sysdeps/mips/mips64/setjmp.S: Likewise.
2312         * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
2313         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
2314         64-bit types.
2315
2316 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
2317
2318         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
2319         not at function level.
2320         * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
2321
2322 2003-03-15  Roland McGrath  <roland@redhat.com>
2323
2324         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
2325         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2326         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
2327         * nis/nis_table.c (__create_ib_request): Likewise.
2328
2329         * posix/fnmatch_loop.c: Add casts for signedness.
2330         * nss/nss_files/files-hosts.c: Likewise.
2331         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2332         * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
2333         * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
2334
2335         * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
2336         get errors into the log file.
2337         (libc_cv_broken_visibility_attribute): Likewise.
2338         (libc_cv_broken_alias_attribute): Likewise.
2339         (libc_cv_asm_weak_directive): Likewise.
2340         (libc_cv_need_minus_P): Likewise.
2341         (libc_cv_dot_text): Likewise.
2342         (libc_cv_asm_global_directive): Likewise.
2343         (libc_cv_asm_type_prefix): Likewise.
2344         * configure: Regenerated.
2345
2346         * nscd/cache.c (cache_search): Give first arg type `request_type'.
2347         * nscd/nscd.h: Update decl.
2348
2349         * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
2350         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2351         * elf/dl-close.c (_dl_close): Likewise.
2352         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
2353         * io/fts.c (fts_build): Likewise.
2354         * elf/cache.c (add_to_cache): Likewise.
2355         * locale/programs/locarchive.c (show_archive_content): Likewise.
2356
2357         * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
2358
2359         * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
2360         happy.
2361         (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
2362
2363 2003-03-15  Ulrich Drepper  <drepper@redhat.com>
2364
2365         * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
2366         code for most parts.
2367
2368 2003-03-15  Roland McGrath  <roland@redhat.com>
2369
2370         * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
2371         * sysdeps/unix/sysv/linux/system.c: ... here.
2372         (FORK): Don't #define if already #define'd.
2373         * sysdeps/unix/sysv/linux/s390/system.c: File removed.
2374         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
2375         (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
2376
2377         * dlfcn/tst-dlinfo.c: New file.
2378         * dlfcn/Makefile (tests): Add tst-dlinfo.
2379         ($(objpfx)tst-dlinfo): New target.
2380
2381         * dlfcn/dlinfo.c: New file.
2382         * dlfcn/Makefile (libdl-routines): Add it.
2383         * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
2384         * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
2385         [__USE_GNU] (RTLD_DI_*): New enum constants.
2386         [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
2387         * elf/dl-load.c (cache_rpath): New inline function.
2388         (_dl_map_object): Use it.
2389         (_dl_rtld_di_serinfo): New function.
2390         * sysdeps/generic/ldsodefs.h: Declare it.
2391         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
2392
2393         * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
2394         (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
2395         (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
2396         (__libc_start_main): Just call the generic one for most of the work.
2397
2398         * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
2399         static function by that name instead of BP_SYM (__libc_start_main).
2400         [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
2401         [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
2402         [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
2403
2404         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
2405         Use this macro for extra AT_* cases.
2406         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
2407         New macro, guts from ...
2408         (__aux_init_cache): ... here, function removed.
2409         (DL_PLATFORM_INIT): Don't define this.
2410
2411         * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
2412         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
2413
2414         * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
2415
2416 2003-03-14  Roland McGrath  <roland@redhat.com>
2417
2418         * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
2419
2420 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
2421
2422         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
2423
2424         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2425         sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
2426
2427 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
2428
2429         * sysdeps/mips/fpu/bits/mathdef.h: New.
2430         (__NO_LONG_DOUBLE_MATH): Define for o32.
2431
2432         * sysdeps/mips/sys/asm.h: Formatting changes.
2433         (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
2434         (CPADD): Define for all of them.
2435         (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
2436         SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
2437         NARGSAVE): Define per ABI spec.
2438         (END): Don't redefine.
2439         (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
2440         LONG_SRAV): Remove duplicate definitions.
2441         (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
2442         PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
2443         PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
2444         (PTR_LA): Define for all 3 ABIs.
2445
2446         * sysdeps/mips/dl-machine.h: Include sys/asm.h.
2447         (elf_machine_matches_host): Prevent linking of o32 and n32
2448         together.
2449         (elf_machine_dynamic): Document assumption on $gp.
2450         (STRINGXP, STRINGXV, STRINGV_): New macros.
2451         (elf_machine_load_address): Use them to stringize PTR_LA and
2452         PTR_SUBU.
2453         (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
2454         ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
2455         (_dl_runtime_resolve): Adjust it for all 3 ABIs.
2456         (__dl_runtime_resolve): Cast the symtab initializer to the
2457         right type.
2458         (RTLD_START): Use it.  Adjust it for all 3 ABIs.
2459         (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
2460         Handle 64-bit R_MIPS_REL composite relocation and accept
2461         R_MIPS_64 relocations to shift addend size to 64 bits.
2462         Document assumption regarding local GOT entries.  Document
2463         backward-compatibility departing from the ABI behavior in
2464         applying relocations that reference section symbols, no longer
2465         used.  Support relocations to mis-aligned offsets.
2466         * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
2467
2468         * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
2469
2470         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
2471         (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
2472         * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
2473         restore_rt functions.  Use them.
2474
2475         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2476         .set mips2 on new abis.
2477
2478 2003-03-13  Ulrich Drepper  <drepper@redhat.com>
2479
2480         * posix/getconf.c: Recognize POSIX2_SYMLINKS.
2481         * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
2482         * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
2483         * sysdeps/posix/pathconf.c: Likewise.
2484         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
2485         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2486         * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
2487
2488         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
2489         words.
2490
2491 2003-03-14  Alexandre Oliva  <aoliva@redhat.com>
2492
2493         * include/gmp.h: Include/gmp-mparam.h.
2494         * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
2495         gmp-impl.h.
2496
2497         * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
2498         ELF_MACHINE_NO_RELA is set.
2499         * elf/rtld.c (dl_main): No prelink support for REL-only.
2500
2501         * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
2502         FLAG_MIPS64_LIBN64): Define.
2503         * elf/cache.c (print_entry): Handle mips64 n32 and n64.
2504
2505         * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
2506         * sysdeps/mips/memset.S: Likewise.
2507         * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
2508         depending on the ABI.
2509
2510         * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
2511         Don't .set mips2 on new abi.
2512         (compare_and_swap): Likewise.  Support 64-bit longs on n64.
2513
2514         * stdlib/fpioconst.h: Include gmp.h with angle brackets.
2515
2516 2003-03-13  Roland McGrath  <roland@redhat.com>
2517
2518         * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
2519         found.  Reported by Alexandre Oliva <aoliva@redhat.com>.
2520
2521 2003-03-13  Alexandre Oliva  <aoliva@redhat.com>
2522
2523         * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
2524         literals long long.
2525         * stdlib/fpioconst.c: Likewise.
2526         * stdlib/strtod.c: Likewise.
2527
2528         * sysdeps/mips/add_n.S: Use L macro for local labels.
2529         * sysdeps/mips/addmul_1.S: Likewise.
2530         * sysdeps/mips/lshift.S: Likewise.
2531         * sysdeps/mips/memcpy.S: Likewise.
2532         * sysdeps/mips/memset.S: Likewise.
2533         * sysdeps/mips/mul_1.S: Likewise.
2534         * sysdeps/mips/rshift.S: Likewise.
2535         * sysdeps/mips/sub_n.S: Likewise.
2536         * sysdeps/mips/submul_1.S: Likewise.
2537         * sysdeps/mips/mips64/add_n.S: Likewise.
2538         * sysdeps/mips/mips64/addmul_1.S: Likewise.
2539         * sysdeps/mips/mips64/lshift.S: Likewise.
2540         * sysdeps/mips/mips64/mul_1.S: Likewise.
2541         * sysdeps/mips/mips64/rshift.S: Likewise.
2542         * sysdeps/mips/mips64/sub_n.S: Likewise.
2543         * sysdeps/mips/mips64/submul_1.S: Likewise.
2544         * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
2545         conventions.  Define END as in sys/asm.h.
2546         * sysdeps/unix/mips/sysdep.S: Likewise.
2547         * sysdeps/unix/mips/wait.S: Likewise.
2548         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2549
2550         * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
2551         Cast shifted values that may be too narrow to mp_limb_t.
2552         * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
2553         Likewise.
2554         * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
2555         Likewise.
2556         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
2557         (__mpn_extract_long_double): Likewise.
2558         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
2559         (__mpn_construct_long_double): Likewise.
2560         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
2561         (__mpn_extract_long_double): Likewise.
2562         * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
2563         (__mpn_construct_long_double): Likewise.
2564
2565 2003-03-13  Roland McGrath  <roland@redhat.com>
2566
2567         * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
2568         entries in the map file match too.
2569
2570 2003-03-13  Guido Guenther  <agx@sigxcpu.org>
2571
2572         * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
2573         label .Lthread_start since current binutils don't allow branches
2574         to globally visible symbols.
2575
2576 2003-03-13  Jakub Jelinek  <jakub@redhat.com>
2577
2578         * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
2579         ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
2580         ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
2581         (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it.  Make syscall arguments
2582         clobbered by the syscall.
2583         (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
2584         ASM_ARGS_6): Change constraints from r to index of corresponding
2585         output register.
2586         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
2587         ptid and ctid to match kernel.
2588         * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
2589
2590 2003-03-12  Steven Munroe  <sjmunroe@us.ibm.com>
2591
2592         * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
2593         AC_DEFINE(PI_STATIC_AND_HIDDEN).  Not supported for PowerPC64.
2594         * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
2595
2596 2003-03-11  Roland McGrath  <roland@redhat.com>
2597
2598         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2599         Check SYM_MAP rather than SYM as definedness check.
2600         Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
2601         Don't handle R_PPC64_REL24 reloc.
2602         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
2603
2604         * sysdeps/powerpc/powerpc64/dl-machine.h
2605         [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
2606         block, so we cover all the TPREL16* flavors without 6 ||s.
2607         [USE_TLS] (elf_machine_tprel): New function.
2608         (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
2609         and handle TPREL16 relocs too.  Return rather than break for DTPREL64.
2610         Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
2611
2612 2003-03-11  Ralf Baechle  <ralf@linux-mips.org>
2613
2614         * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
2615         instead of jalr to invoke subroutine so restoring the $gp register
2616         will work properly.
2617
2618 2003-03-11  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2619
2620         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
2621         to __NR_pread if not defined.
2622         (__NR_pwrite64): Define to __NR_pwrite if not defined.
2623
2624 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
2625
2626         * sysdeps/unix/sysv/linux/ia64/system.c: New file.
2627         * sysdeps/unix/sysv/linux/kernel-features.h
2628         (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
2629         kernel >= 2.5.64.
2630
2631 2003-03-11  Jakub Jelinek  <jakub@redhat.com>
2632
2633         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
2634         allocate space even for the trailing '/'.
2635         Reported by John Reiser <jreiser@BitWagon.com>.
2636
2637         * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
2638         ASM_CLOBBERS_6): Define.
2639         (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
2640         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
2641         to match IA-32 order.
2642         * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
2643
2644 2003-03-10  Steven Munroe  <sjmunroe@us.ibm.com>
2645
2646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
2647         Copy extra params for NPTL to registers used in clone syscall.
2648
2649 2003-03-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2650
2651         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
2652         call names for pread and pwrite.
2653
2654 2003-03-10  Roland McGrath  <roland@redhat.com>
2655
2656         * dlfcn/Makefile (libdl-routines): Add dladdr1.
2657         * dlfcn/dladdr1.c: New file.
2658         * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
2659         [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
2660         * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
2661         a const ElfNN_Sym ** to fill in.
2662         * include/dlfcn.h: Update decl.  Include <link.h>.
2663         * dlfcn/dladdr.c (dladdr): Update caller.
2664         * malloc/mtrace.c (tr_where): Likewise.
2665         * sysdeps/generic/elf/backtracesyms.c: Likewise.
2666         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2667         * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
2668         * Versions.def (libdl): Define GLIBC_2.3.3 set.
2669
2670         * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
2671         assembler command.
2672         * sysdeps/unix/Makefile (compile-syscall): New variable.
2673         Pass -g0 to compiler for assembling syscall stubs from stdin.
2674
2675         * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
2676         (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
2677         Define these to do nothing.
2678
2679         * configure.in: New check for -g on .S files.
2680         * configure: Regenerated.
2681         * config.make.in (have-cpp-asm-debuginfo): New variable.
2682         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
2683         * Makeconfig (ASFLAGS): New variable, if undefined and
2684         $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
2685         * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
2686
2687 2003-03-09  Roland McGrath  <roland@redhat.com>
2688
2689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
2690         used by NPTL on new kernels.  From Paul Mackerras <paulus@samba.org>.
2691
2692 2003-03-09  Ulrich Drepper  <drepper@redhat.com>
2693
2694         * po/fi.po: Update from translation team.
2695         * po/ca.po: Likewise.
2696         * po/da.po: Likewise.
2697
2698 2003-03-08  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * rt/tst-aio7.c (do_test): Change BYTES into a #define.
2701
2702 2003-03-07  Ulrich Drepper  <drepper@redhat.com>
2703
2704         * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
2705
2706         * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
2707
2708 2003-03-07  Roland McGrath  <roland@redhat.com>
2709
2710         * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
2711         * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
2712
2713 2003-03-04  Guido Guenther  <agx@sigxcpu.org>
2714
2715         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
2716         stubs, we have INLINE_SYSCALL.
2717         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
2718         MAP_NONBLOCK.
2719
2720 2003-03-06  Roland McGrath  <roland@redhat.com>
2721
2722         * rt/tst-aio7.c (do_test): Revert last change.  Instead, give CB1
2723         permanent extent and add a comment about testing its implicit teardown.
2724
2725 2003-03-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2726
2727         * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
2728
2729 2003-03-05  Ulrich Drepper  <drepper@redhat.com>
2730
2731         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
2732         reversed __builtin_expect expectation.
2733
2734 2003-03-05  Roland McGrath  <roland@redhat.com>
2735
2736         * stdio-common/sscanf.c: Use prototype defn with ... syntax.
2737         * libio/swscanf.c: Likewise.
2738         * libio/swprintf.c: Likewise.
2739
2740 2003-03-04  Roland McGrath  <roland@redhat.com>
2741
2742         * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
2743         (elf_machine_rela): Always use RESOLVE_MAP, needed for
2744         R_PPC64_JMP_SLOT as well as TLS cases.
2745         (BIT_INSERT): Move parenthesis where it ought to have been.
2746         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
2747
2748         * posix/confstr.c (confstr): Correct STRING_LEN values for
2749         _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
2750         break.  Reported by Alexandre Julliard <julliard@winehq.com>.
2751
2752 2003-03-04  Jakub Jelinek  <jakub@redhat.com>
2753
2754         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2755
2756 2003-03-04  Ulrich Drepper  <drepper@redhat.com>
2757
2758         * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
2759         clone parameters.
2760
2761         * po/sv.po: Update from translation team.
2762
2763 2003-03-04  Andreas Jaeger  <aj@suse.de>
2764             Ulrich Drepper  <drepper@redhat.com>
2765
2766         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
2767
2768 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
2769
2770         * sysdeps/generic/dl-sysdep.h: Add double include protection.
2771
2772         * po/tr.po: Update from translation team.
2773
2774         * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
2775         are holes between the segments.  Only call mprotect to set
2776         proection to PROT_NONE if there are some.
2777
2778         * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
2779         Update comment.
2780
2781         * include/sched.h (__clone2): Use ... instead of adding all the
2782         new parameters.
2783
2784 2003-03-03  Roland McGrath  <roland@redhat.com>
2785
2786         * elf/dl-load.c (struct filebuf): Fix typo in last change.
2787
2788         * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
2789         PI_STATIC_AND_HIDDEN.
2790
2791 2003-03-03  Ian Wienand  <ianw@gelato.unsw.edu.au>
2792
2793         * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
2794         flags.
2795         * include/sched.h: Update clone2 prototype.
2796
2797 2003-03-03  Andreas Jaeger  <aj@suse.de>
2798
2799         * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
2800         (llrint): Use it to correct return type.
2801         (lrint): Likewise.
2802         (lround): Likewise.
2803         (llround): Likewise.
2804
2805 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
2806
2807         * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
2808         byte filebuf size.
2809
2810         * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
2811         if ccs parameter isn't valid.  Reported by Andreas Schwab.
2812
2813 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2814
2815         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
2816         for system call numbers > 255.
2817         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
2818         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
2819         INTERNAL_SYSCALL): Likewise.
2820         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
2821         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
2822         INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
2823         INTERNAL_SYSCALL): Likewise.
2824
2825 2003-03-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2826
2827         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
2828         array if it is the initial dtv.
2829
2830 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
2831
2832         * po/es.po: Update from translation team.
2833         * po/fr.po: Likewise.
2834         * po/gl.po: Likewise.
2835         * po/sk.po: Likewise.
2836         * po/sv.po: Likewise.
2837
2838         * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
2839         * misc/sys/mman.h: Add prototype for remap_file_pages.
2840         * sysdeps/generic/remap_file_pages.c: New file.
2841         * misc/Makefile (routines): Add remap_file_pages.
2842         * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
2843
2844         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
2845         and MAP_NONBLOCK.
2846         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2847         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
2848         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2849         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2850         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2851         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2852         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
2853         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2854
2855 2003-03-03  Roland McGrath  <roland@redhat.com>
2856
2857         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
2858         * sysdeps/ia64/dl-machine.h: Likewise.
2859         * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
2860         argument type.
2861         * sysdeps/ia64/dl-lookupcfg.h: Update decl.
2862
2863         * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
2864         * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
2865         * locale/Versions (libc: GLIBC_2.3): Move those to ...
2866         * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
2867         * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
2868         * Versions.def (libc): Add GLIBC_2.3.3 set.
2869
2870         * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
2871         * sysdeps/ia64/dl-machine.h: Update decl.
2872
2873 2003-03-03  Andreas Jaeger  <aj@suse.de>
2874
2875         * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
2876
2877 2003-03-02  Roland McGrath  <roland@redhat.com>
2878
2879         * scripts/abilist.awk: Reject data items with apparent 0 size.
2880
2881         * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
2882         after foo.* as if it were a duplicate.
2883
2884         * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
2885
2886 2003-03-02  Ulrich Drepper  <drepper@redhat.com>
2887
2888         * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
2889
2890         * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
2891         * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
2892         if not already defined.  Use SYSDEP_GETRES to allow other files to
2893         provide alternative implementations.
2894         * sysdeps/unix/sysv/linux/clock_getres.c: New file
2895         * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
2896         if not already defined.  Use SYSDEP_GETTIME to allow other files to
2897         provide alternative implementations.
2898         * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
2899         * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
2900         if not already defined.  Use SYSDEP_GETTIME to allow other files to
2901         provide alternative implementations.
2902         * sysdeps/unix/sysv/linux/clock_settime.c: New file.
2903         * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
2904         other files to provide alternative implementations.  Rearrange
2905         tests for invalid parameters.
2906         * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
2907         * sysdeps/unix/sysv/linux/sysconf.c: New file.
2908         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2909         __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
2910         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
2911         _POSIX_MONOTONIC_CLOCK.
2912
2913 2003-03-02  Roland McGrath  <roland@redhat.com>
2914
2915         * scripts/merge-abilist.awk: More checks for bogus input.
2916         Uniquify duplicate config names.
2917
2918         * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
2919
2920         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
2921         from dl_reloc_overflow, make global.
2922         (__process_machine_rela): Update callers.
2923         * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
2924         Add attribute_hidden to __process_machine_rela decl.
2925         (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
2926
2927         * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
2928         variable.
2929
2930         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
2931         Don't use weak_extern for dl_rtld_map.  Instead check only if [SHARED].
2932         (elf_machine_rela): Clean up.
2933
2934         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
2935
2936         PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
2937         * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
2938         * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
2939         * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
2940         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
2941         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
2942         new relocs for TLS.
2943
2944         * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
2945         macros out of [SHARED].
2946         (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
2947
2948         * elf/elf.h: Define R_PPC_* relocs for TLS support.
2949         Clean up R_PPC64_* macro definition comments.
2950
2951         * configure.in: In "running configure fragment for" message,
2952         omit $srcdir from the name if we prepended it.
2953         * configure: Regenerated.
2954
2955         * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
2956         From Jakub Jelinek <jakub@redhat.com>.
2957
2958         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
2959         which duplicated the O_DIRECT defn.
2960
2961 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
2962
2963         * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
2964         random functions.
2965
2966 2003-03-01  Andreas Schwab  <schwab@suse.de>
2967
2968         * resolv/Makefile (tests): Don't depend on
2969         $(objpfx)mtrace-tst-leaks when cross compiling.
2970
2971         * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
2972         __libc_stack_end through GOT since it is a global symbol.
2973
2974 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
2975
2976         * argp/argp.h: Fix a typo.
2977         Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
2978
2979         * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
2980
2981 2003-02-27  Pat Rankin  <rankin@pactechdata.com>
2982
2983         * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
2984         char *.
2985         (get_subexp): Likewise.
2986
2987 2003-03-01  GOTO Masanori  <gotom@debian.or.jp>
2988
2989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
2990
2991 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
2992
2993         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
2994
2995 2003-02-27  Roland McGrath  <roland@redhat.com>
2996
2997         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
2998         special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
2999         repeat it and avoids the test for the common case.
3000         Clean up and fix calculations for TLS relocs.
3001
3002         * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3003         * sysdeps/powerpc/dl-tls.h: ... here.
3004         (TLS_TP_OFFSET): New macro.
3005
3006         * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3007
3008 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3009
3010         * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3011         code generation changes in recent gcc.
3012
3013 2003-02-26  Steven Munroe  <sjmunroe@us.ibm.com>
3014
3015         * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3016         Rename argument to avoid symbol conflict.
3017
3018         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3019         [__USE_GNU] (O_DIRECT): New macro.
3020
3021 2003-02-24  David Mosberger  <davidm@hpl.hp.com>
3022
3023         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3024         unwind info.
3025
3026 2003-02-27  Ulrich Drepper  <drepper@redhat.com>
3027
3028         * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3029         initializer anymore now that res_thread_freeres is more careful.
3030
3031         * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3032         except the PKTINFO.  Reset interface in PKTINFO.
3033         Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3034
3035 2003-02-25  Steven Munroe  <sjmunroe@us.ibm.com>
3036
3037         * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3038         * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3039         Define.
3040         * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3041         * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3042         * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3043         * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3044
3045         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3046         Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3047
3048 2003-02-25  Andreas Jaeger  <aj@suse.de>
3049
3050         * manual/memory.texi (Malloc Tunable Parameters): Clarify
3051         behaviour of M_MMAP_THRESHOLD.
3052
3053 2003-02-25  Roland McGrath  <roland@redhat.com>
3054
3055         * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3056         zero, inidicating _res was not initialized yet.
3057
3058 2003-02-24  Ulrich Drepper  <drepper@redhat.com>
3059
3060         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3061         test.
3062
3063 2003-02-24  Roland McGrath  <roland@redhat.com>
3064
3065         * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3066
3067 2003-02-23  Roland McGrath  <roland@redhat.com>
3068
3069         * sysdeps/posix/pause.c: New file.
3070         * sysdeps/unix/common/pause.c: File removed.
3071
3072 2003-02-23  Ulrich Drepper  <drepper@redhat.com>
3073
3074         * sysdeps/generic/bits/confname.h: Remove #ifs.
3075
3076         * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3077         * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3078
3079         * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3080         element to -1.
3081
3082 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3083
3084         * sysdeps/generic/dl-sysdep.c: Avoid warning.
3085
3086 2003-02-22  Roland McGrath  <roland@redhat.com>
3087
3088         * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3089         * resolv/Makefile (tests): Add tst-leaks.
3090         ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3091         (tst-leaks-ENV): New variable.
3092         ($(objpfx)mtrace-tst-leaks): New target.
3093         (tests): Depend on it.
3094
3095         * include/libc-internal.h: Declare __libc_thread_freeres.
3096
3097         * Makerules: Fix last change to use $($(subdir)-version) when set.
3098
3099         * Makerules (install-lib-nosubdir): Depend on installed
3100         libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3101         regardless of the libfoo.so target's dependencies.
3102
3103         * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3104         Use that in $(MAKE) calls.
3105
3106 2003-02-22  Ulrich Drepper  <drepper@redhat.com>
3107
3108         * catgets/gencat.c (read_input_file): Collision between
3109         auto-assigned numbers and user-defined nubmers is not fatal.
3110         Handle it.
3111         Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3112         * catgets/Makefile: Add rules to run test2.msg test.
3113         * catgets/test2.msg: New file.
3114
3115         * catgets/gencat.c (main): Return 1 if messages have been printed.
3116
3117         * iconv/iconv_prog.c (main): Unify messages.
3118
3119         * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3120         when shifting retval.
3121         * stdlib/tst-strtod.c (main): Add strtold test case.
3122         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3123
3124 2003-02-21  Roland McGrath  <roland@redhat.com>
3125
3126         * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3127         * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3128         (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3129
3130         * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3131         * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3132         (res_thread_freeres): New function, on __libc_thread_subfreeres and
3133         __libc_subfreeres.
3134
3135         * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3136         * malloc/thread-freeres.c: New file.
3137         * malloc/Makefile (aux): Add it.
3138         * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3139         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3140         "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3141
3142         * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3143         * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3144
3145 2003-02-21  Roland McGrath  <roland@frob.com>
3146
3147         * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3148
3149         * iconvdata/Makefile (tests): Add bug-iconv3 only if
3150         [$(have-thread-library) = yes].
3151
3152 2003-02-21  Ulrich Drepper  <drepper@redhat.com>
3153
3154         * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3155
3156         * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3157         not chechk for errors (unless testing for 32bit variant).
3158         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3159         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3160         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3161
3162 2003-02-21  Jakub Jelinek  <jakub@redhat.com>
3163
3164         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3165         Check for signed overflow, not unsigned.
3166
3167         * sysdeps/sparc/sparc64/elf/configure.in: New file.
3168         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3169         Use -fcall-used-g6, not -fcall-used-g7.
3170
3171 2003-02-21  Andreas Jaeger  <aj@suse.de>
3172
3173         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3174         mode.
3175
3176         * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3177         clear whole mxcsr but only exceptions.
3178
3179 2003-02-21  Roland McGrath  <roland@redhat.com>
3180
3181         * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3182         for libfoo.so that need $(make-link) rules.
3183
3184 2003-02-21  Roland McGrath  <roland@frob.com>
3185
3186         * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3187         to match existing struct stat layout in mig protocols.
3188
3189 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3190
3191         * version.h (VERSION): Bump to 2.3.2.
3192
3193         * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3194         tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3195         and dl-sysdep.h.
3196         * sysdeps/generic/Dist: Add sysdep-cancel.h.
3197         * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3198         * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3199         * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3200         * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3202         ucontext_i.h.
3203         * Makefile (distribute): Add include/stubs-prologue.h,
3204         include/gnu/stubs.h, scripts/merge-abilist.awk, and
3205         scripts/extract-abilist.awk.
3206
3207 2003-02-20  Roland McGrath  <roland@redhat.com>
3208
3209         * math/Makefile (distribute): Don't add generated files.
3210
3211 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3212
3213         * math/Makefile: Rearrange variable definitions slightly to get
3214         definition in the right order.
3215
3216 2003-02-20  Roland McGrath  <roland@redhat.com>
3217
3218         * Makerules: Clean up conditional around include of tls.make.
3219         * Make-dist: Export generating=t to prevent using that.
3220         (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3221
3222 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3223
3224         * inet/rcmd.c (rresvport_af): Avoid using invliad values.  Wrap
3225         around in search if port IPPORT_RESERVED/2 has been test.
3226
3227 2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
3228
3229         * posix/regcomp.c: Remove inclusions.
3230         * posix/regexec.c: Likewise.
3231         * posix/regex_internal.c: Likewise.
3232         * posix/regex_internal.h: Add inclusions here.
3233         * posix/regex.c: Only include sys/types.h before regex.h.  Include
3234         regex_internal.h here.  Include regex_internal.c before regcomp.c
3235         and regexec.c (might expose more opportunities to the C compiler).
3236
3237         * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
3238
3239         * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
3240         [!_LIBC] (__wcrtomb): New definition.
3241         [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
3242         HAVE_LOCALE_H as well.
3243
3244 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
3245
3246         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
3247         patch to check for system call errors.
3248
3249 2002-07-24  Philip Blundell  <philb@gnu.org>
3250
3251         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
3252         on unknown systems.
3253
3254 2003-02-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3255
3256         * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
3257         * sysdeps/unix/sysv/linux/kernel-features.h
3258         (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
3259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
3260         if possible.
3261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
3262         interprocedure branches.
3263         * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
3264         * sysdeps/powerpc/nofpu/Dist: ...here.
3265         * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
3266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
3267         * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
3268         * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
3269         * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
3270
3271 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
3272
3273         * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
3274
3275 2003-02-20  Philip Blundell  <philb@gnu.org>
3276
3277         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
3278         missing arguments to INTERNAL_SYSCALL_ERROR_P and
3279         INTERNAL_SYSCALL_ERRNO.
3280
3281 2003-02-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3282
3283         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
3284         for __ASSUME_32BITUIDS.
3285
3286 2003-02-20  Andreas Schwab  <schwab@suse.de>
3287
3288         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
3289         POSIX_MADV_* constants.
3290
3291 2003-02-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3292
3293         * sysdeps/unix/sysv/linux/sh/pread.c: New file.
3294         * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
3295         * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
3296         * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
3297
3298 2003-02-19  Jiro Sekiba  <jir@yamato.ibm.com>
3299
3300         * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
3301
3302 2003-02-16  Roland McGrath  <roland@redhat.com>
3303
3304         * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
3305
3306 2003-02-19  Ulrich Drepper  <drepper@redhat.com>
3307
3308         * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
3309         decimal input digits.
3310         * stdlib/tst-strtod.c (main): Add test for strtof bug.
3311
3312 2003-02-18  Ulrich Drepper  <drepper@redhat.com>
3313
3314         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
3315         invalid file descriptors and missing access permissions.
3316
3317 2003-02-17  Ulrich Drepper  <drepper@redhat.com>
3318
3319         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
3320         been found.
3321
3322         * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
3323         TTY_NAME_MAX and not the _POSIX_* minimal value macros.
3324         * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
3325         and LOGIN_NAME_MAX.
3326
3327 2003-02-17  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
3328             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3329
3330         * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
3331         * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
3332         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3333         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3334         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3335
3336 2003-02-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3337
3338         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
3339         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
3340         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
3341         * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
3342         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
3343         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
3344
3345         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
3346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
3347         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
3348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
3349
3350         * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
3351         * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
3352         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
3353         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
3354
3355 2003-02-14  Thorsten Kukuk  <kukuk@suse.de>
3356
3357         * nss/getent.c (print_hosts): Print all IP addresses of one host.
3358
3359 2003-02-15  Roland McGrath  <roland@frob.com>
3360
3361         * sysdeps/mach/hurd/tls.h: New file.
3362         * sysdeps/mach/hurd/i386/tls.h: New file.
3363
3364         * mach/errsystems.awk: Include <errno.h> in generated output.
3365
3366         * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
3367         use target mach-before-compile instead of generated.
3368         (mach-before-compile): New target.
3369         * Makerules: Disable use of tls.make if $(generating) is set.
3370         * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
3371         * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
3372         mach-shortcuts.h so mach/ generation happens before hurd/.
3373
3374 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
3375
3376         * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
3377         of demorm correctly if low word is zero.
3378         Reported by Fred J. Tydeman <tydeman@tybor.com>.
3379         * math/libm-test.inc (nextafter_test): New test, but disabled due
3380         to gcc bug.
3381
3382         * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
3383         counter and only call __exit_thread if this is not the last thread.
3384
3385 2003-02-13  Jakub Jelinek  <jakub@redhat.com>
3386
3387         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
3388         subtracting map->l_tls_offset.
3389
3390 2003-02-12  Ulrich Drepper  <drepper@redhat.com>
3391
3392         * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
3393         _CS_GNU_LIBPTHREAD_VERSION.
3394         * posix/conststr.c: Handle these new values.
3395         * posix/getconf.c: Likewise.
3396
3397         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
3398         masking of version index.
3399         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3400
3401 2003-02-11  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
3404         correctly.  Reported by Thorsten Kukuk.
3405
3406 2003-02-10  Ulrich Drepper  <drepper@redhat.com>
3407
3408         * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
3409         _BSD_SOURCE to compiler.
3410         * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
3411         Patches by Alan Modra.
3412
3413 2003-02-08  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * io/ftwtest.c: Get current working directory before and after the
3416         nftw call and make sure they match.
3417
3418 2003-02-08  Jim Meyering  <jim@meyering.net>
3419
3420         * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
3421         the current directory, not just when DIR contains a slash.
3422         Reported by Manoj Srivastava.
3423
3424 2003-02-07  Jim Meyering  <jim@meyering.net>
3425
3426         * io/ftw.c: Add autoconf-recommended block of alloca-related code.
3427         Include autoconf-recommended block of dirent/NAMELEN-related
3428         definitions and includes.  Use NAMELEN throughout, rather than
3429         _D_EXACT_NAMLEN.
3430         [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
3431         [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
3432         (stpcpy): Declare, if necessary.
3433         (mempcpy): Define, if necessary.
3434         [!_LIBC] (__stpcpy, __mempcpy): Define.
3435         [!_LIBC] (LXSTAT, XSTAT): Define.
3436         (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
3437         (find_object): Don't use c99-style struct initializer.
3438         Tweak wording in a couple comments.
3439
3440 2003-02-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3441
3442         * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
3443         for SH.
3444         * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
3445         after the trapa instruction.
3446         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
3447         parameters.
3448         * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
3449         (NEED_SYSCALL_INST_PAD): Define.
3450         * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
3451         avoid to use definition for the kernel.
3452         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3453         Save and restore the frame pointer.
3454         (SYSCALL_INST_PAD): Define.
3455         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3456         (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
3457         after trapa instruction.
3458         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3459         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3460
3461 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
3462
3463         * resolv/res_libc.c (_res): Ensure _res is not common symbol,
3464         so that it can have aliases.
3465         * inet/herrno.c (h_errno): Put it into .bss not .data section.
3466
3467 2003-02-07  Ulrich Drepper  <drepper@redhat.com>
3468
3469         * elf/dl-runtime.c (fixup): Correct typo in version index computation.
3470         (profile_fixup): Likewise.
3471         Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3472
3473 2002-11-24  Robert Love  <rml@tech9.net>
3474
3475         * posix/sched.h: Second parameter of sched_setaffinity and
3476         sched_getaffinity is `unsigned int', not `unsigned long'.
3477         * sysdeps/generic/sched_setaffinity.c: Likewise.
3478         * sysdeps/generic/sched_getaffinity.c: Likewise.
3479
3480 2003-02-05  Ulrich Drepper  <drepper@redhat.com>
3481
3482         * debug/catchsegv.sh: Fix typo in error messsage.
3483         Reported by John Levon <levon@movementarian.org>.
3484
3485         * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
3486         * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
3487         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3488         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3490         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3491         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3492
3493         * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
3494         Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
3495
3496 2003-02-05  Jim Meyering  <jim@meyering.net>
3497
3498         Fix a heap-corrupting bug.
3499         * io/ftw.c: Include <limits.h>.
3500         (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
3501         (process_entry): Allocate enough space to hold the resulting
3502         file name.  Don't presume that 2*dirbufsize is enough.
3503         (ftw_startup): Always use PATH_MAX to compute buffer size, now that
3504         it is guaranteed to be defined.
3505
3506 2003-02-04  Ulrich Drepper  <drepper@redhat.com>
3507
3508         * iconvdata/Makefile: Add rules to build and run bug-iconv3.
3509         * iconvdata/bug-iconv3.c: New file.
3510
3511 2003-02-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3512
3513         * sysdeps/unix/sysv/linux/s390/system.c: New file.
3514
3515 2003-02-03  Jakub Jelinek  <jakub@redhat.com>
3516
3517         * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
3518         check.
3519         * config.h.in (BROKEN_SPARC_WDISP22): Add.
3520
3521 2003-02-03  Ulrich Drepper  <drepper@redhat.com>
3522
3523         * sysdeps/i386/i686/memmove.S: New file.
3524
3525 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
3526
3527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
3528         Include kernel-features.h
3529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3533
3534 2003-02-02  Jakub Jelinek  <jakub@redhat.com>
3535
3536         * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
3537
3538 2003-01-25  Jim Meyering  <jim@meyering.net>
3539
3540         * io/ftw.c (object_compare): Compare inode numbers before device
3541         numbers, since the former are much more likely to differ.
3542
3543 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
3544
3545         * time/tzfile.c (__tzfile_compute): Change return value type to
3546         void.  Adjust return statements.
3547         * include/time.h (__tzfile_compute): Adjust prototype.
3548
3549 2003-02-01  Jim Meyering  <jim@meyering.net>
3550
3551         * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
3552         always returns 1.
3553
3554 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
3555
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3557         [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
3558
3559 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
3560
3561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3562         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
3563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3564         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3566         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3568         [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3569
3570 2003-01-31  Steven Munroe  <sjmunroe@us.ibm.com>
3571
3572         * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
3573         back to 2.4.19 for powerpc64.
3574         * sysdeps/unix/sysv/linux/kernel-features.h
3575         (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
3576         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
3577
3578 2003-02-01  Ulrich Drepper  <drepper@redhat.com>
3579
3580         * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
3581         platforms with strange alignment requirements on wchar_t.
3582
3583 2003-01-31  Andreas Schwab  <schwab@suse.de>
3584
3585         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
3586         aliases, already added by make-syscalls.sh.
3587         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3588         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3589         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3590         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3591         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3592         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3593         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3594         * sysdeps/unix/inet/syscalls.list: Likewise.
3595         * sysdeps/unix/syscalls.list: Likewise.
3596
3597 2003-01-31  Andreas Schwab  <schwab@suse.de>
3598
3599         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
3600         any more.
3601
3602 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
3603
3604         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
3605         not l to load tls from stack.
3606
3607 2003-01-30  Roland McGrath  <roland@redhat.com>
3608
3609         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
3610         null argument before all else.
3611         Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3612
3613 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
3614
3615         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
3616         Move to RESOLVE protected part of the header.
3617         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
3618         Likewise.
3619
3620 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
3621
3622         * stdio-common/Makefile (tests): Add bug15.
3623         (bug15-ENV): Define.
3624         * stdio-common/bug15.c: New file.
3625
3626 2002-10-07  Wolfram Gloger  <wg@malloc.de>
3627
3628         * malloc/malloc.c (sYSMALLOc): Only check for breakage due
3629         to foreign sbrk()'s if arena is contiguous.  Bug report from
3630         Bruno Haible <bruno@clisp.org>.
3631
3632 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
3633
3634         * sysdeps/s390/libc-tls.c: Include stdlib.h.
3635
3636 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
3637
3638         * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
3639         ps.__count.
3640
3641 2003-01-30  Ulrich Drepper  <drepper@redhat.com>
3642
3643         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
3644         restoring of %r6.
3645         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.  Use
3646         64-bit load.
3647         Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
3648
3649 2003-01-30  Jakub Jelinek  <jakub@redhat.com>
3650
3651         * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
3652         (allocate_static_tls): ...here.  Add __attribute_noinline__.
3653         Don't return on failure.
3654         (_dl_reloc_bad_type): Add __attribute_noinline__.
3655         * elf/do-rel.h (elf_dynamic_do_rel): Add
3656         __attribute__((always_inline)).
3657         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
3658         elf_machine_rel_relative, elf_machine_rela_relative,
3659         elf_machine_lazy_rel): Add prototypes with
3660         __attribute__((always_inline)).
3661
3662 2003-01-29  David Mosberger  <davidm@hpl.hp.com>
3663
3664         * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
3665
3666 2003-01-29  Roland McGrath  <roland@redhat.com>
3667
3668         * configure.in: Barf if configured in $srcdir.
3669
3670 2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>
3671
3672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3673         (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
3674
3675 2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3676
3677         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
3678         clone parameters to match the order used on ia32.
3679         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
3680
3681 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3682
3683         * elf/elf.h: Add new s390 relocs.
3684         * elf/tls-macros.h: Add s390 versions.
3685         * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
3686         * sysdeps/s390/dl-tls.h: New file.
3687         * sysdeps/s390/libc-tls.c: New file.
3688         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
3689         relocs for class PLT.
3690         (elf_machine_rela): Handle TLS relocs.
3691         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3692         * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
3693         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
3694         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
3695         CLONE_CHILD_*TID flags.
3696         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
3697         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
3698         bit offset.
3699         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3700         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3701         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
3702         Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
3703         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
3704         Likewise.
3705         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3706         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
3707         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
3708         variants.
3709         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
3710         (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
3711         direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
3712         (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
3713         variants.
3714
3715 2003-01-28  Ulrich Drepper  <drepper@redhat.com>
3716
3717         * sysdeps/unix/common/pause.c (do_pause): New function.  Split
3718         from __libc_pause.  Implement using sigsuspend.
3719         (__libc_pause): Call do_pause to do the real work.
3720
3721         * sysdeps/posix/sigpause.c (do_sigpause): Check range of
3722         sig_or_mask parameter is is_sig != 0.
3723
3724 2003-01-21  Philip Blundell  <philb@gnu.org>
3725
3726         * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
3727
3728 2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>
3729
3730         * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
3731
3732 2003-01-27  Ulrich Drepper  <drepper@redhat.com>
3733
3734         * stdio-common/bug14.c: Use official name for the locale.
3735
3736         * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
3737         instead of __libc_cleanup_region_start and _IO_cleanup_region_end
3738         instead of __libc_cleanup_region_end.
3739
3740         * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
3741         as first parameter to __libc_cleanup_region_start.
3742
3743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3744         (__fe_nomask_env): Use __prctl not prctl.
3745         * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
3746         prctl syscall.
3747
3748         * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
3749
3750         * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
3751
3752         * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
3753         wrap-around in test.
3754
3755 2003-01-26  Andreas Schwab  <schwab@suse.de>
3756
3757         * sysdeps/wordsize-32/divdi3.c: Export the functions only as
3758         compatibility symbols.  Remove INTDEF for __divdi3.
3759         * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
3760         * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
3761         * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
3762         define.
3763         * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
3764
3765 2003-01-24  Jakub Jelinek  <jakub@redhat.com>
3766
3767         * elf/tls-macros.h: Add SPARC 32-bit definitions.
3768         * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
3769         * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
3770         for the first half of the header.  Include tls.h.
3771         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
3772         relocs too.
3773         (elf_machine_rela): Handle TLS relocs.
3774         * sysdeps/sparc/dl-tls.h: New file.
3775
3776         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
3777         support.
3778
3779         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
3780         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3781         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3782         * sysdeps/sparc/sparc32/strcat.S: Likewise.
3783         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3784         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
3785         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
3786         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
3787         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3788         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3789         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3790         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3791         * sysdeps/sparc/sparc64/strcat.S: Likewise.
3792         * sysdeps/sparc/sparc64/strchr.S: Likewise.
3793         * sysdeps/sparc/sparc64/strcmp.S: Likewise.
3794         * sysdeps/sparc/sparc64/strcpy.S: Likewise.
3795         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3796         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3797         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3798         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3799
3800 2003-01-24  Andreas Schwab  <schwab@suse.de>
3801
3802         * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
3803         elements, and process them backwards.
3804         * elf/Makefile ($(objpfx)tst-array4): New target.
3805         ($(objpfx)tst-array4.out): Likewise.
3806         (tests) [$(have-initfini-array) = yes]: Add tst-array4.
3807         * elf/tst-array4.c: New file.
3808         * elf/tst-array4.exp: Likewise.
3809
3810 2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3811
3812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
3813
3814 2003-01-27  Guido Guenther  <agx@sigxcpu.org>
3815
3816         * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
3817         * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
3818         cancellation handling and handle both __NR_pread64 and __NR_pread.
3819         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3820         * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
3821         cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
3822         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3823         * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
3824         case, use register names consistently.
3825
3826 2003-01-27  Wolfram Gloger  <wg@malloc.de>
3827
3828         * malloc/hooks.c (mem2chunk_check): Check alignment of mem
3829         pointer, not of the computed chunk.  Bug report from Carlos
3830         O'Donell <carlos@baldric.uwo.ca>.
3831
3832 2003-01-25  Andreas Schwab  <schwab@suse.de>
3833
3834         * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
3835         addressing to save GOT entries.
3836
3837 2003-01-21  Jakub Jelinek  <jakub@redhat.com>
3838
3839         * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
3840         inline_syscall1, inline_syscall2, inline_syscall3,
3841         inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
3842         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
3843         __attribute__((unused)) to ChEcK.
3844
3845 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3846
3847         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
3848         Fix inline assembler constraints.
3849         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
3850         Likewise.
3851
3852         * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
3853         -fPIC.
3854
3855 2003-01-20  Segher Boessenkool  <segher@koffie.nl>
3856
3857         * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
3858         compute the cosine, not the sine, even if x > 0.8.
3859
3860 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
3861
3862         * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
3863         _nss_nis_setspent.  Work around the different prototypes.
3864         * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
3865         internal_nis_endrpcent.
3866         (internal_nis_endrpcent): Change return type to void.  Change callers.
3867         * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
3868         _nss_nis_setpwent.  Work around the different prototypes.
3869         * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
3870         of the function to...
3871         (internal_nis_endprotoent): ... here.  New function.
3872         (internal_nis_setprotoent): Use internal_nis_endprotoent.
3873         * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
3874         _nss_nis_setnetent.  Work around the different prototypes.
3875         * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
3876         of the function to...
3877         (internal_nis_endnetgrent): ... here.  New function.
3878         (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
3879
3880 2003-01-19  Jim Meyering  <jim@meyering.net>
3881
3882         * time/strftime.c: (widen): Merge nearly-identical definitions.
3883         (nl_get_alt_digit) [! defined my_strftime]: Define.
3884         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
3885         _nl_get_alt_digit and _nl_get_walt_digit.
3886
3887 2003-01-19  Ulrich Drepper  <drepper@redhat.com>
3888
3889         * time/strftime.c (my_strftime): Handle very large width
3890         specifications for numeric values correctly.  Improve checks for
3891         overflow.
3892         * time/Makefile (tests): Add tst-strftime.
3893         * time/tst-strftime.c: New file.
3894
3895 2003-01-18  Ulrich Drepper  <drepper@redhat.com>
3896
3897         * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
3898         _nss_nis_sethostent.  Work around the different prototypes.
3899         * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
3900         _nss_nis_setgrent.  Work around the different prototypes.
3901         * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
3902         function.  Split out from _nss_nis_endetherent.
3903         (internal_nis_setetherent): Use internal_nis_endetherent instead of
3904         duplicating the code.
3905         * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
3906         of _nss_nis_setaliasent.
3907         * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
3908         internal_nis_endservent code, don't duplicate it.
3909
3910         * inet/rexec.c (rexec_af): Protect socket operations with
3911         TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
3912         * inet/rcmd.c (rcmd_af): Likewise.
3913
3914 2003-01-17  Roland McGrath  <roland@redhat.com>
3915
3916         * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
3917         Add test of value 0.80190127184058835.
3918
3919         * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
3920
3921 2003-01-17  Richard Henderson  <rth@redhat.com>
3922
3923         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
3924         relocs for class PLT.
3925         * sysdeps/alpha/libc-tls.c: New file.
3926         * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
3927         (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
3928
3929 2003-01-17  Jakub Jelinek  <jakub@redhat.com>
3930
3931         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
3932         __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
3933         on _dl_static_lock.
3934
3935 2003-01-17  Andreas Jaeger  <aj@suse.de>
3936
3937         * stdio-common/bug14.c: Include stdlib.h for exit prototype.
3938
3939 2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>
3940
3941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
3942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
3943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
3944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
3945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
3946         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
3947         * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
3948         is 2.4.21.
3949
3950 2003-01-16  Ulrich Drepper  <drepper@redhat.com>
3951
3952         * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
3953         values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
3954         buffers.
3955
3956         * sysdeps/generic/sysconf.c: Unconditionally implement
3957         _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
3958         * sysdeps/posix/sysconf.c: Likewise.
3959
3960 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
3961
3962         * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
3963         set *err to the returned error, not to REG_ESPACE unconditionally.
3964         (build_word_op): Likewise.
3965         * posix/Makefile (tests): Add bug-regex16.
3966         * posix/bug-regex16.c: New test.
3967
3968 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
3969
3970         * elf/dl-load.c (_dl_map_object_from_fd): Use
3971         GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
3972         been already initialized.
3973
3974 2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>
3975
3976         * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
3977
3978 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
3979
3980         * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
3981         allocated too.  Reported by Al Viro <aviro@redhat.com>.
3982
3983 2003-01-16  Roland McGrath  <roland@redhat.com>
3984
3985         Tweak merged .abilist file format to merge duplicate symbols in
3986         different sets into multi-version stanzas with new "| SET regexp..."
3987         header continuation lines.
3988         * scripts/merge-abilist.awk: Rewritten for new format.
3989         * scripts/extract-abilist.awk: Likewise.
3990
3991 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
3992
3993         * nscd/connections.c (nscd_run): Remove bogus return which isn't
3994         necessary with gcc 3.2+.
3995         (nscd_init): Don't use error() to print message, use dbg_log.
3996
3997         * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
3998         expected size into state.
3999         (UNPACK_BYTES): Do the reverse.
4000         * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4001         * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4002         Reported by Al Viro <aviro@redhat.com>.
4003
4004         * stdio-common/Makefile (tests): Add bug14.
4005         * stdio-common/bug14.c: New file.
4006
4007         * stdio-common/vfscanf.c: When recognizing multibyte characters in
4008         string reset the byte counter after mbrtowc reported it is not a
4009         partial character.  Reported by Al Viro <aviro@redhat.com>.
4010
4011 2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>
4012
4013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4014         sysdep-cancel.h, not sysdep.h.
4015
4016 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4017
4018         * nscd/connections.c (nscd_run): Protect accept call with
4019         TEMP_FAILURE_RETRY.
4020
4021 2003-01-15  Andreas Schwab  <schwab@suse.de>
4022
4023         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4024         (common-generated): Add s-proto-bp.d.
4025         * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4026         of bp thunks.
4027         * sysdeps/unix/s-proto-bp.S: New file.
4028         * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4029         Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4030         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4031
4032 2003-01-15  Roland McGrath  <roland@redhat.com>
4033
4034         * Makerules: Use -include for tls.make, suppresses warning.
4035         Move gen-as-const-headers rules up so before-compile is set in time.
4036         (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4037
4038 2003-01-15  Ulrich Drepper  <drepper@redhat.com>
4039
4040         * nscd/nscd.c (main): Make code to close all file descriptors
4041         faster and more robust.
4042
4043         * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4044         request with one writev call.  Protect all read calls with
4045         TEMP_FAILURE_RETRY.
4046         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4047         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4048
4049         * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4050         Protect writev calls with TEMP_FAILURE_RETRY.
4051         * nscd/grpcache.c: Likewise.
4052         * nscd/pwdcache.c: Likewise.
4053
4054         * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4055         IPv6 address in debug output.
4056
4057 2003-01-14  Roland McGrath  <roland@redhat.com>
4058
4059         * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4060         $(objpfx) directories, and get rid of vpath directives.  The previous
4061         arrangement resulted in files being written to the source directories
4062         when run in a clean build.  Find all .abilist files in $(..)abilist/.
4063         (update-abi-%): Likewise.
4064         (generated): Don't add .symlist files, they'll be intermediates.
4065
4066         * sysdeps/generic/init-first.c: Add a comment.
4067
4068         * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4069
4070         * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4071         #includes and expressions.
4072
4073         * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4074         config list when it already contains cpu-.*-os.* without / part.
4075
4076         * Makerules (sed-remove-dotdot): New variable.
4077         ($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
4078         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4079         (check-abi-config): New variable, append /tls or /notls to the tuple.
4080         (check-abi-%): Use that for -v config value.
4081         Find .abilist files in abilist/libfoo.abilist, not in subdir.
4082         * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4083
4084 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4085
4086         * manual/install.texi: Correct description of header preparation for
4087         Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].
4088
4089 2003-01-14  Guido Guenther  <agx@sigxcpu.org>
4090
4091         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4092         INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4093         INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4094
4095 2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4096
4097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4098         (INTERNAL_SYSCALL): Make use of ERR parameter.
4099         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4100         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4101         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4103
4104 2003-01-14  Ulrich Drepper  <drepper@redhat.com>
4105
4106         * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4107         == IPPROTO_TCP.
4108         Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4109
4110         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4111         Fix entry for bit 31.
4112
4113         * iconvdata/Makefile: Add rules to build IBM866NAV.
4114         * iconvdata/ibm866nav.c: New file.
4115         * iconvdata/tst-tables.sh: Add IBM866NAV.
4116         * iconvdata/gconv-modules: Add entries for IBM866NAV.
4117
4118 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4119
4120         * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4121         to test void* parameters.
4122
4123         * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4124         source pointer before dereferencing.
4125         (__STRING_SMALLL_GET32): Likewise.
4126         (__memset_gc): Add missing parenthesis around macro arguments.
4127         Patch by Denis Zaitsev <zzz@cd-club.ru>.
4128
4129         * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4130         that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4131
4132 2003-01-14  Jakub Jelinek  <jakub@redhat.com>
4133
4134         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4135         defining.
4136
4137 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4138
4139         * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4140         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4141         here.
4142         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4143
4144 2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4145
4146         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4147         from here...
4148         (PSEUDO): ... to here.
4149         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4150         from here...
4151         (PSEUDO): ... to here.
4152
4153 2003-01-13  Ulrich Drepper  <drepper@redhat.com>
4154
4155         * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4156         dirent64 instead of struct dirent for dirent.  Call readdir64
4157         instead of readdir.
4158
4159         * locale/programs/locfile.c (siblings_uncached): Use struct
4160         dirent64 instead of struct dirent for other_dentry.  Call
4161         readdir64 instead of readdir.
4162
4163         * elf/ldconfig.c (direntry): Change type to struct dirent64.
4164         (search_dir): Use readdir64 instead of readdir.
4165         Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4166
4167 2003-01-12  Roland McGrath  <roland@redhat.com>
4168
4169         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4170         not strtol.  The former is usable in ld.so, the latter not.
4171
4172         * include/fcntl.h: Declare __libc_creat.
4173
4174         * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4175         libhurduser-link.so-no-z-defs): New variables.
4176
4177         * malloc/malloc.c: Revert last change.
4178         * malloc/malloc.h (_int_*): Move these decls to ...
4179         * include/malloc.h: ... here.  Add attribute_hidden.
4180         (_int_valloc): Declare it too.
4181
4182 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4183
4184         * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4185         search for removed searchlist.  Reported by Roland McGrath.
4186
4187         * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4188         given as start file.
4189
4190         * io/ftw.c (ftw_startup): Use correct name in check for symlink
4191         without existing target.  Patch by Jim Meyering.
4192
4193         * Makerules (build-shlib-helper): Don't use -z defs linker option
4194         if no-z-defs is defined either.
4195
4196 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4197
4198         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4199         file.
4200
4201 2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4202
4203         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4204         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4205
4206 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4207
4208         * io/ftwtest-sh: Add test case for relative path with /. at the end.
4209
4210 2003-01-12  Jim Meyering  <jim@meyering.net>
4211
4212         * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4213         use the basename if we've already chdir'd into its parent directory.
4214
4215 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4216
4217         * io/ftw.c (process_entry): Use relative path when using chdir()
4218         to change directory after call to ftw_dir.
4219         * io/ftwtest-sh: Add test for relative path argument to nftw()
4220         with FTW_CHDIR option.
4221
4222 2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4223
4224         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4225         Define for powerpc.
4226         * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4227         into account.
4228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4229         (INTERNAL_SYSCALL): Make use of ERR parameter.
4230         (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4231         INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4232         (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
4234
4235 2002-01-09  Richard Henderson  <rth@redhat.com>
4236
4237         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
4238         DTPREL64 and TPREL64 without loadbase applied.
4239
4240 2002-01-09  Richard Henderson  <rth@redhat.com>
4241
4242         * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
4243         for NOT_IN_libc.
4244
4245         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
4246         * sysdeps/unix/alpha/sysdep.h: ... here.
4247         (PSEUDO_LOADGP): Remove.
4248         (PSEUDO_PROLOGUE): Load GP in non-pic case.
4249         (SYSCALL_ERROR_LABEL): New.
4250         (PSEUDO): Use it in error branch.
4251         (PSEUDO_END): Add $syscall_error label.
4252
4253 2003-01-12  Andreas Jaeger  <aj@suse.de>
4254
4255         * math/bits/mathcalls.h: Round is a const function.
4256
4257 2003-01-11  Jim Meyering  <jim@meyering.net>
4258
4259         * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
4260         [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
4261         Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
4262         [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
4263         [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
4264         [!_LIBC] (internal_function, dirent64, MAX): Define.
4265         (__set_errno): Define if not already defined.
4266         (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
4267         the basename, not the entire file name.
4268         (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
4269         the basename, not the entire file name.
4270
4271 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4272
4273         * string/tester.c (test_strcpy): Disable last added strcpy until
4274         it is fixed.
4275
4276 2003-01-11  Philip Blundell  <philb@gnu.org>
4277
4278         * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
4279
4280 2003-01-11  Andreas Schwab  <schwab@suse.de>
4281
4282         * Makerules: Add vpath for %.dynsym and %.so so that the
4283         implicit rule chaining for check-abi works.
4284
4285 2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4286
4287         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4288         Add non-PIC case.
4289
4290 2003-01-11  Jakub Jelinek  <jakub@redhat.com>
4291
4292         * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
4293         [__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
4294         gp is used early.
4295         [__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
4296         * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
4297         Ensure libc.so in DT_NEEDED.
4298         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
4299         CHECK_STATIC_TLS before l_tls_offset use.
4300         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4301         Likewise.
4302         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4303         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
4304         Allocate TLS_PRE_TCB_SIZE bytes below result.
4305         (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
4306         * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
4307         TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
4308         segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
4309         bytes below result and add tcb_offset to memsz.
4310         * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
4311         * sysdeps/ia64/dl-machine.h: Include tls.h.
4312         (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
4313         too.
4314         (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
4315         Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
4316         * sysdeps/ia64/libc-tls.c: New file.
4317
4318 2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>
4319
4320         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
4321         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
4322         Fix type.  Move definition out of #if.
4323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
4324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
4325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
4326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
4327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
4328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
4329         support.
4330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
4331         ftruncate64, pread64, pwrite64, truncate64 entries.
4332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4333         (INLINE_SYSCALL): New version that supports function call like
4334         syscalls.  Add __builtin_expect.
4335         (LOADARGS_n): Add argument size safety checks.
4336         (INTERNAL_SYSCALL): New Macro.
4337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
4338         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
4339         redefinition of elf_fpreg_t and elf_fpregset_t.
4340
4341 2003-01-12  Ulrich Drepper  <drepper@redhat.com>
4342
4343         * elf/dl-close.c (_dl_close): Add several asserts.  Correct and
4344         simplify test for unloading.  If loader of a DSO is unloaded do not
4345         use its scope anymore.  Fall back to own scope and adjust opencounts.
4346         Fix several comments.
4347         * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
4348         the l_searchlist, not only for l_initfini.
4349
4350         * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
4351         dependencies if objects cannot be removed.  Remove object with the
4352         definition as not unloadable if necessary.
4353
4354         * elf/reldep6.c: Create relocation dependency before closing the first
4355         module.
4356
4357 2003-01-10  Guido Günther  <agx@sigxcpu.org>
4358
4359         * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
4360         * sysdeps/unix/mips/brk.S: Likewise.
4361         * sysdeps/unix/mips/pipe.S: Likewise.
4362
4363 2003-01-10  Andreas Schwab  <schwab@suse.de>
4364
4365         * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
4366
4367         * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
4368         are known to have the vfork syscall.
4369
4370         * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
4371
4372         * sysdeps/unix/sysv/linux/kernel-features.h
4373         (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
4374         (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
4375         (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
4376
4377 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4378
4379         * elf/Makefile: Add rules to build and run reldep9 test.
4380         * elf/reldep9.c: New file.
4381         * elf/reldep9mod1.c: New file.
4382         * elf/reldep9mod2.c: New file.
4383         * elf/reldep9mod3.c: New file.
4384
4385 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4386
4387         * elf/Makefile: Add rules to build and run nodelete2 test.
4388         * elf/nodelete2.c: New file.
4389         * elf/nodel2mod1.c: New file.
4390         * elf/nodel2mod2.c: New file.
4391         * elf/nodel2mod3.c: New file.
4392
4393 2003-01-09  Jakub Jelinek  <jakub@redhat.com>
4394
4395         * posix/test-vfork.c (noop): Add __attribute_noinline__.
4396         * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
4397         * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
4398         defining it.
4399         * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
4400         * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
4401         * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
4402         * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
4403         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
4404
4405 2003-01-09  Andreas Schwab  <schwab@suse.de>
4406
4407         * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
4408
4409 2003-01-08  Ulrich Drepper  <drepper@redhat.com>
4410
4411         * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
4412         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4413         argument.
4414         (INTERNAL_SYSCALL_DECL): Define.
4415
4416 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
4417
4418         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
4419         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4420         argument.
4421         (INTERNAL_SYSCALL_DECL): Define.
4422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4423         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4424         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4425         (INLINE_SYSCALL): Adjust.
4426         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4427         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4428         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4429         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4430         * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
4431         add err argument to INTERNAL_SYSCALL* macros.
4432         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4433         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
4434         * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
4435         * sysdeps/unix/sysv/linux/m68k/getpagesize.c  (__getpagesize):
4436         Likewise.
4437         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
4438         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
4439         INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
4440
4441 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
4442
4443         Unify symbols in user namespace exported by libc.so and libc.a.
4444         * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
4445         argp_fmtstream_free, and argp_fmtstream_printf.
4446         * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
4447         argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
4448         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
4449         argp_fmtstream_point.
4450         * gmon/gmon.c: Don't define write_profiling.
4451         * libio/genops.c: Don't define _cleanup.
4452
4453         * intl/explodename.c (_nl_find_language.c): Mark as static.
4454         * intl/loadinfo.h: Remove _nl_find_language prototype.
4455
4456         * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
4457         * libio/libioP.h: Remove declaration.
4458
4459         * libio/iopopen.c (_IO_proc_jumps): Mark as static.
4460         * libio/libioP.h: Remove declaration.
4461
4462         * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
4463         * sysdeps/generic/framestate.c: Define STATIC before including
4464         unwind-dw2.c.
4465
4466         * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
4467
4468 2003-01-06  Philip Blundell  <philb@gnu.org>
4469
4470         * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
4471         [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
4472
4473         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
4474         directive.
4475         (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
4476         (SYSCALL_ERROR): New.
4477         (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
4478         handling code.
4479         (INTERNAL_SYSCALL): Define.
4480         (INLINE_SYSCALL): Use it.
4481         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
4482         * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
4483         SYSCALL_ERROR in place of __syscall_error.
4484
4485 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4486
4487         * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4488         __bswap_32, __bswap_64): Put x into temporary variable
4489         to avoid warnings.
4490         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4491         (inline) functions.
4492         * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4493         __bswap_32, __bswap_64): Put x into temporary variable
4494         to avoid warnings.
4495         [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4496         (inline) functions.
4497         * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
4498         Likewise.
4499
4500 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4501
4502         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
4503         alias.
4504
4505 2003-01-07  Jakub Jelinek  <jakub@redhat.com>
4506
4507         * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
4508         * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
4509
4510 2003-01-07  Ulrich Drepper  <drepper@redhat.com>
4511
4512         * math/libm-test.inc (significand_test): New function.
4513         (main): Call it.
4514
4515 2003-01-06  Roland McGrath  <roland@redhat.com>
4516
4517         * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
4518         arguments.
4519         (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
4520         (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
4521         (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
4522
4523         * string/tester.c (test_strcpy): Add test with `void *' arguments.
4524
4525 2003-01-06  Ulrich Drepper  <drepper@redhat.com>
4526
4527         * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
4528         return significand and not the exponent.
4529         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4530
4531         * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
4532         taking address of iov in INTERNAL_SYSCALL call.  Patch by Franz Sirl.
4533
4534         * malloc/malloc.c: Mark all _int_* functions as static.
4535
4536 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
4537
4538         * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
4539         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
4540         handling.
4541         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4542
4543 2003-01-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4544
4545         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
4546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
4547         support.
4548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
4549         ftruncate64, truncate64, pread64 and pwrite64 entries.
4550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4551         (INLINE_SYSCALL): Add __builtin_expect.
4552         (LOADARGS_n): Add argument size safety checks.
4553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
4554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
4555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
4556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
4557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
4558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
4559
4560 2003-01-06  Jakub Jelinek  <jakub@redhat.com>
4561
4562         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
4563         * sysdeps/generic/creat.c: Include sysdep-cancel.h.
4564         (LIBC_CANCEL_HANDLED): Add.
4565
4566         * sysdeps/unix/sysv/linux/alpha/sysdep.h
4567         (inline_syscall_r0_constraint): Rename to...
4568         (inline_syscall_r0_out_constraint): ... this.  Add =.
4569         (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
4570
4571 2003-01-06  Andreas Schwab  <schwab@suse.de>
4572
4573         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
4574         sure this is always inlined.
4575         (elf_machine_rela): Likewise.
4576
4577         * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
4578
4579 2003-01-04  Roland McGrath  <roland@redhat.com>
4580
4581         * Makeconfig (+mkdep): Add -MP flag.
4582         Suggested by Art Haas <ahaas@airmail.net>.
4583
4584 2003-01-05  Andreas Schwab  <schwab@suse.de>
4585
4586         * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
4587
4588 2003-01-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4589
4590         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
4591         SYSCALL_ERROR_HANDLER.
4592         * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
4593         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
4594         Add support for cancellation handling.
4595         * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
4596         SYSCALL_ERROR_HANDLER.
4597         * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
4598         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
4599         Add support for cancellation handling.
4600         (SYSCALL_ERROR_HANDLER): Define PIC variants.
4601
4602 2003-01-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4603
4604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
4605         __syscall_pread64 and __syscall_pwrite64 cancelable.
4606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4607         (INTERNAL_SYSCALL): New macro.
4608         (LOADARGS_0, LOADARGS_1): Fix.
4609
4610 2003-01-05  Ulrich Drepper  <drepper@redhat.com>
4611
4612         * Makerules (build-shlip-helper): Unless told otherwise, add
4613         -Wl,-z,defs to linker command line.
4614         * rt/Makefile (librt.so): Link with ld.so.
4615         * dlfcn/Makefile (libdl.so): Likewise.
4616
4617 2003-01-05  Jakub Jelinek  <jakub@redhat.com>
4618
4619         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
4620         cancellation handling.
4621         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4622         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
4623
4624 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
4625
4626         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
4627         order of parameters passed to kill.
4628
4629 2003-01-04  Andreas Schwab  <schwab@suse.de>
4630
4631         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
4632
4633 2002-01-03  Paul Eggert  <eggert@twinsun.com>
4634
4635         * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
4636         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
4637         when compiling Bison 1.875's `bitset bset = obstack_alloc
4638         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
4639
4640 2003-01-04  Ulrich Drepper  <drepper@redhat.com>
4641
4642         * sysdeps/posix/system.c (do_system): Minor optimizations.  Remove
4643         unnecessary code.
4644         Correct reference counter in case SIGQUIT handler installation failed.
4645
4646 2003-01-03  Ulrich Drepper  <drepper@redhat.com>
4647
4648         * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
4649         Define using _Pragma(weak ...).
4650
4651 2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
4652
4653         * resolv/res_libc.c: Provide declaration for __res_init_weak and
4654         reorder declarations.
4655
4656 2003-01-03  Art Haas  <ahaas@airmail.net>
4657
4658         * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
4659         initializer syntax to C99.
4660         * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
4661         * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
4662         * localedata/tests-mbwc/dat_iswctype.c: Likewise.
4663         * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
4664         * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
4665         * localedata/tests-mbwc/dat_iswlower.c: Likewise.
4666         * localedata/tests-mbwc/dat_iswprint.c: Likewise.
4667         * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
4668         * localedata/tests-mbwc/dat_iswspace.c: Likewise.
4669         * localedata/tests-mbwc/dat_iswupper.c: Likewise.
4670         * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
4671         * localedata/tests-mbwc/dat_mblen.c: Likewise.
4672         * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
4673         * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
4674         * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
4675         * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
4676         * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
4677         * localedata/tests-mbwc/dat_strcoll.c: Likewise.
4678         * localedata/tests-mbwc/dat_strfmon.c: Likewise.
4679         * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
4680         * localedata/tests-mbwc/dat_swscanf.c: Likewise.
4681         * localedata/tests-mbwc/dat_towctrans.c: Likewise.
4682         * localedata/tests-mbwc/dat_towlower.c: Likewise.
4683         * localedata/tests-mbwc/dat_towupper.c: Likewise.
4684         * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
4685         * localedata/tests-mbwc/dat_wcscat.c: Likewise.
4686         * localedata/tests-mbwc/dat_wcschr.c: Likewise.
4687         * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
4688         * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
4689         * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
4690         * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
4691         * localedata/tests-mbwc/dat_wcslen.c: Likewise.
4692         * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
4693         * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
4694         * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
4695         * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
4696         * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
4697         * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
4698         * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
4699         * localedata/tests-mbwc/dat_wcstod.c: Likewise.
4700         * localedata/tests-mbwc/dat_wcstok.c: Likewise.
4701         * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
4702         * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
4703         * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
4704         * localedata/tests-mbwc/dat_wctob.c: Likewise.
4705         * localedata/tests-mbwc/dat_wctomb.c: Likewise.
4706         * localedata/tests-mbwc/dat_wctrans.c: Likewise.
4707         * localedata/tests-mbwc/dat_wctype.c: Likewise.
4708         * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
4709
4710 2003-01-03  Richard Henderson  <rth@redhat.com>
4711
4712         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
4713         (inline_syscall_r0_constraint): New.
4714         (inline_syscall[0-6]): Use them.
4715
4716 2003-01-03  Jakub Jelinek  <jakub@redhat.com>
4717
4718         * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
4719         Add rtld_hidden_proto.
4720         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
4721         (_dl_allocate_tls): Likewise.  Remove INTDEF.
4722
4723 2002-07-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4724
4725         * sysdeps/sh/memcpy.S: Optimize.  Based on a patch by Toshiyasu
4726         Morita <toshiyasu.morita@hsa.hitachi.com>.
4727         * sysdeps/sh/memcpy.S: Likewise.
4728
4729 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
4730
4731         * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
4732         any, but unify the test.
4733
4734 2003-01-02  Jakub Jelinek  <jakub@redhat.com>
4735
4736         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
4737         sigaction): Protect weak_alias and libc_hidden_weak with
4738         #ifndef LIBC_SIGACTION.
4739         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
4740         sigaction): Likewise.
4741         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
4742         sigaction): Likewise.
4743         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
4744         sigaction): Likewise.
4745         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
4746         sigaction): Likewise.
4747         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
4748         sigaction): Likewise.
4749         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
4750         sigaction): Likewise.
4751         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
4752         sigaction): Likewise.  Remove SIGCANCEL handling here.
4753         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
4754         Likewise.
4755
4756 2003-01-02  Art Haas  <ahaas@airmail.net>
4757
4758         * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
4759
4760 2003-01-02  Ulrich Drepper  <drepper@redhat.com>
4761
4762         * posix/getconf.c: Update copyright year.
4763         * nss/getent.c: Likewise.
4764         * nscd/nscd_nischeck.c: Likewise.
4765         * iconv/iconvconfig.c: Likewise.
4766         * iconv/iconv_prog.c: Likewise.
4767         * elf/ldconfig.c: Likewise.
4768         * catgets/gencat.c: Likewise.
4769         * csu/version.c: Likewise.
4770         * elf/ldd.bash.in: Likewise.
4771         * elf/sprof.c (print_version): Likewise.
4772         * locale/programs/locale.c: Likewise.
4773         * locale/programs/localedef.c: Likewise.
4774         * nscd/nscd.c (print_version): Likewise.
4775         * debug/xtrace.sh: Likewise.
4776         * malloc/memusage.sh: Likewise.
4777         * malloc/mtrace.pl: Likewise.
4778
4779 2003-01-01  Jakub Jelinek  <jakub@redhat.com>
4780
4781         * io/sys/stat.h: Include time.h with __need_timespec even if
4782         __USE_MISC is defined but __USE_XOPEN is not.
4783
4784 2003-01-01  Andreas Jaeger  <aj@suse.de>
4785
4786         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
4787         type to avoid strict aliasing problem.
4788         (_nss_dns_gethostbyname2_r): Likewise.
4789         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4790         (_nss_dns_getnetbyname_r): Likewise.
4791         * resolv/gethnamaddr.c (_gethtent): Likewise.
4792         (gethostbyname2): Likewise.
4793
4794 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
4795
4796         * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
4797         to avoid using the exported symbols.  Define aliases with the
4798         original names separately.
4799
4800         * include/time.h: Add libc_hidden_proto for __strftime_l.
4801         * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
4802         * time/strftime.c: Always use libc_hidden_def if _LIBC.
4803
4804         * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
4805         * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
4806
4807         * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
4808         tr_break.
4809
4810         * csu/Makefile (routines): Add dso_handle.
4811         * csu/dso_handle.c: New file.
4812
4813 2002-12-31  Roland McGrath  <roland@redhat.com>
4814
4815         * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
4816         Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
4817         (S-CPPFLAGS): Add -DASSEMBLER here instead.
4818         (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
4819
4820 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
4821
4822         * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
4823         is available.
4824
4825 2002-12-31  Andreas Jaeger  <aj@suse.de>
4826
4827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
4828         with Linux kernel.
4829         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
4830         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
4831         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
4832
4833         * sysdeps/unix/sysv/linux/kernel_stat.h
4834         (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
4835
4836         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
4837         __unused[1-3] since they're needed by some platforms.  Handle
4838         _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
4839
4840         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
4841         for structs stat and stat64.
4842         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4843         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4844         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4845         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4846
4847         * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
4848
4849         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
4850         nsec resolution changes.
4851         (xstat64_conv): Likewise.
4852         (xstat32_conv): Likewise.
4853
4854         * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
4855         struct kernel_stat.
4856
4857         * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
4858         structs stat and stat64.
4859
4860         * time/time.h (__timespec_defined): Define for __USE_MISC.
4861
4862 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
4863
4864         * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
4865         and __libc_current_sigrtmax.
4866
4867 2002-12-31  Jakub Jelinek  <jakub@redhat.com>
4868
4869         * include/errno.h (__errno_location): Add prototype.
4870         Use libc_hidden_proto unconditionally.
4871         * include/netdb.h (__h_errno_location): Use libc_hidden_proto
4872         unconditionally.
4873         * include/resolv.h (__res_state): Likewise.
4874
4875         * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
4876         * include/sys/socket.h (accept): Add libc_hidden_proto.
4877         * include/errno.h (__errno_location): Likewise.
4878         * include/netdb.h (__h_errno_location): Likewise.
4879         * include/resolv.h (__res_state): Likewise.
4880         * include/unistd.h (__lseek): Likewise.
4881         * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
4882         * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
4883         * sysdeps/generic/res-state.c (__res_state): Likewise.
4884         * sysdeps/generic/accept.c (accept): Likewise.
4885         * sysdeps/generic/lseek.c (__lseek): Likewise.
4886         * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
4887         __libc_current_sigrtmax): Likewise.
4888         * sysdeps/mach/hurd/accept.c (accept): Likewise.
4889         * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
4890         * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
4891         * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
4892         * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
4893         * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
4894         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
4895         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
4896         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
4897         alias to llseek.
4898         (__GI_accept): New alias to accept.
4899         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
4900         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
4901         New alias to llseek.
4902         (__GI_accept): New alias to accept.
4903         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
4904         Likewise.
4905         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
4906         Likewise.
4907         * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
4908
4909         * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
4910         strong_alias (name, __GI_name).
4911         * sysdeps/arm/bsd-_setjmp.S : Likewise.
4912         * sysdeps/hppa/bsd-_setjmp.S : Likewise.
4913         * sysdeps/i386/bsd-_setjmp.S : Likewise.
4914         * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
4915         * sysdeps/mips/bsd-_setjmp.S : Likewise.
4916         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
4917         * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
4918         * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
4919         * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
4920         * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
4921         * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
4922         * sysdeps/sh/bsd-_setjmp.S : Likewise.
4923         * sysdeps/sparc/sparc32/setjmp.S : Likewise.
4924         * sysdeps/unix/arm/fork.S : Likewise.
4925         * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
4926         * sysdeps/unix/bsd/i386/vfork.S : Likewise.
4927         * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
4928         * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
4929         * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
4930         * sysdeps/unix/bsd/vax/vfork.S : Likewise.
4931         * sysdeps/unix/i386/fork.S : Likewise.
4932         * sysdeps/unix/mips/fork.S : Likewise.
4933         * sysdeps/unix/sparc/fork.S : Likewise.
4934         * sysdeps/unix/sparc/vfork.S : Likewise.
4935         * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
4936         * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
4937         * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
4938         * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
4939         * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
4940         * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
4941         * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
4942         * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
4943         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
4944         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
4945         * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
4946         * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
4947         * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
4948         * sysdeps/unix/fork.S : Likewise.
4949         * sysdeps/vax/bsd-_setjmp.S : Likewise.
4950         * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
4951
4952         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
4953         inclusion.
4954
4955 2002-12-31  Ulrich Drepper  <drepper@redhat.com>
4956
4957         * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
4958         * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
4959         * sysdeps/mach/hurd/fork.c: Likewise.
4960         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4961         * sysdeps/unix/fork.S: Add __GI___fork alias.
4962         * sysdeps/unix/arm/fork.S: Likewise.
4963         * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
4964         * sysdeps/unix/i386/fork.S: Likewise.
4965         * sysdeps/unix/mips/fork.S: Likewise.
4966         * sysdeps/unix/sparc/fork.S: Likewise.
4967         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4968         * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
4969         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4970         * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
4971         * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
4972         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
4973         * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
4974         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
4975         * sysdeps/unix/bsd/vax/vfork.S: Likewise.
4976         * sysdeps/unix/sparc/vfork.S: Likewise.
4977         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
4978         * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
4979         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4980         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
4981         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
4982         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
4983         * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
4984         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4985
4986         * include/time.h: Add libc_hidden_proto for __nanosleep.
4987         * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
4988         * sysdeps/mach/nanosleep.c: Likewise.
4989         * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
4990         * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
4991
4992         * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
4993         _IO_list_unlock, and _IO_list_resetlock.
4994         * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
4995         _IO_list_unlock, and _IO_list_resetlock.
4996
4997         * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
4998         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
4999         * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5000         _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5001
5002         * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5003         * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5004         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5005         __GI___longjmp alias.
5006
5007         * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5008         * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5009         * sysdeps/arm/bsd-_setjmp.S: Likewise.
5010         * sysdeps/generic/bsd-_setjmp.c: Likewise.
5011         * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5012         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5013         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5014         * sysdeps/mips/bsd-_setjmp.S: Likewise.
5015         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5016         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5017         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5018         * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5019         * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5020         * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5021         * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5022         * sysdeps/sh/bsd-_setjmp.S: Likewise.
5023         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5024         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5025         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5026         * sysdeps/vax/bsd-_setjmp.S: Likewise.
5027         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5028
5029 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5030
5031         * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5032
5033 2002-12-30  Roland McGrath  <roland@redhat.com>
5034
5035         * Rules (generated): Target removed.
5036         * mach/Makefile (generated): Define it here instead.
5037
5038         * math/Makefile (generated): Add m_*l and m_*f variants too.
5039
5040 2002-12-30  Ulrich Drepper  <drepper@redhat.com>
5041
5042         * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5043         the to-be-deleted objects right away instead of later separately.
5044         The latter fails because the scope data structures of the DSO
5045         might already be gone.
5046
5047         * elf/Makefile: Add rules to build and run reldep8 test.
5048         * elf/reldep8.c: New file.
5049         * elf/reldep8mod1.c: New file.
5050         * elf/reldep8mod2.c: New file.
5051         * elf/reldep8mod3.c: New file.
5052         Contributed by Jakub Jelinek.
5053
5054 2002-12-24  GOTO Masanori  <gotom@debian.or.jp>
5055
5056         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5057         checking of return value ENOSYS from getdents64.
5058
5059 2002-12-28  Andreas Schwab  <schwab@suse.de>
5060
5061         * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5062         ($(common-objpfx)s-%.d): Generalized from
5063         $(common-objpfx)s-proto.d rule.
5064         (common-generated): Add s-proto-cancel.d.
5065         * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5066         cancellable syscalls.
5067         * sysdeps/unix/s-proto-cancel.S: New file.
5068
5069 2002-12-29  Roland McGrath  <roland@redhat.com>
5070
5071         * resolv/res_libc.c: Move _res defn magic after res_init defn
5072         so _res macro is in effect for that code.
5073
5074         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5075         pattern for prepending $(..) so it doesn't affect $(foo).
5076
5077         * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5078
5079 2002-12-29  Jakub Jelinek  <jakub@redhat.com>
5080
5081         * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5082         in hwcap.
5083
5084 2002-12-28  Ulrich Drepper  <drepper@redhat.com>
5085
5086         * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5087
5088 2002-12-28  Andreas Jaeger  <aj@suse.de>
5089
5090         * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5091         avoid warning.
5092         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5093
5094 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5095
5096         * inet/herrno.c (__h_errno_location): Remove.
5097         * inet/Makefile (routines): Add herrno-loc.
5098         * resolv/res_libc.c (__res_state): Remove.
5099         * resolv/Makefile (routines): Add res-state.
5100         * sysdeps/generic/herrno-loc.c: New file.
5101         * sysdeps/generic/res-state.c: New file.
5102
5103 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5104
5105         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5106         Only define if USE_DL_SYSINFO is defined.
5107
5108 2002-12-22  Jakub Jelinek  <jakub@redhat.com>
5109
5110         * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5111         INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5112         Define. Patch by Richard Henderson and Jes Sorensen.
5113         (PSEUDO): Remove unnecessary ;;.
5114         * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5115         are found unless TLS_INIT_TP_EXPENSIVE.  Use NONTLS_INIT_TP.
5116         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5117         if not initializing thread pointer.
5118         [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5119         * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5120         make it weak also if NONTLS_INIT_TP.
5121         * sysdeps/unix/common/pause.c: Handle cancellation.
5122         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5123         (LOADSYSCALL): Remove.
5124         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5125         (SYSCALL_ERROR_HANDLER): Use it.
5126         (PSEUDO): Don't jump around error handler.
5127         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5128         jump around error handler.
5129         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5130         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5131         to __syscall_error_handler on failure.
5132         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5133         (LOADSYSCALL): Remove.
5134         (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5135         (SYSCALL_ERROR_HANDLER): Use it.
5136         (PSEUDO): Don't jump around error handler.
5137         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5138         jump around error handler.
5139         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5140         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5141         to __syscall_error_handler on failure.
5142
5143 2002-12-27  Roland McGrath  <roland@redhat.com>
5144
5145         * scripts/gen-as-const.awk: New file.
5146         * Makefile (distribute): Add it.
5147         * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5148         (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5149         to the list.
5150         (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5151
5152 2002-12-27  Andreas Schwab  <schwab@suse.de>
5153
5154         * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5155
5156 2002-12-27  Jakub Jelinek  <jakub@redhat.com>
5157
5158         * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5159         _environ is NULL.
5160
5161 2002-12-27  Andreas Schwab  <schwab@suse.de>
5162
5163         * Makerules ($(common-objpfx)%.make): Filter through
5164         $(sed-remove-objpfx).
5165
5166 2002-12-23  Roland McGrath  <roland@redhat.com>
5167
5168         * scripts/abilist.awk: Produce a more compact format, divided into
5169         stanzas for each version set, the set name listed only once.
5170         * scripts/extract-abilist.awk: New file.
5171         * scripts/merge-abilist.awk: New file.
5172         * Makerules (check-abi-%, update-abi-%): New pattern rules.
5173         (update-abi, check-abi): New targets.
5174         * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5175
5176 2002-12-19  Roland McGrath  <roland@redhat.com>
5177
5178         * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5179
5180         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5181         INTERNAL_SYSCALL.
5182
5183 2002-12-21  Andreas Schwab  <schwab@suse.de>
5184
5185         * elf/check-textrel.c (handle_file): Swap p_type.
5186
5187 2002-12-21  Andreas Schwab  <schwab@suse.de>
5188
5189         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5190         (INLINE_SYSCALL): Use it.
5191         (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5192         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5193
5194         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5195         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5196
5197 2002-12-20  Art Haas  <ahaas@airmail.net>
5198
5199         * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5200         syntax to C99.
5201
5202 2002-12-21  Philip Blundell  <philb@gnu.org>
5203
5204         * sysdeps/arm/elf/start.S (_start): Optimise a little.  Push stack
5205         top as seventh arg to __libc_start_main.
5206         Reported by paulnash@wildseed.com.
5207
5208         * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5209
5210         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5211         compatibility cruft when new enough kernel is assumed.
5212
5213 2002-12-20  Jakub Jelinek  <jakub@redhat.com>
5214
5215         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5216         instead of INLINE_SYSCALL.
5217
5218 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
5219
5220         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5221         typo.
5222
5223         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5224         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5225         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5226         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5227         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5228         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5229         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5230         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5232         Patch by William Lee Irwin <wli@holomorphy.com>.
5233
5234 2002-12-20  Andreas Schwab  <schwab@suse.de>
5235
5236         * locale/programs/ld-measurement.c (measurement_output): Fix
5237         index calculation.
5238
5239 2002-12-20  Ulrich Drepper  <drepper@redhat.com>
5240
5241         * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
5242         Redefine _IO_flockifle and _IO_funlockfile as inlines.
5243
5244         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
5245         builds add "tls" in the search path.
5246         * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
5247         (path_hwcap): Recognize "tls".
5248
5249 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
5252         __waitpid instead of waitpid.
5253
5254         * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
5255         int $0x80.
5256         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5257         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5258         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5259
5260         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
5261         information for system calls.
5262
5263         * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
5264         for ld.so.
5265
5266         * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
5267
5268 2002-12-19  Roland McGrath  <roland@redhat.com>
5269
5270         * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
5271         * iconvdata/ibm922.h: Likewise.
5272         * iconvdata/ibm930.h: Likewise.
5273         * iconvdata/ibm932.h: Likewise.
5274         * iconvdata/ibm933.h: Likewise.
5275         * iconvdata/ibm935.h: Likewise.
5276         * iconvdata/ibm937.h: Likewise.
5277         * iconvdata/ibm939.h: Likewise.
5278         * iconvdata/ibm943.h: Likewise.
5279         * iconvdata/isiri-3342.h: Likewise.
5280
5281 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5282
5283         * test-skeleton.c (main): Make sure correct value is seen as
5284         argv[0] after adjustment of argv, and argc.
5285
5286         * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
5287         RTLD_CORRECT_DYNAMIC_WEAK is defined.
5288
5289 2002-12-19  Jakub Jelinek  <jakub@redhat.com>
5290
5291         * nscd/connections.c (nscd_run): Shut up warning.
5292         * tst-ungetc.c (assert): Undefined before redefining.
5293
5294 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5295
5296         * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
5297         is used.
5298
5299 2002-12-17  Art Haas  <ahaas@airmail.net>
5300
5301         * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
5302         * iconvdata/cp775.h: Likewise.
5303         * iconvdata/ibm1046.h: Likewise.
5304         * iconvdata/ibm1124.h: Likewise.
5305         * iconvdata/ibm1129.h: Likewise.
5306         * iconvdata/ibm1132.h: Likewise.
5307         * iconvdata/ibm1133.h: Likewise.
5308         * iconvdata/ibm1160.h: Likewise.
5309         * iconvdata/ibm1161.h: Likewise.
5310         * iconvdata/ibm1162.h: Likewise.
5311         * iconvdata/ibm1163.h: Likewise.
5312         * iconvdata/ibm1164.h: Likewise.
5313
5314 2002-12-19  Ulrich Drepper  <drepper@redhat.com>
5315
5316         * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
5317         __ASSUME_CLONE_THREAD_FLAGS is defined.
5318         * sysdeps/unix/sysv/linux/kernel-features.h
5319         (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
5320
5321 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
5322
5323         * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
5324         of asm.
5325         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5326
5327         * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
5328         _dl_sysinfo.
5329         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5330         code.
5331         * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
5332         _rtld_global.
5333         [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5334         code.
5335         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5336         Check for AT_SYSINFO and set _dl_sysinfo appropriately.
5337         * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
5338         Add _dl_sysinfo.
5339
5340 2002-12-18  Jakub Jelinek  <jakub@redhat.com>
5341
5342         * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
5343         __libc_writev to...
5344         [libc: GLIBC_PRIVATE]: ...here.
5345         * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
5346         __libc_msgsnd to...
5347         [libc: GLIBC_PRIVATE]: ...here.
5348
5349 2002-12-18  Ulrich Drepper  <drepper@redhat.com>
5350
5351         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
5352         Use it instead of directly int $0x80.
5353         * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
5354         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5355         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5356         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5357         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5358         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5359
5360 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
5361
5362         * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
5363
5364         * elf/elf.h (AT_SYSINFO): New define.
5365         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
5366         AT_SYSINFO.
5367
5368 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
5369
5370         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
5371         Make cancelable.
5372         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
5373         Likewise.
5374         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
5375         Likewise.
5376         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
5377         Likewise.
5378         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
5379         Likewise.
5380         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
5381
5382         * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
5383         mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
5384         available, otherwise __libc_maybe_call.
5385         * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
5386         cancellation handling.
5387         * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
5388
5389 2002-12-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
5390
5391         * posix/regcomp.c (free_workarea_compile): Free the new member
5392         ORG_INDICES.
5393         (analyze): Initialize ORG_INDICES.
5394         (duplicate_node_closure): Search for a existing node, which is
5395         duplicated from the node ORG_DEST and satisfies the constraint
5396         CONSTRAINT.  And use it to avoid inifimite loop.
5397         (search_duplicated_node): New function.
5398         (duplicate_node): Store the index of the original node.
5399         * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
5400         if needed.
5401         * posix/regex_internal.h (re_dfa_t): Add new members.
5402
5403 2002-12-17  Ulrich Drepper  <drepper@redhat.com>
5404
5405         * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
5406
5407 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5408
5409         * sysdeps/posix/system.c (do_system): Add support for installation
5410         of cancellation handlers.
5411         * sysdeps/unix/sysv/linux/i386/system.c: New file.
5412
5413         * stdlib/Makefile (tests): Add tst-system.
5414         * stdlib/tst-system.c: New file.
5415
5416         * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
5417         CENABLE]: Don't lose content of %ebx.
5418
5419 2002-12-17  Jakub Jelinek  <jakub@redhat.com>
5420
5421         * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
5422         macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
5423
5424 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5425
5426         * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
5427         fails to return a function pointer don't use it.
5428
5429 2002-12-16  Art Haas  <ahaas@airmail.net>
5430
5431         * io/ftw.c: Convert GCC extension initializer syntax to C99.
5432         * iconvdata/iso-ir-165.c: Likewise.
5433         * iconvdata/jis0208.c: Likewise.
5434         * iconvdata/jis0212.c: Likewise.
5435
5436 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5437
5438         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
5439         epoll_ctl, and epoll_wait.
5440         * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
5441         epoll_create, epoll_ctl, and epoll_wait.
5442         * sysdeps/unix/sysv/linux/sys/epoll.h: New file.  Written by
5443         Davide Libenzi <davidel@xmailserver.org>.
5444         * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
5445         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5446         Add sys/epoll.h.
5447
5448 2002-12-16  Art Haas  <ahaas@airmail.net>
5449
5450         * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
5451         syntax to C99
5452         * sysdeps/unix/sysv/aix/settimer.c: Likewise.
5453         * sysdeps/unix/sysv/aix/sleep.c: Likewise.
5454         * sysdeps/unix/sysv/aix/usleep.c: Likewise.
5455
5456 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
5457
5458         * stdio-common/Makefile (routines): Remove lockfile.  Add
5459         flockfile, ftrylockfile, and funlockfile.
5460         * sysdeps/generic/lockfile.c: Removed.  Each function has its own file.
5461         * sysdeps/generic/flockfile.c: New file.
5462         * sysdeps/generic/ftrylockfile.c: New file.
5463         * sysdeps/generic/funlockfile.c: New file.
5464
5465 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
5466
5467         * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
5468         macros instead of doing the calls directly.
5469         * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
5470         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
5471         targets.
5472
5473 2002-12-16  Jakub Jelinek  <jakub@redhat.com>
5474
5475         * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
5476         * sysdeps/ieee754/bits/nan.h: Likewise.
5477
5478         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
5479         __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
5480
5481 2002-12-16  Roland McGrath  <roland@redhat.com>
5482
5483         * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
5484         * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
5485         * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
5486
5487         * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
5488         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
5489         s_putpmsg.
5490         * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
5491         * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
5492         * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
5493         * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
5494         * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
5495         * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
5496         * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
5497         * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
5498
5499 2002-12-13  Paul Eggert  <eggert@twinsun.com>
5500
5501         * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
5502         is now u_int, not int.
5503         (struct XDR.x_handy): Now u_int, not int.
5504         * sunrpc/xdr_mem.c: Include <limits.h>.
5505         (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
5506         xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
5507         x_handy is now unsigned, not signed.
5508         Do not decrement x_handy if no change is made.
5509         (xdrmem_setpos): Check for int overflow.
5510         * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
5511         (xdr_sizeof): Remove cast that is now unnecessary, now that
5512         x_handy is unsigned.
5513
5514 2002-12-15  Art Haas  <ahaas@airmail.net>
5515
5516         * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
5517         * iconvdata/gap.awk: Likewise.
5518         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5519         * iconvdata/gen-8bit-gap.sh: Likewise.
5520         * locale/C-address.c: Likewise.
5521         * locale/C-collate.c: Likewise.
5522         * locale/C-ctype.c: Likewise.
5523         * locale/C-identification.c: Likewise.
5524         * locale/C-measurement.c: Likewise.
5525         * locale/C-messages.c: Likewise.
5526         * locale/C-monetary.c: Likewise.
5527         * locale/C-name.c: Likewise.
5528         * locale/C-numeric.c: Likewise.
5529         * locale/C-paper.c: Likewise.
5530         * locale/C-telephone.c: Likewise.
5531         * locale/C-time.c: Likewise.
5532         * nscd/connections.c: Likewise.
5533         * nscd/grpcache.c: Likewise.
5534         * nscd/hstcache.c: Likewise.
5535         * nscd/pwdcache.c: Likewise.
5536         * stdio-common/vfprintf.c: Likewise.
5537         * stdlib/random.c: Likewise.
5538         * sysdeps/generic/siglist.c: Likewise.
5539         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
5540         * sysdeps/ieee754/bits/nan.h: Likewise.
5541         * sysdeps/posix/sprofil.c: Likewise.
5542         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5543         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5544         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5545
5546 2002-12-15  Roland McGrath  <roland@redhat.com>
5547
5548         * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
5549
5550         * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
5551         <tls.h> here, no need for it.
5552         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
5553
5554         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
5555         parameter, not varargs parameter.
5556
5557         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
5558         argument so it's not an unused variable.
5559
5560         * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
5561         __p_type_syms, __p_rcode_syms): Remove decls, never really intended
5562         for users.
5563
5564         * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
5565
5566 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
5567
5568         * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
5569         original __libc_fcntl code.  Just renamed.
5570
5571 2002-12-15  Andreas Schwab  <schwab@suse.de>
5572
5573         * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
5574
5575 2002-12-14  Olaf Hering  <olh@suse.de>
5576
5577         * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
5578         * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
5579
5580 2002-12-15  Ulrich Drepper  <drepper@redhat.com>
5581
5582         * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
5583
5584         * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
5585         SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
5586
5587         * sysdeps/unix/sysv/linux/open64.c: New file.
5588
5589         * sysdeps/generic/pselect.c: Add support for cancellation handling.
5590         * sysdeps/posix/open64.c: Likewise.
5591         * sysdeps/posix/sigpause.c: Likewise.
5592         * sysdeps/posix/sigwait.c: Likewise.
5593         * sysdeps/posix/system.c: Likewise.
5594         * sysdeps/posix/waitid.c: Likewise.
5595         * sysdeps/unix/sysv/linux/accept.S: Likewise.
5596         * sysdeps/unix/sysv/linux/connect.S: Likewise.
5597         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5598         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5599         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
5600         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5601         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5602         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5603         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5604         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5605         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5606         * sysdeps/unix/sysv/linux/recv.S: Likewise.
5607         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
5608         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
5609         * sysdeps/unix/sysv/linux/send.S: Likewise.
5610         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
5611         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
5612         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5613         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5614         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5615         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5616         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
5617         * sysdeps/unix/sysv/linux/wait.c: Likewise.
5618         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
5619         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5620         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5621         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5622
5623 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * sysdeps/generic/sysdep-cancel.h: New file.
5626         * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
5627         cancelable syscall.
5628         * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
5629         recvmsg, send, sendmsg, sendto): Make cancelable.
5630         * sysdeps/unix/mman/syscalls.list (msync): Likewise.
5631         * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
5632         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5633         sendto, osf_select): Likewise.
5634         * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
5635         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
5636         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
5637         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5638         sendto): Likewise.
5639         * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
5640         recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
5641         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
5642         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5643         sendto): Likewise.
5644         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
5645         pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5646         sendto, select): Likewise.
5647         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
5648         pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
5649         Likewise.
5650         * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
5651         select, fcntl): Likewise.
5652         * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
5653         * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
5654         read, readv, select, sigsuspend, write, writev): Likewise.
5655
5656 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
5657
5658         * dirent/bug-readdir1.c: Include unistd.h.
5659
5660 2002-12-13  Jakub Jelinek  <jakub@redhat.com>
5661
5662         * locale/programs/locale.c: Include locarchive.h.
5663         (ARCHIVE_NAME): Define.
5664         (write_archive_locales): New function.
5665         (write_locales): Use it.  Ensure the same locale is not printed
5666         multiple times in verbose mode.
5667         Mode LC_IDENTIFICATION and LC_CTYPE printing into...
5668         (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
5669         functions.
5670         (struct nameent): New type.
5671         (nameentcmp): New function.
5672
5673 2002-12-14  Jakub Jelinek  <jakub@redhat.com>
5674
5675         * posix/regex_internal.c (re_string_context_at): Guard wide char
5676         code with #ifdef RE_ENABLE_I18N.
5677
5678 2002-11-22  Paolo Bonzini  <bonzini@gnu.org>
5679
5680         * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
5681
5682 2002-12-13  Roland McGrath  <roland@redhat.com>
5683
5684         * posix/bug-regex15.c: New file.
5685         * posix/Makefile (tests): Add it.
5686
5687         * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
5688         (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
5689
5690 2002-12-13  Ulrich Drepper  <drepper@redhat.com>
5691
5692         * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
5693
5694         * misc/syslog.c (log_cleanup): Don't use parameter in
5695         __libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
5696         pass NULL instead of a pointer to syslog_lock.
5697
5698 2002-12-12  Ulrich Drepper  <drepper@redhat.com>
5699
5700         * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
5701         linker map for all iconv modules.
5702         (distribute): Add gconv.map.
5703         * iconvdata/gconv.map: New file.
5704
5705         * elf/Makefile: Also check all iconv modules for text relocations.
5706
5707         * stdlib/Makefile: Remove code to automatically import GMP.
5708
5709         * elf/Makefile (tests): Add rules to build and run check-textrel.
5710         * elf/check-textrel.c: New file.
5711
5712         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
5713         directive.
5714
5715 2002-12-11  Jakub Jelinek  <jakub@redhat.com>
5716
5717         * io/test-utime (main): If stnow.st[am]time is wrong, print it and
5718         not st.st[am]time.
5719
5720 2002-04-30  Bruno Haible  <bruno@clisp.org>
5721
5722         * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
5723         the encoding if it already has slashes.
5724         Reported by Perry Rapp <prapp@erols.com>.
5725
5726 2002-12-11  Roland McGrath  <roland@redhat.com>
5727
5728         * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
5729         (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
5730         Turn off PIC for compiling this file.
5731
5732 2002-12-11  Ulrich Drepper  <drepper@redhat.com>
5733
5734         * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
5735         definitions.  Not needed.
5736         [_LIBC]: Use definitions from libc-lock.h instead of referencing
5737         pthread routines directly.
5738         * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
5739         mutex_init calls.
5740         (arena_get2): Don't look at return value of mutex_lock.
5741
5742 2002-12-11  Roland McGrath  <roland@redhat.com>
5743
5744         * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
5745         elf-init.o instead of compiling a PIC version.
5746
5747 2002-12-11  Bruno Haible  <bruno@clisp.org>
5748
5749         * intl/gettext.h: Renamed to ...
5750         * intl/gmo.h: ... here.
5751         * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
5752         * intl/gettextP.h: Update.
5753         * intl/loadmsgcat.c: Update.
5754
5755         * intl/gettextP.h (PARAMS): Make more portable.
5756         (attribute_hidden): Define as empty macro if not already defined.
5757         * intl/hash-string.h (PARAMS): Make more portable.
5758         * intl/loadinfo.h (PARAMS): Likewise.
5759         * intl/plural-exp.h (PARAMS): Likewise.
5760         (attribute_hidden): Move definition near the definition of
5761         internal_function.
5762
5763         * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
5764         * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
5765
5766 2002-07-13  Bruno Haible  <bruno@clisp.org>
5767
5768         * intl/dcigettext.c (freea): New macro.
5769         (FREE_BLOCKS): Free also the registered blocks.
5770         (DCIGETTEXT): Free the 'search' variable.
5771         Reported by Andreas Fischer <a.fischer@asentics.de>.
5772
5773 2002-04-27  Bruno Haible  <bruno@clisp.org>
5774
5775         * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
5776         * intl/dcigettext.c: Likewise.
5777         * intl/dcgettext.c: Likewise.
5778         * intl/dgettext.c: Likewise.
5779         * intl/gettext.c: Likewise.
5780         * intl/dcngettext.c: Likewise.
5781         * intl/dngettext.c: Likewise.
5782         * intl/ngettext.c: Likewise.
5783         * intl/textdomain.c: Likewise.
5784         * intl/bindtextdom.c: Likewise.
5785         * intl/plural-exp.h: Likewise.
5786
5787 2002-01-02  Bruno Haible  <bruno@clisp.org>
5788
5789         * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
5790
5791 2001-04-30  Bruno Haible  <bruno@clisp.org>
5792
5793         * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
5794         default macro definitions.  Needed for mingw32.
5795
5796 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
5797
5798         * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
5799         __builtin_constant_p to macro parameter.
5800
5801         * sysdeps/generic/sigpause.c: Define all functions as weak.
5802         * sysdeps/posix/sigpause.c: Likewise.
5803
5804         * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
5805         type size_t.
5806
5807 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * elf/tst-array1.c (preinit_array, init_array, fini_array):
5810         Explicitly align the array to sizeof (void *).
5811         * elf/tst-array2dep.c (init_array, fini_array): Likewise.
5812
5813         * include/libc-symbols.h: Fix a comment typo.
5814
5815         * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
5816         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
5817         Likewise.
5818         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
5819         Likewise.
5820         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
5821         (__libc_sigsuspend): Likewise.
5822         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
5823         (__libc_sigsuspend): Likewise.
5824         * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
5825         (creat): New weak alias.
5826
5827 2002-12-10  Roland McGrath  <roland@redhat.com>
5828
5829         * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
5830         contributes a manual chapter.
5831         * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
5832         around xref to it.
5833
5834         * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
5835         and move contents to ...
5836         (EXTRA_LD_ENVVARS_LINUX): ... this new macro.  Add break for nonmatch.
5837         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
5838         it instead of duplicating its contents.
5839         (EXTRA_LD_ENVVARS): Likewise.  Add break for nonmatch.
5840
5841 2002-12-09  Jakub Jelinek  <jakub@redhat.com>
5842
5843         * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
5844         defined.
5845         * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
5846         function.
5847         (EXTRA_LD_ENVVARS): Use it.
5848         (DL_OSVERSION_INIT): Define.
5849         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
5850         dl-librecon.h.
5851         (EXTRA_LD_ENVVARS): Undef before defining.  Use _dl_osversion_init.
5852
5853 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
5854
5855         * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
5856
5857         * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
5858         call.  It is not allowed to destroy pthread mutexes which are
5859         still in use even though it is safe for our implementations.  If
5860         somebody still uses the descriptor it is a bug.
5861
5862 2002-12-09  Richard Henderson  <rth@redhat.com>
5863
5864         * csu/abi-note.S: Use .p2align, not .align.
5865
5866 2002-12-09  Ulrich Drepper  <drepper@redhat.com>
5867
5868         * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
5869         __libc_select aliases.
5870
5871         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
5872         alias.
5873
5874         * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
5875
5876         * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
5877
5878         * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
5879
5880         * sysdeps/unix/syscalls.list: Define __libc_select alias.
5881
5882         * sysdeps/posix/waitid.c: Define __libc_waitid alias.
5883
5884         * sysdeps/posix/sigpause.c: Define __libc_sigpause and
5885         __libc___xpg_sigpause aliases.
5886
5887         * sysdeps/generic/pselect.c: Define __libc_pselect alias.
5888
5889         * misc/error.c: Remove use of USE_IN_LIBIO.
5890
5891 2002-12-08  Roland McGrath  <roland@redhat.com>
5892
5893         * elf/Makefile (tests): Uncomment tst-array[123].
5894         * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
5895         * csu/elf-init.c: New file.
5896         * csu/Makefile (routines, static-only-routines): Add elf-init.
5897         * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
5898         and __libc_csu_fini in place of _fini.
5899         * sysdeps/arm/elf/start.S: Likewise.
5900         * sysdeps/cris/elf/start.S: Likewise.
5901         * sysdeps/hppa/elf/start.S: Likewise.
5902         * sysdeps/i386/elf/start.S: Likewise.
5903         * sysdeps/ia64/elf/start.S: Likewise.
5904         * sysdeps/m68k/elf/start.S: Likewise.
5905         * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
5906         * sysdeps/mips/elf/start.S: Likewise.
5907         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
5908         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
5909         * sysdeps/s390/s390-32/elf/start.S: Likewise.
5910         * sysdeps/s390/s390-64/elf/start.S: Likewise.
5911         * sysdeps/sh/elf/start.S: Likewise.
5912         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5913         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5914         * sysdeps/x86_64/elf/start.S: Likewise.
5915
5916         * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
5917         struct containing function ptr and value, free it.
5918         (__aio_notify_only): Allocate that and copy values from SIGEV into it.
5919         It's not safe to let the new thread use the SIGEV pointer.
5920
5921 2001-10-20  Paul Eggert  <eggert@twinsun.com>
5922
5923         * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
5924         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
5925         Use strerror_r that is only a macro, even if it is not a function.
5926         (strerror): Check for HAVE_DECL_STRERROR before declaring.
5927         (private_strerror): Use prototypes, not old-style function definition.
5928         (print_errno_message): New function.
5929         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
5930         char*-flavored one.
5931         (error_tail, error, error_at_line): Use it.
5932
5933 2002-12-07  Carlos O'Donell  <carlos@baldric.uwo.ca>
5934
5935         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
5936
5937 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
5938
5939         * scripts/output-format.sed: Fix bug in one of the s expressions
5940         which used / for one too many things.
5941
5942         * include/unistd.h: Declare __libc_close.
5943
5944 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
5945
5946         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
5947
5948 2002-12-07  Roland McGrath  <roland@redhat.com>
5949
5950         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
5951         from 2002-12-06, but remove unnecessary memset call without removing
5952         necessary copy of initialization image.
5953
5954         * Makerules ($(common-objpfx)format.lds): New target.
5955         (common-generated): Add it.
5956         ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
5957         * scripts/output-format.sed: New file.
5958         * Makefile (distribute): Add it.
5959
5960 2002-12-07  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
5963         Reported by Art Haas <ahaas@airmail.net>.
5964
5965 2002-12-07  Kenneth W. Chen  <kenneth.w.chen@intel.com>
5966
5967         * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec.  Fix .recovery4.
5968
5969 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
5970
5971         * string/test-strncpy.c (do_random_tests): Improve test coverage.
5972
5973 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
5974
5975         * test-skeleton.c (timeout_handler): Allow expected signal to be
5976         SIGALRM.
5977
5978         * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
5979
5980         * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
5981
5982 2002-12-07  Jakub Jelinek  <jakub@redhat.com>
5983
5984         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
5985         (SYSCALL_ERROR_HANDLER): Fix a pasto.
5986         Reported by Jeff Bailey <jbailey@nisa.net>.
5987
5988 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
5989
5990         * sysdeps/generic/libc-tls.c: Undo last patch.
5991
5992         * include/wctype.h: Define iswalnum with libc_hidden_proto.
5993
5994         * include/signal.h: Define raise with libc_hidden_proto.
5995
5996         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
5997         __execve instead of snprintf and execve.
5998
5999         * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6000         again a bit.
6001
6002 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
6003
6004         * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6005         * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6006
6007 2002-12-06  Ulrich Drepper  <drepper@redhat.com>
6008
6009         * misc/syslog.c (log_cleanup): New function.
6010         (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6011         (closelog): Likewise.
6012
6013         * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6014         * elf/dl-iteratephdr.c: Likewise.
6015         * elf/dl-lookup.c: Likewise.
6016         * elf/dl-misc.c: Likewise.
6017         * elf/dl-open.c: Likewise.
6018         * elf/dl-support.c: Likewise.
6019         * elf/rtld.c: Likewise.
6020         * sysdeps/generic/ldsodefs.h: Likewise.
6021         * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6022         * sysdeps/mach/bits/libc-lock.h: Likewise.
6023         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6024
6025 2002-12-06  Roland McGrath  <roland@redhat.com>
6026
6027         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6028
6029         * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6030         (malloc_starter, memalign_starter, free_starter): Don't define these.
6031         * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6032         Don't declare them either.
6033         * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6034         __pthread_initialize, so no need to set hooks to *_starter.
6035         (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6036         [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6037         (__libc_malloc_pthread_startup): New function.
6038         * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6039
6040         * malloc/hooks.c (memalign_starter): New function.
6041         * malloc/malloc.c: Declare it.
6042         * malloc/arena.c (save_memalign_hook): New variable.
6043         (ptmalloc_init): Set __memalign_hook to memalign_starter.
6044
6045         * elf/dl-minimal.c (free): Clear the memory.
6046         (calloc): Just call malloc, knowing all memory it returns is cleared.
6047
6048         * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6049         malloc and memset; calloc can avoid the zeroing when redundant.
6050         (_dl_tls_setup): Likewise.
6051         * elf/dl-load.c (decompose_rpath): Likewise.
6052         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6053         call, since memory from sbrk at startup is already zero.
6054
6055         * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6056         error string for failure, null for success.  Update callers.
6057         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6058         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6059
6060 2002-12-05  Jakub Jelinek  <jakub@redhat.com>
6061
6062         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6063         args to i:iipi.
6064         (readahead): Change args to i:iii.
6065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6066         Change args to i:iii.
6067         * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6068         args to i:iiii.
6069
6070 2002-12-05  Roland McGrath  <roland@redhat.com>
6071
6072         * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6073         call all functions rather than none.
6074         Reported by Mark P. Mitchell <mark@codesourcery.com>.
6075
6076 2002-12-04  Roland McGrath  <roland@redhat.com>
6077
6078         * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6079         on _nl_current_LC_* variables.
6080
6081 2002-12-05  Ulrich Drepper  <drepper@redhat.com>
6082
6083         * dirent/bug-readdir1.c (main): Don't call closedir, just close
6084         the file descriptor.  This is testing what the bug report was about.
6085
6086 2002-12-04  Ulrich Drepper  <drepper@redhat.com>
6087
6088         * po/be.po: New file.
6089
6090         * argp/Makefile (tests): Add tst-argp1.
6091
6092         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6093         Change type of _attribute to void*.
6094         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6095         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6096         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6097         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6098         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6099
6100 2002-12-04  Roland McGrath  <roland@redhat.com>
6101
6102         * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6103         members to the end, so a libpthread compiled with !USE_TLS will still
6104         find other members properly.
6105
6106         * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6107         operand for DEST memory.  Fix dummy input operand to use SRC.
6108         Reported by Davin McCall <davmac@ozonline.com.au>.
6109
6110         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6111         alignment when initializing the DTV entry.
6112
6113         * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6114         when TLS has not been set up, try to set it up if we can.
6115         * elf/tst-tls4.c: Revert last change.
6116         * elf/tst-tls5.c: Likewise.
6117         * elf/tst-tls6.c: Likewise.
6118         * elf/tst-tls7.c: Likewise.
6119         * elf/tst-tls8.c: Likewise.
6120         * elf/tst-tls9.c: Likewise.
6121
6122         * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6123         * sysdeps/generic/ldsodefs.h: Declare it.
6124         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6125         * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6126         function, broken out of __libc_setup_tls.
6127         (init_static_tls): Likewise.
6128         (__libc_setup_tls): Call them.
6129         (_dl_tls_setup): New function, uses new subroutines.
6130
6131         * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6132         Clear the pointer when returning true.
6133         (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6134         first element of the slotinfo list too.
6135
6136         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6137         [SHARED].
6138
6139         * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6140         (_dl_determine_tlsoffset): Likewise.
6141
6142         * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6143         startup_error_tsd, made global.
6144         (dl_main): Update initialization.
6145         * elf/dl-tsd.c: Likewise.
6146         * sysdeps/generic/ldsodefs.h: Declare it.
6147
6148 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6149
6150         * manual/texinfo.tex: Update from latest upstream version.
6151
6152 2002-12-03  Roland McGrath  <roland@redhat.com>
6153
6154         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6155         area surplus in calculation for sbrk call.
6156
6157         * iconvdata/cp1125.c: New file.
6158         * iconvdata/Makefile (distribute): Add it.
6159         (modules): Add CP1125.
6160         (gen-8bit-gap-modules): Add cp1125.
6161         * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6162         * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6163
6164 2002-12-03  Andreas Jaeger  <aj@suse.de>
6165
6166         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6167
6168 2002-12-03  Ulrich Drepper  <drepper@redhat.com>
6169
6170         * sysdeps/posix/system.c (do_system): Make signal handler
6171         installation thread safe.
6172
6173 2002-12-02  Roland McGrath  <roland@redhat.com>
6174
6175         * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6176         caller from EXTRA to -.
6177         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6178         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6179         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6180
6181 2002-12-02  Carlos O'Donell  <carlos@baldric.uwo.ca>
6182
6183         * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6184         bits of RM are cleared.
6185
6186 2002-12-02  Roland McGrath  <roland@redhat.com>
6187
6188         * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6189         TLS setup is required.
6190         * elf/tst-tls5.c: Likewise.
6191         * elf/tst-tls6.c: Likewise.
6192         * elf/tst-tls7.c: Likewise.
6193         * elf/tst-tls8.c: Likewise.
6194         * elf/tst-tls9.c: Likewise.
6195
6196         * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6197         `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6198         * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6199         for being null before calling free_slotinfo.
6200         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6201         dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6202
6203 2002-11-30  Bruno Haible  <bruno@clisp.org>
6204
6205         * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6206         (struct __gconv_step): New field __btowc_fct.
6207         * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6208         * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6209         __BUILTIN_TRANS.
6210         (__gconv_btwoc_ascii): New declaration.
6211         * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6212         (__gconv_btwoc_ascii): New function.
6213         * iconv/gconv_builtin.h: Add BtowcFct argument to all
6214         BUILTIN_TRANSFORMATION invocations.
6215         * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6216         * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6217         * iconv/gconv_builtin.c (map): New field btowc_fct.
6218         (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6219         btowc_fct field.
6220         (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6221         * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6222         * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6223         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6224         * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6225         (gconv_init): Initialize __btowc_fct field.
6226         Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6227         * iconv/loop.c: Document ONEBYTE_BODY.
6228         (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
6229         Undefine ONEBYTE_BODY at the end.
6230         * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
6231         * iconvdata/8bit-gap.c (NONNUL): New macro.
6232         (BODY for FROM_LOOP): Use it.
6233         (ONEBYTE_BODY): New macro.
6234         * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
6235         (NONNUL): New macro.
6236         * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
6237         * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
6238         * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
6239         * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
6240         * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
6241         * iconvdata/big5.c (ONEBYTE_BODY): New macro.
6242         * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
6243         * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
6244         * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
6245         * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
6246         * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
6247         * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
6248         * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
6249         * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
6250         * iconvdata/ibm932.c: Include <stdbool.h>.
6251         (TRUE, FALSE): Remove macros.
6252         (BODY for FROM_LOOP): Remove unused variable rp1.
6253         (ONEBYTE_BODY): New macro.
6254         (BODY for TO_LOOP): Use bool.
6255         * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
6256         * iconvdata/ibm943.c: Include <stdbool.h>.
6257         (TRUE, FALSE): Remove macros.
6258         (BODY for FROM_LOOP): Remove unused variable rp1.
6259         (ONEBYTE_BODY): New macro.
6260         (BODY for TO_LOOP): Use bool.
6261         * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
6262         * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
6263         * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
6264         * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
6265         * iconvdata/johab.c (ONEBYTE_BODY): New macro.
6266         * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
6267         * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
6268         * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
6269         * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
6270         * iconvdata/gbbig5.c: Tweak comment.
6271
6272 2002-12-02  Ulrich Drepper  <drepper@redhat.com>
6273
6274         * po/fi.po: Update from translation team.
6275
6276 2002-12-01  Roland McGrath  <roland@redhat.com>
6277
6278         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6279         testing getdents64 return value.
6280
6281         * scripts/versions.awk: Don't pass -n flag to sort command.
6282
6283         * posix/bug-regex13.c: Include <string.h>.
6284
6285         * sysdeps/generic/libc-start.c (__libc_start_main): Do
6286         DL_SYSDEP_OSCHECK here.
6287         * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
6288         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
6289
6290         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
6291         argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
6292
6293         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
6294         instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
6295
6296         * include/link.h: Comment typo fix.
6297
6298 2002-12-01  Roland McGrath  <roland@frob.com>
6299
6300         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
6301         (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
6302         _POSIX_MEMORY_PROTECTION): Likewise.
6303         (_POSIX_POLL, _POSIX_SELECT): Removed.
6304
6305 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
6306
6307         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
6308         require it to 200112L.  Remove _POSIX_POLL and _POSIX_SELECT.
6309
6310 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
6311
6312         * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
6313         USE___THREAD.
6314         * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
6315         "=v" constraints.
6316
6317 2002-11-28  Ulrich Drepper  <drepper@redhat.com>
6318
6319         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
6320         branch prediction buffers by using unpaired call/ret.
6321
6322 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
6323
6324         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
6325         first parameters constraint string.
6326         (ASMFMT_3): Likewise.  Patch by stefan.lauterbach@mincom.de.
6327
6328 2002-11-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
6329
6330         * posix/regcomp.c (parse_expression): Set the bit since the back
6331         reference is used in the regular expression.
6332         * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
6333         of malloc failure.
6334         (re_node_set_init_copy): Likewise.
6335         * posix/regex_internal.h (state_array_t): New structure.
6336         (re_sub_match_last_t): Likewise.
6337         (re_sub_match_top_t): Likewise.
6338         (re_match_context_t): Add new members.
6339         (re_dfa_t): Likewise.
6340         * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
6341         to check the matching is really correct, and retry if failed.
6342         Move the routin pruning the impossible nodes from here, ...
6343         (prune_impossible_nodes): To this function.
6344         (check_matching): Invoke check_subexp_matching_top, and replace
6345         redundant checking with transit_state_bkref invocation.
6346         (proceed_next_node): Replace strncmp with memcmp.  Reported by
6347         Paolo Bonzini  <bonzini@gnu.org>.
6348         (update_cur_sifted_state): Remove search_subexp invocation.
6349         (search_subexp): Remove this function.
6350         (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
6351         optimization.
6352         (sift_states_bkref): Use search_cur_bkref_entry for optimization.
6353         Remove unused invocation of match_ctx_add_entry.
6354         (transit_state): Invoke check_subexp_matching_top.
6355         (check_subexp_matching_top): New function.
6356         (transit_state_bkref): Remove unused array.
6357         Merge transit_state_bkref_loop.
6358         (transit_state_bkref_loop): Use get_subexp instead of
6359         sift_states_backward.  Use search_cur_bkref_entry for optimization.
6360         Merge this function to transit_state_bkref.
6361         (get_subexp): New function.
6362         (get_subexp_sub): Likewise.
6363         (find_subexp_node): Likewise.
6364         (check_arrival): Likewise.
6365         (check_arrival_expand_ecl): Likewise.
6366         (check_arrival_expand_ecl_sub): Likewise.
6367         (expand_bkref_cache): Likewise.
6368         (match_ctx_init): Initialize new members.
6369         (match_ctx_clean): New function.
6370         (match_ctx_free): Release new members.
6371         (match_ctx_free_subtops): New function.
6372         (match_ctx_add_entry): Fix indent.
6373         (search_cur_bkref_entry): New function.
6374         (match_ctx_add_subtop): Likewise.
6375         (match_ctx_add_sublast): Likewise.
6376
6377 2002-11-25  Ulrich Drepper  <drepper@redhat.com>
6378
6379         * iconv/Makefile (tests): Remove tst-iconv4.c
6380         * iconv/tst-iconv4.c: Moved to...
6381         * iconvdata/tst-iconv4.c: ...here.  New file.
6382         * iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.
6383
6384 2002-11-25  Roland McGrath  <roland@redhat.com>
6385
6386         * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
6387         Grok AF_LINK if defined.
6388         From Momchil Velikov <velco@fadata.bg>.
6389
6390         * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
6391         brdaddr, or dstaddr, just set those pointers to null and don't fail.
6392         Reported by Momchil Velikov <velco@fadata.bg>.
6393
6394         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
6395         is > sizeof IFR->ifa_addr, advance past the whole longer length.
6396         (__ifreq): Count up NIFS that way too.
6397         Reported by Momchil Velikov <velco@fadata.bg>.
6398
6399         * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
6400
6401         * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
6402         and <fpu_control.h>.
6403
6404 2002-11-24  Ulrich Drepper  <drepper@redhat.com>
6405
6406         * elf/elf.h (EM_ST19): Fix typo.
6407
6408 2002-11-25  Jakub Jelinek  <jakub@redhat.com>
6409
6410         * include/errno.h (__set_errno): Define as errno = val
6411         unconditionally.
6412
6413 2002-11-24  Roland McGrath  <roland@redhat.com>
6414
6415         * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
6416         * sysdeps/posix/writev.c: Likewise.
6417         From Momchil Velikov <velco@fadata.bg>.
6418
6419         * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
6420         calling *GL(dl_error_catch_tsd) for a thread-local location.
6421         * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
6422         (dl_main): Same for GL(dl_error_catch_tsd) initialization.
6423         * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
6424
6425         * libio/iofflush.c: Add libc_hidden_def.
6426         * libio/iofwrite.c: Likewise.
6427         * sysdeps/generic/sigtimedwait.c: Likewise.
6428         * sysdeps/generic/sigwaitinfo.c: Likewise.
6429         * sysdeps/posix/sigwait.c: Likewise.
6430         Reported by Momchil Velikov <velco@fadata.bg>.
6431
6432         * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
6433         to match <arpa/inet.h> declaration.
6434         * inet/inet_netof.c (inet_netof): Likewise.
6435         * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
6436         Reported by Momchil Velikov <velco@fadata.bg>.
6437
6438         * configure.in: Skip AUTOCONF check under --without-cvs.
6439         * configure: Regenerated.
6440
6441         * posix/Makefile (headers): Add bits/pthreadtypes.h.
6442         * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
6443         * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
6444
6445 2002-11-24  Andreas Schwab  <schwab@suse.de>
6446
6447         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
6448         with six arguments.
6449
6450 2002-11-19  Jim Meyering  <jim@meyering.net>
6451
6452         * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
6453         as `static'.
6454         * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
6455
6456 2002-11-23  Roland McGrath  <roland@redhat.com>
6457
6458         * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
6459         Just produce hex output for datum sizes.
6460
6461         * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
6462         Reported by Luca Barbieri <ldb@ldb.ods.org>.
6463
6464 2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>
6465
6466         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
6467         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6468         and __unused3 fields.
6469         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
6470         [__WORDSIZE == 32]: Only PPC32 requires __unused1
6471         and __unused2 fields.
6472         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
6473         [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6474         __unused3, and __unused4 fields.
6475
6476         * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
6477         obtain lowest address for profiling in __monstartup call.
6478
6479 2002-11-21  Roland McGrath  <roland@redhat.com>
6480
6481         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
6482         $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
6483
6484         * locale/localeinfo.h (struct locale_data): Revert last change.
6485
6486         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
6487         From Ian Wienand <ianw@gelato.unsw.edu.au>.
6488
6489         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
6490         __NR_pread64 if not defined.
6491         (__NR_pwrite): Define to __NR_pwrite64 if not defined.
6492         From Ian Wienand <ianw@gelato.unsw.edu.au>.
6493
6494 2002-11-21  Roland McGrath  <roland@frob.com>
6495
6496         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
6497         __libc_multiple_libcs here.  Call __setfpucw.
6498
6499 2002-11-21  Ulrich Drepper  <drepper@redhat.com>
6500
6501         * elf/Makefile (tests): Don't run test-arrayX tests for now.
6502
6503         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
6504         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
6505         CLONE_CHILD_*TID flags.
6506
6507 2002-11-20  Andreas Jaeger  <aj@suse.de>
6508
6509         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
6510         We pass struct ucontext on x86-64.
6511         (GET_PC): Adjust.
6512         (GET_FRAME): Adjust.
6513         (GET_STACK): Adjust.
6514
6515 2002-11-20  Roland McGrath  <roland@redhat.com>
6516
6517         * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
6518         conditionalize [! DO_VERSIONING] #error.
6519
6520         * scripts/abilist.awk: Grok function descriptor symbols.
6521
6522         * intl/tst-gettext.c (main): Check return values from setlocale.
6523         Add necessary unsetenv's to make LANG=existing-locale check work.
6524
6525         * intl/tst-gettext.sh: Use mkdir -p.  Copy test files unconditionally,
6526         so aborted prior runs don't confuse things.
6527
6528         * locale/localeinfo.h (struct locale_data: union locale_data_value):
6529         Use uintptr_t instead of unsigned int for `word' member.
6530         (_NL_CURRENT_WORD): Cast to uint32_t.
6531
6532         * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
6533         value.
6534
6535 2002-11-20  Ulrich Drepper  <drepper@redhat.com>
6536
6537         * elf/tls-macros.h: Add IA-64 definitions.
6538         Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
6539
6540         * iconv/Makefile (tests): Add tst-iconv4.
6541         * iconv/tst-iconv4.c: New file.
6542
6543         * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
6544         __GCONV_EMPTY_INPUT only if input is really empty.  Otherwise
6545         __GCONV_INCOMPLETE_INPUT.
6546         (ucs4le_internal_loop): Likewise.
6547         (ucs4le_internal_loop_unaligned): Likewise.
6548         * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
6549         * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
6550         * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
6551
6552         * iconv/loop.c (LOOPFCT): First test for empty input then for full
6553         output buffer.
6554
6555         * inet/getnameinfo.c: Use extend_alloca where appropriate.
6556         * sysdeps/posix/getaddrinfo.c: Likewise.
6557
6558         * include/alloca.h (extend_alloca): New define.  Based on stack
6559         direction it'll try to append to the previouls allocated buffer.
6560
6561 2002-11-07  Thorsten Kukuk  <kukuk@suse.de>
6562
6563         * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
6564         use the same service for AF_INET and AF_INET6.
6565
6566 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
6567
6568         * intl/localealias.c (read_alias_file): Use only about 400 bytes
6569         of stack space instead of 16k.
6570
6571 2002-11-18  Wolfram Gloger  <wg@malloc.de>
6572
6573         * malloc/arena.c
6574         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
6575         nothing if not initialized.  Bug report from Marcus Brinkmann
6576         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6577
6578 2002-11-19  Roland McGrath  <roland@redhat.com>
6579
6580         * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
6581         sched_setaffinity.
6582
6583         * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
6584         `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
6585         test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
6586         * configure: Regenerated.
6587
6588 2002-11-19  Ulrich Drepper  <drepper@redhat.com>
6589
6590         * include/dlfcn.h: __libc_dlopen is now a macro calling
6591         __libc_dlopen_mode with the extra parameter RTLD_LAZY.
6592         (__libc_dlopen_mode): New prototype.
6593         * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen.  Add
6594         new parameter.  Store new parameter in mode field of structure passed
6595         to do_dlopen.
6596         (struct do_dlopen_args): Add new field mode.
6597         (do_dlopen): Pass mode from parameter structure to _dl_open.
6598
6599 2002-11-11  Randolf Chung  <tausq@debian.org>
6600
6601         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
6602         (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
6603         * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
6604
6605         * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
6606
6607         * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
6608         Set -mdisable-fpregs for this file.
6609
6610 2002-11-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
6611
6612         * sysdeps/unix/sysv/linux/configure.in:
6613         Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
6614         from gcc-3.0 era for backwards compatibility.
6615         * sysdeps/unix/sysv/linux/configure: Regenerate.
6616
6617         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
6618         Define mcontext_t as a sigcontext.
6619
6620 2002-11-18  Roland McGrath  <roland@redhat.com>
6621
6622         * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
6623         Free memory in `last_result' if it was used.
6624
6625         * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
6626         all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
6627         Do the parsing inline instead of copying strings and calling
6628         inet_network, and properly skip all alias names not matching the form.
6629
6630         * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
6631
6632 2002-11-17  Ulrich Drepper  <drepper@redhat.com>
6633
6634         * manual/pattern.texi (Wordexp Example): Fix sample code.
6635
6636         * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
6637         childs stack which will be loaded into the %esi register.
6638
6639 2002-11-14  Paul Eggert  <eggert@twinsun.com>
6640
6641         * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
6642         overflow when skipping the question part and when unpacking aliases.
6643
6644 2002-11-15  Roland McGrath  <roland@redhat.com>
6645
6646         * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
6647         s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
6648         Instead add $(calls:s_%=m_%) to get m_* versions of them all.
6649
6650 2002-11-15  Jakub Jelinek  <jakub@redhat.com>
6651
6652         * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
6653         * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
6654
6655 2002-11-15  Roland McGrath  <roland@redhat.com>
6656
6657         * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
6658         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
6659         from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
6660         (+make-include-of-dep): New canned sequence.
6661
6662         * stdlib/canonicalize.c (__realpath): Check for malloc failure.
6663         From Dmitry V. Levin <ldv@altlinux.org>.
6664
6665 2002-11-14  Roland McGrath  <roland@redhat.com>
6666
6667         * sysdeps/generic/errno.c (__libc_errno): Remove alias.
6668         * inet/herrno.c (__libc_h_errno): Likewise.
6669         * resolv/res_libc.c (__libc_res): Likewise.
6670         [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
6671         (__res_state) [! USE___THREAD]: Don't define as weak.
6672         * csu/Versions: Revert last change.
6673         * resolv/Versions: Revert last change.
6674
6675         * Makerules ($(common-objpfx)%.make): New pattern rule.
6676         * tls.make.c: New file.
6677         * Makefile (distribute): Add it.
6678
6679         * sysdeps/generic/errno.c [! USE___THREAD]
6680         [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
6681         with compat_symbol so they are not link-time visible.
6682         [! USE___THREAD] (__libc_errno): New alias for errno.
6683         * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
6684         Add __libc_errno here.
6685         * inet/herrno.c [USE___THREAD]: Use this conditional
6686         in place of [USE_TLS && HAVE___THREAD].
6687         [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
6688         (h_errno, _h_errno): Declare these with compat_symbol so they are not
6689         link-time visible.
6690         [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
6691         * resolv/res_libc.c [! USE___THREAD]
6692         [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
6693         (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
6694         (__libc_res): Define as alias for _res.
6695         * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
6696         Add __libc_h_errno and __libc_res here.
6697
6698 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
6699
6700         * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
6701         * resolv/Versions (h_errno, _res): Likewise.
6702
6703 2002-11-14  Roland McGrath  <roland@redhat.com>
6704
6705         * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
6706         (%.symlist): Likewise.
6707
6708 2002-11-13  Roland McGrath  <roland@redhat.com>
6709
6710         * scripts/abilist.awk: New file.
6711         * Makefile (distribute): Add it.
6712         * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
6713         (tests): Depend on .symlist file for each $(install-lib.so-versioned).
6714         [$(subdir) = elf] (tests): Depend on libc.symlist.
6715         (generated, common-generated): Add those files.
6716
6717         * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
6718         * configure: Regenerated.
6719         * config.make.in (OBJDUMP): New variable, substituted by configure.
6720
6721         * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
6722         (mallochook, reallochook): Set them up.
6723         (checkhdr): Check HDR->magic2 value.
6724         (freehook): Reset HDR->magic2.
6725         (memalignhook): New static function.
6726         (old_memalign_hook): New static variable.
6727         (mcheck, reallochook): Set __memalign_hook to memalignhook.
6728
6729         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
6730         for the new TCB.
6731
6732 2002-11-13  Andreas Jaeger  <aj@suse.de>
6733
6734         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
6735         attribute.
6736         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6737
6738 2002-11-11  Paul Eggert  <eggert@twinsun.com>
6739
6740         * manual/crypt.texi (Cryptographic Functions): Mention that
6741         the MD5 one-way algorithm is compatible with BSD's.
6742
6743 2002-11-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
6744
6745         * posix/regex_internal.c (re_string_skip_chars): Also return the last
6746         wide character.
6747         (re_string_reconstruct): Calculate the context by itself when the
6748         offset points out of the valid range.
6749         (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
6750         * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
6751         (IS_WIDE_WORD_CHAR): New macro.
6752         (IS_WIDE_NEWLINE): New macro.
6753
6754 2002-11-12  Andreas Jaeger  <aj@suse.de>
6755
6756         * sysdeps/x86_64/strchr.S: Don't use one register for two
6757         purposes, this fixes a bug noticed by test-strchr.c.
6758
6759         * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
6760         correctly.
6761
6762 2002-11-12  Roland McGrath  <roland@redhat.com>
6763
6764         * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
6765         (_G_IO_NO_BACKWARD_COMPAT): Define it.
6766
6767         * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
6768         instead of <pt-machine.h>.
6769         [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
6770         testandset.
6771         From Ian Wienand <ianw@gelato.unsw.edu.au>.
6772
6773 2002-11-10  Roland McGrath  <roland@redhat.com>
6774
6775         * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
6776         Call fputs instead of fwprintf (simpler to follow in debugger).
6777
6778         * crypt/md5-crypt.c: Doc fix.
6779
6780         * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
6781         the beginning of generated target commands.
6782
6783         * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
6784         dependencies for these in case implicit rule search skipped the
6785         nonexistent source directory.
6786         * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
6787         files with $(object-suffixes) as targets too.
6788         * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
6789         and a target for it using $(make-target-directory).
6790
6791         * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
6792
6793 2002-11-10  Roland McGrath  <roland@frob.com>
6794
6795         * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
6796         * sysdeps/generic/bits/pthreadtypes.h: ... here.
6797
6798         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
6799         l_start == 0 and l_len == 1 as we do l_len == 0.
6800
6801 2002-11-10  Ulrich Drepper  <drepper@redhat.com>
6802
6803         * po/da.po: Update from translation team.
6804
6805 2002-11-10  Roland McGrath  <roland@redhat.com>
6806
6807         * config.make.in (includedir): New variable, substituted by configure.
6808         Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
6809         * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
6810
6811 2002-11-10  Andreas Jaeger  <aj@suse.de>
6812
6813         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
6814         REG_OLDMASK and REG_CR2 to synch with kernel header.
6815         (NGREG): Increase.
6816
6817         * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
6818         aliasing problem.
6819         * nss/getXXbyYY_r.c (INTERNAL): Likewise.
6820         * nss/getnssent_r.c (__nss_getent_r): Likewise.
6821         (__nss_setent): Likewise.
6822         (__nss_getent_r): Likewise.
6823         * inet/getnetgrent_r.c (innetgr): Likewise.
6824         (__internal_setnetgrent_reuse): Likewise.
6825         (internal_getnetgrent_r): Likewise.
6826         * inet/ether_hton.c (ether_hostton): Likewise.
6827         * inet/ether_ntoh.c (ether_ntohost): Likewise.
6828         * sunrpc/netname.c (netname2user): Likewise.
6829         * sunrpc/publickey.c (getpublickey): Likewise.
6830         (getsecretkey): Likewise.
6831
6832 2002-11-09  Marcus Brinkmann  <marcus@gnu.org>
6833
6834         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
6835         error in range calculation.
6836
6837 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
6838
6839         * string/test-strspn.c (do_test): Ensure zero termination.
6840         * string/test-strpbrk.c (do_test): Likewise.
6841         * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
6842         * string/test-strncpy.c (stupid_strncpy): Likewise.
6843         * string/test-stpncpy.c (stupid_stpncpy): Likewise.
6844
6845 2002-10-08  Roland McGrath  <roland@redhat.com>
6846
6847         * string/test-string.h (test_init): Fill BUF1 and BUF2 with
6848         nonzero characters.
6849
6850 2002-09-22  H.J. Lu  <hjl@gnu.org>
6851
6852         * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
6853         from PAGE_SHIFT.  Define if not defined.  Check MMAP2_PAGE_SHIFT
6854         only if __NR_mmap2 is defined.
6855
6856         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
6857         * sysdeps/unix/sysv/linux/mmap64.c: ... here.
6858         * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
6859         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
6860
6861 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
6862
6863         * posix/bug-regex13.c (tests): Add new test.
6864
6865         * string/test-strchr.c (stupid_strchr): New function.
6866         (do_random_tests): Make sure the string is zero terminated.
6867         * string/test-strpbrk.c (stupid_strpbrk): New function.
6868         (do_random_tests): Make sure the string is zero terminated.
6869         * string/test-strcmp.c (stupid_strcmp): New function.
6870         (do_random_tests): Make sure the strings are zero terminated.
6871         * string/test-strspn.c (stupid_strspn): New function.
6872         (simple_strspn): Rename rej argument to acc.
6873         (do_random_tests): Make sure the string is zero terminated.
6874         * string/test-strcspn.c (stupid_strcspn): New function.
6875         * string/test-strncpy.c (stupid_strncpy): New function.
6876         * string/test-stpncpy.c (stupid_stpncpy): New function.
6877         * string/test-strncmp.c (stupid_strncmp): New function.
6878         (do_random_tests): Make sure the strings are zero terminated.
6879         * string/test-string.h (impl_t): Change test into long.
6880         (IMPL): Add __attribute__((aligned (sizeof (void *)))).
6881
6882 2002-11-08  Roland McGrath  <roland@redhat.com>
6883
6884         * sysdeps/ia64/elf/configure.in: Add TLS check.
6885         From Ian Wienand <ianw@cse.unsw.edu.au>.
6886         * sysdeps/ia64/elf/configure: Regenerated.
6887
6888 2002-11-07  Roland McGrath  <roland@redhat.com>
6889
6890         * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
6891         place of _IO_new_do_write.
6892         [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
6893         #undef before versioned_symbol use.
6894
6895 2002-11-07  Richard Henderson  <rth@redhat.com>
6896
6897         * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
6898         * configure: Regenerated.
6899         * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
6900         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
6901         (RTLD_START): Likewise.  Access _dl_skip_args, _rtld_local, and
6902         _dl_fini via gp-relative relocations.
6903         * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
6904
6905         * elf/tls-macros.h: Add alpha versions.
6906         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
6907         * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
6908         * sysdeps/unix/alpha/sysdep.h: Likewise.  Add SYSCALL_ERROR_HANDLER.
6909         * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
6910         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
6911         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
6912         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
6913         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6914         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
6915         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
6916         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
6917         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
6918         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
6919         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
6920         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
6921         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
6922         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
6923         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
6924
6925         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
6926         Kill argument registers across the inline syscall.
6927
6928         * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
6929
6930         * linuxthreads/sysdeps/alpha/tls.h: New file.
6931         * sysdeps/alpha/dl-tls.h: New file.
6932
6933 2002-10-29  David Mosberger  <davidm@hpl.hp.com>
6934
6935         * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
6936         (gmon_initializer): New function.
6937         (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
6938         __gmon_start__ here.  Call it from gmon_initializer() instead.
6939
6940 2002-03-12  H.J. Lu  <hjl@gnu.org>
6941
6942         * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
6943         tst-array2, and tst-array3.
6944         [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
6945         [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
6946         ($(objpfx)tst-array1.out): New target.
6947         ($(objpfx)tst-array2): Likewise.
6948         ($(objpfx)tst-array2.out): Likewise.
6949         ($(objpfx)tst-array3.out): Likewise.
6950         * elf/tst-array1.c: New file.
6951         * elf/tst-array1.exp: Likewise.
6952         * elf/tst-array2.c: Likewise.
6953         * elf/tst-array2dep.c: Likewise.
6954         * elf/tst-array2.exp: Likewise.
6955         * elf/tst-array3.c: Likewise.
6956
6957 2002-10-28  David Mosberger  <davidm@hpl.hp.com>
6958
6959         * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
6960         Don't add L->l_addr to array entry values.
6961
6962 2002-11-07  Jakub Jelinek  <jakub@redhat.com>
6963
6964         * string/test-string.h: New file.
6965         * string/test-strlen.c: New file.
6966         * string/test-string.h: New file.
6967         * string/test-strcmp.c: New file.
6968         * string/test-strchr.c: New file.
6969         * string/test-strrchr.c: New file.
6970         * string/test-strcpy.c: New file.
6971         * string/test-stpcpy.c: New file.
6972         * string/test-strncpy.c: New file.
6973         * string/test-stpncpy.c: New file.
6974         * string/test-strpbrk.c: New file.
6975         * string/test-strcspn.c: New file.
6976         * string/test-strspn.c: New file.
6977         * string/test-strcat.c: New file.
6978         * string/test-strncmp.c: New file.
6979         * string/test-memchr.c: New file.
6980         * string/test-memcmp.c: New file.
6981         * string/test-memset.c: New file.
6982         * string/test-memcpy.c: New file.
6983         * string/test-mempcpy.c: New file.
6984         * string/test-memmove.c: New file.
6985         * string/Makefile (strop-tests): New variable.
6986         (tests): Add strop-tests.
6987         (distribute): Add test-string.h.
6988
6989 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
6990
6991         * posix/regcomp.c: Use tabs instead of spaces.
6992         * posix/regexec.c: Likewise.
6993         * posix/regex_internal.h: Likewise.
6994
6995         * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
6996
6997 2002-11-06  Jakub Jelinek  <jakub@redhat.com>
6998
6999         * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7000         here.
7001         (regcomp): Don't set can_be_null here.
7002         (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7003         (re_compile_internal): Clear can_be_null, set regs_allocated.
7004
7005         * posix/regcomp.c (re_set_fastmap): New function.
7006         (re_compile_fastmap_iter): Use it.  Remove redundant type ==
7007         COMPLEX_BRACKET check.
7008         * posix/regexec.c (re_search_internal): Optimize searching with
7009         fastmap.  Call re_string_reconstruct even if match_first is
7010         smaller than raw_mbs_idx.
7011
7012 2002-11-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
7013
7014         * posix/regcomp (free_dfa_content): Use free_state.
7015         * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7016         pointers in case that realloc failed.
7017         (re_node_set_merge): Likewise.
7018         (register_state): Likewise.
7019         (create_newstate_common): Invoke memory release functions in case of
7020         error conditions.
7021         (create_ci_newstate): Likewise.
7022         (create_cd_newstate): Likewise.
7023         (free_state): New function.
7024         * posix/regexec.c (re_search_internal): Invoke memory release
7025         functions in case of error conditions.
7026         (sift_states_backward): Likewise.
7027         (merge_state_array): Likewise.
7028         (add_epsilon_src_nodes): Likewise.
7029         (sub_epsilon_src_nodes): Likewise.
7030         (search_subexp): Likewise.
7031         (sift_states_bkref): Likewise.
7032         (transit_state_sb): Likewise.
7033         (transit_state_mb): Likewise.
7034         (transit_state_bkref_loop): Likewise.
7035         (group_nodes_into_DFAstates): Likewise.
7036         (push_fail_stack): Don't edit pointers in case that realloc failed.
7037         (extend_buffers): Likewise.
7038         (match_ctx_add_entry): Likewise.
7039
7040 2002-11-06  Roland McGrath  <roland@redhat.com>
7041
7042         * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7043         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7044
7045         * configure.in: Add checks on as and ld for binutils 2.13 or later.
7046         * configure: Regenerated.
7047
7048 2002-11-06  Ulrich Drepper  <drepper@redhat.com>
7049
7050         * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7051         If re_compile_internal failed free fastmap buffer.
7052         (free_dfa_content): Broken out of regfree function.  Frees all dfa
7053         related data.
7054         (regfree): Add free_dfa_content.
7055         (re_compile_internal): If any of the called functions fails free
7056         all dfa related memory.
7057
7058 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7059
7060         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7061         warnings from the kernel headers.
7062
7063 2002-11-05  Roland McGrath  <roland@redhat.com>
7064
7065         * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7066         From Johannes Stezenbach <js@convergence.de>.
7067
7068         * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7069         #errlist-compat magic comment to give 123 as size.
7070         (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7071         (libc: GLIBC_2.2): ... here.
7072         (libc: GLIBC_2.3): Likewise.
7073
7074 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7075
7076         * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7077         which happens at the beginning so that we can unload modules in
7078         __libc_freeres.
7079
7080 2002-11-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7081
7082         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7083         under [__USE_MISC || _ASM].
7084
7085         * elf/elf.h: Remove the obsolete SH TLS relocations.
7086
7087 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7088
7089         * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7090
7091 2002-11-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7092
7093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7094         __NR_pread64 and __NR_pwrite64.
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7096         * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7097         and __NR_pwrite64.
7098         Revert change to use INLINE_SYSCALL.
7099         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7100         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7101         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7102         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7103         INLINE_SYSCALL.
7104         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7105
7106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7107         Update clobber list and add a comment about the syscall ABI.
7108
7109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7110         s_pwrite64, s_ftruncate, s_truncate): Re-add.
7111
7112 2002-11-05  Jakub Jelinek  <jakub@redhat.com>
7113
7114         * iconv/gconv_dl.c (free_mem): Clear loaded.
7115         * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7116         cleanup if any.
7117
7118 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
7119
7120         * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7121
7122         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
7123         as old code without locking.  _IO_seekoff calls this function after
7124         locking the stream.
7125         * libio/ioseekpos.c: Likewise for _IO_seekpos.
7126         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7127         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7128         prototypes.
7129         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7130         of _IO_seekoff_internal.
7131         (_IO_rewind): Likewise.
7132         * libio/ioftell.c: Likewise.
7133         * libio/ftello.c: Likewise.
7134         * libio/ftello64.c: Likewise.
7135         * libio/iofgetpos.c: Likewise.
7136         * libio/iofgetpos64.c: Likewise.
7137         * libio/oldiofgetpos.c: Likewise.
7138         * libio/oldiofgetpos64.c: Likewise.
7139         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7140         _IO_seekpos_internal.
7141         * libio/iofsetpos64.c: Likewise.
7142         * libio/oldiofsetpos.c: Likewise.
7143         * libio/oldiofsetpos64.c: Likewise.
7144
7145 2002-11-04  Roland McGrath  <roland@redhat.com>
7146
7147         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7148         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7149         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7150         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7151         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7152         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7153         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7154         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7155         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7156         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7158         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7159         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7160         Remove these, no longer used.
7161
7162 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7163
7164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7165         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7166         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7167         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7168         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7169         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7170         syscall stubs.
7171
7172         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7173         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7174         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7175         and __NR_pread.
7176         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7177         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7178         and __NR_pwrite.
7179         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7180
7181 2002-11-03  Roland McGrath  <roland@redhat.com>
7182
7183         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7184         `_dl_tls_static_used'.
7185         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7186         (__libc_setup_tls): Initialize it.  Let the initial value of
7187         _dl_tls_static_size indicate some surplus space in the computed value.
7188         * elf/dl-open.c (_dl_tls_static_size): New variable.
7189         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7190         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
7191         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7192         (CHECK_STATIC_TLS): Use it.
7193         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7194         closed objects occupied a trailing contiguous chunk of static TLS area.
7195
7196 2002-10-18  Bruno Haible  <bruno@clisp.org>
7197
7198         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7199
7200 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
7201
7202         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7203         _wide_data->_IO_read_end if adjustment can be made in the current
7204         buffer.
7205
7206         * sysdeps/unix/sysv/linux/fexecve.c: New file.
7207
7208         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7209         wide oriented streams are used.
7210
7211         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7212         service hasn't been used [PR libc/4744].
7213
7214         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7215         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7216
7217         * manual/examples/dir.c: Don't include <stddef.h>.
7218         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7219         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7220
7221 2002-11-02  H.J. Lu  <hjl@gnu.org>
7222
7223         * stdio-common/reg-printf.c: Include <stddef.h>.
7224
7225 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
7226
7227         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
7228
7229         * po/ca.po: Update from translation team.
7230         * po/es.po: Likewise.
7231
7232         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
7233         is defined write out memory map.
7234         * sysdeps/unix/sysv/linux/segfault.c: New file.
7235
7236 2002-11-02  Roland McGrath  <roland@redhat.com>
7237
7238         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
7239         pointers that can alias.
7240         Reported by Daniel Jacobowitz <drow@mvista.com>.
7241
7242         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
7243
7244 2002-11-02  Roland McGrath  <roland@redhat.com>
7245
7246         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
7247         description to be clearer and to say that *RESULT is set to ENTRY.
7248
7249 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7250
7251         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
7252         dests_ch arrays together.  Alloca or malloc dest_states,
7253         dest_states_word and dest_states_nl arrays together.  Free memory on
7254         error exit.
7255
7256 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
7257
7258         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
7259         and current_saltbits.
7260
7261 2002-11-02  Roland McGrath  <roland@redhat.com>
7262
7263         * stdio-common/reg-printf.c: Include <stdlib.h>.
7264
7265 2002-11-02  H.J. Lu  <hjl@gnu.org>
7266
7267         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
7268         caller to EXTRA instead of execve.
7269
7270 2002-11-01  Roland McGrath  <roland@redhat.com>
7271
7272         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
7273         in place of [!(USE_TLS && HAVE___THREAD)].
7274         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
7275
7276 2002-10-31  Roger Sayle  <roger@eyesopen.com>
7277
7278         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
7279         New macros.
7280         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7281
7282         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
7283         without defining FP_ROUNDMODE.
7284
7285 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
7286
7287         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
7288         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
7289         declare_symbol.
7290         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7291         (OLD_SIGLIST_SIZE): Define.
7292         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7293         (OLD_SIGLIST_SIZE): Define.
7294         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
7295
7296 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
7297
7298         * sysdeps/ia64/strncpy.S: Fix recovery code.
7299
7300 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7301
7302         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
7303         New macros.
7304         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
7305         text_set_element.
7306         * elf/dl-libc.c (free_mem): Likewise.
7307         * iconv/gconv_conf.c (free_mem): Likewise.
7308         * iconv/gconv_db.c (free_mem): Likewise.
7309         * iconv/gconv_dl.c (free_mem): Likewise.
7310         * iconv/gconv_cache.c (free_mem): Likewise.
7311         * intl/finddomain.c (free_mem): Likewise.
7312         * intl/dcigettext.c (free_mem): Likewise.
7313         * locale/setlocale.c (free_mem): Likewise.
7314         * misc/fstab.c (fstab_free): Likewise.
7315         * nss/nsswitch.c (free_mem): Likewise.
7316         * posix/regcomp.c (free_mem): Likewise.
7317         * resolv/gai_misc.c (free_res): Likewise.
7318         * stdlib/fmtmsg.c (free_mem): Likewise.
7319         * sunrpc/clnt_perr.c (free_mem): Likewise.
7320         * sysdeps/generic/setenv.c (free_mem): Likewise.
7321         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
7322         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
7323         * time/tzset.c (free_mem): Likewise.
7324         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
7325         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
7326         * malloc/set-freeres.c (__libc_freeres): Likewise.
7327
7328         * login/getutent.c: Include stdlib.h instead of stddef.h.
7329         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7330         (__getutent): Allocate buffer the first time it is run.
7331         * login/getutid.c: Include stdlib.h instead of stddef.h.
7332         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7333         (__getutid): Allocate buffer the first time it is run.
7334         * login/getutline.c: Include stdlib.h instead of stddef.h.
7335         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7336         (__getutline): Allocate buffer the first time it is run.
7337         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
7338         (mtrace): Allocate malloc_trace_buffer.
7339         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
7340         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
7341         * string/strerror.c: Include libintl.h and errno.h.
7342         (buf): New variable.
7343         (strerror): Only allocate buffer if actually needed (unknown error).
7344         * time/tzfile.c (transitions): Add libc_freeres_ptr.
7345         (freeres): Remove.
7346
7347 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
7348
7349         * include/libc-symbols.h (libc_freeres_ptr): New macro.
7350         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
7351         symbol_set_define.
7352         (__libc_freeres): Free all pointers in that section.
7353         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
7354         commands when creating .lds script.
7355         (LDSEDCMD-c.so): New variable.
7356         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
7357         (rcmd_af): Use strdup to allocate ahostbuf.
7358         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
7359         (rexec_af): Use strdup to allocate ahostbuf.
7360         * stdio-common/reg-printf.c (printf_funcs): Remove.
7361         (__printf_arginfo_table): Change into printf_arginfo_function **.
7362         Add libc_freeres_ptr.
7363         (__register_printf_function): Allocate __printf_arginfo_table
7364         and __printf_function_table the first time it is called.
7365         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
7366         printf_arginfo_function **.
7367         (parse_one_spec): Add __builtin_expect.
7368         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
7369         (free_mem): Remove.
7370         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
7371         (free_mem): Remove.
7372         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
7373         (string_space, map): Add libc_freeres_ptr.
7374         (free_mem): Remove.
7375         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
7376         (free_mem): Remove.
7377         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
7378         (free_mem): Remove.
7379         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
7380         (buffer): Add libc_freeres_ptr.
7381         (free_mem): Remove for _LIBC.
7382         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
7383         (free_mem): Remove.
7384         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
7385         (free_mem): Remove.
7386         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
7387         (free_mem): Remove.
7388         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
7389         (free_mem): Remove.
7390         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
7391         (free_mem): Remove.
7392         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
7393         (free_mem): Remove.
7394         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
7395         libc_freeres_ptr.
7396         (free_mem): Remove.
7397         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
7398         libc_freeres_ptr.
7399         (free_mem): Remove.
7400
7401 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7402
7403         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
7404         instead of duplicating the whole function in libc.
7405
7406 2002-10-31  Roland McGrath  <roland@redhat.com>
7407
7408         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
7409         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
7410
7411 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
7412
7413         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
7414         32bit-predefine when creating .new32 list and -U for each
7415         32bit-predefine when creating .new64 list.
7416         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
7417
7418 2002-10-29  Andreas Schwab  <schwab@suse.de>
7419
7420         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
7421         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
7422
7423 2002-10-25  Roland McGrath  <roland@redhat.com>
7424
7425         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
7426         * sysdeps/unix/sysv/linux/configure: Regenerated.
7427
7428         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
7429         _dl_starting_up decl.
7430
7431 2002-10-20  H.J. Lu  <hjl@gnu.org>
7432
7433         * sysdeps/unix/sysv/linux/configure.in: Don't check
7434         /lib/modules/`uname -r`/build/include for kernel headers if
7435         cross compiling.
7436         * sysdeps/unix/sysv/linux/configure: Regenerated.
7437
7438 2002-10-25  Roland McGrath  <roland@redhat.com>
7439
7440         * math/math.h (M_LOG2El): Correct the value.
7441         From Stephen L Moshier <steve@moshier.net>.
7442
7443         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
7444         conditional from __libc_multiple_libcs access.  Remove kludge for weak
7445         symbol access with old compilers we no longer support.
7446         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7447         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
7448
7449 2002-10-25  Roland McGrath  <roland@redhat.com>
7450
7451         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
7452         implement SV_RESETHAND by translating it to SA_RESETHAND.
7453
7454 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
7455
7456         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
7457         type on ELF64 platforms.
7458
7459 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
7460
7461         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
7462
7463         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
7464
7465 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
7466
7467         * elf/dl-misc.c: Include <sysdep.h>.
7468         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
7469
7470         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
7471         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7472         (INLINE_SYSCALL): Use that.
7473         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
7474         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7475         (INLINE_SYSCALL): Use that.
7476         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
7477         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7478         (INLINE_SYSCALL): Use that.
7479         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
7480         dl-sysdep.h.
7481         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7482         (__INTERNAL_SYSCALL_STRING): Define.
7483         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7484         dl-sysdep.h.
7485         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7486         (__INTERNAL_SYSCALL_STRING): Define.
7487         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
7488         __SYSCALL_STRING to inline_syscall*.
7489         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
7490         New macros.
7491         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
7492         inline_syscall4, inline_syscall5, inline_syscall6): Add string
7493         argument.
7494
7495 2002-10-24  Roland McGrath  <roland@redhat.com>
7496
7497         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
7498         * sysdeps/unix/sysv/linux/init-first.c: Not here.
7499         * sysdeps/powerpc/elf/libc-start.c: Or here.
7500         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
7501         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
7502         * sysdeps/unix/sysv/aix/init-first.c: Or here.
7503         * sysdeps/generic/libc-start.c: Or here.
7504         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
7505         access with [! SHARED].
7506         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7507
7508         * libio/bug-wfflush.c: New file.
7509         * libio/Makefile (tests): Add bug-wfflush.
7510
7511 2002-10-23  Roland McGrath  <roland@redhat.com>
7512
7513         * stdio-common/tst-fphex.c: New file.
7514         * stdio-common/Makefile (tests): Add tst-fphex.
7515         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
7516         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
7517         chars always before the value digits.
7518         Reported by James Antill <james.antill@redhat.com>.
7519
7520 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
7521
7522         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
7523         (free_mem): New function.
7524         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
7525         if not cross compiling.
7526         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
7527         (bug-regex14-ENV): Set.
7528         (bug-regex14-mem): New target.
7529         * posix/bug-regex14.c: New file.
7530
7531 2002-10-23  Roland McGrath  <roland@redhat.com>
7532
7533         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
7534         target, so we don't touch it when the link fails.
7535
7536         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
7537         Check for the result overflowing off_t and fail with EOVERFLOW.
7538         * libio/ioftell.c (_IO_ftell): Likewise.
7539         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
7540
7541         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
7542         use a temporary timeval on the stack for gettimeofday and copy it.
7543         * login/logout.c (logout): Likewise.
7544         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
7545
7546         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
7547         Use __SWORD_TYPE instead of int for member types.
7548         (struct statfs64): Likewise.
7549         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
7550         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
7551         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
7552         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
7553         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
7554
7555         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
7556         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
7557         (ST_NODIRATIME): Restore fixed value of 2048.
7558         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
7559         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
7560
7561         Rearranged <bits/types.h> definitions to reduce duplication.
7562         * sysdeps/generic/bits/types.h: Rewritten, using macros from
7563         <bits/wordsize.h> and new header <bits/typesizes.h>.
7564         * posix/Makefile (headers): Add bits/typesizes.h here.
7565         * sysdeps/generic/bits/typesizes.h: New file.
7566         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
7567         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
7568         * sysdeps/mach/hurd/bits/typesizes.h: New file.
7569         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
7570         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
7571         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
7572         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
7573         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
7574         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
7575         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
7576         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
7577         <bits/pthreadtypes.h> here, not in <bits/types.h>.
7578         * signal/signal.h: Likewise.
7579
7580         * streams/stropts.h: Include <bits/xtitypes.h>.
7581         * streams/Makefile (headers): Add bits/xtitypes.h here.
7582         * sysdeps/generic/bits/xtitypes.h: New file.
7583         * sysdeps/s390/bits/xtitypes.h: New file.
7584         * sysdeps/ia64/bits/xtitypes.h: New file.
7585         * sysdeps/x86_64/bits/xtitypes.h: New file.
7586
7587         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
7588         * sysdeps/generic/bits/ipctypes.h: New file.
7589         * sysdeps/mips/bits/ipctypes.h: New file.
7590         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
7591         * sysdeps/gnu/bits/msq.h: Likewise.
7592         * sysvipc/sys/ipc.h: Likewise.
7593
7594 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
7595
7596         * elf/dl-load.c (struct filebuf): For buf element to have the
7597         alignment of ElfXX_Ehdr since this is what will be stored in it.
7598
7599 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
7600
7601         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
7602         into pointer to locrec_offset.
7603         (add_locale_to_archive): Adjust callers.  Free normalized_name right
7604         before returning, not immediately after add_locale, pass it to
7605         add_alias if not NULL instead of name.  Rename second normalized_name
7606         occurence to nnormalized_codeset_name.
7607
7608         * locale/programs/locarchive.c (enlarge_archive): Make sure
7609         string_size is always a multiple of 4.
7610         Reported by Andreas Schwab <schwab@suse.de>.
7611
7612 2002-10-21  Andreas Schwab  <schwab@suse.de>
7613
7614         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
7615         caller to EXTRA instead of execve, since the latter has a
7616         higher-priority implementation in linuxthreads.
7617
7618 2002-10-21  Roland McGrath  <roland@redhat.com>
7619
7620         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
7621         slotinfo list's len member to the proper size, not just 1.
7622         Initialize static_map.l_tls_initimage.
7623
7624         * elf/dl-open.c (dl_open_worker): Fix loop searching for
7625         dtv_slotinfo_list element containing new modules' l_tls_modid.
7626
7627         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
7628         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
7629         * elf/Makefile (tests): Add tst-tls9.
7630         (tests-static): Add tst-tls9-static.
7631         (tst-tls9-static-ENV): New variable.
7632         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
7633
7634         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
7635         modids used by partially loaded modules being closed can't be known.
7636
7637 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
7638
7639         * posix/Makefile: Add a test case for the bug reported by Aharon
7640         Robbins <arnold@skeeve.com>.
7641         * posix/bug-regex13.c: New file.
7642         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
7643
7644 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
7645
7646         * csu/gmon-start.c: Pretty printing.
7647
7648 2002-10-19  Art Haas  <ahaas@neosoft.com>
7649
7650         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
7651         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
7652         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
7653         * configure: Regenerated.
7654
7655 2002-10-19  Roland McGrath  <roland@redhat.com>
7656
7657         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
7658         and then set $subdirs directly, because the new Autoconf breaks
7659         compatibility in every way imaginable and insists on whining
7660         about usage that worked since the dawn of time.
7661         * configure: Regenerated.
7662
7663         * configure: Regenerated (using Autoconf 2.54).
7664         * sysdeps/alpha/elf/configure: Likewise.
7665         * sysdeps/generic/configure: Likewise.
7666         * sysdeps/i386/elf/configure: Likewise.
7667         * sysdeps/ia64/elf/configure: Likewise.
7668         * sysdeps/mach/hurd/configure: Likewise.
7669         * sysdeps/mach/configure: Likewise.
7670         * sysdeps/unix/configure: Likewise.
7671         * sysdeps/unix/common/configure: Likewise.
7672         * sysdeps/unix/sysv/aix/configure: Likewise.
7673         * sysdeps/unix/sysv/linux/configure: Likewise.
7674         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7675         * sysdeps/x86_64/elf/configure: Likewise.
7676
7677         * config.make.in: Nix completely-soft nonsense.
7678         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
7679         of machine directories instead of fpu subdirectory.
7680         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
7681         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
7682         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
7683         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
7684         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
7685         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
7686         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
7687         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
7688         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
7689         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
7690         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
7691         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
7692         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
7693         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
7694         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
7695         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
7696         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
7697         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
7698         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
7699         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
7700         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
7701         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
7702         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
7703         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
7704         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
7705         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
7706         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
7707         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
7708         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
7709         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
7710         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
7711         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
7712         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
7713         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
7714         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
7715         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
7716         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
7717         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
7718         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
7719         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
7720
7721 2002-10-19  Bruno Haible  <bruno@clisp.org>
7722
7723         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
7724
7725 2002-10-18  Roland McGrath  <roland@redhat.com>
7726
7727         * io/Makefile (routines): Add lchmod.
7728         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
7729         * sysdeps/generic/lchmod.c: New file.
7730         * sysdeps/mach/hurd/lchmod.c: New file.
7731         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
7732
7733 2002-10-18  Art Haas  <ahaas@neosoft.com>
7734
7735         * configure.in: Remove remaining AC_FD_CC macros, and replace
7736         AC_FD_MSG with AS_MESSAGE_FD.
7737
7738 2002-10-18  Roland McGrath  <roland@redhat.com>
7739
7740         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
7741         typos: VALUE -> FINALADDR.
7742
7743         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
7744         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
7745         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
7746         (inline_syscall6): Move these macros ...
7747         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
7748
7749         * configure.in (libc_link_dests, libc_link_sources): Remove these
7750         variables and the AC_LINK_FILES call.
7751
7752         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
7753         change to put new symbols here instead of in GLIBC_2.2.
7754         * sysdeps/powerpc/Subdirs: Move this file ...
7755         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
7756
7757 2002-10-07  Roland McGrath  <roland@redhat.com>
7758
7759         * sysdeps/generic/bits/time.h: Replaced with contents of the
7760         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
7761         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
7762         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
7763         macros is ok even for architectures that don't now implement them.
7764         * sysdeps/mach/hurd/bits/time.h: File removed.
7765         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
7766         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
7767         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
7768         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
7769         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
7770
7771 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
7772
7773         * configure.in: Replace obsolete AC_OUTPUT syntax with
7774         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
7775
7776         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
7777         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
7778
7779         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
7780         * sysdeps/alpha/elf/configure.in: Likewise.
7781         * sysdeps/i386/elf/configure.in: Likewise.
7782         * sysdeps/mach/hurd/configure.in: Likewise.
7783         * sysdeps/x86_64/elf/configure.in: Likewise.
7784
7785         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
7786
7787         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
7788         * sysdeps/generic/configure.in: Likewise.
7789         * sysdeps/i386/elf/configure.in: Likewise.
7790         * sysdeps/ia64/elf/configure.in: Likewise.
7791         * sysdeps/mach/configure.in: Likewise.
7792         * sysdeps/mach/hurd/configure.in: Likewise.
7793         * sysdeps/unix/configure.in: Likewise.
7794         * sysdeps/unix/common/configure.in: Likewise.
7795         * sysdeps/unix/sysv/aix/configure.in: Likewise.
7796         * sysdeps/unix/sysv/linux/configure.in: Likewise.
7797         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
7798         * sysdeps/x86_64/elf/configure.in: Likewise.
7799
7800         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
7801         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
7802         that it's obvious when extra autoconf machinery is being dragged in.
7803
7804 2002-10-18  Roland McGrath  <roland@redhat.com>
7805
7806         * configure.in: Remove bogus echo included in
7807         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
7808         * configure: Regenerated.
7809
7810 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
7811
7812         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
7813         (statfs_filesize_max): New function.
7814         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
7815         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
7816         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
7817         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
7818         statfs_filesize_max.
7819         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7820         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
7821         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
7822
7823 2002-10-17  Roland McGrath  <roland@redhat.com>
7824
7825         * configure.in (MIG): Just AC_SUBST it here.
7826         * configure: Regenerated.
7827         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
7828         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
7829         * sysdeps/mach/configure: Regenerated.
7830
7831         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
7832         and AC_PROVIDE([_AS_CR_PREPARE]).
7833
7834         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
7835         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
7836
7837         * elf/dl-support.c: Move _dl_tls_* variables to ...
7838         * sysdeps/generic/libc-tls.c: ... here.
7839
7840         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
7841         allow IDX to be one past the current last slotinfo entry.
7842         (_dl_close): Pass IMAP->l_init_called for that parameter.
7843
7844 2002-10-07  Andreas Schwab  <schwab@suse.de>
7845
7846         * aclocal.m4: Fix for autoconf 2.53.
7847         * configure.in: Likewise.  Require autoconf 2.53.
7848
7849 2002-10-08  Richard Henderson  <rth@redhat.com>
7850
7851         * soft-fp/op-4.h: Handle carry correctly in
7852         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
7853         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
7854         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
7855
7856 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
7857
7858         * configure.in: Compute completely-soft.
7859         * config.make.in: Make completely-soft available to sub-makes.
7860         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
7861         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
7862         fe_nomask to libm-support.
7863         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
7864         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
7865         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
7866         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
7867         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
7868         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
7869         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
7870         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
7871         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
7872         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
7873         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
7874         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
7875         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
7876         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
7877         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
7878         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
7879         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
7880         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
7881         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
7882         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
7883         __sim_round_mode.
7884         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
7885         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
7886         FP_HANDLE_EXCEPTIONS.
7887         Define FP_ROUNDMODE.
7888         Redefine FP_* macros to correspond to the FE_* bit positions.
7889         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
7890         Define externs for __sim_exceptions, __sim_disabled_exceptions,
7891         __sim_round_mode, __simulate_exceptions.
7892         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
7893         * sysdeps/powerpc/bits/fenv.h: ...to here.
7894
7895 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
7896
7897         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7898         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
7899         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
7900         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
7901         __builtin_expect.
7902
7903 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
7904
7905         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
7906         __libc_res_nsend): New prototypes.
7907         * resolv/res_query.c (QUERYSIZE): Define.
7908         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
7909         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
7910         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
7911         res_nsend, pass answerp.
7912         (res_nquery): Changed into wrapper around __libc_res_nquery.
7913         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
7914         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
7915         instead of the non-__libc_ variants, pass them answerp.
7916         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
7917         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
7918         Added answerp argument.  Call __libc_res_nquery instead of
7919         res_nquery, pass answerp.
7920         (res_nquerydomain): Changed into wrapper around
7921         __libc_res_nquerydomain.
7922         * resolv/res_send.c: Include sys/ioctl.h.
7923         (MAXPACKET): Define.
7924         (send_vc): Change arguments.  Reallocate answer buffer if it is
7925         too small.
7926         (send_dg): Likewise.
7927         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
7928         Reallocate answer buffer if it is too small and hooks are in use.
7929         Adjust calls to send_vc and send_dg.
7930         (res_nsend): Changed into wrapper around __libc_res_nsend.
7931         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
7932         just 1K answer buffer on the stack, use __libc_res_nsearch instead
7933         of res_nsearch.
7934         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
7935         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
7936         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
7937         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
7938         (gethostbyaddr): Similarly with __libc_res_nquery.
7939         * resolv/Versions (libresolv): Export __libc_res_nquery and
7940         __libc_res_nsearch at GLIBC_PRIVATE.
7941
7942 2002-10-17  Roland McGrath  <roland@redhat.com>
7943
7944         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
7945         * configure: Regenerated.
7946
7947         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
7948         before performing the reloc, not after.
7949         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7950
7951 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
7952
7953         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
7954         * locale/programs/linereader.c (lr_open): Likewise.
7955         * locale/programs/charmap-dir.c (charmap_open): Likewise.
7956         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7957
7958 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
7959
7960         * posix/bug-regex11.c: Add a test case for the bug reported by
7961         Paolo Bonzini <bonzini@gnu.org>.
7962         * posix/regexec.c (sift_states_bkref): Use correct destination of
7963         the back reference.
7964
7965 2002-10-17  Roland McGrath  <roland@redhat.com>
7966
7967         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
7968         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
7969         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
7970         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
7971         Call it after performing TPOFF relocs.
7972         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7973         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7974         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
7975
7976         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
7977         when closing a partially-initialized object.
7978
7979         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
7980         instead of _dl_fatal_printf when we see PT_TLS.
7981
7982         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
7983         instead of $(libof-$<).
7984
7985 2002-10-16  Roland McGrath  <roland@redhat.com>
7986
7987         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
7988         instead of += to append, to be sure $(lib) gets expanded at defn time.
7989         (libof-$(cpp-src)): New variable, define this instead.
7990         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
7991         (lib): Don't use override.
7992         (CPPFLAGS-$(lib)): New variable, put -D's here.
7993         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
7994         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
7995         LIB found by $(libof-*) for basename, target, or source.
7996         * Makerules (CPPFLAGS-nonlib): New variable.
7997         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
7998         * locale/Makefile (lib): Likewise.
7999         * sunrpc/Makefile (lib): Likewise.
8000
8001         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8002         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8003         * sysdeps/unix/sysv/linux/pathconf.h: New file.
8004         (statfs_link_max): New function, guts from fpathconf.c.
8005         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8006         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8007         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8008         to use the linux/pathconf.c code by #include rather than duplication.
8009         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8010
8011 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8012
8013         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8014         Use __libc_errno only for libc itself.
8015
8016 2002-10-16  Andreas Jaeger  <aj@suse.de>
8017
8018         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8019
8020 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
8021
8022         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8023         Use __libc_errno only for libc itself.
8024
8025 2002-10-15  Roland McGrath  <roland@redhat.com>
8026             Jakub Jelinek  <jakub@redhat.com>
8027
8028         * sysdeps/unix/sysv/linux/Makefile
8029         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8030         sparc/Makefile to produce a bi-arch file as needed.
8031         That's now parameterized by the variable $(64bit-predefine).
8032         Use LC_ALL=C for `comm' commands in that rule.
8033         No longer conditional on [$(no_syscall_list_h)].
8034         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8035         (64bit-predefine): New variable.
8036         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8037         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8038         * sysdeps/unix/sysv/linux/powerpc/Makefile
8039         (64bit-predefine): New variable.
8040
8041 2002-10-15  Roland McGrath  <roland@redhat.com>
8042
8043         * sysdeps/unix/sysv/linux/Makefile
8044         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8045
8046         * login/utmp-private.h: Declare __libc_utmp_lock.
8047         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8048         and call __libc_utmp_jump_table functions directly, instead of using
8049         __setutent et al.
8050
8051         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8052         * sysdeps/unix/sysv/linux/configure: Regenerated.
8053
8054         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8055         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8056         Use int32_t for ll_time.
8057         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8058         Use int32_t instead of long int for ut_session.
8059         Use an anonymous struct with 32-bit fields for ut_tv.
8060         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8061         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8062         here as in utmp.h for `struct utmp'.
8063         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8064         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8065         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8066         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8067         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8068         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8069
8070         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8071         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8072         All the following files were identical or equivalent to it.
8073         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8074         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8075         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8076         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8077         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8078         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8079         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8080         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8081         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8082         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8083
8084         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8085         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8086         Other than the previously incorrect sign of msg_iovlen, this is a
8087         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
8088         match their layouts as well, so the following are now identical to it.
8089         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8090         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8091         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8092         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8093         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8094
8095 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8096
8097         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8098         Define for 2.4+ kernels.
8099
8100         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8101         are known to have the vfork syscall.  Don't confuse the CPUs
8102         branch prediction unit by jumping to the return address.
8103
8104         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8105         support for reiserfs and xfs.
8106
8107         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8108         XFS link count.
8109         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8110         and XFS_LINK_MAX.
8111         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8112
8113 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
8114
8115         * include/libc-symbols.h (attribute_tls_model_ie): Define.
8116         * include/errno.h (errno): Define to __libc_errno in libc.so.
8117         Add attribute_tls_model_ie.
8118         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8119         Add attribute_tls_model_ie.
8120         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
8121         attribute_tls_model_ie.
8122         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8123         (h_errno): Define.
8124         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8125         (_res): Define.
8126         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8127         attribute_tls_model_ie.
8128         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8129         __thread.
8130         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8131         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8132         __libc_errno in USE___THREAD case.
8133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8134         Likewise.
8135         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8136         __attribute__((tls_model (""))).
8137         * configure: Rebuilt.
8138         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8139
8140 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
8141
8142         * timezone/asia: Update from tzdata2002d.
8143         * timezone/australasia: Likewise.
8144         * timezone/iso3166.tab: Likewise.
8145         * timezone/southamerica: Likewise.
8146         * timezone/zone-tab: Likewise.
8147
8148 2002-10-15  Roland McGrath  <roland@redhat.com>
8149
8150         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8151         Adjust TCB pointer before calling free, so we get the whole block.
8152
8153 2002-10-14  Roland McGrath  <roland@redhat.com>
8154
8155         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8156         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8157         extern using attribute_hidden instead of static, avoids warning.
8158
8159 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
8160
8161         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8162         * sysdeps/unix/sysv/linux/configure: Rebuilt.
8163
8164 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8165
8166         * po/sv.po: Update from translation team.
8167
8168 2002-10-12  H.J. Lu  <hjl@gnu.org>
8169
8170         * sunrpc/thrsvc.c (PROCQUIT): New.
8171         (struct rpc_arg): New.
8172         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8173         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8174         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8175         (main): Modified for struct rpc_arg *.
8176
8177 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8178
8179         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8180
8181 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
8182
8183         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8184         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8185         in ld.so even if __thread is supported.
8186
8187 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
8188
8189         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8190         Add hack to prevent the compiler from clobbering the signal context.
8191         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8192         Likewise.
8193         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8194         Likewise.
8195
8196 2002-10-14  Andreas Jaeger  <aj@suse.de>
8197
8198         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8199         Guido Guenther <agx@sigxcpu.org>.
8200
8201 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
8202
8203         * po/sk.po: Update from translation team.
8204
8205 2002-09-26  Roland McGrath  <roland@redhat.com>
8206
8207         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8208         dynamic string tag.
8209         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8210         DL_DST_LIB based on $(slibdir).
8211
8212 2002-10-13  Roland McGrath  <roland@frob.com>
8213
8214         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8215
8216         * sysdeps/mach/hurd/getresuid.c: New file.
8217         * sysdeps/mach/hurd/getresgid.c: New file.
8218         * sysdeps/mach/hurd/setresuid.c: New file.
8219         * sysdeps/mach/hurd/setresgid.c: New file.
8220
8221         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8222         setresgid): Declare them.
8223         * NEWS: Mention it.
8224         * include/unistd.h
8225         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8226         add libc_hidden_proto.
8227         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
8228         getresuid, getresgid, setresuid, setresgid here.
8229         * Versions.def (libc): Define GLIBC_2.3.2 set.
8230         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
8231         Add libc_hidden_def.
8232         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
8233         * sysdeps/generic/setresgid.c: New file.
8234         * sysdeps/generic/setresuid.c: New file.
8235         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8236         (sysdep_routines): Don't add getresuid and getresgid here.
8237         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
8238         (sysdep_routines): Don't add setresuid and setresgid here.
8239         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8240         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8241         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8242         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8243         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8244         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8245         * posix/Makefile (routines): Add them all here instead.
8246         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
8247         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
8248         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
8249         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
8250         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
8251         [! __NR_setresuid]: Include generic file.
8252         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
8253         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
8254         [! __NR_setresuid]: Include generic file.
8255         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
8256         Caller is - now, not EXTRA.
8257         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
8258         (setresuid, setresgid, getresuid, getresgid): Likewise.
8259         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
8260         Add these calls here.
8261         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
8262         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8263         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8264         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8265         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8268         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8269         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8270
8271         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8272         (sysdep_routines): Add setfsuid and setfsgid here.
8273         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
8274         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
8275         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8276         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8277         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8278         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8279         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8280         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8281
8282         * hurd/errno.c: Renamed to ...
8283         * hurd/errno-loc.c: ... this.
8284         * hurd/Makefile (routines): errno -> errno-loc
8285
8286 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
8287
8288         * po/de.po: Update from translation team.
8289
8290         * MakeTAGS: Add -E flag to xgettext runs.
8291
8292 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8293
8294         * po/fr.po: Update from translation team.
8295
8296         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
8297         Optimize a bit for use in glibc.
8298
8299 2002-10-12  Roland McGrath  <roland@redhat.com>
8300
8301         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
8302         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
8303
8304 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8305
8306         * po/sv.po: Update from translation team.
8307
8308 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
8309
8310         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
8311         OP_CONTEXT_NODE.
8312         (regfree): Likewise.
8313         (create_initial_state): Likewise.
8314         (analyze): Remove the substitutions which became useless.
8315         (calc_first): Likewise.
8316         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
8317         epsilon destination.
8318         (duplicate_node_closure): New function.
8319         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
8320         (calc_inveclosure): Likewise.
8321         (calc_eclosure): Likewise.
8322         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
8323         direct invocation of duplicate_node.
8324         (parse): Don't use comma operator in the return to avoid compiler
8325         warning.
8326         (parse_reg_exp): Likewise.
8327         (parse_branch): Likewise.
8328         (parse_expression): Likewise.
8329         (parse_sub_exp): Likewise.
8330         (parse_dup_op): Likewise.
8331         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
8332         which became useless.
8333         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
8334         (create_cd_newstate): Likewise.
8335         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
8336         (re_token_t): Likewise.
8337         (re_dfa_t): Likewise.
8338         (re_node_set_remove): New macro.
8339         * posix/regexec.c (check_matching): Remove the handling
8340         OP_CONTEXT_NODE.
8341         (check_halt_node_context): Likewise.
8342         (proceed_next_node): Likewise.
8343         (pop_fail_stack): Fix the memory leak.
8344         (set_regs): Likewise.
8345         (free_fail_stack_return): New function.
8346         (sift_states_backward): Fix the memory leak.  Remove the handling
8347         OP_CONTEXT_NODE.
8348         (update_cur_sifted_state): Append some if clause to avoid redundant
8349         call.
8350         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
8351         back reference.
8352         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
8353         (check_subexp_limits): Likewise.
8354         (search_subexp): Likewise.
8355         (sift_states_bkref): Likewise.
8356         (transit_state_mb): Likewise.
8357         (transit_state_bkref_loop): Likewise.
8358         (transit_state_bkref_loop): Likewise.
8359         (group_nodes_into_DFAstates): Likewise.
8360         (check_node_accept): Likewise.
8361         (sift_ctx_init): Add initializing.
8362
8363 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
8364
8365         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
8366         __builtin_expect.
8367
8368 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
8369
8370         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
8371         duplicated variable c.
8372
8373         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
8374         if possible.
8375
8376         * sysdeps/unix/sysv/linux/i386/sysdep.h
8377         (INTERNAL_SYSCALL_ERROR_P): New define.
8378         (INTERNAL_SYSCALL_ERRNO): Likewise.
8379
8380         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
8381         Add hack to prevent the compiler from clobbering the signal context.
8382
8383 2002-10-11  Roland McGrath  <roland@redhat.com>
8384
8385         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8386         Fix typos.
8387
8388         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
8389         * sysdeps/sh/dl-lookupcfg.h: File removed.
8390         * sysdeps/i386/dl-lookupcfg.h: File removed.
8391
8392         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
8393         missing labels and ; from last change.
8394
8395         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
8396         number literals, so they are doubles instead of ints.
8397
8398 2002-10-09  Roland McGrath  <roland@redhat.com>
8399
8400         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
8401         changed from [USE_TLS && HAVE___THREAD].
8402
8403         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
8404         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
8405         * sysdeps/x86_64/dl-machine.h
8406         (elf_machine_type_class, elf_machine_rela): Likewise.
8407         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
8408         Likewise.
8409
8410         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
8411         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
8412         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
8413
8414         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
8415         instead of ___tls_get_addr.
8416         (___tls_get_addr_internal): Add attribute_hidden to decl.
8417
8418         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
8419         _dl_error_catch_tsd.
8420         * elf/rtld.c (startup_error_tsd): New function.
8421         (dl_main): Point _dl_error_catch_tsd at that.
8422         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
8423         use new function pointer instead.
8424         * elf/dl-tsd.c: New file.
8425         * elf/Makefile (routines): Add it.
8426
8427 2002-10-07  Roland McGrath  <roland@redhat.com>
8428
8429         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
8430         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
8431         take _dl_load_lock around calling __writev.
8432
8433         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
8434         (INLINE_SYSCALL): Use that.
8435
8436         * sysdeps/generic/dl-sysdep.h: New file.
8437         * sysdeps/mach/hurd/dl-sysdep.h: New file.
8438         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
8439         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
8440         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
8441         access it directly.
8442         * elf/dl-minimal.c (__errno_location): Removed.
8443         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8444         Use GOTOFF access for errno.
8445         * sysdeps/unix/sysv/linux/i386/sysdep.h
8446         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8447
8448         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8449         Use PC-relative access for errno.
8450         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8451         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8452
8453         * include/tls.h: New file.
8454         (USE___THREAD): New macro.
8455         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
8456         libc or libpthread.
8457         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
8458         changed from [USE_TLS && HAVE___THREAD].
8459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8460         * sysdeps/unix/i386/sysdep.S: Likewise.
8461         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8462         * include/errno.h: Likewise.
8463         * include/netdb.h: Likewise.
8464         * include/resolv.h: Likewise.
8465
8466         * sysdeps/generic/errno.c: New file.
8467         * csu/Makefile (aux): New variable, list errno.
8468         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
8469         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
8470         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
8471         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8472         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8473         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
8474         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
8475         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
8476         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8477         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
8478         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
8479         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
8480         * sysdeps/unix/alpha/sysdep.S: Likewise.
8481         * sysdeps/generic/start.c: Likewise.
8482         * sysdeps/unix/start.c: Likewise.
8483         * sysdeps/unix/arm/start.c: Likewise.
8484         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
8485         * sysdeps/unix/sparc/start.c: Likewise.
8486         * sysdeps/unix/sysv/irix4/start.c: Likewise.
8487         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
8488
8489         * manual/search.texi (Tree Search Function, Hash Search Function):
8490         Mention search.h clearly.
8491
8492 2002-10-05  Roland McGrath  <roland@redhat.com>
8493
8494         * elf/dl-fxstat64.c: File removed.
8495         * elf/dl-xstat64.c: File removed.
8496         * elf/Makefile (rtld-routines): Remove them.
8497         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
8498         Instead, use strong_alias instead of versioned_symbol in the
8499         !SHLIB_COMPAT case.
8500         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
8501         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8502
8503         * include/shlib-compat.h
8504         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
8505         [! NOT_IN_libc] (IS_IN_libc): Define it.
8506         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
8507         * elf/Makefile (CPPFLAGS-.os): Likewise.
8508
8509         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
8510         Return the status instead of calling exit.
8511
8512         * Makeconfig (CFLAGS): Prepend -std=gnu99.
8513         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
8514         Remove superfluous rm command, whose @ plus make bugs hid
8515         all these commands from the make output.
8516
8517         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
8518         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
8519         Use that file's contents instead of literal echo's for the prologue.
8520         * include/features.h: Include <gnu/stubs.h> unconditionally.
8521         * include/gnu/stubs.h: New file.
8522
8523 2002-09-30  Roland McGrath  <roland@redhat.com>
8524
8525         * elf/rtld-Rules: New file.
8526         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
8527         $(objpfx)rtld-libc.a): New targets.
8528         (generated): Add them.
8529         (reloc-link): Remove -o $@ from the variable.
8530         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
8531         (distribute): Add rtld-Rules.
8532         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
8533         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
8534         (common-mostlyclean, common-clean): Clean up rtld-* files.
8535         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
8536
8537 2003-05-20  Jakub Jelinek  <jakub@redhat.com>
8538
8539         * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
8540         If temp != NULL, copy dynamic entries which need relocation to temp
8541         array before relocating.
8542         (DL_RO_DYN_TEMP_CNT): Define.
8543         * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
8544         * elf/rtld.c (_dl_start): Likewise.
8545         (dl_main): Likewise.  Add dyn_temp static variable.
8546
8547 2002-10-11  Roland McGrath  <roland@redhat.com>
8548
8549         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
8550         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
8551
8552         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
8553         proper set of no-op insn prefixes.
8554
8555         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
8556
8557 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
8558
8559         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
8560         __pthread_kill_other_threads_np.
8561
8562         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
8563
8564 2002-10-08  Roland McGrath  <roland@redhat.com>
8565
8566         * locale/newlocale.c (__newlocale): If setting all categories to "C",
8567         just return &_nl_C_locobj instead of copying it.
8568         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
8569         * locale/duplocale.c (__duplocale): Likewise.
8570
8571 2002-10-07  Roland McGrath  <roland@frob.com>
8572
8573         * config.h.in (HAVE_I386_SET_GDT): New #undef.
8574         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
8575         * sysdeps/mach/configure: Regenerated.
8576
8577 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8578
8579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
8580         Add all necessary register outputs for syscall-clobbered registers.
8581
8582 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
8583
8584         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
8585         Itanium 2 (and Itanium).
8586         Fix unwind directives and make it fit in 80 columns.
8587         * sysdeps/ia64/memset.S: Likewise.
8588         * sysdeps/ia64/memcpy.S: Likewise.
8589         Move jump table to .rodata section.
8590
8591 2002-10-03  Roland McGrath  <roland@frob.com>
8592
8593         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
8594         clobbers to asm.
8595
8596 2002-10-10  Andreas Jaeger  <aj@suse.de>
8597
8598         * sysdeps/x86_64/_mcount.S: Restore correct registers.
8599
8600 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
8601
8602         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
8603
8604 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
8605
8606         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
8607         _dl_allocate_tls_init.  Add rtld_hidden_proto.
8608         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
8609         rtld_hidden_def.
8610         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
8611
8612         * version.h (VERSION): Bump to 2.3.1.
8613
8614         * Make-dist: Add back one of the tar invocations removed before.
8615
8616         * stdlib/Makefile (distribute): Add allocalim.h.
8617
8618         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
8619         (__libc_tsd_address): Use correct variable name.
8620         Patch by Stefan Jones <stefan.jones@multigig.com>.
8621
8622         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
8623         Reported by edwardsg@sgi.com [PR libc/4678].
8624
8625         * Versions.def (libc): Add GLIBC_2.3.1.
8626         (libpthread): Add GLIBC_2.3.1.
8627
8628         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
8629         and __sigtimedwait.
8630         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
8631         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
8632         libc_hidden_def.
8633         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
8634         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
8635
8636         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
8637         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
8638         and make old name an alias.
8639         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
8640         and make old name an alias.
8641         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
8642         __libc_msgsnd.
8643
8644         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
8645         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
8646         __libc_writev.
8647         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
8648         old name an alias.
8649         * sysdeps/posix/readv.c: Likewise
8650         * sysdeps/unix/sysv/aix/readv.c: Likewise.
8651         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8652         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
8653         old name an alias.
8654         * sysdeps/posix/writev.c: Likewise
8655         * sysdeps/unix/sysv/aix/writev.c: Likewise.
8656         * sysdeps/unix/sysv/linux/writev.c: Likewise.
8657
8658         * include/sys/wait.h: Declare __waitid.
8659         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
8660         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
8661         name an alias.
8662         * sysdeps/posix/waitid.c: Likewise.
8663         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
8664
8665         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
8666
8667 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
8668
8669         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
8670         prototypes.
8671         (__MAX_ALLOCA_CUTOFF): Define.
8672         Include allocalim.h.
8673         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
8674         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
8675         host_buffer depending on __libc_use_alloca.
8676         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
8677         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
8678         net_buffer depending on __libc_use_alloca.
8679         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
8680         buf depending on __libc_use_alloca.
8681         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
8682         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
8683         instead of hardcoded constants.
8684         Pass proper size argument to alloca and compute end for wide char
8685         version.
8686         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
8687         instead of hardcoded constants.
8688         * string/strcoll.c (strcoll): Likewise.
8689         * string/strxfrm.c (strxfrm): Likewise.
8690         * sysdeps/posix/readv.c (__readv): Likewise.
8691         * sysdeps/posix/writev.c (__writev): Likewise.
8692         * sysdeps/generic/allocalim.h: New file.
8693
8694 2002-10-08  Roland McGrath  <roland@redhat.com>
8695
8696         * configure.in (aux_missing warning): Change "too old" to
8697         "incompatible versions", since for autoconf it's "too new" right now.
8698         * configure: Regenerated.
8699
8700         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
8701         one found doesn't work on our configure.in.
8702         * configure: Regenerated.
8703         * config.make.in (AUTOCONF): New substituted variable.
8704         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
8705         (autoconf-it): ... here, use that instead of defining conditionally.
8706         Use $(AUTOCONF) instead of literal autoconf.
8707         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
8708         with this condition.
8709         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
8710
8711 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
8712
8713         * Make-dist (dist): Cleanup a bit.  We are not interested in the
8714         14 char filename limit anymore.  Remove intermediate files and
8715         symlinks.
8716
8717 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
8718
8719         * po/sk.po: Update from translation team.
8720         * po/tr.po: Likewise.
8721         * po/gl.po: Likewise.
8722
8723 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8724
8725         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
8726
8727 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
8728
8729         * version.h (RELEASE): Change to stable.
8730
8731 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
8732
8733         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
8734         __syscall_exit_group): New prototypes.
8735
8736 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
8737
8738         * glibc 2.3 released.
8739
8740
8741 See ChangeLog.13 for earlier changes.