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