* elf/Makefile (test-extras): Define this instead of test-srcs.
[platform/upstream/glibc.git] / ChangeLog
1 2002-09-23  Roland McGrath  <roland@redhat.com>
2
3         * elf/Makefile (test-extras): Define this instead of test-srcs.
4         * Makerules (all-nonlib): Include $(test-extras) too.
5
6 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
7
8         * sysdeps/hppa/abort-instr.h: New file.
9
10 2002-09-22  Roland McGrath  <roland@frob.com>
11
12         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
13
14         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
15
16 2002-09-22  Andreas Schwab  <schwab@suse.de>
17
18         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
19
20         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
21         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
22         Use GCC builtins.
23
24 2002-09-21  Roland McGrath  <roland@redhat.com>
25
26         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
27         Correct the value so it covers all platforms, and is computed
28         from _DL_PLATFORMS_COUNT rather than hard-wired.
29         From Andrew Suffield <asuffield@debian.org>.
30
31 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
32
33         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
34         locking when using mount tab file.
35         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
36         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
37         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
38
39         * elf/dl-init.c (_dl_init): Fix test of the size of the
40         preinit_array section.
41         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
42         Reported by Brian Cabral <cabral@ikuni.com>.
43
44 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
45
46         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
47         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
48         specific macros copied from sysdeps/powerpc/sysdep.h.
49         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
50         specific macros.
51         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
52         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
53         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
54
55 2002-09-19  Bruno Haible  <bruno@clisp.org>
56
57         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
58         returning.
59
60 2002-09-17  Bruno Haible  <bruno@clisp.org>
61
62         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
63         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
64         also on platforms with !HAVE_UT_TYPE.
65         (proc_utmp_eq): Remove function.
66         (internal_getut_r, pututline_file): Call __utmp_equal instead.
67
68 2002-09-20  Bruno Haible  <bruno@clisp.org>
69
70         * abi-tags: Add support for FreeBSD with ABI OS value 3.
71         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
72
73 2002-09-20  Roland McGrath  <roland@redhat.com>
74
75         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
76         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
77         terms of __WORDSIZE.
78         * sysdeps/x86_64/gmp-mparam.h: File removed.
79         * sysdeps/sparc/gmp-mparam.h: File removed.
80         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
81         * sysdeps/ia64/gmp-mparam.h: File removed.
82         * sysdeps/alpha/gmp-mparam.h: File removed.
83
84 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
85
86         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
87         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
88         casts.  Align __libc_stack_end to 8 bytes.
89
90 2002-09-20  Roland McGrath  <roland@redhat.com>
91
92         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
93         instead of asm for lrintf, __lrintf aliases.
94
95         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
96         int array for 32-/64-bit compatibility.
97         From Steven Munroe  <sjmunroe@us.ibm.com>.
98
99 2002-09-17  Bruno Haible  <bruno@clisp.org>
100
101         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
102         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
103         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
104         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
105         for iterating through the list of interfaces.
106         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
107
108 2002-09-20  Roland McGrath  <roland@redhat.com>
109
110         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
111         Reported by Bruno Haible <bruno@clisp.org>.
112
113         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
114
115         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
116         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
117         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
118
119 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
120
121         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
122         * sysdeps/powerpc/bits/wordsize.h: New file.
123         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
124         array to int array for 32-/64-bit compatibility.
125
126 2002-09-20  Roland McGrath  <roland@redhat.com>
127
128         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
129
130         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
131         Reported by Bruno Haible <bruno@clisp.org>.
132
133         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
134         before doubling RQ_LEN.
135         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
136         Reported by Bruno Haible <bruno@clisp.org>.
137
138 2002-09-18  Bruno Haible  <bruno@clisp.org>
139
140         * login/logout.c (logout): Don't assume ut_time has the same size as
141         a time_t.
142         * login/logwtmp.c (logwtmp): Likewise.
143
144         * sysdeps/pthread/configure: New file, moved here from
145         linuxthreads/sysdeps/unix/sysv/linux/configure.
146
147 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
148
149         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
150         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
151         Reported by Glen Nakamura <glen@imodulo.com>.
152
153 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
154
155         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
156         thread's sigstate data structure if it has been allocated.
157
158 2002-09-19  Roland McGrath  <roland@redhat.com>
159
160         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
161         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
162
163 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
164
165         * version.h (VERSION): Bump to 2.2.94.
166
167         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
168         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
169         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
171
172         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
173
174         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
175
176         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
177
178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
179
180 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
181
182         * sysdeps/wordsize-32/Makefile: New file.
183         * sysdeps/arm/Makefile: Removed.
184         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
185         Don't add divdi3 here.
186         * sysdeps/m68k/Makefile: Likewise.
187         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
188         * sysdeps/sh/Makefile: Likewise.
189         * sysdeps/s390/s390-32/Makefile: Likewise.
190
191 2002-09-18  Roland McGrath  <roland@redhat.com>
192
193         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
194         the __ctype_* compat symbols, so the relocs generated bind to the
195         right versioned global symbol in the shared object.
196
197         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
198         from the value taken from the DT_VERSYM table.
199         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
200         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
201         (RESOLVE_GOTSYM): Likewise.
202
203         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
204         Add libc_hidden_def.
205         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
206         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
207         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
208         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
209         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
210         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
211         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
212         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
213
214 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
215
216         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
217
218         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
219         define sigaction and __sigaction as wrappers around
220         __libc_sigaction which rejects changing SIGCANCEL.
221         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
222
223         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
224         SETTID/CLEARTID.
225
226         * signal/allocrtsig.c: Move to...
227         * sysdeps/generic/allocrtsig.c: ...here.  New file.
228
229 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
230
231         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
232
233         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
234         R_386_TLS_LE): Define.
235         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
236         comments.
237         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
238         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
239         (elf_machine_rel): Handle R_386_TLS_TPOFF.
240         (elf_machine_rela): Likewise.
241         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
242
243 2002-09-17  Roland McGrath  <roland@redhat.com>
244
245         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
246         file-specific variable override so it compiles properly when using
247         --with-headers.
248
249 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
250
251         Ported to PowerPC64 running Linux.
252         * sysdeps/powerpc/powerpc64/Dist: New file.
253         * sysdeps/powerpc/powerpc64/Implies: New file.
254         * sysdeps/powerpc/powerpc64/Makefile: New file.
255         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
256         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
257         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
258         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
259         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
260         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
261         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
262         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
263         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
264         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
265         * sysdeps/powerpc/powerpc64/memset.S: New file.
266         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
267         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
268         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
269         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
270         * sysdeps/powerpc/powerpc64/strchr.S: New file.
271         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
272         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
273         * sysdeps/powerpc/powerpc64/strlen.S: New file.
274         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
275         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
276         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
277         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
285
286         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
287         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
288         various gcc versions.  Dot names required for powerpc64.
289         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
290         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
291         C_SYMBOL_DOT_NAME(alias).
292         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
293         original strong_alias macro.
294         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
295         C_SYMBOL_DOT_NAME(alias).
296         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
297         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
298         '.'ed name.
299         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
300         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
301         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
302         (hidden_def): Append hidden_dot_def1 macro to definition.
303         (hidden_ver): Append hidden_dot_def1 macro to definition.
304         (hidden_data_def): New macro.  Same as original hidden_def macro.
305         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
306         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
307         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
308         (hidden_weak): Append hidden_dot_weak1 macro to definition.
309         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
310         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
311         Otherwise defined as __GI_name.
312         (libc_hidden_data_def): New macro.  Use hidden_data_def.
313         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
314         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
315         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
316         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
317         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
318         (libm_hidden_data_def): New macro.  Use hidden_data_def.
319         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
320         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
321         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
322
323 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
324
325         * include/libc-symbols.h: Change *hidden_proto macros to accept
326         option parameters and pass those to the attribute definition.
327         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
328
329         * include/unistd.h: Declare __libc_pause.
330
331         * include/sys/socket.h: Declare __libc_send, __libc_recv,
332         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
333
334         * include/unistd.h: Declare __libc_fork.
335
336 2002-09-17  Roland McGrath  <roland@redhat.com>
337
338         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
339         (passwd2des): Define it as an alias.
340         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
341
342 2002-09-12  Bruno Haible  <bruno@clisp.org>
343
344         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
345         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
346
347         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
348         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
349
350 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
351
352         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
353         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
354         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
355         PowerPC64 does not have separate 64-bit syscalls.
356
357 2002-09-16  Roland McGrath  <roland@redhat.com>
358
359         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
360
361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
362         New macro.
363
364         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
365
366         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
367         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
368         * sysdeps/generic/_exit.c: Likewise.
369
370 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
371
372         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
373
374         * elf/rtld.c (struct dl_start_final_info): New.
375         (_dl_start_final): Change second argument to struct
376         dl_start_final_info *.  Set start_time from info.
377         (_dl_start): Remove bootstrap_map variable, add info.
378         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
379         store HP_TIMING_NOW result into info.start_time.
380
381 2002-09-16  Andreas Jaeger  <aj@suse.de>
382
383         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
384         to _Exit.
385         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
386
387 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
388
389         * sysdeps/powerpc/abort-instr.h: New file.
390
391 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
392
393         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
394         comment.
395
396         * test-skeleton.c (main): Provide more information in case waitpid
397         fails.
398
399         * include/unistd.h: Declare __exit_thread.
400         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
401         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
402         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
403         * sysdeps/unix/sysv/linux/_exit.c: New file.
404         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
405         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
406         Add exit-thread.
407
408         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
409
410 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
411
412         * sysdeps/i386/dl-machine.h (elf_machine_rel)
413         (case R_386_TLS_DTPMOD32): Don't use addend.
414         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
415         (elf_machine_rela): Add support for TLS relocs.
416
417 2002-09-14  Roland McGrath  <roland@redhat.com>
418
419         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
420
421 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
422
423         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
424         specific asm macros for multiple percision integer math.
425
426 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
427
428         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
429         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
430         Remove per-machine conditionals for FLAG_* cases.
431         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
432         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
434
435 2002-09-10  Alan Modra <amodra@bigpond.net.au>
436
437         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
438         defined in entry.h.
439         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
440         lowest address for profiling in  __monstartup call.
441         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
442
443 2002-09-14  Roland McGrath  <roland@redhat.com>
444
445         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
446         instead of __NR_pread.
447         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
448         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
449         instead of __NR_pwrite.
450         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
451
452 2002-09-13  Roland McGrath  <roland@redhat.com>
453
454         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
455
456 2002-09-13  Andreas Jaeger  <aj@suse.de>
457
458         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
459         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
460
461 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
462
463         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
464
465 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
466
467         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
468         reading the headers.
469
470 2002-09-12  Roland McGrath  <roland@redhat.com>
471
472         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
473         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
474         find the ELF header.
475
476         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
477         executable if needed, in case it's actually a shared object.
478
479 2002-09-11  Roland McGrath  <roland@redhat.com>
480
481         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
482         l_map_start to adjust l_tls_initimage.
483
484         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
485         when using h_errno and it's not set to NETDB_INTERNAL.
486         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
487
488         * Makefile ($(common-objpfx)testrun.sh): New target.
489         (others): Depend on it.
490         (postclean-generated): Append it.
491
492         * nss/bug-erange.c: New file.
493         * nss/Makefile (tests): Add it.
494
495         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
496         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
497
498         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
499         strncmp, keeps the code smaller for a non-performance-critical case.
500
501         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
502         no longer wrongly matches arbitrary prefixes of NAME.
503         Reported by Jakub Jelinek <jakub@redhat.com>.
504
505 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
506
507         * posix/bug-regex11.c (tests): New array.
508         (main): Rewritten to run more different tests.
509
510 2002-09-10  Roland McGrath  <roland@redhat.com>
511
512         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
513         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
514         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
515
516         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
517         well so we don't get it declared by include/math.h's hidden_proto.
518         Then do hidden_proto for __isnanf locally so hidden_def works right.
519
520         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
521         a cast to turn nl_langinfo return value into an integer.
522
523 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
524
525         * posix/regexec.c (build_trtable): Fix the destination of
526         newline to prevent wrong states from overwriting.
527         Append break statements to optimization.
528
529 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
530
531         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
532         (build_range_exp): Add castings to strlen invocations.
533         (build_collating_symbol): Restore the type of characters from "char"
534         to "unsigned char", and supplement castings.
535         (build_collating_symbol): Likewise.
536         (build_equiv_class): Likewise.
537         (build_charclass): Likewise.
538         (seek_collating_symbol_entry): Likewise.
539         (parse_bracket_exp): Likewise.
540         (build_word_op): Supplement a casting.
541         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
542         (re_string_allocate): Fix castings.
543         (re_string_construct): Likewise.
544         (re_string_construct_common): Likewise.
545         (re_string_realloc_buffers): Likewise.
546         (build_wcs_buffer): Likewise.
547         (build_wcs_upper_buffer): Likewise.
548         (re_string_skip_chars): Likewise.
549         (re_string_reconstruct): Likewise.
550         * posix/regex_internal.h: Restore the type of characters in
551         re_string_t and bracket_elem_t from "char" to "unsigned char".
552         (re_string_elem_size_at): Fix castings.
553         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
554         (transit_state_bkref_loop): Restore the type of characters from
555         "char" to "unsigned char", and append a cast to "char*" pointer in
556         array subscript.
557         (check_node_accept_bytes): Likewise.
558         (find_collation_sequence_value): Likewise.
559
560 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
561
562         * sysdeps/mips/memcpy.S: New file.
563         * sysdeps/mips/memset.S: New file.
564         * sysdeps/mips/fpu/e_sqrt.c:  New file.
565         * sysdeps/mips/fpu/e_sqrtf.c: New file.
566
567         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
568         functional before. Also removed all SHLIB_COMPAT stuff.
569         * fpu/fegetenv.c: Likewise.
570         * fpu/fesetenv.c:: Likewise.
571         * fpu/feupdateenv.c: Likewise.
572         * fpu/fgetexcptflg.c: Likewise.
573         * fpu/fraiseexcpt.c: Likewise.
574
575         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
576
577 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
578
579         * include/math.h (__finite_internal, __finitef_internal,
580         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
581         (isfinite): Remove.
582         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
583         __isinfl, __isnanl): Add hidden_proto.
584         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
585         libm_hidden_proto.
586         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
587         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
588         __is{inf,nan} calls.
589         * stdio-common/printf_size.c (printf_size): Likewise.
590         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
591         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
592         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
593         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
594         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
595         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
596         (__finite): Add hidden_def.
597         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
598         (__finitef): Add hidden_def.
599         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
600         (__finitel): Add hidden_def.
601         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
602         hidden_def.
603         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
604         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
605         libm_hidden_def.
606         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
607         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
608         hidden_def.
609         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
610         (__isinfl): Remove INTDEF.
611         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
612         hidden_def.
613         (__isnanl): Remove INTDEF.
614         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
615         libm_hidden_def.
616         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
617         instead of sin and cos.
618         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
619         Add hidden_def.
620         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
621         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
622         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
623         libm_hidden_def.
624         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
625         Add hidden_def.
626         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
627         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
628         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
629         libm_hidden_def.
630         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
631         libm_hidden_def.
632         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
633         Add hidden_def.
634         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
635         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
636         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
637         libm_hidden_def.
638         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
639         __finitel_internal): Remove aliases.
640         (__finite, __finitef, __finitel): Add hidden_def.
641         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
642         __isnanl_internal): Remove aliases.
643         (__isnan, __isnanf, __isnanl): Add hidden_def.
644         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
645         __isinfl_internal): Remove aliases.
646         (__isinf, __isinff, __isinfl): Add hidden_def.
647         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
648         __fpclassifyl): Add libm_hidden_def.
649         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
650         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
651         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
652         (hidden_defx): Define and use.
653         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
654         libm_hidden_def.
655         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
656         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
657         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
658         Remove INTDEF.
659         (__isnan, __isnanf): Add hidden_def.
660         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
661         (__finitel): Add libm_hidden_def.
662         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
663
664         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
665         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
666         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
667         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
668         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
669         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
670         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
671         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
672         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
673         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
674         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
675         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
676         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
677         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
678         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
679         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
680         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
681         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
682         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
683         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
684         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
685         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
686         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
687         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
688         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
689         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
690         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
691
692 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
693
694         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
695
696 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
697
698         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
699         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
700
701 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
702
703         * string/stratcliff.c: Some more strncpy tests.
704         Patch by Daniel Jacobowitz <drow@mvista.com>.
705
706 2002-09-08  Roland McGrath  <roland@redhat.com>
707
708         * resolv/resolv.h: Include <sys/types.h> for u_long even in
709         the [__need_res_state] case.
710         Reported by Bruno Haible <bruno@clisp.org>.
711
712 2002-09-04  Bruno Haible  <bruno@clisp.org>
713
714         * sysdeps/generic/bits/ustat.h: Comment fix.
715         * io/sys/sendfile.h: Comment fix.
716         * sysdeps/posix/pread.c: Comment fix.
717         * sysdeps/posix/pread64.c: Comment fix.
718         * sysdeps/posix/pwrite.c: Comment fix.
719         * sysdeps/posix/pwrite64.c: Comment fix.
720
721 2002-09-06  Roland McGrath  <roland@redhat.com>
722
723         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
724         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
725         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
726         (_UTSNAME_MACHINE_LENGTH): Likewise.
727         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
728
729 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
730
731         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
732         test for filesystem type name of mount points.
733
734         * include/errno.h: Use errno definition with __thread for now only
735         in libc and ld.so.
736
737         * test-skeleton.c (main): Improve error message for unexpected
738         signal case.
739
740 2002-09-05  Roland McGrath  <roland@redhat.com>
741
742         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
743         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
744
745 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
746
747         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
748         case of failure.
749
750 2002-09-04  Bruno Haible  <bruno@clisp.org>
751
752         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
753         sigset_get_old_mask): Turn into inline functions.
754         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
755         sigset_get_old_mask): Likewise.
756         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
757         sigset_get_old_mask): Likewise.
758         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
759         syntax.
760
761         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
762
763         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
764         default definitions.
765         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
766         _sys_nerr_internal instead of _sys_nerr.
767
768         * nscd/connections.c (handle_request): Declare CALLER inside #if.
769
770 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
771
772         * sysdeps/powerpc/__longjmp.S: Moved to...
773         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
774         * sysdeps/powerpc/add_n.S: Moved to...
775         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
776         * sysdeps/powerpc/addmul_1.S: Moved to...
777         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
778         * sysdeps/powerpc/atomicity.h: Moved to...
779         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
780         * sysdeps/powerpc/backtrace.c: Moved to...
781         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
782         * sysdeps/powerpc/bp-asm.h: Moved to...
783         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
784         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
785         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
786         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
787         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
788         * sysdeps/powerpc/dl-machine.c: Moved to...
789         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
790         * sysdeps/powerpc/dl-machine.h: Moved to...
791         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
792         * sysdeps/powerpc/dl-start.S: Moved to...
793         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
794         * sysdeps/powerpc/gprrest0.S: Moved to...
795         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
796         * sysdeps/powerpc/gprrest1.S: Moved to...
797         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
798         * sysdeps/powerpc/gprsave0.S: Moved to...
799         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
800         * sysdeps/powerpc/gprsave1.S: Moved to...
801         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
802         * sysdeps/powerpc/lshift.S: Moved to...
803         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
804         * sysdeps/powerpc/memset.S: Moved to...
805         * sysdeps/powerpc/powerpc32/memset.S: ...here.
806         * sysdeps/powerpc/mul_1.S: Moved to...
807         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
808         * sysdeps/powerpc/ppc-mcount.S: Moved to...
809         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
810         * sysdeps/powerpc/register-dump.h: Moved to...
811         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
812         * sysdeps/powerpc/rshift.S: Moved to...
813         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
814         * sysdeps/powerpc/setjmp.S: Moved to...
815         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
816         * sysdeps/powerpc/stpcpy.S: Moved to...
817         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
818         * sysdeps/powerpc/strchr.S: Moved to...
819         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
820         * sysdeps/powerpc/strcmp.S: Moved to...
821         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
822         * sysdeps/powerpc/strcpy.S: Moved to...
823         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
824         * sysdeps/powerpc/strlen.S: Moved to...
825         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
826         * sysdeps/powerpc/sub_n.S: Moved to...
827         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
828         * sysdeps/powerpc/submul_1.S: Moved to...
829         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
830         * sysdeps/powerpc/elf/bzero.S: Moved to...
831         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
832         * sysdeps/powerpc/elf/start.S: Moved to...
833         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
834         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
835         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
836         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
837         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
838         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
839         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
840         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
841         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
842         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
843         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
844         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
845         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
846         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
848         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
850         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
852         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
854         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
856         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
858         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
860         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
861         powerpc/powerpc64.
862
863 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
864
865         * FAQ.in: Add powerpc64 to supported targets list. Also state the
866         minimum gcc version is 3.2
867         * README: Add powerpc64 to supported targets list.
868         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
869         Add powerpc64 and machine=powerpc/powerpc64.
870         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
871         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
872         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
873         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
874         * sysdeps/powerpc/powerpc32/Dist: New file.
875         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
876         * sysdeps/powerpc/powerpc32/Implies: New file.
877         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
878         ($(with-fp) = no): Move test to powerpc32/Makefile.
879         ($(subdir) = misc): Move to powerpc32/Makefile.
880         ($(build-shared) = yes): Move to powerpc32/Makefile.
881         ($(subdir) = csu): Move to powerpc32/Makefile.
882         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
883         * sysdeps/powerpc/powerpc32/Makefile: New file.
884         * sysdeps/powerpc/Versions: Remove libgcc functions.
885         * sysdeps/powerpc/powerpc32/Versions: New file.
886         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
887         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
888         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
889         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
890         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
891         ($machine): Add powerpc/powerpc64 to if ... | for
892         libc_cv_slibdir=/libc64.
893         (powerpc*): Set ldd_rewrite_script.
894         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
895         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
897         Add clone.S.
898         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
899         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
900         functions.  Remove GLIBC_2.2 functions except getrlimit and
901         setrlimit.  Moved them to ...
902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
903
904 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
905
906         * libio/tst-atime.c: Include <errno.h>.
907         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
908
909 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
910
911         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
912         warnings of some compilers.
913         (build_collating_symbol): Change the type of characters from
914         "unsigned char" to "char", and append a cast to "char*" pointer in
915         array subscript.
916         (build_collating_symbol): Likewise.
917         (build_equiv_class): Likewise.
918         (build_charclass): Likewise.
919         (re_compile_pattern): Remove incorrect cast.
920         (re_compile_fastmap_iter): Change the type of characters from
921         "unsigned char" to "char", and append a cast to "char*" pointer
922         in array subscript.
923         (parse_bracket_exp): Likewise.
924         * posix/regex_internal.c (re_string_construct_common): Likewise.
925         (re_string_allocate): Likewise.
926         (re_string_construct): Likewise.
927         (re_string_realloc_buffers): Likewise.
928         (build_wcs_buffer): Likewise.
929         (re_string_reconstruct): Likewise.
930         * posix/regex_internal.h: Change the type of characters in
931         re_string_t and bracket_elem_t from "unsigned char" to "char".
932         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
933         warnings of some compilers.
934         (transit_state_bkref_loop): Change the type of characters from
935         "unsigned char" to "char", and append a cast to "char*" pointer in
936         array subscript.
937         (check_node_accept_bytes): Likewise.
938         (find_collation_sequence_value): Likewise.
939
940 2002-09-04  Roland McGrath  <roland@redhat.com>
941
942         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
943         from 1024 to 65536, to avoid buffer overrun.
944
945 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
946
947         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
948
949 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
950
951         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
952         for filesystem.
953
954 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
955
956         * posix/bug-regex11.c: New test.
957         * posix/Makefile (tests): Add bug-regex11.
958
959 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
960
961         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
962         newlocale.
963
964 2002-09-02  Roland McGrath  <roland@redhat.com>
965
966         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
967         __pthread_initialize_minimal and __libc_check_standard_fds to
968         match the generic version.
969
970         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
971         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
972
973         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
974         warnings on platorms where char is unsigned.
975
976 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
977
978         * version.h (VERSION): Bump to 2.2.93.
979
980         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
981
982 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
983
984         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
985         as relocated.
986
987 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
988
989         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
990
991 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
992
993         * locale/localeinfo.h (struct locale_data): Add private.ctype.
994         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
995         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
996         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
997         (__wcsmbs_load_conv): Remove const from argument.
998         (_nl_cleanup_ctype): New proto.
999         (get_gconv_fcts): New function.
1000         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1001         (__wcsmbs_to_wc): Rename back to...
1002         (to_wc): ... this.
1003         (__wcsmbs_gconv_fcts): Rename to...
1004         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1005         (lock): Removed.
1006         (__libc_setlocale_lock): New extern.
1007         (__wcsmbs_load_conv): Remove const from argument.
1008         Initialize new_category->private.ctype instead of a global
1009         variable.
1010         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1011         update_function_ptrs.  No locking is necessary.
1012         (_nl_cleanup_ctype): New function.
1013         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1014         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1015         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1016         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1017         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1018         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1019         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1020         * wcsmbs/wctob.c (wctob): Likewise.
1021         * stdlib/mblen.c (mblen): Likewise.
1022         * stdlib/mbtowc.c (mbtowc): Likewise.
1023         * stdlib/wctomb.c (wctomb): Likewise.
1024         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1025         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1026         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1027         Removed.
1028
1029 2002-09-02  Roland McGrath  <roland@frob.com>
1030
1031         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1032
1033 2002-09-01  Roland McGrath  <roland@redhat.com>
1034
1035         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1036         Variable declarations removed.
1037         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1038         these functions to replace them.
1039         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1040         functions plus an indirection rather than the old global variables.
1041         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1042         Macros removed.
1043         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1044         inline functions.
1045         * ctype/ctype-info.c: Revert last reversion back the other way.
1046         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1047         Define real function versions of include/ctype.h inlines here.
1048         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1049         __ctype_tolower_loc, __ctype_toupper_loc.
1050         * locale/lc-ctype.c: Revert last reversion back the other way.
1051         (_nl_postload_ctype): If current thread uses the global locale,
1052         update its tsd vars.
1053         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1054         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1055         CTYPE_TOLOWER, CTYPE_TOUPPER.
1056
1057         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1058         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1059         from __libc_tsd_threadvar_location.
1060         (__libc_tsd_set, __libc_tsd_get): Update uses.
1061
1062 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1065         macro definitions for the standard functions to access the
1066         classification and mapping arrays.
1067         * include/ctype.h: Partly revert last patch.  Move the macro
1068         definitions for the exported functions back to the public header.
1069         #undef all the macros defined here before redefining.
1070         * ctype/ctype-info.c: Revert last patch.
1071         * locale/lc-ctype.c: Revert last patch.
1072
1073         * ctype/Makefile (routines): Add isctype.
1074         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1075         * ctype/ctype.h: Add declaration of isctype.
1076         * include/ctype.h: Declare __isctype.
1077         * ctype/isctype.c: New file.
1078
1079 2002-09-01  Roland McGrath  <roland@redhat.com>
1080
1081         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1082         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1083
1084         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1085
1086         * locale/findlocale.c (_nl_remove_locale): Don't search in
1087         _nl_locale_file_list if DATA->alloc is ld_archive.
1088         Use _nl_unload_locale to do the rest of the work.
1089
1090         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1091         of new structure to UNDELETABLE.
1092
1093         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1094         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1095         towlower, towupper): Macros removed.
1096         * ctype/ctype.h (__tobody): Put parens around macro argument.
1097         (__isctype): Macro removed.
1098         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1099         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1100         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1101         tolower, toupper): Macros and inlines removed.
1102         * include/ctype.h [! NOT_IN_libc]
1103         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1104         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1105         tolower, toupper): Define here instead, using _NL_CURRENT.
1106         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1107         using _NL_CURRENT.
1108         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1109         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1110         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1111         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1112         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1113         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1114         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1115         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1116         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1117         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1118         (ISSORTMASK): Update use.
1119         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1120         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1121         (_nss_files_getENTNAME_r): Likewise.
1122         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1123         Likewise.
1124
1125         * Makerules (all-nonlib): Renamed from all-tests.
1126         Include $(others) here too.
1127         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1128         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1129         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1130         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1131         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1132         the program modules via cppflags-iterator.mk.
1133         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1134         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1135
1136 2002-08-31  Roland McGrath  <roland@redhat.com>
1137
1138         * posix/tst-getconf.sh: If no third arg, work with static linking.
1139
1140         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1141
1142         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1143         [_NL_CURRENT_INDIRECT].
1144
1145 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1146
1147         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1148
1149 2002-08-31  Roland McGrath  <roland@redhat.com>
1150
1151         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1152         Instead, make the single allocation of the structure larger to hold
1153         the name strings.
1154         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1155         Instead, calculate size for a single allocation and copy into it.
1156         * locale/freelocale.c (__freelocale): Don't free names individually.
1157
1158         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1159
1160         * locale/xlocale.h (__locale_struct): Move __names member last,
1161         for binary compatibility.
1162
1163         * locale/duplocale.c (__duplocale): Free names from the right array.
1164
1165         * locale/uselocale.c (__uselocale): Return previous locale when
1166         setting a new one.
1167
1168         * locale/newlocale.c: Commit changes from 2002-08-30
1169         batch where I failed to commit this file:
1170         (__newlocale): Fill in __names array.
1171
1172 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1173
1174         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1175         errlist-compat.c if versioning==yes.
1176
1177 2002-08-31  Andreas Jaeger  <aj@suse.de>
1178
1179         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1180         external functions with hidden attribute.
1181         (elf_machine_rela): Optimize.
1182
1183         * sysdeps/x86_64/memset.S: New file.
1184         * sysdeps/x86_64/bzero.S: New file.
1185         * sysdeps/x86_64/stpcpy.S: New file.
1186         * sysdeps/x86_64/strcat.S: New file.
1187         * sysdeps/x86_64/strchr.S: New file.
1188         * sysdeps/x86_64/strcpy.S: New file.
1189         * sysdeps/x86_64/strcspn.S: New file.
1190         * sysdeps/x86_64/strlen.S: New file.
1191         * sysdeps/x86_64/strpbrk.S: New file.
1192         * sysdeps/x86_64/strspn.S: New file.
1193         * sysdeps/x86_64/strcmp.S: New file.
1194         * sysdeps/x86_64/strtok_r.S: New file.
1195         * sysdeps/x86_64/strtok.S: New file.
1196         * sysdeps/x86_64/memcpy.S: New file.
1197         * sysdeps/x86_64/mempcpy.S: New file.
1198
1199         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1200
1201         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1202
1203 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1204
1205         * stdio-common/Makefile (generated): Add errlist-compat.c.
1206
1207         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1208
1209         * locale/localeinfo.h: Pretty printing.
1210
1211         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1212         form_number handling.
1213
1214 2002-08-31  Andreas Jaeger  <aj@suse.de>
1215
1216         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1217         double tests.
1218
1219         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1220         __start_context.
1221
1222         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1223
1224         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1225
1226         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1227         registers used for passing args.
1228
1229         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1230         all needed registers.
1231
1232         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1233         registers.
1234
1235         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1236         registers.
1237
1238 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1239
1240         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1241         always_inline attribute.
1242
1243 2002-08-30  Roland McGrath  <roland@redhat.com>
1244
1245         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1246         presume it's the stub and bail without error.
1247
1248         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1249         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1250
1251         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1252
1253         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1254         macros replace the i686 versions for 64-bit mode.
1255
1256         * locale/duplocale.c: Include <string.h>.
1257
1258         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1259         [_LIBC] (category_to_name): Don't define the function.  Instead
1260         define a macro using _nl_category_names.
1261
1262         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1263         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1264         * locale/global-locale.c (_nl_global_locale): Likewise.
1265         * locale/duplocale.c (__duplocale): strdup __names elements.
1266         * locale/freelocale.c (__freelocale): Free __names elements.
1267         * locale/localename.c (_nl_current_names): Variable removed.
1268         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1269         * locale/localeinfo.h (_nl_current_names): Removed decl.
1270         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1271         _nl_current_names throughout.
1272
1273         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1274
1275         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1276         and sys_nerr in the output file.
1277
1278         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1279         * scripts/cpp: Just use the environment variable.
1280
1281         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1282         * libio/tst-mmap-offend.c (do_test): Likewise.
1283         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1284         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1285         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1286
1287         * locale/localename.c: If the current locale is the global locale, use
1288         _nl_current_names; otherwise use the locale object.
1289
1290 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1291
1292         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1293         'm' to enable mmap I/O.
1294         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1295         former wasn't used (anymore?).
1296         (_IO_FLAGS2_MMAP): New define.
1297         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1298         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1299         _IO_FLAGS2_MMAP bit is set.
1300         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1301         Enable mmap-using mode only if 'm' was set.
1302
1303 2002-08-29  Roland McGrath  <roland@frob.com>
1304
1305         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1306
1307         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1308         Change argument type from int to intptr_t.
1309
1310         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1311         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1312         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1313         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1314         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1315
1316         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1317
1318         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1319
1320         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1321
1322         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1323         * assert/assert-perr.c: Add libc_hidden_def.
1324         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1325
1326         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1327         found at all.
1328         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1329         sys_errlist stuff to ...
1330         * sysdeps/unix/sysv/linux/Versions: ... here.
1331
1332         * mach/mach.h: Include <features.h>.
1333
1334 2002-08-29  Roland McGrath  <roland@redhat.com>
1335
1336         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1337         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1338         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1339
1340         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1341
1342         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1343         (norm_add_slashes): alloca -> __alloca
1344
1345 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1346
1347         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1348         string_malloced, it is unlikely to be set.
1349         Only call free with non-NULL workspace.
1350         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1351         -mcpu=ultrasparc, not only tune for it.
1352         (ASFLAGS*): Set unconditionally.
1353
1354         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1355         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1356         p_vaddr/p_offset when computing LOADADDR.
1357
1358 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1359
1360         * version.h (VERSION): Bump to 2.2.92.
1361
1362         * time/Makefile (tst-ftime_l-ENV): New variable.
1363
1364         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1365
1366         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1367         <U017A>, <U017D> and <U0179>. Add missing mappings.
1368         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1369
1370         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1371         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1372         (struct tostruct): Use ACRINDEX as type for link field.
1373         (statuc gmonparam): Likewise for froms.
1374         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1375         kcount and froms.
1376         (write_call_graph): Use correct type for from_index and to_index.
1377         * gmon/mcount.c: Use correct types for frompcindex and toindex
1378         variables.
1379         Patches by Dan Kegel <dank@kegel.com>.
1380
1381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1382         canonical name.
1383
1384         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1385         __isspace_l.  Replace calls to isspace.
1386         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1387
1388 2002-08-29  Roland McGrath  <roland@redhat.com>
1389
1390         * string/tst-strxfrm.c: Remove __ from function names.
1391
1392 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1393
1394         * include/wchar.h: Declare __mbsrtowcs_l.
1395         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1396         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1397         USE_IN_EXTENDED_LOCALE_MODEL.
1398         * wcsmbs/mbsrtowcs_l: New file.
1399         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1400         define as static.  Change all uses.
1401         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1402         Change all callers.
1403         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1404         * time/strftime.c: When translating for the extended locale model
1405         use the _l functions.
1406         * time/Makefile (tests): Add tst-ftime_l.
1407         * time/tst-ftime_l.c: New file.
1408
1409 2002-08-28  Roland McGrath  <roland@redhat.com>
1410
1411         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1412         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1413         from _nl_find_locale ok if for _nl_C_name.
1414
1415         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1416         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1417         we know they are all linked in.
1418
1419         * NEWS: Added 2.2.6 text from 2.2 branch version.
1420
1421         * time/strptime.c (strptime_internal): Remove spurious const.
1422
1423         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1424         _nl_select_era_entry): Moved to ...
1425         * time/era.c: ... here, new file.
1426         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1427         Add internal_function to definitions.  Take an additional argument
1428         giving the `struct locale_data *' to use.
1429         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1430         _nl_parse_alt_digit): Moved to ...
1431         * time/alt_digit.c: ... here, new file.
1432         * time/lc-time-cleanup.c: New file.
1433         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1434         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1435         (_nl_cleanup_time): Declare it.
1436         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1437         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1438         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1439         * time/strftime.c: Pass locale data to helper functions.
1440         * time/strptime.c: Likewise.
1441
1442         * locale/localeinfo.h (struct locale_data): New member `private'
1443         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1444         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1445         * locale/C-collate.c: Update initializer.
1446         * locale/C-identification.c: Likewise.
1447         * locale/C-measurement.c: Likewise.
1448         * locale/C-telephone.c: Likewise.
1449         * locale/C-address.c: Likewise.
1450         * locale/C-name.c: Likewise.
1451         * locale/C-paper.c: Likewise.
1452         * locale/C-time.c: Likewise.
1453         * locale/C-numeric.c: Likewise.
1454         * locale/C-monetary.c: Likewise.
1455         * locale/C-messages.c : Likewise.
1456         * locale/C-ctype.c: Likewise.
1457
1458         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1459         Redefine this too.
1460
1461 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1462
1463         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1464         (_rtld_global): Use it.
1465
1466         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1467         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1468         object directory.  Pass all Versions files to the awk script.
1469         * sysdeps/gnu/errlist-compat.c: Removed.
1470         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1471         first Versions file in the search path which has them.
1472         Allow multiple errlist symbol versions to have the same count of
1473         errors.
1474         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1475         of "errlist-compat.c".
1476         * sysdeps/gnu/errlist.c: Regenerated.
1477         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1478         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1479         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1480         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1481         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1482         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1483         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1484         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1485         ECANCELLED if not defined by kernel headers.
1486         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1487         already defined by kernel headers.
1488         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1489         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1490         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1491         is a macro.
1492         * Versions.def (GLIBC_2.3) [librt]: Add.
1493
1494         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1495
1496 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1499         missing comma to .type directive.
1500
1501 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1502
1503         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1504         unconditionally.
1505         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1506         check.
1507         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1508
1509 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1510
1511         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1512         check to close_and_out close.  Replace return NULL statements where
1513         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1514         when it is no longer needed.
1515
1516 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1519         string constants.
1520         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1521         * sysdeps/arm/dl-machine.h: Likewise.
1522         * sysdeps/cris/dl-machine.h: Likewise.
1523         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1524         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1525
1526 2002-08-28  Roland McGrath  <roland@redhat.com>
1527
1528         * Makeconfig (default_cflags): Revert unintended change.
1529
1530 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * version.h (VERSION): Bump to 2.2.91.
1533
1534         * configure.in: Disable TLS support by default for now.
1535
1536         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1537
1538         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1539         warnings.
1540
1541         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1542
1543         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1544         fprintf/fwprintf calls.
1545
1546 2002-08-28  Roland McGrath  <roland@redhat.com>
1547
1548         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1549         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1550
1551         * locale/setlocale.c: Declare postload functions weak.
1552
1553         * elf/tst-tls1-static.c: New file.
1554         * elf/tst-tls2-static.c: New file.
1555         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1556
1557         Make uselocale support static linking.
1558         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1559         This file again just defines _nl_C_locobj.
1560         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1561         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1562         using all weak references in the initializer.
1563         * locale/Makefile (aux): Add global-locale.
1564         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1565         these unconditional, along with the tsd decl.
1566         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1567         Define it under these conditions.
1568         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1569         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1570         `extern __thread struct locale_data *const *'.
1571         [NL_CURRENT_INDIRECT]
1572         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1573         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1574         the thread variable _nl_current_LC_FOO and also a special absolute
1575         symbol _nl_current_LC_FOO_used.
1576         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1577         Set each _nl_current_LC_FOO symbol to point into the new locale,
1578         using weak references to test if _nl_current_LC_FOO_used was linked in.
1579         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1580         [NL_CURRENT_INDIRECT]: ... with this one.
1581         (_nl_current, _nl_C): Variables removed.
1582         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1583         weak references to _nl_current_LC_FOO_used.
1584         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1585         (free_category): New function, broken out of ...
1586         (free_mem): ... here.  Call that.
1587         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1588         instead of a loop.
1589
1590         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1591         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1592         it is already absolute.
1593
1594         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1595         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1596         [$(build-static) = yes] (tests-static): New variable.
1597         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1598
1599 2002-08-26  Christoph Hellwig  <hch@lst.de>
1600
1601         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1602         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1603
1604 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1605
1606         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1607
1608         * sysdeps/s390/Dist: Add bits/link.h.
1609
1610         * sysdeps/sh/Dist: New file.
1611
1612         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1613
1614         * sysdeps/wordsize-32/Dist: New file.
1615
1616         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1617         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1618         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1619
1620         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1621         sys/personality.h.
1622
1623         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1624         sparc/dl-brk.S.
1625
1626         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1627
1628         * sysdeps/unix/bsd/sun/Dist: New file.
1629
1630         * sysdeps/unix/bsd/osf/Dist: New file.
1631
1632         * sysdeps/unix/bsd/hp/Dist: New file.
1633
1634         * sysdeps/unix/arm/Dist: New file.
1635
1636         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1637
1638         * sysdeps/mach/hurd/Dist: Add set-init.c.
1639
1640         * sysdeps/i386/Dist: Add bits/link.h.
1641
1642         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1643
1644         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1645
1646         * locale/Makefile (distribute): Add hashval.h.
1647
1648         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1649
1650         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1651
1652         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1653         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1654         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1655         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1656         implementations.
1657         * libio/stdio.h: Likewise.
1658         * locale/locale.h: Likewise.
1659         * math/math.h: Likewise.
1660         * math/bits/mathcalls.h: Likewise.
1661         * setjmp/setjmp.h: Likewise.
1662         * signal/signal.h: Likewise.
1663         * stdlib/stdlib.h: Likewise.
1664         * string/string.h: Likewise.
1665         * time/time.h: Likewise.
1666         * wcsmbs/wchar.h: Likewise.
1667         * wctype/wctype.h: Likewise.
1668
1669 2002-08-28  Roland McGrath  <roland@redhat.com>
1670
1671         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1672
1673 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1674             Roland McGrath <roland@redhat.com>
1675
1676         * locale/hashval.h (compute_hashval): Use prototype defn.
1677         (hashval_t): New macro, defined to unsigned long int
1678         if not already defined.
1679         (compute_hashval): Return hashval_t instead of unsigned long int.
1680         * locale/loadarchive.c (hashval_t): New macro.
1681         * locale/programs/locarchive.c: Include hashval.h directly instead
1682         of simple-hash.h.
1683         (compute_hashval, hashval_t): Define these macros first.
1684         (insert_name): Use archive_hashval instead of compute_hashval.
1685         (add_locale, delete_locales_from_archive): Likewise.
1686
1687 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1688
1689         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1690         hash collisions if be_quiet.
1691
1692 2002-08-27  Roland McGrath  <roland@redhat.com>
1693
1694         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1695         __uselocale): Don't declare these any more.
1696         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1697
1698         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1699         and treat it as an EOF return.
1700         * sysdeps/unix/readdir_r.c: Likewise.
1701
1702         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1703         From Alexandre Oliva <aoliva@redhat.com>.
1704         * sysdeps/gnu/errlist-compat.c: Regenerated.
1705
1706 2002-08-27  Brian Youmans  <3diff@gnu.org>
1707
1708         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1709         wording at request of copyright holder Stephen Moshier.
1710         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1711         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1712         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1713         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1714         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1715         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1716         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1717         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1718         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1719         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1720         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1721         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1722         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1723         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1724
1725 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1726
1727         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1728         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1729         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1730         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1731         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1732         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1733         * wctype/iswctype_l.c (iswctype_l): Likewise.
1734
1735 2002-08-27  Roland McGrath  <roland@redhat.com>
1736
1737         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1738
1739         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1740         * stdlib/stdlib.h: Don't declare __*_l names.
1741         * include/stdlib.h: Declare them here instead.
1742         * include/string.h: Don't declare __*_l names.
1743         * string/string.h: Declare them here instead.
1744         * time/time.h: Don't declare __*_l names.
1745         * include/time.h: Declare them here instead.
1746         * wcsmbs/wchar.h: Don't declare __*_l names.
1747         * include/wchar.h: Declare them here instead.
1748         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1749         Don't declare __*_l names.
1750         * include/wctype.h: Declare them here instead.
1751         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1752         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1753         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1754         * include/langinfo.h: Declare it here with __typeof.
1755
1756         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1757         instead, taking an extra __locale_t argument.
1758         * time/Makefile (routines): Add strptime_l.
1759         * time/time.h (__strptime_l, strptime_l): Declare them.
1760         * time/strptime_l.c: New file.
1761
1762         * time/time.h (__strftime_l, strftime_l): Declare them.
1763         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1764         * time/strftime_l.c: New file.
1765         * time/wcsftime_l.c: New file.
1766         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1767         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1768         strftime_l, wcsftime_l.
1769         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1770         or __wcsftime_l instead, taking an extra __locale_t argument.
1771
1772         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1773         (libc: GLIBC_2.3): ... here.
1774
1775 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1776
1777         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1778
1779         * Makefile (distribute): Add LICENSES.
1780
1781         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1782         sys/debugreg.h.
1783
1784         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1785
1786         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1787
1788         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1789
1790         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1791
1792         * sysdeps/mach/hurd/alpha/Dist: New file.
1793
1794         * sysdeps/arm/Dist: Add bits/link.h.
1795
1796         * sunrpc/Makefile: Distribute thrsvc.
1797
1798         * stdio-common/Makefile: Remove more left-overs from old stdio.
1799
1800         * include/linewrap.h: Removed.
1801
1802         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1803
1804         * intl/Makefile (distribute): Add plural-eval.c.
1805
1806 2002-08-27  Roland McGrath  <roland@redhat.com>
1807
1808         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1809         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1810         Say mtab is in either /var/run or /etc.
1811
1812 2002-08-26  Roland McGrath  <roland@redhat.com>
1813
1814         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1815         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1816
1817         * sysdeps/gnu/Versions: New file.
1818         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1819         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1820         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1821         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1822         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1823         and _sys_nerr_internal instead of anything else.  Make it include
1824         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1825         Make it emit some asm magic if [EMIT_ERR_MAX].
1826         * sysdeps/gnu/errlist.c: Regenerated.
1827         * sysdeps/gnu/errlist-compat.awk: New file.
1828         * sysdeps/gnu/errlist-compat.c: New file (generated).
1829         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1830         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1831         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1832         (SYS_ERRLIST, SYS_NERR): Macros removed.
1833         (sys_nerr, _sys_nerr): Remove these weak aliases.
1834         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1835         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1836         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1837
1838         * include/libc-symbols.h (declare_symbol): New macro.
1839         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1840         * configure.in: New check to define it.
1841         * configure: Regenerated.
1842
1843 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1844
1845         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1846         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1847
1848         * Make-dist: Remove traces of old stdio.
1849         * Makeconfig: Likewise.
1850
1851         * locale/Makefile (localedef-aux): New variable.  Only md5
1852         assigned to it.  These files are not ddistributed in this directory.
1853
1854         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1855         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1856         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1857
1858         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1859
1860         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1861         set h_errno to NO_RECOVERY [PR libc/4360].
1862
1863 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1864
1865         * libio/Makefile (tests): Add bug-fopena+.
1866         * libio/bug-fopena+.c: New file.
1867         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1868         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1869
1870         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1871
1872         * locale/xlocale.c: Fix the last change.  The variable still has
1873         to end in _data.
1874         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1875         (__libc_tsd_set): Add _data prefix to variable name.
1876
1877 2002-08-26  Roland McGrath  <roland@redhat.com>
1878
1879         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1880         macro with inline function.
1881         (sigset_get_old_mask): Likewise.
1882         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1883         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1884         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1885         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1886         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1887         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1888         values.
1889         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1890         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1891
1892 2002-07-06  Bruno Haible  <bruno@clisp.org>
1893
1894         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1895         sigset_get_old_mask): Make it work with larger sigset_t.
1896         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1897         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1898         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1899
1900 2002-08-26  Roland McGrath  <roland@redhat.com>
1901
1902         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1903         * manual/filesys.texi (File Times): Document lutimes and futimes.
1904         * misc/Makefile (routines): Add them.
1905         * misc/Versions (libc: GLIBC_2.3): Likewise.
1906         * sysdeps/generic/lutimes.c: New file.
1907         * sysdeps/generic/futimes.c: New file.
1908         * sysdeps/mach/hurd/lutimes.c: New file.
1909         * sysdeps/mach/hurd/futimes.c: New file.
1910
1911         * manual/filesys.texi (File Times): Add explicit note about null
1912         pointer argument to utimes.
1913
1914 2002-08-26  Roland McGrath  <roland@frob.com>
1915
1916         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1917         (__ifreq): Add a cast.  Remove an unused variable.
1918
1919         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1920         _HURD_THREADVAR_LOCALE.
1921
1922 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1923
1924         * posix/regexec.c (re_search_stub): Return correct match length
1925         if start != 0.
1926         * posix/bug-regex10.c: New test.
1927         * posix/Makefile (tests): Add bug-regex10.
1928
1929 2002-08-26  Brian Youmans  <3diff@gnu.org>
1930
1931         * COPYING.LIB: Replaced with fresh copy from
1932         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1933         suggested copying permission notice now says version 2.1 instead
1934         of version 2.
1935
1936         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1937         from Library GPL.
1938         * crypt/crypt_util.c: Likewise.
1939         * crypt/ufc.c: Likewise.
1940         * elf/dl-conflict.c: Likewise.
1941         * elf/dl-iteratephdr.c: Likewise.
1942         * iconv/iconvconfig.h: Likewise.
1943         * malloc/arena.c: Likewise.
1944         * malloc/hooks.c: Likewise.
1945         * malloc/malloc.c: Likewise.
1946         * posix/glob/Makefile.ami: Likewise.
1947         * posix/glob/Makefile.in: Likewise.
1948         * stdlib/gmp-impl.h: Likewise.
1949         * stdlib/gmp.h: Likewise.
1950         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1951         * sysdeps/generic/strnlen.c: Likewise.
1952         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1953         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1954         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1955         * sysdeps/mach/hurd/spawni.c: Likewise.
1956         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1957         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1958         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1959         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1960         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1961         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1962
1963         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1964         Lesser GPL copying permission notice from 2 to 2.1.
1965         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1966         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1967         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1968         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1969         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1970         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1971         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1972         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1973         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1974         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1975         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1976         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1977         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1978         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1979         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1980         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1981         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1982         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1983         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1984         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1985         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1986         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1987         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1988         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1989         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1990         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1991         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1992         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1993         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1994         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1995         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1996         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1997         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1998         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1999         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2000         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2001         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2002         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2003         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2004         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2005         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2006         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2007         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2008         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2009         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2010         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2011         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2012         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2013         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2014         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2015         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2016         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2017         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2018         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2019         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2020
2021         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2022         Moshier and Lesser GPL copying permission notice, per license from
2023         Moshier.
2024         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2025         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2026         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2027         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2028         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2029         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2030         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2031         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2032         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2033         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2034         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2035         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2036         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2037         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2038
2039         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2040         notice, per license from copyright holder Stephen Moshier.
2041         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2042         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2043         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2044         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2045         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2046         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2047         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2048         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2049         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2050
2051 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2052
2053         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2054         (shared-only-routines): Likewise.
2055
2056 2002-08-26  Roland McGrath  <roland@redhat.com>
2057
2058         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2059         name of "", store a null pointer instead.
2060
2061         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2062         * configure: Regenerated.
2063
2064         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2065         Initialize this instead of __libc_tsd_LOCALE_data.
2066
2067         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2068         ptsname_r to EINVAL.
2069
2070         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2071
2072         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2073         implementations depend on pthreads.
2074         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2075         * rt/tst-aio64.c (do_test): Likewise.
2076         * rt/tst-aio2.c (do_test): Likewise.
2077         * rt/tst-aio3.c (do_test): Likewise.
2078         * rt/tst-aio4.c (do_test): Likewise.
2079         * rt/tst-aio5.c (do_test): Likewise.
2080         * rt/tst-aio6.c (do_test): Likewise.
2081         * rt/tst-aio7.c (do_test): Likewise.
2082
2083         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2084         void so as to avoid compiler warnings.
2085
2086         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2087         _IO_wide_data_FD, which is never used here.
2088
2089         * libio/iofread.c
2090         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2091         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2092         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2093
2094         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2095         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2096
2097         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2098         (closelog): Likewise.
2099
2100 2002-07-06  Bruno Haible  <bruno@clisp.org>
2101
2102         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2103
2104         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2105         * sysdeps/unix/alpha/pipe.S: ... here.
2106         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2107
2108         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2109
2110         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2111         * sysdeps/unix/i386/fork.S: Likewise.
2112         * sysdeps/unix/i386/pipe.S: Likewise.
2113         * sysdeps/unix/i386/wait.S: Likewise.
2114
2115         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2116         * sysdeps/unix/arm/fork.S: Likewise.
2117
2118         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2119         arguments.
2120         (DO_CALL): Swap argument order.
2121         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2122         arguments.
2123         (DO_CALL): Swap argument order.
2124         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2125         arguments.
2126         (DO_CALL): Swap argument order.
2127         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2128         arguments.
2129         (DO_CALL): Swap argument order.
2130         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2131         arguments.
2132         (DO_CALL): Swap argument order.
2133         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2134         arguments.
2135         (DO_CALL): Swap argument order.
2136         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2137         arguments.
2138         (DO_CALL): Swap argument order.
2139
2140         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2141         (L): Define right for ELF.
2142         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2143         Now defined in sysdeps/i386/sysdep.h.
2144
2145         * sysdeps/posix/readv.c: Ansify function definition.
2146         * sysdeps/posix/writev.c: Likewise.
2147
2148         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2149         have the same size. Avoid direct cast from size_t to off_t.
2150
2151         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2152         nul byte in entry[n].ut_user.
2153         (simulate_logout): Likewise.
2154
2155         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2156         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2157         existence of corresponding members of 'struct utmp'.
2158         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2159         !_HAVE_UT_TYPE.
2160
2161         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2162         allocate a buffer of at least BUFSIZ bytes, not just of
2163         sizeof (struct dirent).
2164
2165         * sysdeps/generic/glob.c: Include <limits.h>.
2166         (NAME_MAX): Define a fallback.
2167         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2168         stack.
2169         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2170         (main): Allocate enough room for a 'struct dirent64' on the stack.
2171         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2172         'struct dirent'.
2173
2174         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2175         kernel-features.h.
2176
2177         * inet/htontest.c: Include <sys/types.h>.
2178
2179         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2180
2181         * include/sys/sysctl.h: Comment fix.
2182
2183         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2184         _dl_load_lock.
2185         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2186
2187         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2188
2189         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2190         (__getpeername): New alias.
2191         (__getsockname): New alias.
2192         (__socket): New alias.
2193
2194         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2195
2196         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2197         (__fcntl_internal): New alias.
2198         (__profil): New alias.
2199
2200 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2201
2202         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2203         entry was for getaddr* lookup or not.  Add only matching cache
2204         entry.  Change all callers [PR libc/4317].
2205
2206         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2207         finding the read position [PR libc/4265].
2208         * libio/Makefile (tests): Add bug-rewind2.
2209         * libio/bug-rewind2.c: New file.
2210
2211         * libio/bug-rewind.c: Fix creation of temp file.
2212
2213 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2214
2215         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2216         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2217         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2218         to ENOENT if no entry is found.
2219         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2220         failure.
2221         * nis/nss_compat/compat-initgroups.c: Likewise.
2222         * nis/nss_compat/compat-pwd.c: Likewise.
2223         * nis/nss_compat/compat-spwd.c: Likewise.
2224         * nis/nss_nis/nis-alias.c: Likewise.
2225         * nis/nss_nis/nis-ethers.c: Likewise.
2226         * nis/nss_nis/nis-grp.c: Likewise.
2227         * nis/nss_nis/nis-hosts.c: Likewise.
2228         * nis/nss_nis/nis-initgroups.c: Likewise.
2229         * nis/nss_nis/nis-netgrp.c: Likewise.
2230         * nis/nss_nis/nis-network.c: Likewise.
2231         * nis/nss_nis/nis-proto.c: Likewise.
2232         * nis/nss_nis/nis-publickey.c: Likewise.
2233         * nis/nss_nis/nis-pwd.c: Likewise.
2234         * nis/nss_nis/nis-rpc.c: Likewise.
2235         * nis/nss_nis/nis-service.c: Likewise.
2236         * nis/nss_nis/nis-spwd.c: Likewise.
2237         * resolv/nss_dns/dns-host.c: Likewise.
2238         * resolv/nss_dns/dns-network.c: Likewise.
2239         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2240         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2241         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2242         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2243         * nis/nss_nisplus/nisplus-network.c: Likewise.
2244         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2245         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2246         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2247         * nis/nss_nisplus/nisplus-service.c: Likewise.
2248         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2249         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2250         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2251         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2252         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2253
2254         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2255         declaring __restore and __restore_rt as hidden (if possible).
2256
2257 2002-08-25  Roland McGrath  <roland@redhat.com>
2258
2259         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2260
2261         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2262         (getutent_r_file, internal_getut_r): Updated all callers.
2263         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2264
2265 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2266
2267         * locale/programs/locale.c: Don't print aliases for non-existing
2268         locales for 'locale -a'.
2269         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2270
2271 2002-07-19  H.J. Lu  <hjl@gnu.org>
2272
2273         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2274
2275 2002-07-16  H.J. Lu  <hjl@gnu.org>
2276
2277         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2278         sys/personality.h.
2279         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2280
2281 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2282
2283         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2284         not moved ahead of the fputs call.
2285         * elf/tst-tlsmod2.c (in_dso): Likewise.
2286         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2287         * elf/tst-tlsmod4.c (in_dso): Likewise.
2288
2289 2002-08-25  Andreas Schwab  <schwab@suse.de>
2290
2291         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2292
2293 2002-08-25  Roland McGrath  <roland@redhat.com>
2294
2295         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2296         resetting handler, to avoid the possibility of a spurious SIGALRM
2297         delivered to the user's handler.
2298         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2299
2300         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2301         set -fkeep-inline-functions, which is not needed for the current file.
2302
2303         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2304         (_dl_setup_hash): Add attribute_hidden.
2305         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2306         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2307         (_dl_new_object, _dl_map_object_deps): Likewise.
2308         (_dl_map_object_deps_internal): Remove decl.
2309         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2310
2311         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2312         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2313         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2314         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2315         instead relying on the compiler to produce only GOTOFF variable refs.
2316
2317 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2318
2319         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2320
2321         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2322         inline to avoid defining it in every file which includes this header.
2323
2324         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2325         defining DONT_USE_BOOTSTRAP_MAP.
2326
2327         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2328         * libio/tst-mmap-setvbuf.c (main): Likewise.
2329         * libio/tst-widetext.c (main): Likewise.
2330
2331         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2332         message.
2333         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2334         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2335
2336         * sysdeps/i386/elf/configure.in: Unconditionally define
2337         PI_STATIC_AND_HIDDEN.
2338         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2339         PI_STATIC_AND_HIDDEN is defined as well.
2340         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2341
2342 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2343
2344         * sysdeps/ia64/bzero.S: Define __bzero as well.
2345
2346         * locale/programs/charmap.c (charmap_new_char): Don't use
2347         ULONG_MAX as maximum UCS4 value.
2348
2349         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2350
2351         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2352
2353         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2354         * malloc/malloc.c (mALLINFo): Likewise.
2355
2356         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2357
2358         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2359         examining result of _IO_do_flush call.
2360
2361         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2362         Use prec not spec when sizing buffers.
2363
2364         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2365         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2366         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2367         * stdio-common/vfscanf.c (inchar): Likewise.
2368         * misc/efgcvt_r.c (fcvt_r): Likewise.
2369         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2370         * elf/readlib.c (process_file): Likewise.
2371         * elf/sprof.c (load_profdata): Likewise.
2372         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2373         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2374         * locale/programs/charmap.c (charmap_read): Likewise.
2375         * libio/fileops.c: Likewise.
2376         * libio/fmemopen.c: Likewise.
2377         * stdlib/strtod.c: Likewise.
2378         * elf/dl-load.c: Likewise.
2379         * iconv/iconvconfig.c: Likewise.
2380         * iconv/iconv_prog.c (process_block): Likewise.
2381         * elf/rtld.c (dl_main): Likewise.
2382
2383         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2384         macro to calm down the compiler.
2385
2386         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2387
2388         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2389
2390         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2391         placement of errno definition.
2392         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2393         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2394         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2397
2398         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2399         from 1024 to 65536, to avoid buffer overrun.
2400
2401 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2402
2403         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2404         from 1024 to 65536, to avoid buffer overrun.
2405         * resolv/res_query.c (MAXPACKET): Likewise.
2406
2407 2002-08-24  Andreas Jaeger  <aj@suse.de>
2408
2409         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2410
2411 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2412
2413         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2414         two52 locally.
2415         (log2): Likewise.
2416         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2417         Patch by Simon Gee <simong@agile.tv>.
2418
2419         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2420         Prefer reading /proc/stat since it is more uniform across
2421         architectures.
2422
2423         * manual/texinfo.tex: Update to latest official version.
2424
2425         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2426         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2427         * sysdeps/gnu/bits/shm.h: Likewise.
2428         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2429         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2430         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2431         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2432         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2433         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2434         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2435         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2436         since this is what the kernel says.
2437
2438         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2439         since ssize_t is needed as well.  Replace const with __const.
2440
2441 2002-08-23  Roland McGrath  <roland@redhat.com>
2442
2443         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2444         __malloc_hook, __realloc_hook, __memalign_hook,
2445         __after_morecore_hook): Variable definitions moved to ...
2446         * malloc/malloc.c: ... here, so as to be before all references.
2447
2448         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2449         global variable reference in an unused asm parameter, to ensure the
2450         compiler has set up the GOT register before we use it.
2451
2452         * malloc/hooks.c: Move variable definitions ahead of uses.
2453         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2454         initializers that make reference to variables they define.
2455
2456 2002-08-23  Andreas Jaeger  <aj@suse.de>
2457
2458         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2459         alloca, free, qsort.
2460
2461         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2462
2463         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2464         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2465
2466         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2467         <hch@lst.de>.
2468         * sysdeps/generic/fgetxattr.c: New file.
2469         * sysdeps/generic/flistxattr.c: New file.
2470         * sysdeps/generic/fremovexattr.c: New file.
2471         * sysdeps/generic/fsetxattr.c: New file.
2472         * sysdeps/generic/getxattr.c: New file.
2473         * sysdeps/generic/listxattr.c: New file.
2474         * sysdeps/generic/lgetxattr.c: New file.
2475         * sysdeps/generic/llistxattr.c: New file.
2476         * sysdeps/generic/lremovexattr.c: New file.
2477         * sysdeps/generic/lsetxattr.c: New file.
2478         * sysdeps/generic/removexattr.c: New file.
2479         * sysdeps/generic/setxattr.c: New file.
2480         * misc/Makefile (headers): Add sys/xattr.h.
2481         (routines): Add *xattr calls.
2482         * misc/Versions: Add *xattr calls with version 2.3.
2483         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2484         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2485         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2486         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2487         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2488         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2489         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2490         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2491
2492 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2493
2494         * sysdeps/powerpc/elf/libc-start.c
2495         (__cache_line_size): Declare.
2496         (__aux_init_cache): New function.
2497         (__libc_start_main): Change type of `auxvec' parameter to
2498         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2499         __aux_init_cache.
2500         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2501         (__cache_line_size): Declare.
2502         (__aux_init_cache): New function.
2503         (DL_PLATFORM_INIT): Define.
2504         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2505         value to select the correct stride for dcbz.
2506
2507 2002-08-22  Andreas Jaeger  <aj@suse.de>
2508
2509         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2510         shmat.
2511
2512 2002-08-22  Roland McGrath  <roland@redhat.com>
2513
2514         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2515         position indicated by locrectab against file bounds before rounding to
2516         page size.  In mapping loop, always set TO before breaking out of
2517         contiguous range coalescing loop.
2518
2519         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2520         (or MAP_COPY if available) instead of MAP_SHARED.
2521
2522         * scripts/firstversions.awk: When encountering a version newer than
2523         the specified earliest version, be sure to emit the specified earliest
2524         version first if any renaming of an older version to that has been.
2525
2526 2002-08-21  Roland McGrath  <roland@redhat.com>
2527
2528         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2529         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2530         (Configuring and compiling): Don't mention older GCC versions any more.
2531         * INSTALL: Regenerated.
2532
2533         * manual/install.texi (Configuring and compiling, Installation,
2534         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2535
2536         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2537         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2538         and with noinline otherwise.  Remove hack alloca use to prevent
2539         inlining, we can ask for it explicitly nowadays.
2540
2541         * dlfcn/bug-dlsym1.c: New file.
2542         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2543         * dlfcn/Makefile (distribute): Add them.
2544         (tests): Add bug-dlsym1 here.
2545         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2546         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2547         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2548
2549 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2550
2551         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2552         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2553         before relocation.
2554         (_dl_start): Don't use local bootstrap_map variable if
2555         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2556         pass bootstrap_map to _dl_start_final in this case either.  Don't
2557         pass start_time to _dl_start_final ever.
2558         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2559
2560         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2561         This cripples the scope lists necessary to search for symbols in
2562         dependencies which are not in the global scope.
2563
2564         * include/setjmp.h (__libc_longjmp): Add declaration.
2565
2566 2002-08-21  Andreas Jaeger  <aj@suse.de>
2567
2568         * sysdeps/x86_64/_mcount.S: Fix assembler.
2569
2570         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2571         with biarch support.
2572
2573 2002-08-21  Andreas Jaeger  <aj@suse.de>
2574
2575         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2576
2577         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2578
2579         * sysdeps/x86_64/machine-gmon.h: New file.
2580         * sysdeps/x86_64/_mcount.S: New file.
2581
2582 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2583
2584         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2585         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2586         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2587         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2588         to TL_INIT_TP.  Otherwise pass 1.
2589         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2590         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2591
2592 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2593
2594         * locale/programs/localedef.c (add_to_readlist): Error about
2595         circular dependencies only if the locale in question hasn't
2596         been finished.
2597         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2598         CTYPE_LOCALE to load_locale.
2599         * locale/programs/locfile.c (locfile_read): Don't include
2600         unneeded but available locales in locale_mask.
2601
2602         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2603         print any messages about enlarging archive.
2604
2605 2002-08-20  Brian Youmans  <3diff@gnu.org>
2606
2607         * manual/contrib.texi: Removed licenses, added acknowledgements
2608         for contributions by Intel, IBM, Craig Metz.
2609         * LICENSES: New file, contains the text of all non-FSF licenses in the
2610         distribution that require putting the notice in the accompanying
2611         documentation.
2612         * README.template, README: Mention LICENSES.
2613
2614         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2615         new one modelled on the modern BSD license, per recent letter
2616         of permission from CMU.
2617         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2618
2619         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2620         from IBM to FSF, per the recent Software Letter.  Changed the
2621         distribution terms from GPL to LGPL.
2622
2623         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2624         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2625         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2626         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2627         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2628         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2629         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2630         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2631         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2632         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2633
2634         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2635         from IBM to FSF, per the recent Software Letter.  Corrected the
2636         text of the copying permission notice to say Lesser GPL instead
2637         of GPL in warranty disclaimer paragraph.
2638         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2639         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2640         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2641         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2642         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2643         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2644         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2645         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2646         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2647         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2648         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2649         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2650         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2651         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2652         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2653         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2654         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2655         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2656         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2657         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2658         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2659
2660         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2661         permission notice to say Lesser GPL instead of GPL in warranty
2662         disclaimer paragraph.
2663         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2664         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2665         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2666         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2667         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2668         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2669         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2670         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2671         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2672         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2673         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2674         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2675         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2676         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2677         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2678         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2679         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2680         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2681         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2682         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2683         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2684         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2685         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2686
2687 2002-08-20  Roland McGrath  <roland@redhat.com>
2688
2689         Fix ABI compatibility with libc compiled with old tools on powerpc.
2690         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2691         and Jack Howarth <howarth@bromo.med.uc.edu>.
2692         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2693         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2694         pass -DHAVE_DOT_HIDDEN for these files.
2695         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2696         __floatdisf.
2697         * sysdeps/powerpc/divdi3.c: New file.
2698         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2699         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2700
2701 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2702
2703         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2704         partially overlapping mappings.  Remove unneeded (char *) casts.
2705         Never allow duplication of ranges in mapped areas.
2706
2707 2002-08-20  Roland McGrath  <roland@redhat.com>
2708
2709         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2710         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2711
2712 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2713
2714         * include/unistd.h: Don't hide _exit.
2715
2716         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2717         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2718         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2719         argument 1 to TLS_INIT_TP.
2720         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2721
2722         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2723
2724         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2725         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2726         memory allocation to...
2727         (allocate_dtv): ...here.  New function.
2728         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2729         call allocate_dtv instead of _dl_allocate_tls_storage.
2730         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2731         (_dl_get_tls_static_info): New function.
2732         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2733         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2734
2735 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2736
2737         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2738         immediately if result == NULL.
2739
2740 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2741
2742         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2743
2744 2002-08-18  Roland McGrath  <roland@frob.com>
2745
2746         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2747         instead of __file_name_split.
2748         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2749
2750         * sysdeps/mach/hurd/dl-sysdep.c
2751         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2752         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2753
2754 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2755
2756         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2757         in change before last: MAX -> MIN.
2758
2759 2002-08-15  Roland McGrath  <roland@redhat.com>
2760
2761         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2762         if seek would go past it.
2763         (mmap_remap_check): If file position is at or past EOF after check,
2764         leave read pointers at EOF and don't seek.
2765
2766         * libio/tst-mmap-offend.c: New file.
2767         * libio/Makefile (tests): Add it.
2768
2769         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2770         the name as passed, rather than the name in the archive dictionary.
2771
2772 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2773
2774         * csu/Makefile: Define elide-routines.os not static-only-routines.
2775
2776         * include/sched.h (__clone): Add varargs at the end.
2777
2778         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2779         case.
2780         (TLS_INIT_HELPER): If defined, use it.
2781         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2782
2783 2002-08-15  Roland McGrath  <roland@redhat.com>
2784
2785         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2786         on L->l_prev; it can happen under rtld --verify too.
2787
2788         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2789         header separately, just map an initial window of 2MB from the file
2790         and remap if that is not large enough to cover the whole header.
2791
2792 2002-08-15  Andreas Jaeger  <aj@suse.de>
2793
2794         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2795         version 2.3.
2796         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2797         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2798         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2799         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2800         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2801         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2802         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2803         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2804         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2805         Patch by Andreas Gruenbacher <agruen@suse.de>.
2806
2807         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2808
2809 2002-08-14  Roland McGrath  <roland@redhat.com>
2810
2811         * locale/locarchive.h (struct locale_category_data): Give this name to
2812         the type of locale_data_t's elements.
2813         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2814         (add_locale): Use that to sort the categories by size and put all
2815         those that fit into two pages into the LC_ALL block, instead of
2816         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2817         (show_archive_content): Detect categories inside LC_ALL block
2818         directly, instead of hard-coding.
2819         (oldlocrecentcmp): Compare just on file locations used.
2820
2821 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2822
2823         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2824         (oldlocrecentcmp): New function.
2825         (enlarge_archive): Re-add locales in the order they were added
2826         to the archive.
2827         (add_locale): Put all the small locale files together, if the small
2828         locale file block would occupy less pages if page size aligned, align
2829         it.
2830         (show_archive_content): Adjust for locale archives optimized for speed.
2831
2832 2002-08-14  Roland McGrath  <roland@frob.com>
2833
2834         * configure.in: Use "MISSING" as not-found value for MIG.
2835         * sysdeps/mach/configure.in: Fatal if mig not found.
2836         * configure, sysdeps/mach/configure: Regenerated.
2837
2838 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2839
2840         * locale/loadarchive.c (archfname): Add missing slash.
2841
2842         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2843         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2844
2845 2002-08-12  Roland McGrath  <roland@redhat.com>
2846
2847         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2848         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2849         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2850         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2851         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2852         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2853         * sysdeps/generic/waitpid.c: Likewise.
2854
2855         * include/net/if.h: New file.  Use libc_hidden_proto
2856         for if_nametoindex and if_indextoname.
2857         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2858         * sysdeps/mach/hurd/if_index.c: Likewise.
2859         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2860
2861         * include/grp.h (setgroups): Add libc_hidden_proto.
2862         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2863         * sysdeps/mach/hurd/setgroups.c: Likewise.
2864         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2865         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2866
2867 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2868
2869         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2870         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2871         * sysdeps/generic/setegid.c (setegid): Likewise.
2872         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2873         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2874         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2875         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2876         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2877         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2878         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2879         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2880         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2881         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2882         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2883         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2884         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2885
2886         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2887         __lxstat_internal, __lxstat64_internal): Remove.
2888         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2889         Add hidden_proto.
2890         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2891         Remove INTDEF where present, remove #undef at the beginning.
2892         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2893         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2894         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2895         * sysdeps/generic/xstat.c (__xstat): Likewise.
2896         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2897         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2898         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2899         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2900         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2901         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2902         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2903         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2904         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2905         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2906         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2907         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2908         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2909         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2910         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2911         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2912         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2913         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2914         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2915         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2916         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2917         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2918         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2919         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2920         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2921         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2922         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2923         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2924         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2925         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2926         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2927         * sysdeps/unix/xstat.c (__xstat): Likewise.
2928
2929         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2930         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2931         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2932         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2933         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2934         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2935         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2936
2937         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2938         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2939         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2940         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2941         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2942         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2943         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2944         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2945         Likewise.
2946         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2947         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2948         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2949         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2950         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2951         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2952         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2953         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2954
2955         * include/string.h (strcoll): Add libc_hidden_proto.
2956         * string/strcoll.c (strcoll): Add libc_hidden_def.
2957
2958         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2959
2960 2002-08-11  Philip Blundell  <philb@gnu.org>
2961
2962         * sysdeps/arm/Makefile: New file.
2963
2964 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2967         by another '|', end of regex or enclosing ')', clear branch.
2968         * posix/bug-regex9.c: New test.
2969         * posix/Makefile (tests): Add bug-regex9.
2970
2971 2002-08-12  Roland McGrath  <roland@redhat.com>
2972
2973         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2974         start count condition, use TOTAL instead of variable that was never
2975         set.  Fix outer loop termination condition to TOTAL >= after update.
2976
2977         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2978         dl_tls_static_align and dl_tls_static_nelem.
2979
2980 2002-08-11  Roland McGrath  <roland@redhat.com>
2981
2982         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2983         of the TLS macros, otherwise the compiler might not have initialized
2984         the PIC register yet when we use the PLT via asm.
2985         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2986         * elf/tst-tlsmod2.c (in_dso): Likewise.
2987
2988         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2989
2990         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2991         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2992
2993         * include/unistd.h: Use libc_hidden_proto for getdomainname
2994         and getlogin_r.
2995         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2996         * sysdeps/mach/hurd/getdomain.c: Likewise.
2997         * sysdeps/unix/getlogin_r.c: Likewise.
2998         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2999         * sysdeps/generic/getlogin_r.c: Likewise.
3000
3001         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3002         * sunrpc/rtime.c: Add libc_hidden_def.
3003
3004         * include/string.h: Use libc_hidden_proto for basename.
3005         * string/basename.c [_LIBC]: Add libc_hidden_def.
3006
3007         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3008
3009         * locale/loadarchive.c: munmap -> __munmap throughout.
3010
3011         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3012         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3013         * sysdeps/generic/gai_strerror.c: Likewise.
3014
3015         * include/sys/errno.h: New file.
3016
3017         * include/signal.h: No libc_hidden_proto for raise,
3018         __libc_current_sigrtmin, __libc_current_sigrtmax.
3019         These need to be overridden by linuxthreads.
3020         * sysdeps/posix/raise.c: Reverted.
3021         * sysdeps/generic/raise.c: Reverted.
3022         * signal/allocrtsig.c: Reverted.
3023
3024         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3025
3026 2002-08-10  Roland McGrath  <roland@redhat.com>
3027
3028         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3029         * locale/localeinfo.h: Declare it.
3030         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3031         current locale if it's not in the file list.
3032         Call _nl_archive_subfreeres.
3033
3034 2002-08-10  Andreas Jaeger  <aj@suse.de>
3035
3036         * sysdeps/i386/strchr.S: Add comment.
3037
3038 2002-08-10  Roland McGrath  <roland@redhat.com>
3039
3040         * include/wchar.h (putwc): Use libc_hidden_proto.
3041         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3042         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3043         * stdio-common/dprintf.c: Add libc_hidden_def.
3044         * stdio-common/fprintf.c: Likewise.
3045         * stdio-common/sprintf.c: Likewise.
3046         * stdio-common/sscanf.c: Likewise.
3047         * libio/iofwrite.c: Likewise.
3048         * libio/memstream.c: Likewise.
3049         * libio/putwc.c: Likewise.
3050         * stdio-common/perror.c: Likewise.
3051         * sysdeps/posix/remove.c: Likewise.
3052         * sysdeps/generic/remove.c: Likewise.
3053         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3054         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3055
3056 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3057
3058         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3059         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3060         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3061         towlower, towupper): Add libc_hidden_weak.
3062
3063         * include/bits/dlfcn.h: New file.
3064         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3065
3066         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3067         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3068         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3069         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3070         * include/shadow.h (_nss_files_parse_spent): Likewise.
3071         * include/netdb.h (_nss_files_parse_protoent,
3072         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3073         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3074         (LINE_PARSER): Use it.
3075         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3076         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3077
3078         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3079         #endif.
3080
3081         * manual/debug.texi (%MENU%): Remove trailing dot.
3082         Reported by <hayastan132@hotmail.com>.
3083
3084         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3085         aliases.
3086         (lseek): Dummy.
3087         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3088         Likewise.
3089
3090 2002-08-09  Roland McGrath  <roland@redhat.com>
3091
3092         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3093         name to find codeset name (if any) and normalize it.  If the
3094         normalized name differs, look up only that in the archive.
3095         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3096         contains a codeset, normalize the codeset store only the normalized
3097         name in the archive.  If not, add an alias containing the locale's
3098         normalized codeset name.  Apply codeset name normalization when
3099         matching entries in the alias file.
3100
3101         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3102         decrement HEAD->namehash_used here.
3103         (add_locale): Only need to insert name string when name_offset != 0.
3104
3105         * locale/programs/localedef.c (options): Add -A/--alias-file.
3106         (alias_file): New variable.
3107         (parse_opt): Grok -A, set that.
3108         * locale/programs/localedef.h: Declare it.
3109
3110         * locale/locarchive.h (struct locrecent): Add `refs' member.
3111         * locale/programs/locarchive.c (insert_name): New function, broken out
3112         of ...
3113         (add_locale_to_archive): ... here.  Call that.
3114         (add_alias): New function.
3115         (add_locale): New static function, add_locale_to_archive renamed.
3116         (add_locale_to_archive): Call that and use add_alias to add an alias
3117         for the name with codeset if the given name lacks it.
3118         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3119
3120         * locale/Makefile (routines): Add loadarchive.
3121         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3122         (_nl_load_locale_from_archive): New function.
3123         * locale/localeinfo.h: Declare it.
3124         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3125         try _nl_load_locale_from_archive first.
3126
3127         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3128         broken out of _nl_load_locale.
3129         (_nl_load_locale): Call that.
3130         * locale/localeinfo.h: Declare it.
3131         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3132         (struct locale_data): Remove unused member `options'.
3133         * locale/findlocale.c (_nl_remove_locale): Update uses.
3134         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3135         * locale/C-collate.c: Update initializer.
3136         * locale/C-identification.c: Likewise.
3137         * locale/C-measurement.c: Likewise.
3138         * locale/C-telephone.c: Likewise.
3139         * locale/C-address.c: Likewise.
3140         * locale/C-name.c: Likewise.
3141         * locale/C-paper.c: Likewise.
3142         * locale/C-time.c: Likewise.
3143         * locale/C-numeric.c: Likewise.
3144         * locale/C-monetary.c: Likewise.
3145         * locale/C-messages.c : Likewise.
3146         * locale/C-ctype.c: Likewise.
3147
3148         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3149         use CHAR_BIT instead of BITSPERBYTE.
3150
3151         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3152         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3153         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3154         (_nl_remove_locale): Likewise.
3155         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3156
3157         * locale/findlocale.c (_nl_default_locale_path): New variable.
3158         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3159         * locale/localeinfo.h: Declare it.
3160         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3161         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3162         * locale/newlocale.c (__newlocale): Likewise.
3163
3164         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3165         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3166         * sysdeps/generic/morecore.c: Likewise.
3167         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3168         (__libc_current_sigrtmax): Likewise.
3169
3170 2002-08-08  Roland McGrath  <roland@redhat.com>
3171
3172         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3173         * catgets/open_catalog.c (__open_catalog): Likewise.
3174
3175         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3176         from typo INITIAL_NUM_NANES.
3177         (create_archive): Update use.
3178
3179 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3180
3181         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3182
3183 2002-08-08  Roland McGrath  <roland@frob.com>
3184
3185         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3186
3187 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3188
3189         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3190         else and undefine after including wcstol_l.c.
3191         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3192
3193 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3194
3195         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3196
3197 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3198
3199         * configure.in: Make the test for broken_alias_attribute stricter.
3200
3201 2002-05-24  Robert Love  <rml@tech9.net>
3202
3203         * posix/Makefile (routines): Add sched_getaffinity and
3204         sched_setaffinity.
3205         * posix/sched.h: Add declarations for sched_getaffinity and
3206         sched_setaffinity.
3207         * sysdeps/generic/sched_getaffinity.c: New file.
3208         * sysdeps/generic/sched_setaffinity.c: New file.
3209         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3210         sched_setaffinity.
3211
3212 2002-08-06  Andreas Schwab  <schwab@suse.de>
3213
3214         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3215
3216 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3217
3218         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3219         message.
3220
3221         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3222         It is known to be defined.
3223
3224         * include/string.h: Define index and rindex only if _ISOMAC is not
3225         defined.
3226
3227         * elf/rtld.c: Include <errno.h>.
3228         * sysdeps/generic/libc-tls.c: Likewise.
3229
3230 2002-08-07  Roland McGrath  <roland@redhat.com>
3231
3232         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3233         it internally.
3234         (precsize_aton): Likewise.
3235
3236         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3237         the static symbols added in the last change (doofus is me).
3238
3239         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3240         loop to notice missing categories in a composite name.
3241
3242         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3243         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3244         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3245         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3246
3247 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3248
3249         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3250
3251 2002-08-07  Roland McGrath  <roland@redhat.com>
3252
3253         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3254         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3255         Reported by Jakub Jelinek  <jakub@redhat.com>.
3256
3257 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3258
3259         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3260         division.
3261
3262 2002-08-06  Roland McGrath  <roland@redhat.com>
3263
3264         * include/getopt.h: Put private decls inside [_GETOPT_H].
3265         Use libc_hidden_proto for getopt_long, getopt_long_only.
3266         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3267         Add libc_hidden_def.
3268
3269         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3270         Define as a macro for __dl_iterate_phdr.
3271
3272         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3273         made static.  Add __ name as a strong alias.
3274         (internal_endnetgrent): Likewise.
3275         (internal_getnetgrent_r): Likewise.
3276
3277         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3278         with no __ prefix.
3279         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3280         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3281         all *_l functions with no __ prefix.
3282         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3283         * ctype/ctype_l.c: Likewise.
3284         * locale/nl_langinfo.c: Likewise.
3285         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3286         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3287         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3288         * wctype/wctype.h [__USE_GNU]: Likewise.
3289         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3290         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3291         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3292         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3293         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3294         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3295         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3296         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3297         (__wcscasecmp_l): Add libc_hidden_def.
3298         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3299         (__wcsncasecmp_l): Add libc_hidden_def.
3300         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3301         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3302         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3303         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3304         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3305         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3306         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3307         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3308         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3309         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3310         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3311         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3312         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3313         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3314
3315 2002-08-05  Roland McGrath  <roland@redhat.com>
3316
3317         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3318         netname2user, host2netname, user2netname, key_gendes.
3319         * sunrpc/netname.c: Add libc_hidden_def.
3320         * sunrpc/key_call.c: Likewise.
3321
3322         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3323         freeaddrinfo.
3324         * inet/getnameinfo.c: Add libc_hidden_def.
3325         * sysdeps/generic/getaddrinfo.c: Likewise.
3326         * sysdeps/posix/getaddrinfo.c: Likewise.
3327
3328         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3329         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3330         * wcsmbs/wmemset.c: Add libc_hidden_def.
3331
3332         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3333         (index, rindex): Define as macros for strchr, strrchr.
3334
3335         * string/envz.c (envz_strip): index -> strchr
3336
3337         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3338         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3339
3340         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3341         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3342
3343         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3344         * stdlib/wctomb.c: Add libc_hidden_def.
3345
3346         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3347         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3348         * resolv/herror.c: Likewise.
3349         * inet/rcmd.c: Add libc_hidden_def.
3350         * inet/ruserpass.c: Likewise.
3351         * inet/getnetgrent_r.c: Likewise.
3352
3353         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3354         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3355         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3356         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3357         libc_hidden_def.
3358         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3359         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3360
3361         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3362         __libc_system.
3363         (__libc_system): Call it, putting just the line == NULL test here.
3364
3365         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3366         variables work right.
3367
3368         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3369         * elf/dl-close.c (_dl_close): Likewise.
3370
3371         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3372         in6addr_any, in6addr_loopback.  Remove decls for
3373         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3374         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3375         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3376         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3377         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3378         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3379         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3380         in6addr_loopback.
3381         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3382
3383         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3384         ether_aton_r.
3385         * inet/ether_aton_r.c: Add libc_hidden_def.
3386         * inet/ether_ntoa_r.c: Likewise.
3387
3388         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3389         xprt_unregister.
3390         * sunrpc/svc.c: Add libc_hidden_def.
3391         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3392         pmap_set, pmap_unset.
3393         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3394         * sunrpc/pm_getport.c: Likewise.
3395         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3396         * sunrpc/publickey.c: Add libc_hidden_def.
3397
3398 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3399
3400         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3401         the other memset call in this function.
3402
3403         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3404         at correct index.  Clear BSS region now that memalign is used.
3405
3406 2002-08-05  Roland McGrath  <roland@redhat.com>
3407
3408         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3409         * sysdeps/generic/uname.c: Add libc_hidden_def.
3410         * sysdeps/mach/hurd/uname.c: Likewise.
3411
3412 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3413
3414         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3415         wcspbrk): Add libc_hidden_proto.
3416         * time/strftime.c (my_strftime): Add libc_hidden_def.
3417         (strftime): Remove libc_hidden_def.
3418         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3419         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3420         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3421         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3422         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3423         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3424
3425         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3426         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3427         __rpc_thread_createerr): Add libc_hidden_proto.
3428         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3429         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3430         __rpc_thread_createerr): Add libc_hidden_def.
3431
3432         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3433         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3434         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3435         clnt_perror, clnt_sperror): Add libc_hidden_def.
3436         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3437
3438         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3439         libc_hidden_proto.
3440         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3441         * sunrpc/des_soft.c (des_setparity): Likewise.
3442
3443         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3444         Add libc_hidden_proto.
3445         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3446         Add libc_hidden_def.
3447
3448 2002-08-05  Roland McGrath  <roland@redhat.com>
3449
3450         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3451         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3452         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3453         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3454         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3455         old data, abandoning the original memory allocated by rtld at startup,
3456         instead of calling realloc normally.
3457
3458 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3459
3460         * po/fr.po: Update from translation team.
3461
3462 2002-08-04  Roland McGrath  <roland@redhat.com>
3463
3464         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3465         then generate a dummy module under the given name, obeying the
3466         normal rules for the "caller" field.
3467
3468         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3469         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3470
3471         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3472         weak here; we declare it weak or strong in the one place we use it.
3473         * sysdeps/generic/libc-start.c: ... which is here.
3474         Don't make the decl weak if [USE_TLS], since static programs need TLS
3475         setup even when single-threaded.
3476
3477         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3478
3479         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3480         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3481         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3482         all these variables.
3483
3484 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3485
3486         * include/stdio.h: Don't define macro magic to redirect function
3487         calls if _ISOMAC is defined.
3488
3489         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3490         ldouble asin tests.
3491
3492 2002-08-04  Roland McGrath  <roland@redhat.com>
3493
3494         * stdlib/lrand48_r.c: Add libc_hidden_def.
3495
3496         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3497         TCB with __libc_memalign instead of mmap.
3498         (_dl_deallocate_tls): Free it with free instead of munmap.
3499
3500         * Makerules (cpp-srcs-left): When setting this to run
3501         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3502         words.  Combine the two loops into one on the concatenated list,
3503         including those as well as $(test-srcs).
3504
3505         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3506         since we align here with optimally minimal waste anyway.
3507         (malloc): Just call that.
3508
3509         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3510         the right variable.
3511
3512         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3513         to compute memory location for l_tls_initimage.
3514         * elf/rtld.c (_dl_start): Likewise.
3515         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3516
3517         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3518         because the .d file is generated in the non-shared case and
3519         so fails to catch them otherwise.
3520
3521         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3522         split out of _dl_allocate_tls.
3523         (_dl_allocate_tls_init): Likewise.
3524         (_dl_allocate_tls): Call those.
3525         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3526         * elf/rtld.c (dl_main): Call them separately instead of calling
3527         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3528         is finished, so that the initializer data has been relocated before we
3529         copy it into the main thread's TLS block.
3530
3531         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3532         loop conditions, prevented the last used module from being initialized.
3533
3534 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3535
3536         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3537         if glob resp. globfree are not macros.
3538         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3539         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3540         Add libc_hidden_ver.
3541         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3542         libc_hidden_def.
3543         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3544         instead of libc_hidden_weak.
3545         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3546         libc_hidden_ver instead of libc_hidden_def.
3547         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3548         libc_hidden_ver instead of libc_hidden_def.
3549         (wcstoll, wcstoq): Remove libc_hidden_weak.
3550         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3551         libc_hidden_ver.
3552         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3553         libc_hidden_ver.
3554         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3555         libc_hidden_ver.
3556         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3557         libc_hidden_ver.
3558
3559 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3560
3561         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3562         to access _sys_siglist.
3563         * string/strsignal.c: Likewise.
3564         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3565         * sysdeps/gnu/siglist.c: Likewise.
3566         * sysdeps/unix/siglist.c: Likewise.
3567         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3568
3569         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3570
3571         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3572
3573         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3574         alias and use it.
3575         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3576
3577         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3578         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3579         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3580
3581         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3582         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3583
3584         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3585         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3586         and __gconv_get_cache respectively.
3587         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3588         defined static.  Change all users.
3589         (__gconv_get_cache): New function.
3590         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3591         (__gconv_get_alias_db): New function.
3592         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3593         (__conv_modules_db): Likewise.
3594         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3595         and __gconv_get_alias_db.
3596         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3597         variables.
3598
3599         * include/stdlib.h: Add prototype and libc_hidden_proto for
3600         __default_morecore.
3601         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3602
3603         * malloc/obstack.c: Remove fputs macro.
3604
3605         * malloc/mtrace.c: Remove fopen macro.
3606
3607 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3608
3609         * manual/debug.texi: Fix spelling to programmatically.
3610         Reported by <hayastan132@hotmail.com>.
3611
3612 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3613
3614         * include/libio.h: Add libc_hidden_proto for __uflow.
3615         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3616         fgetpos to _IO_* names.
3617         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3618         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3619         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3620         putwc_unlocked, vswscanf.
3621         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3622         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3623         * libio/fseek.c: Likewise.
3624         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3625         not fopencookie.
3626         * libio/genops.c (__uflow): Add libc_hidden_def.
3627         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3628         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3629         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3630         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3631         * libio/iofread_u.c (fread_unlocked): Likewise.
3632         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3633         * libio/iovswscanf.c (vswscanf): Likewise.
3634         * libio/putwc_u.c (putwc_unlocked): Likewise.
3635         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3636         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3637         * malloc/mtrace.c: Likewise.
3638
3639         * sunrpc/clnt_perr.c: Remove fputs macro.
3640         * sunrpc/svc_simple.c: Likewise.
3641         * sunrpc/svc_tcp.c: Likewise.
3642         * sunrpc/svc_udp.c: Likewise.
3643         * sunrpc/xdr_rec.c: Likewise.
3644         * sunrpc/xdr_ref.c: Likewise.
3645
3646         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3647         iconv_prog, linereader, and charmap-dir.
3648         * locale/Makefile: Likewise for locale and charmap-dir.
3649         * malloc/Makefile: Likewise for memusagestat.
3650         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3651         * sunrpc/Makefile: Likewise for rpc_main.
3652         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3653         * timezone/Makefile: Likewise for zic.
3654
3655         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3656
3657         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3658         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3659         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3660         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3661         _dl_close.
3662
3663         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3664         __wunderflow.
3665         * libio/genops.c (__underflow): Add libc_hidden_def.
3666         * libio/wgenops.c (__wuflow): Likewise.
3667         (__wunderflow): Likewise.
3668
3669         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3670         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3671
3672         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3673         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3674
3675         * include/string.h: Add libc_hidden_proto for __strverscmp.
3676         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3677
3678         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3679         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3680         * sysdeps/posix/sysconf.c: Likewise.
3681         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3682         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3683
3684         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3685         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3686         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3687         __iswxdigit_l, __towlower_l, __towupper_l.
3688         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3689         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3690
3691         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3692         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3693         * sysdeps/mach/hurd/xmknod.c: Likewise.
3694         * sysdeps/unix/xmknod.c: Likewise.
3695         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3696         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3697         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3698
3699         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3700
3701 2002-08-03  Roland McGrath  <roland@redhat.com>
3702
3703         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3704         setpriority.
3705         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3706         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3707         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3708         * sysdeps/mach/hurd/setpriority.c: Likewise.
3709         * sysdeps/mach/hurd/getpriority.c: Likewise.
3710         * sysdeps/generic/setpriority.c: Likewise.
3711         * sysdeps/generic/getpriority.c: Likewise.
3712
3713         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3714         * malloc/mcheck.c: Add libc_hidden_def.
3715
3716         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3717         * misc/hsearch_r.c: Add libc_hidden_def.
3718
3719         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3720         * posix/fnmatch.c: Add libc_hidden_weak.
3721
3722         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3723         execl, execle, execlp, execvp, getpid, getsid.
3724         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3725         * sysdeps/unix/alarm.c: Likewise.
3726         * posix/confstr.c: Likewise.
3727         * posix/execvp.c: Likewise.
3728         * posix/execlp.c: Likewise.
3729         * posix/execle.c: Likewise.
3730         * posix/execl.c: Likewise.
3731         * sysdeps/generic/getsid.c: Likewise.
3732         * sysdeps/mach/hurd/getsid.c: Likewise.
3733         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3734         * sysdeps/mach/hurd/getpid.c: Likewise.
3735
3736         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3737         qecvt_r, qfcvt_r, lrand48_r.
3738         * misc/efgcvt_r.c: Add libc_hidden_def.
3739
3740         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3741         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3742
3743         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3744         * locale/nl_langinfo.c: Add libc_hidden_def.
3745
3746         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3747         * sysdeps/generic/glob.c: Add libc_hidden_def.
3748         * sysdeps/generic/glob64.c: Likewise.
3749         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3750
3751         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3752
3753         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3754
3755         * locale/setlocale.c (_nl_current_names): Variable moved ...
3756         * locale/localename.c (_nl_current_names): ... here, new file.
3757         Make it global, with attribute_hidden.
3758         * locale/localeinfo.h: Declare it.
3759         * locale/Makefile (aux): Add localename.
3760         * locale/localename.c (__current_locale_name): New function.
3761         * include/locale.h (__current_locale_name): Declare it.
3762         * intl/dcigettext.c (guess_category_value): Use that instead of
3763         calling setlocale.
3764
3765         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3766         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3767         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3768         * locale/newlocale.c: Add alias to __ name.
3769         * locale/duplocale.c: Likewise.
3770         * locale/freelocale.c: Likewise.
3771         * locale/uselocale.c: New file.
3772         * locale/Makefile (routines): Add it.
3773         * locale/Versions (libc: GLIBC_2.3): New set.
3774         Add newlocale, duplocale, freelocale, uselocale.
3775         (libc: GLIBC_PRIVATE): Add __uselocale.
3776
3777         * locale/localeinfo.h [SHARED]
3778         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3779         (_NL_CURRENT_DATA): Define using that.
3780         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3781         (_NL_CURRENT_DEFINE): Define to empty.
3782         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3783         conditionalized on this.
3784         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3785         taking initializer of _nl_C_locobj.
3786         [SHARED] (_nl_global_locale): New variable, using that initializer.
3787         (_nl_C_locobj): Use new macro for initialzier.
3788         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3789         [! SHARED] (CATEGORY_USED): New macro.
3790         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3791         (setdata, setlocale): Use that macro instead of examining _nl_current.
3792         (setdata): Set the slot in _nl_global_locale.
3793         Conditionalize setting of _nl_current on [! SHARED].
3794         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3795         declaration as an extern.
3796         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3797
3798         * include/locale.h: Use libc_hidden_proto for setlocale.
3799         * locale/setlocale.c: Add libc_hidden_def.
3800
3801         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3802
3803         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3804         * misc/hsearch_r.c: Add libc_hidden_def.
3805         * misc/lsearch.c: Likewise.
3806
3807         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3808         endttyent.
3809         * misc/getttyent.c: Add libc_hidden_def.
3810
3811         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3812         * malloc/mcheck.c: Add libc_hidden_def.
3813
3814         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3815         * include/argz.h: Use libc_hidden_proto for argz_delete.
3816         * string/argz-delete.c: Add libc_hidden_def.
3817         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3818
3819         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3820         HIDDEN_JUMPTARGET for _exit.
3821         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3822         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3823         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3824         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3825
3826         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3827         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3828         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3829         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3830
3831         * include/stdlib.h: Use libc_hidden_proto for abort,
3832         __strtof_internal, __strtod_internal, __strtold_internal,
3833         __strtol_internal, __strtoll_internal, __strtoul_internal,
3834         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3835         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3836         __strtoul_l_internal, __strtoull_l_internal.
3837         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3838         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3839         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3840         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3841         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3842         __wcsncasecmp_l.
3843         * sysdeps/generic/abort.c: Add libc_hidden_def.
3844         * stdlib/strtod.c: Likewise.
3845         * sysdeps/generic/strtol.c: Likewise.
3846         * sysdeps/wordsize-64/strtol.c: Likewise.
3847         * sysdeps/wordsize-64/wcstol.c: Likewise.
3848         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3849
3850         * include/stdlib.h: Use libc_hidden_proto for qsort.
3851         * stdlib/msort.c: Add libc_hidden_def.
3852
3853         * include/utime.h: Use libc_hidden_proto for utime.
3854         * sysdeps/generic/utime.c: Add libc_hidden_def.
3855         * sysdeps/unix/utime.c: Likewise.
3856
3857         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3858         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3859         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3860         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3861         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3862
3863         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3864         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3865         and __libc_current_sigrtmax.
3866         * signal/sigismem.c: Add libc_hidden_def.
3867         * signal/sigfillset.c: Likewise.
3868         * signal/sigempty.c: Likewise.
3869         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3870         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3871         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3872         * sysdeps/posix/raise.c: Likewise.
3873         * sysdeps/generic/raise.c: Likewise.
3874
3875 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3876
3877         * include/string.h: Use libc_hidden_proto for __stpcpy.
3878         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3879         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3880         * sysdeps/generic/stpcpy.c: Likewise.
3881         * sysdeps/i386/stpcpy.S: Likewise.
3882         * sysdeps/i386/i586/stpcpy.S: Likewise.
3883         * sysdeps/powerpc/stpcpy.S: Likewise.
3884         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3885         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3886
3887         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3888         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3889         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3890         libc_hidden_def.
3891         * string/strdup.c (__strdup): Likewise.
3892         * string/strndup.c (__strndup): Likewise.
3893         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3894         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3895
3896 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3897
3898         * include/libio.h: New file.
3899         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3900         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3901         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3902         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3903         * sysdeps/unix/common/syscalls.list: Likewise.
3904         * sysdeps/unix/inet/syscalls.list: Likewise.
3905         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3906         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3907         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3908         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3909         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3910         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3911         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3912         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3913         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3914         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3915         * sysdeps/unix/syscalls.list: Likewise.
3916
3917 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3918             Ulrich Drepper  <drepper@redhat.com>
3919
3920         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3921         the arguments is big enough to cause an overflow.
3922
3923 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3924
3925         * assert/assert.c: Use hidden_def not INTDEF.
3926
3927 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3928
3929         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3930         not defined.
3931
3932 2002-08-03  Roland McGrath  <roland@redhat.com>
3933
3934         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3935         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3936         verr, verrx.
3937         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3938         * misc/syslog.c: Add libc_hidden_def.
3939         * misc/err.c: Likewise.
3940         * stdlib/exit.c: Likewise.
3941         * stdlib/bsearch.c: Likewise.
3942         * sysdeps/generic/getenv.c: Likewise.
3943
3944         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3945
3946         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3947         libc_hidden_weak for every system call symbol defined.
3948
3949         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3950         timelocal, localtime, strftime.
3951         * time/asctime.c: Add libc_hidden_def.
3952         * time/mktime.c: Likewise.
3953         * time/localtime.c: Likewise.
3954         * time/strftime.c: Likewise.
3955         * time/strptime.c: Likewise.
3956         * sysdeps/generic/time.c: Likewise.
3957         * sysdeps/unix/time.c: Likewise.
3958         * sysdeps/unix/sysv/i386/time.S: Likewise.
3959         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3960
3961         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3962         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3963         * resolv/inet_ntop.c: Likewise.
3964         * resolv/inet_pton.c: Likewise.
3965         * inet/inet_mkadr.c: Add libc_hidden_def.
3966         * inet/inet_netof.c: Likewise.
3967         * resolv/inet_addr.c: Likewise.
3968
3969         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3970         clauses from conditionals for now.  Will have to be fixed later
3971         for older compilers.
3972
3973         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3974
3975 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3976
3977         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3978         broken alias attribute handling.
3979         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3980
3981 2002-08-02  Roland McGrath  <roland@frob.com>
3982
3983         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3984         since it sets the variables we use in a -D switch.
3985
3986 2002-08-02  Roland McGrath  <roland@redhat.com>
3987
3988         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3989         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3990         matches long int, not int.
3991
3992         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3993         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3994         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3995         * wctype/wctrans.c (wctrans): Likewise.
3996         * wctype/wctype.c (__wctype): Likewise.
3997         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3998
3999 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * assert/assert.c (__assert_fail): Fix typo in comment.
4002
4003         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4004         * sunrpc/rpc_thread.c: Define it without static.
4005         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4006
4007 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4008
4009         * assert/assert.c (__assert_fail): Remove undef.
4010         Replace INTDEF with libc_hidden_def.
4011         * assert/__assert.c (__assert): Remove INTUSE.
4012         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4013         libc_hidden_weak.
4014         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4015         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4016         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4017         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4018         libm_hiden_ver): Define.
4019         * include/assert.h (__assert_fail_internal): Remove.
4020         (__assert_fail): Add prototype.  Add hidden_proto.
4021         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4022         libc_hidden_proto.
4023         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4024         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4025         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4026         Add libc_hidden_proto.
4027         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4028         __fcntl): Add libc_hidden_proto.  Remove macros.
4029         (__open_internal, __fcntl_internal): Remove.
4030         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4031         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4032         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4033         libc_hiden_proto.
4034         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4035         libc_hidden_def.
4036         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4037         Add libc_hidden_def.
4038         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4039         * sysdeps/generic/open.c (__open): Remove undef.
4040         Add libc_hidden_def.  Remove INTDEF.
4041         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4042         Add libc_hidden_def.
4043         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4044         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4045         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4046         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4047         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4048         (__libc_fcntl): Add libc_hidden_def.
4049         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4050         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4051         (__libc_open): Add libc_hidden_def.
4052         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4053         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4054         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4055         Add libc_hidden_def.
4056         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4057         Add libc_hidden_def.
4058         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4059         undef.
4060         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4061         (__libc_fcntl): Add libc_hidden_def.
4062         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4063         __getpgid_internal, __chown_internal): Remove.
4064         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4065         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4066         __GI___chown): Add.
4067         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4068         __getpid_internal, __open_internal, __write_internal): Remove.
4069         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4070         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4071         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4072         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4073         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4074         Replace INTDEF with libc_hidden_def.
4075         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4076         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4077         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4078         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4079         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4080         Add libc_hidden_proto.
4081         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4082         * include/sys/select.h (__select): Likewise.
4083         * include/sys/socket.h (__send): Likewise.
4084         * include/sys/statfs.h (__statfs): Likewise.
4085         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4086         __getpid, __getpgid, __setpgid, __close, __read, __write,
4087         __getpagesize, __sbrk): Likewise.
4088         (__chown_internal, __dup2_internal, __getpid_internal,
4089         __getpgid_internal, __close_internal, __write_internal,
4090         __getpagesize_internal): Remove.
4091         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4092         Remove macros.
4093         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4094         * include/sched.h (__sched_setscheduler): Likewise.
4095         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4096         * include/stdlib.h (__secure_getenv): Likewise.
4097         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4098         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4099         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4100         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4101         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4102         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4103         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4104         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4105         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4106         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4107         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4108         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4109         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4110         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4111         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4112         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4113         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4114         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4115         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4116         * libio/genops.c (__overflow): Add libc_hidden_def.
4117         * libio/iovdprintf.c: Remove libio.h include.
4118         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4119         libc_hidden_weak): Define to nothing if not defined.
4120         (__overflow, __woverflow): Add libc_hidden_proto.
4121         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4122         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4123         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4124         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4125         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4126         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4127         and libc_hidden_def.
4128         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4129         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4130         (__getpgid): Add libc_hidden_proto.
4131         (__bsd_getpgrp): Remove INTUSE.
4132         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4133         libc_hidden_def.
4134         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4135         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4136         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4137         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4138         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4139         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4140         __rpc_thread_createerr): Add libc_hidden_def.
4141         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4142         libc_hidden_def.
4143         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4144         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4145         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4146         * sysdeps/generic/chown.c (__chown): Likewise.
4147         * sysdeps/generic/close.c (__close): Likewise.
4148         * sysdeps/generic/dup2.c (__dup2): Likewise.
4149         * sysdeps/generic/pipe.c (__pipe): Likewise.
4150         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4151         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4152         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4153         * sysdeps/generic/read.c (__libc_read): Likewise.
4154         (__read): Add libc_hidden_weak.
4155         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4156         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4157         * sysdeps/generic/select.c (__select): Likewise.
4158         * sysdeps/generic/send.c (__send): Likewise.
4159         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4160         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4161         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4162         * sysdeps/generic/statfs.c (__statfs): Likewise.
4163         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4164         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4165         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4166         Remove undef and INTDEF.
4167         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4168         * sysdeps/generic/getpid.c (__getpid): Likewise.
4169         * sysdeps/generic/write.c (__libc_write): Likewise.
4170         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4171         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4172         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4173         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4174         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4175         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4176         Remove undef and INTDEF.
4177         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4178         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4179         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4180         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4181         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4182         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4183         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4184         (__pipe): Add libc_hidden_def.
4185         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4186         libc_hidden_weak.
4187         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4188         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4189         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4190         (__read): Add libc_hidden_weak.
4191         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4192         (__libc_pwrite64): Add libc_hidden_def.
4193         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4194         * sysdeps/mach/hurd/select.c (__select): Likewise.
4195         * sysdeps/mach/hurd/send.c (__send): Likewise.
4196         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4197         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4198         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4199         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4200         * sysdeps/posix/dup2.c: Likewise.
4201         Remove undef and INTDEF.
4202         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4203         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4204         (__pwrite64): Add libc_hidden_weak.
4205         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4206         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4207         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4208         * sysdeps/standalone/close.c (__close): Likewise.
4209         * sysdeps/standalone/write.c (__libc_write): Likewise.
4210         (__write): Add libc_hidden_weak.
4211         * sysdeps/standalone/read.c (__read): Likewise.
4212         (__libc_read): Add libc_hidden_def.
4213         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4214         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4215         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4216         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4217         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4218         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4219         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4220         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4221         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4222         __GI___sigaction): Add.
4223         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4224         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4225         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4226         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4227         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4228         __GI___setpgid): Add.
4229         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4230         Remove undef and INTDEF.
4231         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4232         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4233         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4234         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4235         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4236         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4237         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4238         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4239         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4240         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4241         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4242         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4243         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4244         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4245         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4246         __GI___statfs, __GI___send): Add.
4247         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4248         libc_hidden_ver resp. libc_hidden_def.
4249         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4250         libc_hidden_def.
4251         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4252         Likewise.  Remove undef and INTDEF.
4253         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4254         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4255         __GI___statfs, __GI___send): Add.
4256         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4257         libc_hidden_def.
4258         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4259         Likewise.
4260         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4261         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4262         libc_hidden_ver resp. libc_hidden_def.
4263         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4264         __GI___send): Add.
4265         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4266         Add libc_hidden_weak.
4267         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4268         Add libc_hidden_def.
4269         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4270         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4271         libc_hidden_weak.
4272         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4273         resp. libc_hidden_def.
4274         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4275         libc_hidden_weak.
4276         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4277         INTDEF.
4278         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4279         Likewise.  Remove undef.
4280         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4281         libc_hidden_weak.
4282         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4283         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4284         libc_hidden_weak.
4285         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4286         libc_hidden_def.
4287         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4288         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4289         Likewise.  Remove undef and INTDEF.
4290         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4291         libc_hidden_def.
4292         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4293         libc_hidden_weak.
4294         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4295         libc_hidden_def.
4296         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4297         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4298         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4299         libc_hidden_weak.
4300         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4301         Add libc_hidden_def.
4302         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4303         __GI___statfs): Add.
4304         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4305         libc_hidden_weak.
4306         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4307         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4308         Remove undef and INTDEF.
4309         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4310         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4311         libc_hidden_def.
4312         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4313         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4314         libc_hidden_weak.
4315         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4316         libc_hidden_def.
4317         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4318         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4319         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4320         Add.
4321         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4322         libc_hidden_def.  Remove undef and INTDEF.
4323         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4324         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4325         libc_hidden_def.
4326         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4327         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4328         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4329         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4330         Remove undef and INTDEF.
4331         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4332         broken visibility attribute handling.
4333         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4334
4335 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4336
4337         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4338         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4339
4340         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4341         previous patch.
4342
4343 2002-06-29  Todd Fries  <todd@openbsd.org>
4344
4345         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4346
4347 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4348
4349         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4350
4351 2002-07-30  Roland McGrath  <roland@redhat.com>
4352
4353         * resolv/resolv.h (_res): Define macro unconditionally.
4354         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4355         * include/resolv.h: ... here.
4356         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4357         as a __thread variable.
4358         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4359         a __thread variable instead of a global.
4360         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4361
4362         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4363         time we test it.
4364
4365         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4366
4367         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4368         decls of memset and memcpy.
4369
4370         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4371         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4372
4373         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4374
4375         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4376         (__libc_tsd_define): Define using __thread.
4377
4378         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4379         (__rpc_thread_variables): Use __libc_tsd_get.
4380         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4381         __rpc_thread_variables, which might allocate what we're about to free.
4382
4383         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4384         thread-local variable.
4385         * resolv/netdb.h (h_errno): Define macro unconditionally.
4386         [_LIBC] (__set_h_errno): Macro moved to ...
4387         * include/netdb.h: ... here.
4388         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4389         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4390         [! _LIBC_REENTRANT]: #undef h_errno here.
4391
4392         * include/errno.h: Protect from multiple inclusion.
4393
4394         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4395         before defining them, since Linux's <linux/posix_types.h> might have
4396         defined them.
4397
4398 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4399
4400         * malloc/malloc.c (public_cALLOc): Check for overflow on
4401         multiplication.
4402         * sunrpc/xdr_array.c (xdr_array): Likewise.
4403         * sunrpc/rpc/types.h (mem_free): Add comment.
4404         Patch by Solar Designer <solar@openwall.com>.
4405
4406 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4407
4408         * sysdeps/unix/sysv/linux/kernel-features.h
4409         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4410
4411 2002-08-01  Roland McGrath  <roland@redhat.com>
4412
4413         * libio/fileops.c (_IO_file_sync_mmap): New function.
4414         (_IO_file_jumps_mmap): Use it.
4415         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4416         repeat the stat check and resize the mapped buffer as necessary.
4417
4418 2002-07-31  Roland McGrath  <roland@redhat.com>
4419
4420         * libio/fileops.c (decide_maybe_mmap): New static function.
4421         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4422         mmap the file contents.  Then switch the jump tables to the mmap
4423         tables if it worked, or the vanilla file tables if not.
4424         (_IO_file_underflow_maybe_mmap): New function.
4425         (_IO_file_seekoff_maybe_mmap): New function.
4426         (_IO_file_xsgetn_maybe_mmap): New function.
4427         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4428         * libio/libioP.h: Declare those.
4429         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4430         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4431         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4432         If the stream is read-only, set its jump tables to those new ones.
4433         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4434         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4435         We need the tables set before _IO_file_attach.
4436
4437         * libio/tst-mmap-eofsync.c: New file.
4438         * libio/tst-mmap-fflushsync.c: New file.
4439         * libio/bug-mmap-fflush.c: New file.
4440         * libio/tst-mmap2-eofsync.c: New file.
4441         * libio/Makefile (tests): Add them.
4442
4443         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4444         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4445
4446 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4447
4448         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4449         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4450         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4451         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4452         declare sys_errlist and sys_nerr.
4453         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4454         provide declarations.
4455
4456 2002-07-31  Roland McGrath  <roland@redhat.com>
4457
4458         * elf/rtld.c (dl_main): Fix typo in error message.
4459
4460 2002-07-31  Roland McGrath  <roland@frob.com>
4461
4462         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4463         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4464         sysdeps/mach/hurd/dl-sysdep.c change.
4465
4466 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4467
4468         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4469         -r`/build/include for kernel headers.
4470
4471         * po/fi.po: New file.
4472
4473 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4474
4475         * configure.in (static_nss): Set to `yes' if --disable-shared.
4476
4477 2002-07-23  Bruno Haible  <bruno@clisp.org>
4478
4479         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4480         is set.
4481
4482 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4483
4484         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4485         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4486         arguments.
4487
4488 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4489
4490         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4491         alias.
4492
4493 2002-07-21  Bruno Haible  <bruno@clisp.org>
4494
4495         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4496         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4497         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4498         trans_sysdep_tab_offset.
4499         (struct sysdep_segment): New type.
4500         (struct sysdep_string): New type.
4501         (SEGMENTS_END): New macro.
4502         * intl/gettextP.h (struct sysdep_string_desc): New type.
4503         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4504         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4505         orig_tab, trans_tab, hash_tab to const pointers because they point
4506         into read-only memory.
4507         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4508         (PRI*): Define fallback values.
4509         (get_sysdep_segment_value): New function.
4510         (_nl_load_domain): Distinguish major and minor revision parts. Add
4511         support for minor revision 1 with system dependent strings.
4512         (_nl_unload_domain): Also free the 'malloced' field.
4513         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4514         now done in loadmsgcat.c. Add support for system dependent strings.
4515
4516 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4517
4518         * posix/bug-regex7.c: New file.
4519         * posix/bug-regex8.c: New file.
4520         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4521
4522 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4523
4524         * posix/bug-regex4.c (main): Fix typos.
4525         * posix/bug-regex6.c (main): Likewise.
4526
4527 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4528
4529         * posix/bug-regex6.c (main): Fix warnings.
4530
4531         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4532
4533         * iconv/iconv_prog.c (main): Improve error message for the cases
4534         where -t and/or -f parameter are missing.
4535
4536 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4537
4538         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4539         (re_search): Likewise.
4540         (re_match_2): Likewise.
4541         (re_search_2): Likewise.
4542         (re_search_stub): New function.
4543         (re_search_2_stub): New function.
4544         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4545
4546 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4547
4548         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4549         (re_string_eoi): Use STOP instead of LEN.
4550         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4551         (re_string_construct): Likewise.
4552         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4553         * posix/regexec.c (re_search_internal): Add a new argument STOP
4554         so that it can handle the argument STOP of re_search_2 and re_match_2
4555         correctly.
4556         (regexec): Adapt to new I/F of re_search_internal.
4557         (re_search_stub): Likewise.
4558
4559 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4560
4561         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4562
4563         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4564
4565         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4566         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4567         of __divdi3.
4568
4569         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4570         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4571         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4572         alias for adjtimex syscall.
4573
4574         * elf/dl-minimal.c: Define __assert_fail_internal.
4575         * assert/assert.c: Likewise.
4576         * include/assert.h: Define __assert_file macro if !SHARED and not
4577         NOT_IN_libc.
4578
4579         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4580         programs.
4581         * locale/Makefile: Likewise.
4582         * nscd/Makefile: Likewise.
4583         * catgets/Makefile: Likewise.
4584
4585 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4586
4587         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4588         compute current position.
4589
4590         * stdio-common/tst-fseek.c (main): Improve error messages.
4591
4592         * libio/tst-freopen.c (main): Remove unused variable.
4593
4594         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4595         succesful seek call.  Simplify error checking.
4596
4597 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4598
4599         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4600         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4601
4602 2002-07-19  Roland McGrath  <roland@frob.com>
4603
4604         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4605         __libc_enable_secure is set.
4606
4607 2002-07-24  Roland McGrath  <roland@frob.com>
4608
4609         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4610         This implementation supports only IPv4.
4611         * inet/ifaddrs.h: New file.
4612         * sysdeps/generic/ifaddrs.c: New file.
4613         * sysdeps/gnu/ifaddrs.c: New file.
4614         * inet/test-ifaddrs.c: New file.
4615         * inet/Makefile (routines): Add ifaddrs.
4616         (headers): Add ifaddrs.h here.
4617         (tests): Add test-ifaddrs.
4618         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4619
4620         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4621         socket call to get an AF_INET socket, instead of using __opensock.
4622         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4623
4624         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4625         if not -1 use it instead of calling __opensock.
4626         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4627         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4628         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4629
4630         * sysdeps/mach/hurd/ifreq.h: New file.
4631         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4632         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4633         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4634
4635         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4636         which gets moved around.  Calculate size of mmap'd buffer instead.
4637
4638 2002-07-24  Philip Blundell  <philb@gnu.org>
4639
4640         * sysdeps/unix/arm/brk.S: Improve schedule.
4641         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4642         efficient instruction.
4643         (__socket): Optimize return sequence.
4644
4645 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4646
4647         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4648         sockets on old kernels.
4649
4650 2002-07-22  Philip Blundell  <philb@gnu.org>
4651
4652         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4653         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4654         alias.
4655
4656 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4657
4658         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4659         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4660
4661         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4662         test to detect duplicate locales.
4663
4664         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4665         position would be before beginning of file.
4666         (_IO_file_seekoff_mmap): Likewise.
4667         * libio/Makefile (tests): Add bug-fseek.
4668         * libio/bug-fseek.c: New file.
4669
4670         * intl/explodename.c: Remove support for CEN-style locale variables.
4671         It was never used and shouldn't be since it's not portable.
4672         * intl/finddomain.c: Likewise.
4673         * intl/l10nflist.c: Likewise.
4674         * intl/loadinfo.h: Likewise.
4675         * locale/findlocale.c: Likewise.
4676
4677 2002-07-24  Roland McGrath  <roland@frob.com>
4678
4679         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4680         position, calculate it to take into account an active pushback buffer.
4681
4682         * libio/Makefile (tests): Add bug-ungetc.
4683         * libio/bug-ungetc.c: New file.
4684
4685 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4686
4687         * sysdeps/generic/libc-tls.c: New file.
4688         * csu/Makefile (routines): Add libc-tls.
4689         (static-only-routines): Add libc-tls.
4690         * elf/dl-support.c (_dl_phdr): New variable.
4691         (_dl_phnum): New variable.
4692         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4693         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4694         for !SHARED.  First look through auxiliary vector.  If TLS always
4695         call __pthread_initialize_minimal.
4696
4697         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4698         in mmap call is never zero.
4699
4700 2002-07-23  Andreas Jaeger  <aj@suse.de>
4701
4702         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4703         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4704
4705 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4706
4707         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4708         creation and removal of the temp file.
4709
4710         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4711         file creation.
4712         * test-skeleton.c (create_temp_file): New function.
4713
4714 2002-07-22  Andreas Jaeger  <aj@suse.de>
4715
4716         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4717         local label.
4718
4719 2002-07-21  Roland McGrath  <roland@frob.com>
4720
4721         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4722         put -I../include before -I../stdlib so we get the right errno.h et al.
4723         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4724         (CFLAGS-wcstof.c): Likewise.
4725         (CFLAGS-wcstold.c): Likewise.
4726         (CFLAGS-wcstod_l.c): Likewise.
4727         (CFLAGS-wcstof_l.c): Likewise.
4728         (CFLAGS-wcstold_l.c): Likewise.
4729
4730 2002-07-19  Roland McGrath  <roland@frob.com>
4731
4732         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4733
4734 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4735
4736         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4737         __ASSUME_AT_XID is defined.
4738         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4739         for 2.4.1 and up.
4740         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4741         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4742
4743         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4744         (CFLAGS-wcstof.c): Likewise.
4745         (CFLAGS-wcstold.c): Likewise.
4746         (CFLAGS-wcstod_l.c): Likewise.
4747         (CFLAGS-wcstof_l.c): Likewise.
4748         (CFLAGS-wcstold_l.c): Likewise.
4749
4750 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4751
4752         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4753         __priority_which_t): Always typedef to int for C++.
4754
4755 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4756
4757         * configure.in: Add test for __thread support in compiler.
4758         * config.h.in: Add HAVE___THREAD.
4759         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4760         * include/sys/errno.h: Moved to...
4761         * stdlib/sys/errno.h: ...here.  New file.
4762         * stdlib/errno.h: New file.  Moved from...
4763         * include/errno.h: ...here.  Changed into an internal header defining
4764         libc-local things like __set_errno.
4765         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4766         bits/errno.h.
4767         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4768         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4769         either.
4770         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4771         from...
4772         (_dl_start_final): ...here.  Add code to initialize tls elements from
4773         bootstrap_map.
4774         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4775         if USE_TLS && HAVE___THREAD.
4776         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4777         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4778         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4779         * sysdeps/standalone/bits/errno.h: Likewise.
4780         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4781         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4782         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4783         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4784         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4785         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4786         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4787         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4788         use GL(dl_rtld_map), use map parameter.
4789         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4790         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4791         USE_TLS && HAVE___THREAD.
4792         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4793         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4794         TLS code sequence.
4795         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4796
4797         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4798         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4799         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4800         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4801         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4802         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4803
4804 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4805
4806         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4807         MS_INVALIDATE values.
4808
4809 2002-07-17  Andreas Schwab  <schwab@suse.de>
4810             Ulrich Drepper  <drepper@redhat.com>
4811
4812         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4813         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4814         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4815         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4816
4817 2002-07-01  H.J. Lu  <hjl@gnu.org>
4818
4819         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4820         return value.
4821
4822         * elf/circlemod1.c (circlemod1): Return int.
4823         * elf/circlemod2.c (circlemod2): Likewise.
4824         * elf/circlemod2a.c (circlemod2): Likewise.
4825         * elf/circlemod3.c (circlemod3): Likewise.
4826         (circlemod3a): A new function.
4827
4828 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4829
4830         * catgets/tst-catgets.c (main): Don't expect results for
4831         untranslated messages.
4832
4833         * glibcbug.in: Fix little typo.  Remove STDIO.
4834
4835         * config.h.in: Fail if __FAST_MATH__ is defined.
4836         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4837         (CPPFLAGS-test-idouble.c): Likewise.
4838         (CPPFLAGS-test-ildouble.c): Likewise.
4839
4840 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4841
4842         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4843         * intl/tst-gettext.c: Correctly handle untranslated messages in
4844         positive tests.
4845
4846         * po/de.po: Update from translation team.
4847
4848 2002-07-02  H.J. Lu  <hjl@gnu.org>
4849
4850         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4851         use ll/sc.
4852         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4853
4854         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4855         to 2.4.0 for mips.
4856
4857 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4858
4859         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4860         TLS fail if USE_TLS is not defined.
4861
4862         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4863         and adjust state for seek position.  [PR libc/4070]
4864         * libio/Makefile (tests): Add bug-rewind.
4865         * libio/bug-rewind.c: New file.
4866
4867 2002-07-12  Philip Blundell  <philb@gnu.org>
4868
4869         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4870         (__backtrace): Use it.
4871         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4872
4873 2002-07-12  Philip Blundell  <philb@gnu.org>
4874
4875         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4876         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4877         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4878         (elf_machine_rela): Remove unused variable.
4879
4880         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4881         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4882         define.
4883
4884 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4885
4886         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4887
4888 2002-07-14  Andreas Jaeger  <aj@suse.de>
4889
4890         * sysdeps/x86_64/bits/link.h: Add biarch support.
4891
4892 2002-07-13  Andreas Jaeger  <aj@suse.de>
4893
4894         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4895         Use correct indices.
4896         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4897
4898 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4899
4900         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4901         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4902         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4903         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4904         * sysdeps/s390/s390-32/bits/link.h: Remove.
4905         * sysdeps/s390/s390-64/bits/link.h: Remove.
4906         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4907         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4908         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4909         * sysdeps/s390/bits/wordsize.h: New file.
4910         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4911         elfclass.h.
4912         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4913         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4914         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4915         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4916         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4917         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4918         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4919         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4920         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4921         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4922         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4923         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4924         resource.h.
4925         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4926         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4927         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4928         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4929         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4930         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4931         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4932         sigaction.h.
4933         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4934         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4935         siginfo.h.
4936         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4937         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4938         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4939         socket.h.
4940         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4941         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4942         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4943         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4944         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4945         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4946         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4947         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4948         procfs.h.
4949         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4950         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4951         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4952         ucontext.h.
4953         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4954         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4955
4956 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4957
4958         * Versions.def (libc): Add GLIBC_2.3.
4959         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4960         * stdlib/canonicalize.c: Add compatibility version for realpath
4961         and make new code available in GLIBC_2.3.
4962
4963 2002-07-06  Bruno Haible  <bruno@clisp.org>
4964
4965         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4966
4967 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4968
4969         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4970         function do_init.  Use __libc_once.
4971         (do_init): New function.
4972
4973         * iconvdata/iso8859-11.h: Removed.
4974         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4975         (distribute): Remove iso8859-11.h.
4976         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4977
4978         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4979         underflow operation if c == (W)EOF.
4980
4981 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4982
4983         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4984         non-zero, adjust exponent.
4985         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4986         Remove NO_LONG_DOUBLE aliases.
4987         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4988         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4989         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4990         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4991         1**y and -1**+-Inf.
4992         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4993         Fix BITS_PER_MP_LIMB 32 extraction.
4994         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4995         exceptions for qNaNs.
4996         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4997         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4998         Raise exceptions when needed.  Don't recurse unnecessarily.
4999         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5000         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5001         exceptions for qNaNs.
5002         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5003         to fix *quo return value sign.
5004         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5005         case -Inf argument.
5006         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5007
5008 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5009
5010         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5011         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5012         -DNDEBUG.
5013
5014 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5015
5016         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5017         the result.
5018
5019         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5020         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5021
5022         * Versions.def (libthread_db): Add GLIBC_2.3.
5023
5024 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5025
5026         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5027         new stream if possible.
5028         * libio/freopen64.c (freopen64): Likewise.
5029         * libio/Makefile (tests): Add tst-freopen.
5030         * libio/tst-freopen.c: New file.
5031
5032 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5033
5034         * libio/stdio.h (obstack_printf): Add format attribute.
5035         (obstack_vprintf): Likewise.
5036
5037 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5038
5039         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5040         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5041         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5042         architectures.
5043
5044 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5045
5046         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5047         (init_dfa): ...here.
5048
5049 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5050
5051         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5052         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5053         nodes in parse trees.
5054         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5055         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5056         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5057         nodes which can epsilon transit.
5058         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5059         to IS_EPSILON_NODE macro.
5060         * posix/regexec.c (update_regs): New function to update registers
5061         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5062         (proceed_next_node): Use the entities of the nodes to determine
5063         whether the node can transit to.
5064         (set_regs): Use update_regs function to update registers.
5065
5066 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5067
5068         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5069         * posix/bug-regex6.c: New file.
5070         * posix/Makefile (tests): Add bug-regex6.
5071         (bug-regex6-ENV): Set LOCPATH.
5072
5073 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5074
5075         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5076         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5077
5078 2002-07-06  Bruno Haible  <bruno@clisp.org>
5079
5080         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5081
5082 2002-07-06  Bruno Haible  <bruno@clisp.org>
5083
5084         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5085         declarations.
5086
5087         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5088
5089         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5090
5091         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5092         not _UTSNAME_H.
5093         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5094
5095         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5096         * sysdeps/generic/bits/ustat.h: Likewise.
5097
5098         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5099
5100 2002-07-08  Andreas Jaeger  <aj@suse.de>
5101
5102         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5103
5104 2002-07-08  Andreas Jaeger  <aj@suse.de>
5105
5106         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5107
5108 2002-07-06  Andreas Jaeger  <aj@suse.de>
5109
5110         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5111         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5112         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5113         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5114         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5115         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5116         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5117         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5118         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5119         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5120         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5121
5122 2002-06-05  Brian Youmans <3diff@gnu.org>
5123
5124         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5125         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5126         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5127         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5128         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5129         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5130         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5131         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5132         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5133         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5134         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5135         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5136         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5137         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5138         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5139         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5140         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5141         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5142         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5143         * sysdeps/ia64/fpu/e_log.S: Likewise.
5144         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5145         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5146         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5147         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5148         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5149         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5150         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5151         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5152         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5153         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5154         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5155         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5156         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5157         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5158         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5159         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5160         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5161         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5162         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5163         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5164         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5165         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5166         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5167         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5168         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5169         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5170         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5171         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5172         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5173         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5174         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5175         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5176         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5177         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5178         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5179         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5180         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5181         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5182         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5183         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5184         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5185         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5186         * sysdeps/ia64/fpu/s_round.S: Likewise.
5187         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5188         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5189         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5190         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5191         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5192         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5193         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5194         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5195         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5196         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5197         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5198         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5199         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5200         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5201         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5202         reflect IBM donation of math library to FSF
5203         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5204         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5205         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5206         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5207         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5208         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5209         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5210         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5211         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5212         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5213         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5214         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5215         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5216         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5217         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5218         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5219         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5220         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5221         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5222         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5223         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5224         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5225         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5226         * sysdeps/vax/__longjmp.c: Likewise.
5227         * sysdeps/vax/setjmp.c: Likewise.
5228         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5229         remove advertising clause
5230         * sysdeps/vax/htonl.s: Likewise.
5231         * sysdeps/vax/htons.s: Likewise.
5232         * libio/wfiledoalloc.c: Likewise.
5233         * stdlib/random.c: Likewise.
5234         * stdlib/random_r.c: Likewise.
5235         * sysdeps/mach/sys/reboot.h: Likewise.
5236         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5237         * sysdeps/posix/getaddrinfo.c: Likewise.
5238         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5239         GPL and corrected pointer to point to the correct license.
5240
5241 2002-07-04  Andreas Jaeger  <aj@suse.de>
5242
5243         * scripts/config.guess: New upstream version.
5244         * scripts/config.sub: Likewise.
5245
5246 2002-07-02  Andreas Schwab  <schwab@suse.de>
5247
5248         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5249         in parallel to bumping up the buffer pointer.
5250
5251 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5252
5253         * math/libm-test.inc (acos_test): Add missing L suffix for
5254         expected result.
5255         (cpow_test): Likewise.
5256         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5257         error for acos (0.0625).
5258
5259 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5260
5261         * locale/iso-639.def: Add entry for Ganda.
5262         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5263         definition.
5264         (address_finish): Handle entries with two letter ISO 639 code.
5265
5266         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5267         directory if it existed before.
5268         * iconv/iconvconfig.c: Implement --prefix option.
5269
5270         * math/libm-test.inc (cexp_test): Add missing L suffix for
5271         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5272         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5273         1.25 i).
5274
5275 2002-05-29  H.J. Lu  <hjl@gnu.org>
5276
5277         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5278         is turned on.
5279
5280 2002-05-28  H.J. Lu  <hjl@gnu.org>
5281
5282         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5283         are not dlopened on the dependency list of a dlopened object.
5284
5285 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5286
5287         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5288         dependencies if they are created between objects which are created
5289         while processing RTLD_NOW for objects loaded as part of the same
5290         dlopen call.
5291
5292 2002-06-14  H.J. Lu  <hjl@gnu.org>
5293
5294         * elf/Makefile (tests): Add circleload1.
5295         (modules-names): Add circlemod1, circlemod2, circlemod3,
5296         circlemod1a, circlemod2a and circlemod3a.
5297         ($(objpfx)circleload1): New target.
5298         ($(objpfx)circleload1.out): Likewise.
5299         ($(objpfx)circlemod1.so): Likewise.
5300         ($(objpfx)circlemod2.so): Likewise.
5301         ($(objpfx)circlemod1a.so): Likewise.
5302         ($(objpfx)circlemod2a.so): Likewise.
5303         * elf/circleload1.c: New file.
5304         * elf/circlemod1.c: New file.
5305         * elf/circlemod1a.c: New file.
5306         * elf/circlemod2.c: New file.
5307         * elf/circlemod2a.c: New file.
5308         * elf/circlemod3.c: New file.
5309         * elf/circlemod3a.c: New file.
5310
5311 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5312
5313         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5314         file descriptor.
5315         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5316         add check for fd not open for writing.
5317
5318         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5319         completed element(s) and do not suspend thread if so.  Patch
5320         heavily modified by drepper.
5321
5322         * rt/tst-aio7.c: New file.  Regression test for problems which the
5323         above three changes fix.
5324         * rt/Makefile (tests): Add tst-aio7.
5325
5326 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5327
5328         * rt/tst-aio6.c: Fix comment.
5329
5330         * catgets/gencat.c (read_input_file): Handle more than one slash
5331         at end of line correctly [PR libc/3926].
5332         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5333
5334         * catgets/sample.SJIS: Add test case for above bug.
5335         * catgets/test-gencat.c: Adjust test code.
5336         * catgets/test-gencat.sh: Adjust expected results.
5337
5338         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5339         to skip relative relocations.
5340         Patch by Geoff Keating <geoffk@redhat.com>.
5341
5342 2002-05-26  Bruno Haible  <bruno@clisp.org>
5343
5344         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5345         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5346         All callers changed.
5347         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5348         STANDARD_FROM_LOOP_ERR_HANDLER.
5349         (utf8_internal_loop): Likewise.
5350         (ucs2_internal_loop): Likewise.
5351         (internal_ucs2_loop): Perform error handling like in
5352         STANDARD_FROM_LOOP_ERR_HANDLER.
5353         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5354         in STANDARD_FROM_LOOP_ERR_HANDLER.
5355         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5356         handling.
5357         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5358         in STANDARD_FROM_LOOP_ERR_HANDLER.
5359         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5360         handling.
5361         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5362         in STANDARD_FROM_LOOP_ERR_HANDLER.
5363         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5364         handling.
5365         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5366         STANDARD_FROM_LOOP_ERR_HANDLER.
5367         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5368         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5369         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5370         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5371         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5372         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5373         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5374         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5375         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5376         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5377         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5378         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5379         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5380         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5381         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5382         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5383         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5384         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5385         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5386         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5387         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5388         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5389         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5390         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5391         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5392         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5393         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5394         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5395         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5396         an error, still set result = __GCONV_ILLEGAL_INPUT.
5397         (BODY for TO_LOOP): Likewise.
5398         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5399         STANDARD_FROM_LOOP_ERR_HANDLER.
5400         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5401         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5402         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5403         handling.
5404         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5405         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5406         STANDARD_FROM_LOOP_ERR_HANDLER.
5407         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5408         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5409         STANDARD_FROM_LOOP_ERR_HANDLER.
5410         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5411         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5412         STANDARD_FROM_LOOP_ERR_HANDLER.
5413         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5414         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5415         STANDARD_FROM_LOOP_ERR_HANDLER.
5416         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5417         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5418         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5419         handling.
5420         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5421         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5422         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5423         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5424
5425 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5426
5427         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5428         labels in assembler instructions.
5429
5430 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5431
5432         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5433         not enough content is available.
5434         * libio/tst-eof.c: New file.
5435         * libio/Makefile (tests): Add tst-eof.
5436
5437         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5438         update atime.
5439         * libio/tst-atime.c: New file.
5440         * libio/Makefile (tests): Add tst-atime.
5441
5442         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5443         handling of overly long words.
5444
5445 2002-06-25  Andreas Jaeger  <aj@suse.de>
5446
5447         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5448         to not use 32-bit pc relative relocations.
5449         (elf_machine_dynamic): Likewise.
5450
5451 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5452
5453         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5454         (__GETDENTS): Check for failed getdents64 syscall.
5455         * dirent/Makefile (tests): Add bug-readdir1.
5456         * dirent/bug-readdir1.c: New file.
5457
5458 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5459
5460         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5461         lookups.
5462         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5463         code.  Print TLS modid and offset for modules containing PT_TLS
5464         segments.
5465
5466 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5467
5468         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5469         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5470         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5471         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5472
5473 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5474
5475         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5476         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5477         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5478         * nss/getXXent_r.c (NEW, NEW1): Define.
5479         (NEW (REENTRANT_GETNAME)): Strong alias to
5480         INTERNAL (REENTRANT_GETNAME).
5481         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5482
5483 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5484
5485         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5486         (_IO_file_jumps_mmap): Use it.
5487         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5488         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5489         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5490         prototype.
5491         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5492         (_IO_wfile_jumps_mmap): Don't use it anymore.
5493         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5494         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5495         _IO_wdefault_setbuf.
5496         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5497         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5498         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5499
5500 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5501
5502         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5503         * libio/tst-mmap-setvbuf.c: New test.
5504
5505 2002-06-21  Andreas Jaeger  <aj@suse.de>
5506
5507         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5508
5509 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5510
5511         * include/unistd.h (__fork_internal): Remove.
5512         (__fork): Don't define to __fork_internal.
5513         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5514         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5515         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5516         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5517         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5518
5519 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5520
5521         * po/hr.po: New file.
5522
5523 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5524
5525         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5526         Reported by Michael Meissner <meissner@redhat.com>.
5527
5528 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5531         Patch by Hans Boehm <hans_boehm@hp.com>.
5532
5533 2002-06-20  Andreas Jaeger  <aj@suse.de>
5534
5535         * math/libm-test.inc: Use exact values as input parameters,
5536         compute output parameters with 36 digits for 128-bit long doubles.
5537         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5538         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5539         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5540
5541 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5542
5543         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5544         argument or result is subnormal.
5545
5546 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5547
5548         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5549         quotient.
5550         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5551         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5552
5553         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5554
5555 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5556
5557         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5558         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5559         Reported by Peter A. Buhr.
5560
5561 2002-06-15  Roland McGrath  <roland@frob.com>
5562
5563         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5564         warning.
5565
5566         * sysdeps/mach/hurd/getcwd.c
5567         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5568
5569         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5570         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5571
5572         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5573         jump to local subroutine.
5574
5575 2002-06-14  Roland McGrath  <roland@frob.com>
5576
5577         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5578         * sysdeps/mach/hurd/Makeconfig: ... here.
5579
5580 2002-06-13  Andreas Schwab  <schwab@suse.de>
5581
5582         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5583         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5584         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5585
5586 2002-06-13  Roland McGrath  <roland@frob.com>
5587
5588         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5589         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5590         Use intptr_t instead of int for argc in stack layout.
5591         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5592         (_dl_init_first): Likewise.
5593         (_hurd_stack_setup): Likewise.
5594         (init1): Add a cast.
5595         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5596
5597         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5598         argument to pfinet_siocgifconf RPC.
5599
5600 2002-06-13  Andreas Schwab  <schwab@suse.de>
5601
5602         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5603         expansion order.
5604
5605 2002-06-12  Roland McGrath  <roland@frob.com>
5606
5607         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5608         if already defined.
5609         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5610         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5611
5612 2002-06-11  Roland McGrath  <roland@frob.com>
5613
5614         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5615         file on [!RTLD_STAT64].
5616         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5617
5618         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5619         (__fdopen): Use INTUSE.
5620         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5621
5622         * stdio-common/tmpfile64.c: File removed.
5623         * sysdeps/generic/tmpfile64.c: New file.
5624         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5625         if not already defined.
5626         (tmpfile): Use it in place of __GT_FILE.
5627
5628         * include/unistd.h: Declare __chown_internal.
5629
5630         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5631         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5632
5633 2002-06-09  Roland McGrath  <roland@frob.com>
5634
5635         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5636         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5637         value of HURD_INTERFACE_VERSION >= 20020609.
5638         * sysdeps/mach/hurd/configure: Regenerated.
5639         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5640         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5641         convert a struct stat64 into a struct stat and return 0 or -1
5642         with errno set to EOVERFLOW.
5643         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5644         for struct statfs64 to struct statfs.
5645         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5646         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5647         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5648         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5649         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5650         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5651         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5652         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5653         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5654         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5655         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5656         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5657         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5658         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5659         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5660         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5661         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5662         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5663         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5664         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5665         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5666         Use struct stat64 for io_stat argument.
5667         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5668         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5669         to io_seek.
5670         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5671         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5672         * hurd/hurd/fd.h: Update decls.
5673         * sysdeps/mach/hurd/getcwd.c
5674         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5675         and struct dirent64.
5676         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5677         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5678         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5679         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5680
5681 2002-06-08  Roland McGrath  <roland@frob.com>
5682
5683         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5684         instead of unsigned long int for __allocation and __size members.
5685
5686 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5687
5688         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5689         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5690         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5691         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5692
5693 2002-06-07  Roland McGrath  <roland@frob.com>
5694
5695         * sysdeps/mach/hurd/bits/environments.h: File removed.
5696
5697 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5698
5699         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5700         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5701         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5702         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5703         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5704         (sendfile64): Likewise.
5705         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5706         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5707         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5708         Likewise.
5709         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5710
5711         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5712         already defined.
5713
5714 2002-06-04  Bruno Haible  <bruno@clisp.org>
5715
5716         * sysdeps/cris/stackinfo.h: New file.
5717
5718         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5719         to an integer type before performing bit operations on it.
5720
5721 2002-06-05  Roland McGrath  <roland@frob.com>
5722
5723         * sysdeps/generic/sendfile.c: Include <errno.h>.
5724         * sysdeps/generic/sendfile64.c: Likewise.
5725
5726         * io/Makefile (routines): Add sendfile and sendfile64.
5727         (headers): Add sys/sendfile.h to the list.
5728         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5729         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5730         * io/sys/sendfile.h: ... here.
5731         * sysdeps/generic/sendfile.c: New file.
5732         * sysdeps/generic/sendfile64.c: New file.
5733
5734         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5735         Move sendfile, sendfile64 to ...
5736         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5737         * sysdeps/mach/hurd/sendfile.c: New file.
5738         * sysdeps/mach/hurd/sendfile64.c: New file.
5739
5740         * sysdeps/mach/nanosleep.c: New file.
5741
5742 2002-06-04  Roland McGrath  <roland@frob.com>
5743
5744         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5745         * sysdeps/alpha/elf/configure: New file (generated).
5746
5747 2002-06-02  Roland McGrath  <roland@frob.com>
5748
5749         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5750
5751 2002-06-01  Roland McGrath  <roland@frob.com>
5752
5753         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5754         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5755
5756 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5757
5758         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5759         Add nsmap.
5760         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5761         Remove nstimes setting.
5762         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5763         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5764         there is mix of IPv6 and IPv4 nameservers.
5765         Use nsmap array to find free slots and preserve nameserver ordering.
5766         Fix RES_ROTATE.
5767
5768 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5769
5770         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5771         use this header with LFS.
5772
5773         * po/sk.po: Update from translation team.
5774
5775 2002-05-28  Andreas Schwab  <schwab@suse.de>
5776
5777         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5778         message when finding object of wrong class.
5779
5780 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5781
5782         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5783         Patch by <radu@netsoft.ro>.
5784
5785 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5786
5787         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5788         Add readahead.
5789         * sysdeps/unix/sysv/linux/readahead.c: New file.
5790         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5791         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5792         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5793         Add sendfile64 alias to sendfile syscall.
5794         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5795         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5796         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5797         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5798         syscall.
5799
5800         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5801         special section for PIC register loading.
5802         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5803
5804         * config.h.in: Define HAVE_HIDDEN.
5805         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5806
5807         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5808
5809 2002-05-28  Roland McGrath  <roland@frob.com>
5810
5811         * sysdeps/mach/alpha/setfpucw.c: New file.
5812
5813 2002-05-26  Roland McGrath  <roland@frob.com>
5814
5815         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5816         Use integer_t instead of int for IOC_VOID case.
5817
5818 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5819
5820         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5821
5822 2002-05-26  Bruno Haible  <bruno@clisp.org>
5823
5824         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5825         end of the ISO-8859-7 from idx table.
5826
5827 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5828
5829         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5830
5831 2002-05-24  David S. Miller  <davem@redhat.com>
5832
5833         * string/bits/string2.h (memset): Do not try to optimize when
5834         not _STRING_ARCH_unaligned if GCC will do the right thing.
5835
5836 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5837
5838         * posix/regex.c: Define `inline' as a macro into nothing for the
5839         compilers which lack the keyword.
5840         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5841         for the compatibility of gawk.
5842         * posix/regcomp.c: Add fake implementation of isblank() for the
5843         environments which lack the function.
5844         Don't use free_charset() in case of non-i18n envs.
5845         (build_range_exp): Don't use i18n related code in case of non-i18n
5846         envs.
5847         (build_collating_symbol): Likewise.
5848         (build_equiv_class): Likewise.
5849         (build_charclass): Likewise.
5850         (re_compile_fastmap_iter): Likewise.
5851         (parse_bracket_exp): Likewise.
5852         (build_word_op): Likewise.
5853         (regfree): Don't use free_charset() in case of non-i18n envs.
5854         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5855         re_token_type_t in case of non-i18n envs.
5856         Don't define re_charset_t in case of non-i18n envs.
5857         Change the type of wcs of re_string_t from wchar_t to wint_t,
5858         since we store also WEOF.
5859         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5860         the type of wcs of re_string_t from wchar_t to wint_t.
5861         (re_string_reconstruct): Likewise.
5862         (create_ci_newstate): Don't use i18n related code in case of
5863         non-i18n envs.
5864         (create_cd_newstate): Likewise.
5865
5866 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5867
5868         * iconv/loop.c: Fix typo.
5869
5870 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5871
5872         * inet/ether_line.c (ether_line): Fix a typo causing only
5873         lower 4 bits of each ethernet address byte being assigned.
5874         Don't modify what line points to.
5875         * inet/tst-ether_aton.c (main): Add ether_line tests.
5876
5877 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5878
5879         * manual/filesys.texi: Don't make readlink example leak memory
5880         when readlink fails.
5881
5882 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5883
5884         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5885         some more security checks.
5886
5887 2002-05-17  David S. Miller  <davem@redhat.com>
5888
5889         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5890
5891 2002-05-16  David S. Miller  <davem@redhat.com>
5892
5893         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5894         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5895         (elf_machine_load_address): Likewise.
5896         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5897
5898         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5899         is unaligned, do not forget to fully initialize %g1 magic value.
5900
5901         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5902         register definitions and provide 32-bit variants of structures
5903         during 64-bit builds.
5904
5905         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5906         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5907         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5908         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5909         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5910         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5911         Do not clear implicit one bit here, it must be done post-rounding.
5912         Only pad to the left using left shift if value uses less than the
5913         available fractional bits.
5914
5915 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5916
5917         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5918         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5919         (shared-only-routines): Likewise.
5920         * sysdeps/powerpc/libgcc-compat.c: New file.
5921         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5922         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5923         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5924         * sysdeps/wordsize-32/shdi3.c: Removed.
5925
5926 2002-05-16  Bruno Haible  <bruno@clisp.org>
5927
5928         * MakeTAGS (libc.pot): Don't sort the output.
5929         * po/header.pot: Update to match xgettext 0.11 output.
5930
5931 2002-05-16  Bruno Haible  <bruno@clisp.org>
5932
5933         * MakeTAGS (subdirs): Remove duplicates.
5934
5935 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5936
5937         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5938         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5939         alias.
5940
5941 2002-05-19  Andreas Jaeger  <aj@suse.de>
5942
5943         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5944         installation in /usr/local.
5945
5946 2002-05-16  Bruno Haible  <bruno@clisp.org>
5947
5948         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5949         string as argument of #error.
5950
5951 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5952
5953         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5954         don't define static.  Remove old __realpath function.  TC1 of
5955         POSIX 2001 will allow the second parameter to be NULL.
5956         * stdlib/test-canon.c: Comment out test for NULL as second
5957         parameter of realpath.
5958
5959         * time/offtime.c (__offtime): Set errno if overflow is detected.
5960
5961         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5962         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5963         dl-brk and dl-sbrk.
5964
5965         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5966         (fdimf): Likewise.
5967
5968 2002-05-15  Roland McGrath  <roland@frob.com>
5969
5970         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5971
5972 2002-05-12  Bruno Haible  <bruno@clisp.org>
5973
5974         * iconvdata/testdata/EUC-JISX0213: New file.
5975         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5976         * iconvdata/testdata/SHIFT_JISX0213: New file.
5977         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5978         * iconvdata/testdata/ISO-2022-JP-3: New file.
5979         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5980         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5981         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5982         contains comments indicating precomposed characters.
5983
5984 2002-04-21  Bruno Haible  <bruno@clisp.org>
5985
5986         * iconvdata/iso-2022-jp-3.c: New file.
5987         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5988         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5989         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5990         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5991         (distribute): Add iso-2022-jp-3.c.
5992
5993 2002-05-12  Bruno Haible  <bruno@clisp.org>
5994
5995         * iconvdata/tst-table-to.c (main): Restore handling of
5996         transliterations, broken by last patch.
5997
5998 2002-05-12  Bruno Haible  <bruno@clisp.org>
5999
6000         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6001
6002 2002-05-12  Bruno Haible  <bruno@clisp.org>
6003
6004         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6005         when there is not enough room in the output buffer.
6006         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6007
6008 2002-04-20  Bruno Haible  <bruno@clisp.org>
6009
6010         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6011         macros.
6012         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6013         Also make this macro work if FROM_DIRECTION evaluates to 0.
6014         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6015         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6016         of consume_incomplete.
6017         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6018         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6019         4, not 8.
6020         * iconvdata/cp1258.c: Likewise.
6021         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6022         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6023         not 2.
6024         * iconvdata/ibm933.c: Likewise.
6025         * iconvdata/ibm935.c: Likewise.
6026         * iconvdata/ibm937.c: Likewise.
6027         * iconvdata/ibm939.c: Likewise.
6028         * iconvdata/iso-2022-cn.c: Define
6029         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6030         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6031         * iconvdata/iso-2022-cn-ext.c: Likewise.
6032         * iconvdata/iso-2022-jp.c: Define
6033         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6034         {MIN,MAX}_NEEDED_{FROM,TO}.
6035         * iconvdata/tcvn5712-1.c: Define
6036         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6037         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6038         * iconvdata/euc-jisx0213.c: Define
6039         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6040         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6041         * iconvdata/shift_jisx0213.c: Likewise.
6042
6043 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6044
6045         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6046         shdi3, fixdfdi, fixsfdi in csu dir.
6047         (shared-only-routines): Likewise.
6048         * sysdeps/wordsize-32/cmpdi2.c: New file.
6049         * sysdeps/wordsize-32/shdi3.c: New file.
6050         * sysdeps/wordsize-32/fixdfdi.c: New file.
6051         * sysdeps/wordsize-32/fixsfdi.c: New file.
6052         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6053         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6054         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6055
6056         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6057         Only use va_arg if the argument will be used [PR libc/3259].
6058
6059 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6060
6061         * catgets/catgets.c (catopen): Free buffer if internal catalog
6062         open fails.
6063
6064 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6065
6066         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6067         non-buffering methods.
6068         * debug/pcprofiledump.c: Implement -u option.
6069         Patch by Roger Luethi <rl@hellgate.ch>.
6070
6071 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6072
6073         * include/netinet/in.h (bindresvport_internal): Add prototype.
6074         * include/rpc/auth.h  (authunix_create_internal,
6075         authunix_create_default_internal, authnone_create_internal,
6076         authdes_pk_create_internal): Add prototypes.
6077         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6078         clntudp_create_internal, clntudp_bufcreate_internal,
6079         clntunix_create_internal): Add prototypes.
6080         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6081         svc_getreq_internal, svc_getreq_common_internal,
6082         svc_getreqset_internal, svc_getreq_poll_internal,
6083         svc_register_internal, svc_unregister_internal,
6084         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6085         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6086         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6087         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6088         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6089         * inet/rcmd.c (rcmd_af): Use __listen.
6090         (rresvport_af): Use __bind.
6091         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6092         authunix_create, authunix_create_default, authnone_create,
6093         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6094         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6095         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6096         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6097         _authenticate, add INTDEF after such function definitions.
6098         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6099         __setsockopt, __getsockname instead of non-__ variants.
6100         * sunrpc/pmap_rmt.c: Likewise.
6101         * sunrpc/rtime.c: Likewise.
6102         * sunrpc/svc_udp.c: Likewise.
6103         * sunrpc/clnt_unix.c: Likewise.
6104         * sunrpc/svc_unix.c: Likewise.
6105         * sunrpc/bindrsvprt.c: Likewise.
6106         * sunrpc/svc_tcp.c: Likewise.
6107         * sunrpc/auth_none.c: Likewise.
6108         * sunrpc/clnt_raw.c: Likewise.
6109         * sunrpc/clnt_tcp.c: Likewise.
6110         * sunrpc/auth_unix.c: Likewise.
6111         * sunrpc/key_call.c: Likewise.
6112         * sunrpc/clnt_gen.c: Likewise.
6113         * sunrpc/pm_getmaps.c: Likewise.
6114         * sunrpc/clnt_simp.c: Likewise.
6115         * sunrpc/pmap_clnt.c: Likewise.
6116         * sunrpc/svc_run.c: Likewise.
6117         * sunrpc/svc.c: Likewise.
6118         * sunrpc/svc_simple.c: Likewise.
6119         * sunrpc/pm_getport.c: Likewise.
6120         * sunrpc/auth_des.c: Likewise.
6121         * sunrpc/svc_auth.c: Likewise.
6122         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6123         __register_frame_info_table_bases, __deregister_frame_info_bases):
6124         Add INTDEF.
6125         (__register_frame_info_bases_internal,
6126         __register_frame_info_table_bases_internal,
6127         __deregister_frame_info_bases_internal): Add prototypes.
6128         (__register_frame_info, __register_frame): Use INTUSE in call to
6129         __register_frame_info_bases.
6130         (__register_frame_info_table): Similarly.
6131         (__deregister_frame_info, __deregister_frame): Similarly.
6132         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6133         sendto as weak alias.
6134         * sysdeps/mach/hurd/sendto.c: Likewise.
6135         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6136         recvfrom as weak alias.
6137         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6138         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6139         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6140         recvmsg as weak alias.
6141         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6142         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6143         sendmsg as weak alias.
6144         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6145         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6146         setsockopt, add setsockopt as weak alias.
6147         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6148         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6149         weak alias.
6150         * sysdeps/mach/hurd/bind.c: Likewise.
6151         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6152         as weak alias.
6153         * sysdeps/mach/hurd/listen.c: Likewise.
6154         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6155         getsockname, add getsockname as weak alias.
6156         * sysdeps/mach/hurd/getsockname.c: Likewise.
6157         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6158         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6159         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6160         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6161         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6162         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6163         Add aliases.
6164         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6165         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6166         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6167         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6168         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6169         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6170         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6171         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6172         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6173         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6174         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6175         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6176
6177 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6178
6179         * locale/programs/localedef.h (show_archive_content): Add verbose
6180         argument.
6181         * locale/programs/localedef.c (main): Adjust caller.
6182         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6183         types.
6184         (nameentcmp, dataentcmp): New functions.
6185         (xstrcmp): Remove.
6186         (show_archive_content): Print verbose listing with --list-archive -v.
6187
6188 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6189
6190         * locale/programs/locarchive.c (open_archive): Take extra argument
6191         readonly.  If true open file with O_RDONLY and don't create the
6192         archive if it doesn't exist.
6193         Adapt all callers.
6194         (close_archive): Don't do anything if fd element is -1.
6195         * locale/programs/localedef.h (open_archive): Adjust prototype.
6196         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6197         call.
6198
6199         * malloc/malloc.c (__posix_memalign): Correct check for size of
6200         alignment value [PR libc/3444].
6201
6202         * include/stdio.h: Remove references to old stdio implementation.
6203
6204         * libio/Makefile (bug-ungetwc2-ENV): Define.
6205
6206 2002-05-13  Roland McGrath  <roland@frob.com>
6207
6208         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6209
6210         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6211
6212 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6213
6214         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6215         Allocate three, not two, more than LEN when appending '/.'.
6216         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6217         if NAME ends with '/.' if it is shorter than 2 chars.
6218
6219 2002-05-12  Roland McGrath  <roland@frob.com>
6220
6221         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6222         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6223
6224         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6225         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6226
6227 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6228
6229         * sysdeps/ia64/Makefile: Remove extra endif.
6230         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6231
6232 2002-05-10  Andreas Schwab  <schwab@suse.de>
6233
6234         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6235
6236 2002-05-09  Andreas Jaeger  <aj@suse.de>
6237
6238         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6239         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6240         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6241
6242         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6243         * sysdeps/wordsize-64/glob.c: ...here.
6244         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6245         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6246         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6247
6248 2002-05-08  Roland McGrath  <roland@frob.com>
6249
6250         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6251         O_NOTRANS flag in "." lookup.
6252
6253 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6254
6255         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6256
6257 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6258
6259         * locale/duplocale.c (__duplocale): Update special members only
6260         when allocation succeeded.
6261
6262 2002-05-03  Roland McGrath  <roland@frob.com>
6263
6264         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6265         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6266
6267 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6268
6269         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6270         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6271         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6272         * sysdeps/ia64/ia64libgcc.S: New file.
6273
6274 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6275
6276         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6277
6278         * malloc/memusage.c: Distinguish anonymous mmap.
6279
6280 2002-05-01  Roland McGrath  <roland@frob.com>
6281
6282         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6283         and use INTDEF on it.
6284         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6285
6286         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6287
6288         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6289
6290 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6291
6292         * malloc/memusage.c: Add support for tracking mmap & friends.
6293         * malloc/memusage.sh: Implement -m/--mmap option.
6294
6295 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6296
6297         * locale/programs/locarchive.c (create_archive): Add archivefname
6298         argument, create fname from it.
6299         (enlarge_archive): Honour output_prefix.
6300         (open_archive): Likewise.
6301
6302 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6303
6304         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6305         too many stpcpy macros.
6306
6307 2002-04-26  Bruno Haible  <bruno@clisp.org>
6308
6309         * locale/programs/ld-collate.c (collate_read): Cast first argument
6310         for "%.*s" to int.
6311
6312 2002-04-26  Bruno Haible  <bruno@clisp.org>
6313
6314         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6315         __dcngettext_internal): New declarations.
6316         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6317         attribute declarations.
6318
6319 2002-04-30  Roland McGrath  <roland@frob.com>
6320
6321         Removed old GNU stdio implementation; GNU libio is now the only option.
6322         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6323         Define USE_IN_LIBIO unconditionally.
6324         * configure: Regenerated.
6325         * Makeconfig (stdio): Set to libio by default.
6326         * config.make.in (stdio): Variable removed.
6327         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6328         * sysdeps/unix/sysv/linux/configure: Regenerated.
6329         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6330         * sysdeps/mach/hurd/configure: Regenerated.
6331         * stdio/.cvsignore: File removed.
6332         * stdio/Makefile: File removed.
6333         * stdio/Versions: File removed.
6334         * stdio/__fbufsize.c: File removed.
6335         * stdio/__flbf.c: File removed.
6336         * stdio/__fpending.c: File removed.
6337         * stdio/__fpurge.c: File removed.
6338         * stdio/__freadable.c: File removed.
6339         * stdio/__freading.c: File removed.
6340         * stdio/__fsetlocking.c: File removed.
6341         * stdio/__fwritable.c: File removed.
6342         * stdio/__fwriting.c: File removed.
6343         * stdio/clearerr.c: File removed.
6344         * stdio/fclose.c: File removed.
6345         * stdio/fcloseall.c: File removed.
6346         * stdio/feof.c: File removed.
6347         * stdio/ferror.c: File removed.
6348         * stdio/fflush.c: File removed.
6349         * stdio/fgetc.c: File removed.
6350         * stdio/fgetpos.c: File removed.
6351         * stdio/fgets.c: File removed.
6352         * stdio/fileno.c: File removed.
6353         * stdio/fmemopen.c: File removed.
6354         * stdio/fopen.c: File removed.
6355         * stdio/fopncook.c: File removed.
6356         * stdio/fputc.c: File removed.
6357         * stdio/fputs.c: File removed.
6358         * stdio/fread.c: File removed.
6359         * stdio/freopen.c: File removed.
6360         * stdio/fseek.c: File removed.
6361         * stdio/fsetpos.c: File removed.
6362         * stdio/ftell.c: File removed.
6363         * stdio/fwrite.c: File removed.
6364         * stdio/getc.c: File removed.
6365         * stdio/getchar.c: File removed.
6366         * stdio/getdelim.c: File removed.
6367         * stdio/gets.c: File removed.
6368         * stdio/glue.c: File removed.
6369         * stdio/internals.c: File removed.
6370         * stdio/linewrap.c: File removed.
6371         * stdio/linewrap.h: File removed.
6372         * stdio/memstream.c: File removed.
6373         * stdio/newstream.c: File removed.
6374         * stdio/obstream.c: File removed.
6375         * stdio/putc.c: File removed.
6376         * stdio/putchar.c: File removed.
6377         * stdio/puts.c: File removed.
6378         * stdio/rewind.c: File removed.
6379         * stdio/setbuf.c: File removed.
6380         * stdio/setbuffer.c: File removed.
6381         * stdio/setlinebuf.c: File removed.
6382         * stdio/setvbuf.c: File removed.
6383         * stdio/stdio.h: File removed.
6384         * stdio/ungetc.c: File removed.
6385         * stdio/vasprintf.c: File removed.
6386         * stdio/vscanf.c: File removed.
6387         * stdio/vsnprintf.c: File removed.
6388         * stdio/vsprintf.c: File removed.
6389         * stdio/vsscanf.c: File removed.
6390         * sysdeps/generic/defs.c: File removed.
6391         * sysdeps/generic/fdopen.c: File removed.
6392         * sysdeps/generic/pipestream.c: File removed.
6393         * sysdeps/generic/stdio_init.c: File removed.
6394         * sysdeps/generic/sysd-stdio.c: File removed.
6395         * sysdeps/generic/vdprintf.c: File removed.
6396         * sysdeps/mach/hurd/defs.c: File removed.
6397         * sysdeps/mach/hurd/fdopen.c: File removed.
6398         * sysdeps/mach/hurd/pipestream.c: File removed.
6399         * sysdeps/mach/hurd/stdio_init.c: File removed.
6400         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6401         * sysdeps/mach/hurd/vdprintf.c: File removed.
6402         * sysdeps/posix/defs.c: File removed.
6403         * sysdeps/posix/fdopen.c: File removed.
6404         * sysdeps/posix/pipestream.c: File removed.
6405         * sysdeps/posix/stdio_init.c: File removed.
6406         * sysdeps/posix/vdprintf.c: File removed.
6407         * sysdeps/unix/pipestream.c: File removed.
6408         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6409         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6410         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6411
6412 2002-04-29  Roland McGrath  <roland@frob.com>
6413
6414         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6415
6416 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6417
6418         * sysdeps/generic/tls.h: Describe what must be defined.
6419
6420         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6421         glob_in_dir [PR libc/3385].
6422         * posix/globtest.sh: Add test case.
6423
6424         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6425         //TRANSLIT twice.
6426
6427 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6428
6429         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6430         _internal symbol handling.
6431         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6432
6433 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6434
6435         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6436         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6437
6438 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6439
6440         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6441         not _LIBC and RE_ENABLE_I18N.
6442         (build_range_exp): Implement for not _LIBC.
6443         (build_collating_symbol): Likewise.
6444         (parse_bracket_exp): Unify redundant error handlings.
6445         Don't erase mbcset for non matching list in multibyte envs.
6446         (build_word_op): Add '_' to matching list for \w operator.
6447         * posix/regex_internal.c (re_string_construct): Invoke
6448         build_upper_buffer in case of not RE_ENABLE_I18N.
6449         (re_string_reconstruct): Don't touch cur_state in case of not
6450         RE_ENABLE_I18N.
6451         * posix/regex_internal.h (attribute_hidden): New macro in case of
6452         not _LIBC.
6453         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6454         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6455         RE_ENABLE_I18N.
6456         (transit_state_mb): Likewise.
6457         (check_node_accept_bytes): Implement the code evaluating range
6458         expression in case of not _LIBC.
6459         (find_collation_sequence_value): Hide in case of not _LIBC.
6460
6461 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6462
6463         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6464         i386/semctl.c.
6465         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6466         be used.
6467
6468 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6469
6470         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6471
6472         * sysdeps/ia64/strncpy.S: Fix recovery code.
6473         Patch by David Mosberger <davidm@hpl.hp.com>.
6474
6475 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6476
6477         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6478         GLIBC_2.2.6.
6479
6480 2002-04-14  Bruno Haible  <bruno@clisp.org>
6481
6482         * posix/regex.c (re_max_failures): Add back symbol for binary
6483         compatibility.
6484
6485 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6486
6487         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6488         of buffer building functions.
6489         * posix/regex_internal.c (re_string_allocate): New function.
6490         (re_string_realloc_buffers): New function.
6491         (re_string_skip_chars): New function.
6492         (re_string_reconstruct): New function.
6493         (re_string_construct): Adapt it to new interface of buffer building
6494         functions.
6495         (re_string_construct_common): Likewise.
6496         (build_wcs_buffer): Likewise.
6497         (build_wcs_upper_buffer): Likewise.
6498         (build_upper_buffer): Likewise.
6499         (re_string_translate_buffer): Likewise.
6500         (re_string_context_at): Adapt it to variable length buffers.
6501         * posix/regex_internal.h (re_string_t): Add new fields to handle
6502         variable length buffers.
6503         (re_match_context_t): Likewise.
6504         * posix/regexec.c (re_search_internal): Adapt it to new interface
6505         of re_string_t and re_match_context_t.
6506         (acquire_init_state_context): Likewise.
6507         (check_matching): Likewise.
6508         (check_halt_state_context): Likewise.
6509         (proceed_next_node): Likewise.
6510         (set_regs): Likewise.
6511         (sift_states_backward): Likewise.
6512         (clean_state_log_if_need): Likewise.
6513         (sift_states_iter_mb): Likewise.
6514         (sift_states_iter_bkref): Likewise.
6515         (add_epsilon_backreference): Likewise.
6516         (transit_state): Likewise.
6517         (transit_state_sb): Likewise.
6518         (transit_state_mb): Likewise.
6519         (transit_state_bkref): Likewise.
6520         (transit_state_bkref_loop): Likewise.
6521         (check_node_accept): Likewise.
6522         (match_ctx_init): Likewise.
6523         (extend_buffers): New function.
6524
6525 2002-04-21  Bruno Haible  <bruno@clisp.org>
6526
6527         * iconvdata/tst-table.sh: For the second check, use the truncated
6528         GB18030 charmap table, like for the first check.
6529
6530 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6531
6532         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6533         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6534
6535 2002-04-23  H.J. Lu  <hjl@gnu.org>
6536
6537         * include/math.h (isfinite): Fix a typo.
6538
6539 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6540
6541         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6542         which is created by the test suite.
6543
6544 2002-04-20  Bruno Haible  <bruno@clisp.org>
6545
6546         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6547         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6548
6549 2002-04-20  Bruno Haible  <bruno@clisp.org>
6550
6551         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6552         to avoid gcc warning.
6553
6554 2002-04-20  Bruno Haible  <bruno@clisp.org>
6555
6556         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6557         of data->__statep->__count.
6558
6559 2002-04-20  Bruno Haible  <bruno@clisp.org>
6560
6561         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6562         tag characters.
6563         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6564
6565 2002-04-24  Roland McGrath  <roland@frob.com>
6566
6567         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6568         use END macro instead of our own .end directive.
6569         Use `callsys' insn mnemonic instead of `call_pal'.
6570
6571         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6572
6573         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6574         macro; we need this for Hurd.
6575
6576         Log entry was missing for 2002/03/24 commit of rev 1.8,
6577         goes with 2002-03-17 changes.
6578         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6579         (sysdep_routines): Append ioperm here.
6580         (sysdep_headers): Append sys/io.h here.
6581
6582 2002-04-23  Roland McGrath  <roland@frob.com>
6583
6584         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6585         * sysdeps/mach/hurd/sendto.c: Likewise.
6586         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6587         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6588         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6589
6590 2002-04-22  Roland McGrath  <roland@frob.com>
6591
6592         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6593         failure from i386_io_perm_* RPCs to ENOSYS.
6594
6595 2002-04-22  Andreas Jaeger  <aj@suse.de>
6596
6597         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6598
6599         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6600
6601         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6602         register instead of destroying %rbx.
6603
6604 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6605
6606         * string/string.h: Declare strerror_r also for XPG6.
6607
6608 2002-04-19  Roland McGrath  <roland@frob.com>
6609
6610         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6611
6612 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6613
6614         * Makefile: Add handling of xtests and xcheck targets.
6615         * MakeTAGS: Likewise.
6616         * Makeconfig: Likewise.
6617         * Makerules: Likewise.
6618         * Rules: Likewise.
6619         * manual/Makefile: Likewise.
6620         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6621         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6622
6623 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6624
6625         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6626         authnone_private_s.
6627         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6628         Delete #ifdef _RPC_THREAD_SAFE_ block.
6629         (authnone_private): Make a struct, not a pointer to struct.
6630         (authnone_private_guard): New once-control variable.
6631         (authnone_create_once): New function, split out of
6632         authnone_create.  No need to allocate memory.
6633         (authnone_create): Just call authnone_create_once via
6634         __libc_once, then return &authnone_private->no_client.
6635         (authnone_marshal): Access private data via CLIENT argument,
6636         not authnone_private pointer.
6637         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6638         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6639         authnone_private_s.
6640
6641 2002-04-12  H.J. Lu  <hjl@gnu.org>
6642
6643         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6644
6645 2002-04-18  Bruno Haible  <bruno@clisp.org>
6646
6647         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6648         FROM_DIRECTION): Make the FROM direction stateless.
6649         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6650         FROM_DIRECTION): Likewise.
6651
6652 2002-04-15  Bruno Haible  <bruno@clisp.org>
6653
6654         * iconvdata/JISX0213.TXT: New file.
6655         * iconvdata/jisx0213.h: New file.
6656         * iconvdata/jisx0213.c: New file.
6657         * iconvdata/euc-jisx0213.c: New file.
6658         * iconvdata/shift_jisx0213.c: New file.
6659         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6660         * iconvdata/EUC-JISX0213.precomposed: New file.
6661         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6662         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6663         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6664         which the "to" direction is stateful.
6665         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6666         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6667         SHIFT_JISX0213.
6668         (libJISX0213-routines): New variable.
6669         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6670         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6671         (LDFLAGS-libJISX0213.so): New variable.
6672         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6673         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6674         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6675
6676 2002-04-15  Bruno Haible  <bruno@clisp.org>
6677
6678         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6679         uint32_t.  Update to Unicode 3.2.
6680         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6681         (BODY for TO_LOOP): Handle the ASCII range specially.
6682         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6683         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6684         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6685
6686 2002-04-15  Bruno Haible  <bruno@clisp.org>
6687
6688         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6689         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6690
6691 2002-04-15  Bruno Haible  <bruno@clisp.org>
6692
6693         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6694         (ucs4_to_cns11643): Update.
6695         * iconvdata/cns11643.c: Update to Unicode 3.2.
6696         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6697         __cns11643_from_ucs4p2_tab): Regenerated.
6698         (__cns11643_from_ucs4p2c_tab): New array.
6699         * iconvdata/cvs11643l1.c: Update comments.
6700         * iconvdata/EUC-TW.irreversible: Remove two entries.
6701
6702 2002-04-15  Bruno Haible  <bruno@clisp.org>
6703
6704         * locale/C-translit.h.in: Update to Unicode 3.2.
6705         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6706         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6707
6708 2002-04-15  Bruno Haible  <bruno@clisp.org>
6709
6710         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6711         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6712
6713 2002-04-15  Bruno Haible  <bruno@clisp.org>
6714
6715         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6716         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6717         always one byte, not 0 bytes in some cases and 2 bytes in others.
6718
6719         * iconvdata/tst-table-from.c (main): Correct the usage message.
6720
6721 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6722
6723         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6724         (parse_dup_op): Fix error handling like "a{}".
6725         (parse_bracket_exp): Add error handling.
6726         (fetch_number): Add error handling for "a{<very_large_number>}".
6727
6728 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6729
6730         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6731         in case that the symbol name is too long.
6732         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6733         in case of REG_ICASE.
6734
6735 2002-04-19  Andreas Jaeger  <aj@suse.de>
6736
6737         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6738         <hartvige@mips.com>.
6739
6740 2002-04-15  H.J. Lu  <hjl@gnu.org>
6741
6742         * include/math.h (__finitel_internal): Declare only if
6743         __NO_LONG_DOUBLE_MATH is not defined.
6744         (__isinfl_internal): Likewise.
6745         (__isnanl_internal): Likewise.
6746
6747         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6748         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6749         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6750         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6751         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6752         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6753         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6754
6755         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6756         __fcntl_internal.
6757
6758         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6759         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6760
6761 2002-04-15  Bruno Haible  <bruno@clisp.org>
6762
6763         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6764         (BODY for TO_LOOP): Likewise.
6765         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6766         * iconvdata/tst-table.sh: Add support for encodings which contain
6767         precomposed Unicode characters, known to the iconv converter in both
6768         directions but not listed in the charmap.
6769         * iconvdata/IBM856.irreversible: New file.
6770         * iconvdata/IBM922.irreversible: New file.
6771         * iconvdata/IBM1132.irreversible: New file.
6772         * iconvdata/IBM1133.irreversible: New file.
6773         * iconvdata/IBM1160.irreversible: New file.
6774         * iconvdata/IBM1161.irreversible: New file.
6775         * iconvdata/IBM1163.irreversible: New file.
6776         * iconvdata/IBM1164.irreversible: New file.
6777         * iconvdata/ARMSCII-8.irreversible: New file.
6778         * iconvdata/TCVN5712-1.precomposed: New file.
6779         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6780         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6781         ARMSCII-8, TCVN5712-1.
6782         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6783         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6784         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6785         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6786
6787 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6788
6789         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6790         for EVENING69.  Include offsets in TZ environment variable.
6791
6792 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6793
6794         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6795         avoid compiler warnings.
6796
6797         * locale/programs/localedef.c (main): Always call
6798         construct_output_path.
6799
6800         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6801
6802         * locale/programs/locfile.c (to_archive): New variable.  To collect
6803         data which has to be added to the locale archive.
6804         (write_all_categories): Take new third parameter with locale name.
6805         Unless no_archive flag set add new locale data to the archive
6806         (write_locale_data): Unless no-archive flag set store generated data
6807         in to_archive data structure instead of generation output file.
6808         Add new parameter with locale category index.
6809         * locale/programs/locfile.h: Add new parameters in declaractions of
6810         write_all_categories and write_locale_data.
6811         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6812         --add-to-archive, and --delete-from-archive options.  Pass extra
6813         parameter to write_all_categories.
6814         * locale/programs/localedef.h: Add prototypes for functions in
6815         locarchive.c.
6816         * locale/locarchive.h: New file.
6817         * locale/programs/locarchive.c: New file.
6818         * locale/Makefile (distribute): Add programs/locarchive.c and
6819         locarchive.h.
6820         (localedef-modules): Add md5 and locarchive.
6821         Add vpath to crypt subdir for md5.c.
6822
6823         * locale/programs/ld-address.c: Pass locale category ID as new second
6824         parameter to write_locale_data.
6825         * locale/programs/ld-collate.c: Likewise.
6826         * locale/programs/ld-ctype.c: Likewise.
6827         * locale/programs/ld-identification.c: Likewise.
6828         * locale/programs/ld-measurement.c: Likewise.
6829         * locale/programs/ld-messages.c: Likewise.
6830         * locale/programs/ld-monetary.c: Likewise.
6831         * locale/programs/ld-name.c: Likewise.
6832         * locale/programs/ld-numeric.c: Likewise.
6833         * locale/programs/ld-paper.c: Likewise.
6834         * locale/programs/ld-telephone.c: Likewise.
6835         * locale/programs/ld-time.c: Likewise.
6836
6837         * locale/simple-hash.c: Move compute_hashval function from here...
6838         * locale/hashval.h: ...to here.  New file.
6839         * locale/simple-hash.h: Add prototype for compute_hashval.
6840
6841         * include/libintl.h: Minor cleanups.
6842
6843 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6844
6845         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6846
6847 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6848
6849         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6850
6851 2002-04-14  Bruno Haible  <bruno@clisp.org>
6852
6853         * locale/programs/charmap.c (charmap_read): Don't access result if
6854         result == NULL.
6855
6856 2002-02-17  Andreas Schwab  <schwab@suse.de>
6857
6858         * elf/reldep7.c: New file.
6859         * elf/reldep7mod1.c: New file.
6860         * elf/reldep7mod2.c: New file.
6861         * elf/Makefile: Add rules to build and run reldep7.
6862
6863 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6864
6865         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6866         the end of the function.  Pass original flags to recursive call if
6867         add_dependency failed.
6868         (_dl_lookup_versioned_symbol): Likewise.
6869
6870 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6871
6872         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6873         early, but check whether it overflowed afterwards.
6874         * time/tst-mktime.c (main): Add new tests.
6875
6876 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6877
6878         * debug/xtrace.sh: Fix program name in help message.
6879         Patch by Roger Luethi <rl@hellgate.ch>.
6880
6881         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6882         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6883         NOT_IN_libc.
6884         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6885         * sysdeps/mach/hurd/lxstat.c: Likewise.
6886         * sysdeps/unix/common/lxstat.c: Likewise.
6887         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6888         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6889         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6890         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6891         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6892         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6893         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6894         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6895         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6896
6897         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6898         prototypes.  Add __mbrlen and __mbrtowc macros.
6899         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6900         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6901
6902         * include/unistd.h: Add prototype for __write_internal and add
6903         __libc_write macro is SHARED.
6904         * sysdeps/generic/write.c: Use INTDEF for __write.
6905         * sysdeps/mach/hurd/write.c: Likewise.
6906         * sysdeps/unix/sysv/aix/write.c: Likewise.
6907         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6908
6909         * assert/assert.c: Replace STR_N_SIZE with something usable in
6910         macro arguments.
6911         * assert/assert-perr.c: Likewise.
6912
6913         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6914         SA_LEN macro to use it if not NOT_IN_libc.
6915         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6916
6917         * include/fcntl.h: Declare __open_internal and define __open and
6918         __libc_open macros if not NOT_IN_libc.
6919         * sysdeps/generic/open.c: Use INTDEF for __open.
6920         * sysdeps/mach/hurd/open.c: Likewise.
6921         * sysdeps/unix/sysv/aix/open.c: Likewise.
6922         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6923
6924         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6925         has correct number.
6926
6927         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6928         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6929         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6930         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6931
6932         * include/wctype.h: Declare __iswalpha_l_internal,
6933         __iswdigit_l_internal, __iswspace_l_internal,
6934         __iswxdigit_l_internal, and __iswctype_internal.  Define
6935         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6936         __iswxdigit_l macros if not NOT_IN_libc.
6937         * wctype/iswctype.c: Use INTDEF for __iswctype.
6938         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6939
6940         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6941         __isnan_internal, and __isnanl_internal.
6942         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6943         __isnan, and __isnanl.
6944         * stdio-common/printf_size.c: Likewise.
6945         * sysdeps/generic/printf_fphex.c: Likewise.
6946         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6947         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6948         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6949         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6950         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6951         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6952         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6953         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6954         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6955         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6956         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6957         * sysdeps/m68k/s_isinfl.c: Likewise.
6958         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6959         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6960
6961         * include/sys/time.h: Declare __gettimeofday_internal and define
6962         __gettimeofday macro if not NOT_IN_libc.
6963         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6964         * sysdeps/mach/gettimeofday.c: Likewise.
6965         * sysdeps/posix/gettimeofday.c: Likewise.
6966         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6967         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6968         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6969         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6970
6971         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6972         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6973         Remove __lstat and __fstat inline functions.
6974         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6975         * sysdeps/mach/hurd/fxstat.c: Likewise.
6976         * sysdeps/unix/fxstat.c: Likewise.
6977         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6978         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6979         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6980         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6981         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6982         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6983         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6984         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6985         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6986
6987         * include/unistd.h: Declare __getpid_internal and define
6988         __getpid macro if not NOT_IN_libc.
6989         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6990         * sysdeps/generic/getpid.c: Likewise.
6991         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6992         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6993
6994         * include/unistd.h: Declare __getpgid_internal and define
6995         __getpgid macro if not NOT_IN_libc.
6996         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6997         * sysdeps/mach/hurd/getpgid.c: Likewise.
6998         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6999         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7000         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7001         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7002
7003         * include/unistd.h: Declare __getpagesize_internal and define
7004         __getpagesize macro if not NOT_IN_libc.
7005         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7006         __getpagesize.
7007         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7008         * sysdeps/mach/getpagesize.c: Likewise.
7009         * sysdeps/posix/getpagesize.c: Likewise.
7010         * sysdeps/unix/getpagesize.c: Likewise.
7011         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7012         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7013         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7014         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7015
7016 2002-04-13  Andreas Jaeger  <aj@suse.de>
7017
7018         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7019         as clobber to reduce register pressure.
7020         (__strpbrk_cg): Likewise.
7021         (__mempcpy_by4): Likewise.
7022         (__strstr_cg): Likewise.
7023         Add prototype for __memrchr.
7024
7025 2002-04-13  Andreas Schwab  <schwab@suse.de>
7026
7027         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7028         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7029         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7030
7031 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7032
7033         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7034         check whether the caller prefers getting the most recent version of
7035         a symbol of the earliest version.
7036         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7037         _dl_do_lookup to also take the new parameter and pass it on.
7038         Change 'explicit' parameter of _dl_lookup_symbol and
7039         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7040         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7041         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7042         _dl_lookup_versioned_symbol.
7043         * elf/dl-reloc.c: Likewise.
7044         * elf/dl-runtime.c: Likewise.
7045         * elf/dl-sym.c: Likewise.
7046         * sysdeps/mips/dl-machine.h: Likewise.
7047
7048 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7049
7050         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7051         in a token.
7052         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7053
7054 2002-04-10  Andreas Jaeger  <aj@suse.de>
7055
7056         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7057
7058         * include/argz.h: Remove extra char from last patch.
7059
7060 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7061
7062         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7063         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7064         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7065         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7066         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7067         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7068         __chown_internal.
7069         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7070
7071         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7072         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7073         * intl/ngettext.c: Likewise.
7074
7075         * include/sys/socket.h: Declare __connect_internal and define
7076         __connect macro if not NOT_IN_libc.
7077         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7078         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7079         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7080
7081         * include/unistd.h: Declare __close_internal and define __close macro
7082         if not NOT_IN_libc.
7083         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7084         WJUMP3): Add extra parenthesis to avoid expanding element names with
7085         macors like __close.
7086         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7087
7088         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7089         if not NOT_IN_libc.
7090         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7091         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7092         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7093
7094         * include/unistd.h: Declare __fork_internal and define __fork macro
7095         if not NOT_IN_libc.
7096         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7097         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7098         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7099
7100         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7101         __fsetlocking macro to use it if not NOT_IN_libc.
7102         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7103
7104         * libio/__fbufsize.c: Correct copyright.
7105         * libio/__flbf.c: Likewise.
7106         * libio/__fpending.c: Likewise.
7107         * libio/__fpurge.c: Likewise.
7108         * libio/__freadable.c: Likewise.
7109         * libio/__freading.c: Likewise.
7110         * libio/__fsetlocking.c: Likewise.
7111         * libio/__fwritable.c: Likewise.
7112         * libio/__fwriting.c: Likewise.
7113
7114         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7115         macro to use it if not NOT_IN_libc.
7116         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7117
7118         * include/mntent.h: Declare __setmntent_internal,
7119         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7120         __getmntent_r, and __endmntent macros to use these functions if not
7121         NOT_IN_libc.
7122         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7123         __endmntent.
7124
7125         * include/math.h: Declare __finite_internal, __finitef_internal, and
7126         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7127         these functions.
7128         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7129         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7130         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7131         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7132         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7133         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7134         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7135         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7136         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7137         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7138
7139         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7140         to use this function if not NOT_IN_libc.
7141         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7142         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7143         * sysdeps/mach/hurd/fcntl.c: Likewise.
7144         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7145         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7146
7147         * include/argz.h: Declare __argz_count_internal and
7148         __argz_stringify_internal.
7149         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7150         __argz_stringify.
7151         * string/argz-count.c: Use INTDEF for __argz_count.
7152         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7153
7154         * include/stdlib.h: Declare __cxa_atexit_internal and define
7155         __cxa_atexit macro if not NOT_IN_libc.
7156         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7157         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7158
7159         * assert/assert.c: Use INTDEF for __assert_fail.
7160         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7161         * include/assert.h: Declare __assert_fail_internal.
7162
7163         * extra-lib.mk: Mark assignment to lib with override.
7164
7165 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7166
7167         * Makerules: Use cppflags-iterator.mk to add defines for all test
7168         source files.
7169
7170 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7171
7172         * elf/elf.h: Define R_SH_TLS_xxx macros.
7173         * elf/rtld.c: Remove an extra parenthesis.
7174         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7175         TLS_GD macros.
7176         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7177         * sysdeps/sh/dl-lookupcfg.h: New file.
7178         * sysdeps/sh/dl-tls.h: New file.
7179         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7180         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7181         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7182         R_SH_TLS_TPOFF32 relocations.
7183
7184 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7185
7186         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7187         of NOT_IN_LIBC.
7188         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7189         * include/stdlib.h: Likewise.
7190
7191 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7192
7193         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7194         instead of _RTLD_LOCAL.
7195         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7196         * include/unistd.h: Likewise.
7197         * sysdeps/generic/ldsodefs.h: Likewise.
7198
7199         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7200         if in libc or ld.so.
7201
7202 2002-04-08  Andreas Jaeger  <aj@suse.de>
7203
7204         * elf/cache.c (print_entry): Support x86-64.
7205
7206 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7207
7208         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7209         with one accessing the locale data structures directly.
7210         * stdio-common/printf-prs.c: Include localeinfo.h for new
7211         MB_CUR_MAX definition.
7212
7213         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7214         is the name of the source file without extension.
7215         * Makefile (distribute): Add cppflags-iterator.mk.
7216         * cppflags-iterator.mk: New file.
7217         * extra-lib.mk: For the sources of the library run
7218         cppflags-iterator.mk.
7219
7220         * include/libintl.h: Declare __dcgettext_internal and
7221         _libc_intl_domainname_internal.  Define __dcgettext using these
7222         two symbols if used in libc itself.
7223         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7224         _libc_intl_domainname_internal.
7225         * argp/argp-parse.c: Likewise.
7226         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7227         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7228         * intl/gettext.c: Likewise.
7229         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7230         alias.
7231         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7232         __dcgettext.
7233         * posix/regex_internal.c (gettext): Likewise.
7234
7235 2002-04-08  Andreas Jaeger  <aj@suse.de>
7236
7237         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7238
7239         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7240         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7241         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7242         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7243         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7244         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7245
7246 2002-04-08  Roland McGrath  <roland@frob.com>
7247
7248         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7249         widening __hurd_fail value.
7250
7251 2002-04-07  Roland McGrath  <roland@frob.com>
7252
7253         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7254         <mach/machine/alpha_instruction.h>.
7255         (_hurd_setup_sighandler): Take proper arguments for current decls.
7256         Update code to use _hurdsig_catch_fault.
7257         Use `callsys' instruction instead of `call_pal'.
7258         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7259
7260         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7261         (ALIGN, at, AT, fp): New macros.
7262
7263 2002-04-06  Roland McGrath  <roland@frob.com>
7264
7265         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7266
7267         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7268         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7269
7270         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7271         * sysdeps/mach/hurd/connect.c: Likewise.
7272         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7273         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7274
7275         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7276         __msg_sig_post RPC.
7277
7278         * hurd/catch-exc.c: Use integer_t instead of int.
7279         * hurd/hurdfault.c: Likewise.
7280
7281         * sysdeps/mach/hurd/alpha/exc2signal.c
7282         (_hurd_exception2signal): Rewritten.
7283         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7284         (_hurd_longjmp_thread_state): Rewritten.
7285
7286 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7287
7288         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7289         DB_LOOKUP_FCT prototype.
7290         * nss/getXXent_r.c: Likewise.
7291         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7292         * inet/getaliasname_r.c: Likewise.
7293         * inet/getnetbyad_r.c: Likewise.
7294         * inet/getnetbynm_r.c: Likewise.
7295         * inet/getnetent_r.c: Likewise.
7296         * inet/getproto_r.c: Likewise.
7297         * inet/getprtent_r.c: Likewise.
7298         * inet/getprtname_r.c: Likewise.
7299         * inet/getrpcbyname_r.c: Likewise.
7300         * inet/getrpcbynumber_r.c: Likewise.
7301         * inet/getrpcent_r.c: Likewise.
7302         * inet/getservent_r.c: Likewise.
7303         * inet/getsrvbynm_r.c: Likewise.
7304         * inet/getsrvbypt_r.c: Likewise.
7305         * shadow/getspent_r.c: Likewise.
7306         * shadow/getspnam_r.c: Likewise.
7307
7308         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7309
7310         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7311         Use i686-friendly PIC code.
7312         * sysdeps/i386/elf/setjmp.S: Likewise.
7313
7314         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7315
7316         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7317         list.
7318         * elf/Versions: Remove it here.
7319
7320 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7321
7322         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7323         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7324
7325 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7326
7327         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7328         test just before the test runs.
7329         * intl/tst-translit.sh: Likewise.
7330         * intl/tst-codeset.sh: Likewise.
7331
7332         * timezone/zic.c: Update from tzcode2002c.
7333         * timezone/asia: Update from tzdata2002c.
7334         * timezone/backward: Likewise.
7335         * timezone/europe: Likewise.
7336         * timezone/northamerica: Likewise.
7337         * timezone/northamerica: Likewise.
7338         * timezone/northamerica: Likewise.
7339         * timezone/southamerica: Likewise.
7340         * timezone/zone.tab: Likewise.
7341
7342 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7343
7344         * sysdeps/generic/brk.c (__curbrk): Declare.
7345         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7346         * sysdeps/generic/dl-sbrk.c: Likewise.
7347         * sysdeps/unix/arm/dl-brk.S: New file.
7348         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7349         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7350         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7351         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7352         * sysdeps/unix/i386/dl-brk.S: New file.
7353         * sysdeps/unix/mips/dl-brk.S: New file.
7354         * sysdeps/unix/sparc/dl-brk.S: New file.
7355         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7356         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7357         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7358         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7359
7360 2002-04-03  Andreas Schwab  <schwab@suse.de>
7361
7362         * Makefile (headers): Add gnu/lib-names.h here instead of
7363         install-others.
7364         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7365         installation rule.
7366         (install-headers): Add dependency on install-headers-nosubdir.
7367         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7368         instead of install-others.
7369         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7370         installation rule.
7371
7372 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7373
7374         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7375         Reported by Sam Roberts <sroberts@uniserve.com>.
7376
7377 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7378
7379         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7380         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7381         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7382         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7383
7384 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7385
7386         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7387         (RTLD_START): Ditto.
7388         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7389         dependency violation.
7390
7391 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7392
7393         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7394         all variable declarations.
7395
7396 2002-04-04  Andreas Schwab  <schwab@suse.de>
7397
7398         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7399
7400 2002-04-04  Andreas Jaeger  <aj@suse.de>
7401
7402         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7403         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7404
7405         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7406         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7407         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7408
7409         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7410
7411         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7412
7413         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7414         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7415
7416         * configure.in: Handle all mips entries the same.
7417
7418         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7419         * sysdeps/mips/mips3/*: Likewise.
7420         * sysdeps/mips/p40/bits/endian.h: Likewise.
7421
7422 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7423
7424         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7425         non-null result [PR libc/2600].
7426
7427         * misc/tst-dirname.c: Add more tests.
7428
7429 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7430
7431         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7432         define a code_set_name provide one based on the filename.
7433
7434         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7435
7436 2001-12-28  Andreas Jaeger  <aj@suse.de>
7437
7438         * time/mktime.c (__mktime_internal): Check for year < 70
7439         [PR libc/2738].
7440
7441 2002-04-03  Andreas Jaeger  <aj@suse.de>
7442
7443         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7444         shmat.
7445         Reported by Andi Kleen <ak@suse.de>.
7446
7447 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7448
7449         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7450         * sysdeps/generic/w_lgammaf.c: Likewise.
7451         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7452
7453         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7454         Adjust for new output format of the backtrace functions.
7455
7456         * misc/syslog.c (vsyslog): Only use cleanup handler if
7457         _LIBC_REENTRANT is defined [PR libc/2924].
7458
7459         * libio/Makefile (tests): Add bug-ungetwc2.
7460         * libio/bug-ungetwc2.c: New file.
7461
7462         * manual/install.texi: Typographical and grammatical cleanup.
7463         Patch by Dennis Grace <dgrace@us.ibm.com>.
7464
7465         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7466         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7467
7468         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7469         always "&".  Adjust callers.
7470         Add "_" prefix to several generated definitions.
7471         Patch by paul@serice.net [PR libc/3158].
7472
7473 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7474
7475         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7476         size of _dl_arm_cap_flags.
7477         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7478
7479         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7480         Define as 8.
7481
7482 2002-03-22  H.J. Lu  <hjl@gnu.org>
7483
7484         * scripts/firstversions.awk: Check the first version.
7485
7486 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7487
7488         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7489         dependencies must be stable to work correctly.
7490         Reported by martin.lubich@datacon.at.
7491
7492         * libio/bug-ungetwc1.c: New file.
7493         * libio/Makefile (tests): Add bug-ungetwc1.
7494
7495         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7496         if stream was last used for writing.
7497
7498         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7499         number [PR libc/3111].
7500
7501         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7502         to ...
7503         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7504
7505 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7506
7507         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7508         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7509         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7510         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7511         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7512
7513 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7514
7515         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7516         dynamic tags.
7517
7518 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7519
7520         * sysdeps/i386/fpu/s_fabs.S: New file.
7521         * sysdeps/i386/fpu/s_fabsf.S: New file.
7522         * sysdeps/i386/fpu/s_fabsl.S: New file.
7523         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7524         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7525         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7526
7527 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7528
7529         * rt/tst-shm.c (do_test): Add one more test for size of shared
7530         memory object.
7531
7532 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7533
7534         * malloc/malloc.c: Add short description and prototypes for
7535         malloc_get_state, malloc_set_state and posix_memalign, for
7536         consistency and to avoid warnings with -Wstrict-prototypes.
7537         Reported by Andreas Jaeger <aj@suse.de>.
7538
7539 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7540
7541         * po/gl.po: Update from translation team.
7542
7543 2002-03-31  Roland McGrath  <roland@frob.com>
7544
7545         * hurd/hurdselect.c (_hurd_select): Fix
7546         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7547         Use a union rather than casts to compare mach_msg_type_t as int.
7548
7549 2002-03-25  Roland McGrath  <roland@frob.com>
7550
7551         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7552         check off the end of NAME when it's shorter than 2 chars.
7553         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7554
7555 2002-03-17  Roland McGrath  <roland@frob.com>
7556
7557         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7558         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7559         * sysdeps/mach/hurd/i386/Dist: Add them.
7560         * sysdeps/mach/hurd/i386/Versions
7561         (libc: GLIBC_2.2.6): New set, add ioperm.
7562         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7563         (mach_interface_list): Check for mach_i386.defs.
7564         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7565         * sysdeps/mach/configure: Regenerated.
7566
7567 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7568
7569         * po/fr.po: Update from translation team.
7570
7571 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7572
7573         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7574         getpriority from syscalls list.
7575
7576 2002-03-28  Andreas Jaeger  <aj@suse.de>
7577
7578         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7579         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7580         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7581         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7582
7583 2002-03-27  Andreas Jaeger  <aj@suse.de>
7584
7585         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7586         sigcontext): Follow further kernel change.
7587
7588         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7589         kernel change.
7590
7591         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7592         Change for struct sigcontext change.
7593
7594         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7595         Follow changes in struct sigcontext.
7596
7597         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7598         sysycall, use wrapper instead.
7599
7600 2002-03-26  Andreas Jaeger  <aj@suse.de>
7601
7602         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7603         read and write accesses as detailed as possible.
7604         (__memcpy_by2): Likewise.
7605         (__memcpy_g): Likewise.
7606         (memmove): Likewise.
7607         (memcmp): Likewise.
7608         (__memset_ccn_by4): Likewise.
7609         (__memset_ccn_by2): Likewise.
7610         (__memset_gcn_by4): Likewise.
7611         (__memset_gcn_by2): Likewise.
7612         (memchr): Likewise.
7613         (__memrchr): Likewise.
7614         (rawmemchr): Likewise.
7615         (__strlen_g): Likewise.
7616         (__strcpy_g): Likewise.
7617         (__mempcpy_by4): Likewise.
7618         (__mempcpy_by2): Likewise.
7619         (__mempcpy_byn): Likewise.
7620         (__stpcpy_g): Likewise.
7621         (__strncpy_by4): Likewise.
7622         (__strncpy_by2): Likewise.
7623         (__strncpy_byn): Likewise.
7624         (__strncpy_gg): Likewise.
7625         (__strcat_c): Likewise.
7626         (__strcat_g): Likewise.
7627         (__strncat_g): Likewise.
7628         (__strcmp_gg): Likewise.
7629         (__strncmp_g): Likewise.
7630         (__strchr_c): Likewise.
7631         (__strchr_g): Likewise.
7632         (__strchrnul_c): Likewise.
7633         (__strchrnul_g): Likewise.
7634         (__strrchr_c): Likewise.
7635         (__strrchr_g): Likewise.
7636         (__strrchr_c): Likewise.
7637         (__strrchr_g): Likewise.
7638         (__strcspn_c1): Likewise.
7639         (__strcspn_cg): Likewise.
7640         (__strcspn_g): Likewise.
7641         (__strcspn_g): Likewise.
7642         (__strspn_c1): Likewise.
7643         (__strspn_cg): Likewise.
7644         (__strspn_g): Likewise.
7645         (__strspn_g): Likewise.
7646         (__strpbrk_cg): Likewise.
7647         (__strpbrk_g): Likewise.
7648         (__strstr_cg): Likewise.
7649         (__strstr_g): Likewise.
7650
7651         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7652         Michal Ludvig <mludvig@suse.cz>.
7653
7654         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7655         compatibilty, adjust for kernel changes.
7656
7657         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7658         sigcontext): Adjust for kernel changes.
7659
7660 2002-03-25  Andreas Jaeger  <aj@suse.de>
7661
7662         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7663         little endian.
7664         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7665
7666 2002-03-24  Andreas Jaeger  <aj@suse.de>
7667
7668         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7669
7670         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7671
7672         * iconv/tst-iconv3.c (main): Use correct printf strings.
7673
7674 2002-03-18  Roland McGrath  <roland@frob.com>
7675
7676         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7677         (CMGROUP_MAX): New macro.
7678
7679 2002-03-23  Roland McGrath  <roland@frob.com>
7680
7681         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7682         * sysdeps/posix/shm_unlink.c: Likewise.
7683
7684 2002-03-22  Roland McGrath  <roland@frob.com>
7685
7686         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7687         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7688         under --enable-libio.
7689         * sysdeps/mach/hurd/configure: Regenerated.
7690
7691 2002-03-23  Roland McGrath  <roland@frob.com>
7692
7693         * sysdeps/mach/hurd/i386/Makefile
7694         (sysdep_routines, shared-only-routines): Don't add framestate,
7695         reverting 2001-10-02 change.
7696         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7697         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7698         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7699         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7700         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7701         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7702         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7703         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7704         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7705         Do it here instead, only if [$(unwind-find-fde) = yes].
7706
7707 2002-03-23  Andreas Jaeger  <aj@suse.de>
7708
7709         * signal/signal.h: Fix typo. Patch by Steve Kemp
7710         <skx@tardis.ed.ac.uk>.
7711
7712 2002-03-22  Andreas Jaeger  <aj@suse.de>
7713
7714         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7715         getresuid.
7716
7717         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7718         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7719         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7720         user_fpregs_struct): Rename fwd.
7721
7722         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7723         Follow sigcontext changes.
7724
7725 2002-03-22  Andreas Jaeger  <aj@suse.de>
7726
7727         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7728         changes for NaNs on MIPS.
7729         Patch by Hartvig Ekner <hartvige@mips.com>.
7730
7731 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7732
7733         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7734         Use realloc if too large.
7735         (addgrbyid): Likewise.
7736         * nscd/hstcache.c (addhstbyname): Likewise.
7737         (addhstbyaddr): Likewise.
7738         (addhstbynamev6): Likewise.
7739         (addhstbyaddrv6): Likewise.
7740         * nscd/pwdcache.c (addpwbyname): Likewise.
7741         (addpwbyuid): Likewise.
7742
7743 2002-03-21  Andreas Jaeger  <aj@suse.de>
7744
7745         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7746         _fpstate): Add separate struct for x86-64.
7747
7748         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7749         user_fpregs_struct): Change member names to follow kernel.
7750
7751 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7752
7753         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7754         Correctly close the UDP connection right away [PR libc/3120].
7755
7756 2002-03-20  Andreas Jaeger  <aj@suse.de>
7757
7758         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7759         user_fpregs_struct): Fix for changed kernel struct.
7760         (struct user_regs_struct): Likewise.
7761         (struct user): Likewise.
7762         Add 32-bit x86 compatibility.
7763
7764         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7765
7766 2002-03-19  Andreas Jaeger  <aj@suse.de>
7767
7768         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7769
7770 2002-03-18  Andreas Jaeger  <aj@suse.de>
7771
7772         * iconvdata/Makefile: Only run tests when shared libs are
7773         available.
7774
7775 2002-03-17  Andreas Jaeger  <aj@suse.de>
7776
7777         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7778
7779         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7780
7781         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7782         bits.
7783
7784         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7785         (CAUSE_SHIFT): New macro.
7786         Patch by Hartvig Ekner <hartvige@mips.com>.
7787
7788         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7789         * sysdeps/generic/unwind-pe.h: Likewise.
7790
7791         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7792         type to _IO_setb.
7793
7794         * libio/stdio.c (AL2): Define variant when visibility attribute is
7795         not supported.
7796
7797         * include/libc-symbols.h (_INTVARDEF): Define variant when
7798         visibility attribute is not supported.
7799
7800 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7801
7802         * po/fr.po: Update from translation team.
7803
7804 2002-02-25  Bruno Haible  <bruno@clisp.org>
7805
7806         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7807
7808 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7809
7810         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7811         buffers if _IO_file_attach failed.
7812
7813         * libio/fileops.c (_IO_file_open): Close file descriptor if
7814         _IO_SEEKOFF call failed.
7815
7816 2002-03-15  H.J. Lu  <hjl@gnu.org>
7817             Ulrich Drepper  <drepper@redhat.com>
7818
7819         * configure.in: Check for availability of
7820         init_array/fini_array/preinit_array handling in binutils.
7821         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7822         * config.make.in (have-initfini-array): New variable.
7823
7824 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7825
7826         * stdio-common/tst-printf.c (main): Comment out one test which
7827         checked the compiler's ability to fold floating-point constants
7828         but not really printf.
7829         (rfg3): Make s const.
7830         * stdio-common/tst-printf.sh: Adjust for removed test.
7831
7832         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7833         internal function.  Adjust for internal_function calling convention.
7834         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7835         as internal_function.
7836
7837         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7838         hidden.
7839
7840         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7841         declaration and definition.
7842         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7843         declaration.
7844         * nss/getXXent_r.c: Likewise.
7845         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7846         definition.
7847
7848         * include/time.h: Declare __localtime_r as hidden.
7849
7850         * include/aliases.h: Declare __getaliasent_r as hidden.
7851         * include/grp.h: Declare __getgrent_r as hidden.
7852         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7853         __getservent_r, and __getprotoent_r as hidden.
7854         * include/pwd.h: Declare __getpwent_r as hidden.
7855         * include/shadow.h: Declare __getspent_r as hidden.
7856         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7857
7858         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7859         and __gconv_transliterate as hidden.
7860         Add internal_function to __gconv_get_path declaration.
7861         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7862         definition.  Add attribute_hidden to __gconv_read_conf definition.
7863
7864 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7865
7866         * elf/rtld.c: Declare _environ as hidden.
7867         * sysdeps/generic/dl-environ.c: Likewise.
7868         * sysdeps/generic/dl-sysdep.c: Likewise.
7869
7870         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7871         _dl_mcount_internal as hidden.
7872
7873         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7874         * sysdeps/generic/dl-brk.c: New file.
7875         * sysdeps/generic/dl-sbrk.c: New file.
7876         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7877         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7878
7879         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7880         (__errno_location): New function.  Declare errno as hidden.
7881         * elf/rtld.c (_dl_argc): Define as hidden.
7882         (_dl_skip_args): Define as hidden.
7883         (_begin, _end): Declare as hidden.
7884         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7885         * sysdeps/generic/entry.h (_start): Declare as hidden.
7886         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7887         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7888         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7889         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7890
7891 2002-03-14  Roland McGrath  <roland@frob.com>
7892
7893         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7894
7895         * Makeconfig (%.v.i, %.v): New implicit rules.
7896         (preprocess-versions): Variable removed.
7897         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7898         shlib-versions input files as dependencies.
7899         ($(common-objpfx)soversions.i): Depend on that instead of the input
7900         files.  Use it as input instead of using a pipeline.
7901         (postclean-generated): Append soversions.i, shlib-versions.v, and
7902         shlib-versions.v.i here.
7903         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7904         the Versions.def input files as dependencies.
7905         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7906         ($(common-objpfx)Versions.all): Depend on that instead of the input
7907         files.  Use it as input instead of using a pipeline.
7908         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7909         (postclean-generated): Append those .v and .v.i files here.
7910
7911 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7912
7913         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7914         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7915         Remove.
7916
7917 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7918
7919         * sysdeps/generic/mp_clz_tab.c: New file.
7920         * sysdeps/i386/mp_clz_tab.c: New file.
7921         * sysdeps/hppa/mp_clz_tab.c: New file.
7922         * sysdeps/powerpc/mp_clz_tab.c: New file.
7923         * stdlib/Makefile (aux): Revert last patch.
7924         * math/Makefile (gmp-objs): Likewise.
7925
7926 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7927
7928         * time/strftime.c: Comment fixes for references to obsolescent
7929         standards, In most cases the simplest fix is to remove the
7930         confusing comments.  Cross-referencing all the standards properly
7931         is a bit of a pain, and it should be enough to put that info in
7932         the documentation as I did in my recent time.texi patch.
7933
7934 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7935
7936         * manual/time.texi (Formatting Calendar Time):
7937         ISO C99 also specifies the E and O modifiers.
7938         %P is a GNU extension, and is not in ISO C99.
7939         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7940         %T is also in ISO C99.
7941         The RFC 822 example is not valid in arbitrary locales.
7942         Reword the POSIX.2 wording slightly, to make it a bit clearer
7943         that POSIX.2 formats are also supported by later POSIX versions.
7944         If a format was introduced in ISO C99 it is also required by
7945         POSIX.1-2001.
7946
7947 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7948
7949         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7950         _sys_nerr_internal with INTVARDEF2.
7951         * include/libc-symbols.h (INTVARDEF2): New macro.
7952         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7953         (_sys_nerr_internal): Library.
7954
7955         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7956         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7957
7958         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7959
7960 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7961
7962         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7963
7964 2002-03-02  Andreas Schwab  <schwab@suse.de>
7965
7966         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7967         'h' flag and positional arg.
7968         * stdio-common/tst-printf.c (rfg3): New function to test
7969         positional arguments.
7970         (main): Fix some warnings.
7971
7972 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7973
7974         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7975         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7976
7977 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7978
7979         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7980
7981         * include/locale.h (_nl_C_locobj): Declare as hidden.
7982
7983         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7984         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7985
7986         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7987
7988         * include/sys/gmon.h: Declare _gmonparam as hidden.
7989
7990         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7991         (__ctype32_wctrans): Likewise.
7992         (__ctype32_width): Likewise.
7993
7994         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7995         use of __ttyname.
7996
7997         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7998         Define as hidden.
7999         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8000         hidden.  Change all users of these variables.
8001
8002         * posix/regex_internal.h (__re_error_msgid): Renamed from
8003         re_error_msgid.  Declare as hidden.
8004         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8005         hidden.
8006
8007         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8008         (__printf_function_table): Likewise.
8009         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8010         hidden.
8011         (__printf_function_table): Likewise.
8012
8013         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8014         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8015
8016         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8017         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8018
8019         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8020         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8021
8022 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8023
8024         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8025         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8026         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8027         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8028         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8029         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8030         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8031         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8032         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8033         _nl_C_LC_CTYPE_width: Declare as hidden.
8034         * include/locale.h: Declare _nl_locale_file_list.
8035         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8036         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8037         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8038         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8039         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8040         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8041         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8042         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8043         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8044         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8045         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8046         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8047         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8048         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8049         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8050         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8051         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8052         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8053         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8054         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8055         _nl_C_LC_CTYPE_width, and as hidden.
8056         * locale/findlocale.c: Declare _nl_C as hidden.
8057         * locale/newlocale.c: Likewise.
8058         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8059         _nl_locale_file_list.
8060         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8061         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8062         Define _nl_C_locobj as hidden.
8063
8064         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8065         (_mtrace_line): Likewise.
8066
8067         * include/time.h: Declare __mon_yday as hidden.
8068         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8069
8070         * libio/libioP.h: Declare __libio_codecvt as hidden.
8071         * libio/fileops.c: Declare __libio_translit as hidden.
8072         * libio/iofwide.c: Define __libio_translit as hidden.
8073
8074         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8075         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8076         * login/getutline_r.c: Likewise.
8077         * login/utmpname.c: Likewise.
8078
8079         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8080         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8081         __libc_utmp_file_name as hidden.
8082
8083         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8084         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8085         * locale/freelocale.c: Likewise.
8086         * locale/lc-time.c: Likewise.
8087
8088         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8089         (__libc_ptyname2): Likewise.
8090         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8091         hidden.
8092         (__libc_ptyname2): Likewise.
8093
8094         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8095         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8096         * sysdeps/generic/init-first.c: Likewise.
8097         * sysdeps/i386/init-first.c: Likewise.
8098         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8099         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8100         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8101         * sysdeps/sh/init-first.c: Likewise.
8102         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8103         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8104
8105         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8106         (_itowa_upper_digits): Likewise.
8107
8108         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8109         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8110         as hidden.
8111
8112         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8113         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8114         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8115         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8116
8117         * gmon/gmon.c (__bb_head): Define as hidden.
8118         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8119
8120         * argp/argp-parse.c (_argp_hang): Define as static.
8121
8122         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8123         handling in latest compilers.
8124
8125         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8126         define alias.
8127         * libio/fileops.c (_IO_file_jumps): Likewise.
8128         * libio/stdfiles.c (_IO_list_all): Likewise.
8129         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8130
8131         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8132         include/malloc.h.
8133         * include/malloc.h: Add __libc_malloc_initialized declaration
8134         here.  Mark variable hidden.
8135         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8136
8137         * elf/dl-open.c (__libc_argc): Declare as hidden.
8138         (__libc_argv): Likewise.
8139         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8140         (__libc_argv): Likewise.
8141         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8142         __libc_argv as hidden.
8143         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8144         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8145         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8146         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8147
8148         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8149         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8150         * stdlib/erand48.c: Likewise.
8151         * stdlib/jrand48.c: Likewise.
8152         * stdlib/lcong48.c: Likewise.
8153         * stdlib/lrand48.c: Likewise.
8154         * stdlib/mrand48.c: Likewise.
8155         * stdlib/nrand48.c: Likewise.
8156         * stdlib/seed48.c: Likewise.
8157         * stdlib/srand48.c: Likewise.
8158
8159         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8160         (_itoa_lower_digits_internal): New declaration.
8161         (_itoa_upper_digits_internal): New declaration.
8162         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8163         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8164         (_itoa_upper_digits_internal): New declaration.
8165         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8166         _itoa_lower_digits.
8167         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8168         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8169
8170         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8171         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8172
8173         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8174         (_itowa_lower_digits): Likewise.
8175         (_itowa_upper_digits): Likewise.
8176         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8177         (_itowa_upper_digits): Likewise.
8178
8179         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8180         not already defined.
8181         (GERMANIC_PLURAL): Declare as hidden.
8182
8183         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8184         (attribute_hidden): Define as empty macro if not already defined.
8185
8186         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8187         (__gconv_max_path_elem_len): Likewise.
8188         (__gconv_path_envvar): Likewise.
8189
8190         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8191         * stdlib/Makefile (aux): Remove mp_clz_tab.
8192         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8193
8194         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8195
8196         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8197
8198         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8199         _nl_category_names, _nl_category_name_sizes, _nl_current,
8200         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8201
8202         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8203         (_nl_current_default_domain): Likewise
8204         (_nl_state_lock): Likewise.
8205         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8206         (_nl_current_default_domain): Likewise
8207         (_nl_state_lock): Likewise.
8208         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8209
8210         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8211         (_fpioconst_pow10): Likewise.
8212
8213         * include/time.h (_tmbuf): Add attribute_hidden.
8214
8215         * time/tzset.c (tzstring_list): Define as static.
8216
8217         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8218         __use_tzfile declaration.
8219
8220         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8221         and __wcsmbs_last_locale declaration.
8222
8223 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8224
8225         * timezone/Makefile (tzbases): Move systemv from here...
8226         (tzlinks): to here, since the entries in systemv were all changed
8227         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8228         tested) by Peter Breitenlohner.
8229
8230 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8231
8232         * time/tst-posixtz.c (tests): Add new tests.
8233         (main): Test whether tzset() sets daylight properly.
8234
8235 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8236
8237         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8238         __tzname_cur_max setting...
8239         (tzset_internal): ...here.
8240
8241 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8242
8243         * time/tzset.c (compute_change): Don't return any value.
8244         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8245         (__tz_convert): But here.
8246
8247 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8248
8249         * manual/examples/mkfsock.c: Include <string.h> as well.
8250         Patch by Alain De Carolis <alaind@wseurope.com>.
8251
8252 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8253
8254         * posix/regexec.c (re_match): Fix incorrect register sizes.
8255         (re_search): Likewise.
8256
8257 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8258
8259         * posix/regcomp.c (regfree): Remove a disused condition.
8260         * posix/regex_internal.c (re_acquire_state): Likewise.
8261         (re_acquire_state_context): Likewise.
8262         (register_state): Remove a redundant malloc invocation.
8263         * posix/regex_internal.h: (re_state_table_entry): Simplify
8264         the structure.
8265
8266 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8267
8268         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8269         handling conditions.
8270         (regerror): Likewise.
8271         (regfree): Likewise.
8272         (re_compile_internal): Likewise.
8273         (init_dfa): Likewise.
8274         (init_word_char): Likewise.
8275         (create_initial_state): Likewise.
8276         (analyze): Likewise.
8277         (analyze_tree): Likewise.
8278         (duplicate_node): Likewise.
8279         (calc_eclosure): Likewise.
8280         (calc_eclosure_iter): Likewise.
8281         (parse): Likewise.
8282         (parse_reg_exp): Likewise.
8283         (parse_branch): Likewise.
8284         (parse_expression): Likewise.
8285         (parse_subexp): Likewise.
8286         (parse_dup_op): Likewise.
8287         (parse_bracket_exp): Likewise.
8288         (build_equiv_class): Likewise.
8289         (build_charclass): Likewise.
8290         (build_word_op): Likewise.
8291         (fetch_number): Likewise.
8292         (create_tree): Likewise.
8293         (duplicate_tree): Likewise.
8294         * posix/regex.c (BE): New macro.
8295         * posix/regexec.c (re_match): Add __builtin_expect to error
8296         handling conditions.
8297         (re_match_2): Likewise.
8298         (re_search): Likewise.
8299         (re_search_internal): Likewise.
8300         (check_matching): Likewise.
8301         (proceed_next_node): Likewise.
8302         (set_regs): Likewise.
8303         (sift_states_backward): Likewise.
8304         (add_epsilon_backreference): Likewise.
8305         (transit_state): Likewise.
8306         (transit_state_sb): Likewise.
8307         (transit_state_mb): Likewise.
8308         (transit_state_bkref): Likewise.
8309         (transit_state_bkref_loop): Likewise.
8310         (build_trtable): Likewise.
8311         (group_nodes_into_DFAstates): Likewise.
8312         (match_ctx_init): Likewise.
8313         (match_ctx_add_entry): Likewise.
8314         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8315         to error handling conditions.
8316         (re_string_construct_toupper): Likewise.
8317         (build_wcs_buffer): Likewise.
8318         (build_wcs_upper_buffer): Likewise.
8319         (build_upper_buffer): Likewise.
8320         (re_string_translate_buffer): Likewise.
8321         (re_node_set_alloc): Likewise.
8322         (re_node_set_init_1): Likewise.
8323         (re_node_set_init_2): Likewise.
8324         (re_node_set_init_copy): Likewise.
8325         (re_node_set_intersect): Likewise.
8326         (re_node_set_init_union): Likewise.
8327         (re_node_set_merge): Likewise.
8328         (re_node_set_insert): Likewise.
8329         (re_dfa_add_node): Likewise.
8330         (re_acquire_state): Likewise.
8331         (re_acquire_state_context): Likewise.
8332         (create_new_state_common): Likewise.
8333         (register_state): Likewise.
8334         (create_ci_new_state): Likewise.
8335         (create_cd_new_state): Likewise.
8336         (re_string_context_at): Remove redundant condition.
8337
8338 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8339
8340         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8341
8342         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8343
8344 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * sysdeps/i386/elf/configure.in: Fix comment.
8347
8348         * sysdeps/sparc/sparc64/configure.in: New file.
8349         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8350         if .dynamic comes before .got.
8351         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8352
8353         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8354         HP_TIMING_ACCUM): Fix typos.
8355
8356 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8357
8358         * string/strfry.c: Add some more randomness to the seed.
8359         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8360
8361         * po/es.po: Update from translation team.
8362         * po/fr.po: Likewise.
8363
8364         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8365
8366         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8367         when determining type of format.
8368         Patch by James Antill <james@anqd.org> [PR libc/2787].
8369
8370 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8371
8372         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8373
8374 2002-03-11  Roland McGrath  <roland@frob.com>
8375
8376         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8377
8378         * Versions.def (libc): Add GLIBC_2.2.6.
8379         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8380         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8381         __errno_location instead of __hurd_errno_location, and don't inline it.
8382         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8383         * hurd/errno.c: New file.
8384         * hurd/Makefile (routines): Add errno.
8385
8386 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8389         ridiculously large widths and precisions [PR libc/3026].
8390
8391 2002-03-11  Andreas Jaeger  <aj@suse.de>
8392
8393         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8394         support.
8395         Patch by Susanne Oberhauser <froh@SuSE.de>.
8396
8397 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8398
8399         * inet/rexec.c (ahostbuf): Define as static.
8400
8401         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8402         (__ctype32_wctrans): Likewise.
8403         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8404         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8405         (__ctype32_wctrans): Likewise.
8406         (__ctype32_width): Likewise.
8407
8408         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8409         They were never exported anyway.
8410
8411         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8412         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8413         exported.
8414         * include/sys/gmon.h: Declare _gmonparam.
8415
8416         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8417         symbols for getdents64.  They were never exported.
8418
8419 2002-03-09  Roland McGrath  <roland@frob.com>
8420
8421         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8422         Reported by Jon Arney <jarney1@cox.net>.
8423
8424 2002-02-23  Roland McGrath  <roland@frob.com>
8425
8426         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8427         declaration.
8428         (__hurd_errno_location): Function removed.
8429
8430 2002-03-06  Andreas Jaeger  <aj@suse.de>
8431
8432         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8433         32-bit.
8434
8435 2002-03-04  Andreas Jaeger  <aj@suse.de>
8436
8437         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8438
8439         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8440         x86-64.
8441
8442         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8443
8444         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8445
8446         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8447
8448         * sysdeps/x86_64/bits/setjmp.h: New file.
8449
8450         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8451
8452         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8453
8454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8455         for x86.
8456         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8457         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8458
8459 2002-02-28  Bo Thorsen  <bo@suse.de>
8460
8461         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8462         version.
8463
8464 2002-03-03  Andreas Jaeger  <aj@suse.de>
8465
8466         * sysdeps/x86_64/bits/wordsize.h: New file.
8467
8468         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8469         * elf/tst-tlsmod1.c: Likewise.
8470
8471         * posix/regcomp.c: Get regex.h from include dir for internal
8472         prototypes.
8473
8474         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8475         to libc-internal.h and include it.
8476         * include/libc-internal.h: Add __init_misc.
8477
8478         * misc/init-misc.c: Include libc-internal.h for prototypes.
8479
8480         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8481
8482         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8483         _IO_putc_internal.
8484
8485 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8486
8487         * posix/regcomp.c: Compatibility changes to allow using the code
8488         outside glibc.
8489
8490 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8491
8492         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8493         compiled non-PIC.
8494
8495 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8496
8497         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8498         of .str elements in the returned data structure.
8499
8500         * elf/elf.h: Add Alpha TLS bits.
8501
8502 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8503
8504         * sysdeps/unix/sysv/linux/nice.c: New file.
8505
8506 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * elf/Makefile (dl-routines): Add dl-origin.
8509         (elide-routines.os): Add dl-origin.
8510         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8511         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8512         _dl_debug_state.
8513         * include/libc-symbols.c: Define attribute_hidden depending on
8514         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8515
8516         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8517         * elf/dl-load.c: Likewise.
8518         * elf/rtld.c: Likewise.
8519         * include/unistd.h: Declare __libc_enable_secure_internal.
8520         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8521         Use INTUSE with __libc_enable_secure.
8522         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8523
8524         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8525         * elf/dl-error.c: Likewise,
8526         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8527
8528         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8529         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8530         function definition.  Use INTDEF with _dl_get_origin.
8531         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8532
8533         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8534         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8535
8536         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8537         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8538         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8539
8540         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8541         * elf/dl-deps.c: Likewise.
8542         * elf/dl-error.c: Likewise.
8543         * elf/dl-fini.c: Likewise.
8544         * elf/dl-init.c: Likewise.
8545         * elf/dl-load.c: Likewise.
8546         * elf/dl-lookup.c: Likewise.
8547         * elf/dl-reloc.c: Likewise.
8548         * elf/dl-version.c: Likewise.
8549         * elf/do-lookup.h: Likewise.
8550         * sysdeps/arm/dl-machine.h: Likewise.
8551         * sysdeps/cris/dl-machine.h: Likewise.
8552         * sysdeps/hppa/dl-machine.h: Likewise.
8553         * sysdeps/i386/dl-machine.h: Likewise.
8554         * sysdeps/m68k/dl-machine.h: Likewise.
8555         * sysdeps/powerpc/dl-machine.h: Likewise.
8556         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8557         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8558         * sysdeps/sh/dl-machine.h: Likewise.
8559         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8560         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8561         * sysdeps/x86_64/dl-machine.h: Likewise.
8562         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8563         _dl_argv[0].  Use INTUSE with _dl_argv.
8564         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8565         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8566
8567 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8568
8569         * elf/rtld.c (_rtld_global): Remove .protected.
8570         (_rtld_local): Strong alias to _rtld_global.
8571         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8572         only .os object.
8573         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8574         _rtld_local instead of _rtld_global.
8575         (_rtld_local): Add hidden extern, possibly in .sdata section.
8576         * configure.in: Add tests for visibility attribute and .sdata.
8577         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8578         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8579         * sysdeps/arm/dl-machine.h: Likewise.
8580         * sysdeps/generic/ldsodefs.h: Likewise.
8581         * sysdeps/hppa/dl-machine.h: Likewise.
8582         * sysdeps/cris/dl-machine.h: Likewise.
8583         * sysdeps/i386/dl-machine.h: Likewise.
8584         * sysdeps/ia64/dl-machine.h: Likewise.
8585         * sysdeps/m68k/dl-machine.h: Likewise.
8586         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8587         * sysdeps/mips/dl-machine.h: Likewise.
8588         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8589         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8590         * sysdeps/sh/dl-machine.h: Likewise.
8591         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8592         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8593         * sysdeps/x86_64/dl-machine.h: Likewise.
8594
8595 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8596
8597         * login/login.c (login): Always initialize ut_line field
8598         [PR libc/2991].
8599
8600 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8601
8602         * sysdeps/i386/Makefile (sysdep_routines): Add
8603         divdi3 in csu dir.
8604         (shared-only-routines): Likewise.
8605         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8606         (shared-only-routines): Likewise.
8607         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8608         (shared-only-routines): Likewise.
8609         * sysdeps/wordsize-32/divdi3.c: New file.
8610
8611 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8612
8613         * locale/iso-4217.def: Remove obsolete currencies for countries
8614         with Euro.
8615
8616 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8617
8618         * posix/regcomp.c (regcomp): Remove a redundant condition.
8619         (init_word_char): Add a check on malloc failure.
8620         (create_initial_state): Likewise.
8621         (duplicate_node): Likewise.
8622         (calc_eclosure): Likewise.
8623         (calc_eclosure_iter): Likewise.
8624         (parse_expression): Likewise.
8625         (parse_bracket_exp): Remove unnecessary malloc invocations.
8626         (build_equiv_class): Likewise.
8627         (build_charclass): Likewise.
8628         * posix/regex_internal.c (re_node_set_intersect): Add a check
8629         on malloc failure.
8630         (re_node_set_add_intersect): Likewise.
8631         (re_node_set_merge): Likewise.
8632         (re_acquire_state): Likewise.
8633         (re_acquire_state_context): Likewise.
8634         (create_newstate_common): Likewise.
8635         (register_state): Likewise.
8636         (create_ci_newstate): Likewise.
8637         (create_cd_newstate): Likewise.
8638         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8639         and re_acquire_state_context.
8640         * posix/regexec.c (regexec): Suit it to the error handling of
8641         re_search_internal.
8642         (re_match): Likewise.
8643         (re_search): Likewise.
8644         (re_search_internal): Add a check on malloc failure.
8645         (acquire_init_state_context): Likewise.
8646         (check_matching): Likewise.
8647         (proceed_next_node): Likewise.
8648         (set_regs): Likewise.
8649         (sift_states_backward): Likewise.
8650         (sift_states_iter_bkref): Likewise.
8651         (add_epsilon_backreference): Likewise.
8652         (transit_state): Likewise.
8653         (transit_state_sb): Likewise.
8654         (transit_state_mb): Likewise.
8655         (transit_state_bkref_loop): Likewise.
8656         (build_trtable): Likewise.
8657         (group_nodes_into_DFAstates): Likewise.
8658         (match_ctx_init): Likewise.
8659         (match_ctx_add_entry): Likewise.
8660
8661 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8662
8663         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8664         l_libname if profiling is enabled [PR libc/2916].
8665
8666         * sysdeps/ia64/dl-tls.h: New file.
8667
8668 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8669
8670         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8671         Work around an Alpha gas bug.
8672
8673 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8674
8675         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8676         uses read to load the catalog.
8677         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8678
8679 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8680
8681         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8682         regex_internal.c, and regex_internal.h.
8683         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8684         * posix/regex.c: Complete rewrite.
8685         * posix/regexec.c: New file.
8686         * posix/regcomp.c: New file.
8687         * posix/regex_internal.c: New file.
8688         * posix/regex_internal.h: New file.
8689         * posix/regex.h (RE_ICASE): New macro.
8690         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8691
8692         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8693         ungetwc.  It's a macro.
8694         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8695         implementation.
8696         Reported by Jason Merrill <jason@redhat.com>.
8697
8698 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8699
8700         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8701         position to fp->_offset if it is set.
8702         * stdio-common/Makefile (tests): Add tst-fdopen.
8703         * stdio-common/tst-fdopen.c: New test.
8704
8705 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8706
8707         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8708         * stdio-common/tst-ungetc.c (main): Add another test.
8709
8710 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8711
8712         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8713         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8714         aliases.  Add prototypes for the new aliases.
8715         * assert/assert.c: Likewise.
8716         * include/libc-symbols.h: Likewise.
8717         * include/stdio.h: Likewise.
8718         * include/netinet/in.h: Likewise.
8719         * include/rpc/auth.h: Likewise.
8720         * include/rpc/auth_unix.h: Likewise.
8721         * include/rpc/key_prot.h: Likewise.
8722         * include/rpc/pmap_prot.h: Likewise.
8723         * include/rpc/pmap_rmt.h: Likewise.
8724         * include/rpc/rpc_msg.h: Likewise.
8725         * include/rpc/xdr.h: Likewise.
8726         * inet/gethstbyad_r.c: Likewise.
8727         * inet/gethstbynm2_r.c: Likewise.
8728         * inet/gethstbynm_r.c: Likewise.
8729         * inet/gethstent_r.c: Likewise.
8730         * inet/in6_addr.c: Likewise.
8731         * libio/__fpurge.c: Likewise.
8732         * libio/filedoalloc.c: Likewise.
8733         * libio/fileops.c: Likewise.
8734         * libio/ftello.c: Likewise.
8735         * libio/ftello64.c: Likewise.
8736         * libio/genops.c: Likewise.
8737         * libio/iofclose.c: Likewise.
8738         * libio/iofdopen.c: Likewise.
8739         * libio/iofflush.c: Likewise.
8740         * libio/iofflush_u.c: Likewise.
8741         * libio/iofgetpos.c: Likewise.
8742         * libio/iofgetpos64.c: Likewise.
8743         * libio/iofgets.c: Likewise.
8744         * libio/iofgets_u.c: Likewise.
8745         * libio/iofopen.c: Likewise.
8746         * libio/iofopncook.c: Likewise.
8747         * libio/iofputs.c: Likewise.
8748         * libio/iofread.c: Likewise.
8749         * libio/iofread_u.c: Likewise.
8750         * libio/iofsetpos.c: Likewise.
8751         * libio/iofsetpos64.c: Likewise.
8752         * libio/ioftell.c: Likewise.
8753         * libio/iofwrite.c: Likewise.
8754         * libio/iogetline.c: Likewise.
8755         * libio/iogets.c: Likewise.
8756         * libio/iogetwline.c: Likewise.
8757         * libio/iolibio.h: Likewise.
8758         * libio/iopadn.c: Likewise.
8759         * libio/iopopen.c: Likewise.
8760         * libio/ioseekoff.c: Likewise.
8761         * libio/ioseekpos.c: Likewise.
8762         * libio/iosetbuffer.c: Likewise.
8763         * libio/iosetvbuf.c: Likewise.
8764         * libio/ioungetc.c: Likewise.
8765         * libio/ioungetwc.c: Likewise.
8766         * libio/iovdprintf.c: Likewise.
8767         * libio/iovsprintf.c: Likewise.
8768         * libio/iovsscanf.c: Likewise.
8769         * libio/libioP.h: Likewise.
8770         * libio/memstream.c: Likewise.
8771         * libio/obprintf.c: Likewise.
8772         * libio/oldfileops.c: Likewise.
8773         * libio/oldiofclose.c: Likewise.
8774         * libio/oldiofdopen.c: Likewise.
8775         * libio/oldiofgetpos.c: Likewise.
8776         * libio/oldiofgetpos64.c: Likewise.
8777         * libio/oldiofopen.c: Likewise.
8778         * libio/oldiofsetpos.c: Likewise.
8779         * libio/oldiofsetpos64.c: Likewise.
8780         * libio/oldiopopen.c: Likewise.
8781         * libio/oldstdfiles.c: Likewise.
8782         * libio/putc.c: Likewise.
8783         * libio/setbuf.c: Likewise.
8784         * libio/setlinebuf.c: Likewise.
8785         * libio/stdfiles.c: Likewise.
8786         * libio/stdio.c: Likewise.
8787         * libio/strops.c: Likewise.
8788         * libio/vasprintf.c: Likewise.
8789         * libio/vscanf.c: Likewise.
8790         * libio/vsnprintf.c: Likewise.
8791         * libio/vswprintf.c: Likewise.
8792         * libio/wfiledoalloc.c: Likewise.
8793         * libio/wfileops.c: Likewise.
8794         * libio/wgenops.c: Likewise.
8795         * libio/wstrops.c: Likewise.
8796         * malloc/mtrace.c: Likewise.
8797         * misc/error.c: Likewise.
8798         * misc/syslog.c: Likewise.
8799         * nss/getXXbyYY_r.c: Likewise.
8800         * nss/getXXent_r.c: Likewise.
8801         * nss/hosts-lookup.c: Likewise.
8802         * stdio-common/getw.c
8803         * stdio-common/printf-prs.c: Likewise.
8804         * stdio-common/printf_fp.c: Likewise.
8805         * stdio-common/printf_size.c: Likewise.
8806         * stdio-common/putw.c: Likewise.
8807         * stdio-common/scanf.c: Likewise.
8808         * stdio-common/sprintf.c: Likewise.
8809         * stdio-common/tmpfile64.c: Likewise.
8810         * stdio-common/vfprintf.c: Likewise.
8811         * stdio-common/vfscanf.c: Likewise.
8812         * stdlib/strfmon.c: Likewise.
8813         * sunrpc/auth_des.c: Likewise.
8814         * sunrpc/auth_none.c: Likewise.
8815         * sunrpc/auth_unix.c: Likewise.
8816         * sunrpc/authdes_prot.c: Likewise.
8817         * sunrpc/authuxprot.c: Likewise.
8818         * sunrpc/clnt_perr.c: Likewise.
8819         * sunrpc/clnt_raw.c: Likewise.
8820         * sunrpc/clnt_tcp.c: Likewise.
8821         * sunrpc/clnt_udp.c: Likewise.
8822         * sunrpc/clnt_unix.c: Likewise.
8823         * sunrpc/key_call.c: Likewise.
8824         * sunrpc/key_prot.c: Likewise.
8825         * sunrpc/openchild.c: Likewise.
8826         * sunrpc/pm_getmaps.c: Likewise.
8827         * sunrpc/pm_getport.c: Likewise.
8828         * sunrpc/pmap_clnt.c: Likewise.
8829         * sunrpc/pmap_prot.c: Likewise.
8830         * sunrpc/pmap_prot2.c: Likewise.
8831         * sunrpc/pmap_rmt.c: Likewise.
8832         * sunrpc/rpc_cmsg.c: Likewise.
8833         * sunrpc/rpc_prot.c: Likewise.
8834         * sunrpc/svc_authux.c: Likewise.
8835         * sunrpc/svc_raw.c: Likewise.
8836         * sunrpc/svc_simple.c: Likewise.
8837         * sunrpc/svc_tcp.c: Likewise.
8838         * sunrpc/svc_udp.c: Likewise.
8839         * sunrpc/svc_unix.c: Likewise.
8840         * sunrpc/xdr.c: Likewise.
8841         * sunrpc/xdr_array.c: Likewise.
8842         * sunrpc/xdr_mem.c: Likewise.
8843         * sunrpc/xdr_rec.c: Likewise.
8844         * sunrpc/xdr_ref.c: Likewise.
8845         * sunrpc/xdr_stdio.c: Likewise.
8846         * sysdeps/generic/_strerror.c: Likewise.
8847         * sysdeps/generic/printf_fphex.c: Likewise.
8848         * sysdeps/generic/tmpfile.c: Likewise.
8849         * sysdeps/gnu/errlist.awk: Likewise.
8850         * sysdeps/gnu/errlist.c: Likewise.
8851
8852         * libio/Makefile (routines): Remove iosprint.
8853         * libio/iosprintf.c: Removed
8854
8855
8856 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8857
8858         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8859         non_dynamic_init and exported now.
8860         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8861         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8862         !SHARED.
8863         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8864         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8865         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8866
8867 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8868
8869         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8870         true in this case.
8871
8872         * locale/iso-639.def: Add language codes for Walloon.
8873
8874         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8875         total number of relocations performed.
8876
8877         * elf/sprof.c (load_profdata): If do_test provide information as
8878         to why loading failed.
8879         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8880         hist_hdr.dimen.
8881
8882         * csu/set-init.c: Moved to...
8883         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8884         * csu/Makefile: Don't compile set-init.
8885         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8886         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8887         to __libc_init.
8888         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8889         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8890         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8891         __libc_init.
8892         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8893         __libc_subinit.
8894
8895 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8896
8897         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8898         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8899         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8900         (_dl_deallocate_tls): New function.
8901         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8902         _dl_deallocate_tls.
8903
8904 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8905
8906         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8907         * stdio-common/tst-fseek.c (main): Add test for this.
8908
8909 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8910
8911         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8912
8913 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8914
8915         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8916         pointer before dereferencing.
8917
8918 2002-02-18  Roland McGrath  <roland@frob.com>
8919
8920         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8921
8922         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8923         Use task_policy in place of task_priority.
8924
8925         * sysdeps/generic/bits/mman.h
8926         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8927         * sysdeps/mach/msync.c: New file.
8928
8929         * sysdeps/mach/powerpc/syscall.S: New file.
8930
8931         * mach/msg.c [MACH_MSG_OVERWRITE]
8932         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8933         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8934
8935         * sysdeps/mach/configure.in: Check for clock.defs to put into
8936         mach_interface_list.
8937         * sysdeps/mach/configure: Regenerated.
8938
8939         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8940         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8941         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8942         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8943         (mach-shortcuts): Add device_read_overwrite_request,
8944         device_read_overwrite, vm_read_overwrite, thread_switch.
8945
8946         * configure.in (base_machine): Set to $machine by default.
8947         * configure: Regenerated.
8948
8949         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8950         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8951         * sysdeps/mach/configure: Regenerated.
8952         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8953
8954         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8955
8956         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8957
8958         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8959         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8960
8961 2002-02-17  Roland McGrath  <roland@frob.com>
8962
8963         * sysdeps/mach/hurd/times.c
8964         [NO_CREATION_TIME] (startup_time): New static variable.
8965         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8966         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8967         creation_time from task_basic_info.
8968         (__times): Use __gettimeofday instead of __host_get_time.
8969
8970         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8971         Use untyped Mach IPC message format.
8972
8973         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8974
8975         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8976         _S_catch_exception_raise_state_identity,
8977         _hurdsig_fault_catch_exception_raise_state,
8978         _hurdsig_fault_catch_exception_raise_state_identity.
8979
8980         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8981
8982         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8983         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8984
8985         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8986         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8987
8988         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8989         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8990         them as no-op macros.
8991         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8992         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8993
8994         * sysdeps/powerpc/dl-machine.h
8995         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8996
8997         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8998         Use untyped Mach IPC message format.
8999
9000         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9001         Handle untyped Mach IPC message formats.
9002
9003         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9004         Expect different argument conventions when this is defined.
9005         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9006         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9007         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9008         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9009         for OSF Mach variant.
9010         (faulted): Use mig_reply_error_t for REPLY.
9011         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9012         in __thread_set_exception_ports call.
9013         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9014         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9015
9016         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9017         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9018         on Darwin, which includes bogons.
9019
9020         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9021         variable LOADBASE so it's not declared when it's not used.
9022
9023 2002-02-16  Roland McGrath  <roland@frob.com>
9024
9025         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9026         to use BI.creation_time.
9027
9028         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9029
9030         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9031         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9032         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9033         host_page_size instead of vm_statistics.
9034
9035         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9036         mach_interface.h here, since not all variants use that name.
9037
9038         * sysdeps/mach/configure.in: Add some checks for Mach headers
9039         to ensure a sane installation.
9040         (mach_interface_list): Define this variable by checking for .defs
9041         files found in various variants.
9042         * configure.in (mach_interface_list): AC_SUBST this.
9043         * config.make.in (mach-interface-list): New substituted variable.
9044         * mach/Makefile (user-interfaces): Define this using the value
9045         of $(mach-interface-list) instead of mach, mach4.
9046         Updated other references to mach_interface to use it as well.
9047
9048         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9049
9050         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9051         mig_reply_error_t for OSF Mach variant.
9052
9053         * mach/Makefile (routines): Remove bootprivport.
9054         * mach/bootprivport.c: File removed.  It has never been used.
9055
9056         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9057         Grok the OSF flavor of message format.
9058         (mach_msg_destroy_port): For MAKE_SEND and
9059         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9060         no-senders notification.
9061
9062 2002-02-06  Roland McGrath  <roland@frob.com>
9063
9064         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9065         to here if 2.0 compatibility enabled ...
9066         (libc: GLIBC_2.1.3): ... from here.
9067
9068 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9071         generation counter.
9072         * elf/dl-close.c (_dl_close): Likewise.
9073
9074 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9075
9076         * elf/Makefile: Add rules to build and run tst-tls8.
9077         * elf/tst-tls8.c: New file.
9078         * elf/tst-tlsmod4.c: New file.
9079
9080         * stdlib/test-a64l.c (tests): Add more test cases.
9081
9082         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9083         Reported by Walter Harms <WHarms@bfs.de>.
9084
9085 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9086
9087         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9088         definitions for struct sigcontext.
9089         Suggested by David Mosberger-Tang.
9090
9091 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9092
9093         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9094         for removing reference of module in slotinfo list.
9095         (_dl_close): Use remove_slotinfo.
9096         * sysdeps/generic/dl-tls.c: General pretty printing.
9097         (oom): Define only if SHARED.
9098         (_dl_next_tls_modid): Correct starting point for the case we assume
9099         there is a gap.  Add missing instruction grouping (doh!).  Correct
9100         tests for reaching maximum index.
9101         * elf/Makefile: Add rules to build and run tst-tls7.
9102         * elf/tst-tls7.c: New file.
9103         * elf/tst-tlsmod3.c: New file.
9104
9105         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9106         USE_TLS.
9107         * elf/tst-tlsmod2.c: Likewise.
9108
9109         * elf/dl-close.c (_dl_close): When closing an object using TLS
9110         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9111         true.  Increment dl_tls_generation only if we closed any TLS-using
9112         object.
9113         * elf/tst-tls6.c: New file.
9114         * elf/Makefile: Add rules to build and run tst-tls6.
9115
9116         * po/da.po: Update from translation team.
9117
9118         * locale/categories.def: Fix typo [PR libc/2948].
9119         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9120         [PR libc/2949].
9121         * locale/iso-4217.def: Update from official version [PR libc/2950].
9122         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9123         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9124         message if input is too confusion instead of using assert.
9125         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9126         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9127
9128         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9129         * elf/tst-tls2.c: Likewise.
9130         * elf/tst-tls3.c: Likewise.
9131
9132 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9133
9134         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9135
9136 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9137
9138         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9139         if this is really necessary.
9140
9141         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9142         slotinfo array.
9143         (free_mem): Free memory for the slotinfo array if possible.
9144
9145 2002-02-12  Andreas Schwab  <schwab@suse.de>
9146
9147         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9148
9149 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9150
9151         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9152         TLS_DTV_UNALLOCATE.
9153         (oom): New function.
9154         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9155         (_dl_determine_tlsoffset): Likewise.
9156         (_dl_allocate_tls): Likewise.
9157         (__TLS_GET_ADDR): Define if not already defined.
9158         (_dl_tls_symaddr): New function.
9159         (allocate_and_init): New function.
9160         (__tls_get_addr): Actually implement handling of generation counter
9161         and deferred allocation.
9162         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9163         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9164         _dl_tls_generation.
9165         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9166         Declare _dl_tls_symaddr.
9167         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9168         SHARED.
9169         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9170         l_tls_previmage.
9171         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9172         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9173         (_dl_vsym): Likewise.
9174         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9175         layout.
9176         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9177         nextimage list handling.  Instead add all modules using TLS to
9178         dl_tls_dtv_slotinfo_list.
9179         * elf/dl-open.c (dl_open_worker): After successfully loading all
9180         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9181         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9182         empty segment don't do anything.  Remove handling of initimage list.
9183         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9184         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9185         * elf/dl-minimal.c: Define __libc_memalign.
9186         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9187         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9188         _dl_tls_generation.
9189         * include/stdlib.h: Declare __libc_memalign.
9190
9191         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9192         * elf/tst-tls4.c: New file.
9193         * elf/tst-tls5.c: New file.
9194         * elf/tst-tlsmod2.c: New file.
9195
9196         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9197
9198         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9199
9200         * elf/tst-tls1.c: Use test-skeleton.c.
9201         * elf/tst-tls2.c: Likewise.
9202         * elf/tst-tls3.c: Likewise.
9203
9204         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9205
9206 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9207
9208         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9209
9210 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9211
9212         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9213
9214         * elf/tst-tls3.c: New file.
9215         * elf/tst-tlsmod1.c: New file.
9216         * elf/Makefile: Add rules to build and run tst-tls3.
9217
9218         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9219         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9220         TLS relocations.
9221
9222         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9223
9224         * po/fr.po: Update from translation team.
9225
9226         * elf/tls-macros.h: Add alternative macros for use in PIC.
9227
9228         * elf/dl-lookup.c: Include <tls.h>.
9229         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9230
9231         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9232         required by passing pointer to last element of the list.
9233
9234         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9235         l_tls_initimage to a place where it actually is performed.
9236
9237         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9238         after globfree() calls.
9239
9240         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9241         (openaux): Pass open_mode as new last argument to _dl_map_object.
9242         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9243         open_mode element of args variable with it.
9244         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9245         _dl_map_object_deps.
9246         * elf/rtld.c (dl_main): Add zero as last parameter to
9247         _dl_map_object_deps call.
9248         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9249         * elf/nodlopen2.c: New file.
9250         * elf/nodlopenmod2.c: New file.
9251         * elf/Makefile: Add rules to build and run nodlopen2.
9252
9253         * elf/tst-tls1.c: Move TLS helper macros to...
9254         * elf/tls-macros.h: ...here.  New file.
9255         * elf/tst-tls2.c: New file.
9256         * elf/Makefile (tests): Add tst-tls2.
9257         (distribute): Add tls-macros.h.
9258
9259         * po/sv.po: Update from translation team.
9260
9261         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9262         architecture specific definitions from the actual test code.
9263
9264         * po/tr.po: Update from translation team.
9265
9266 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9267
9268         * elf/Makefile (tests): Add tst-tls1.
9269         * elf/tst-tls1.c: New file.
9270
9271         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9272         alignment of TCB for now.
9273
9274         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9275         initialization image for the application itself.
9276
9277         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9278         loop to initialize TLS block.
9279
9280 2002-02-08  Richard Henderson  <rth@redhat.com>
9281
9282         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9283         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9284
9285         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9286
9287 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9288
9289         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9290
9291 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9292
9293         * po/ca.po: Update from translation team.
9294         * po/sk.po: Likewise.
9295
9296         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9297         (dl_main): Move dtv/static TLS handling before relocation.
9298         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9299         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9300         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9301         so far uses TLS initialize GL(dl_tls_static_size) and
9302         GL(dl_tls_static_align) to account for the TCB.
9303         (_dl_allocate_tls): New function.
9304         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9305         _dl_initial_dtv_malloced.
9306
9307         * configure.in: Test for __builtin_memset more realistically.
9308
9309         * csu/version.c (banner): If TLS support is available say so.
9310
9311 2002-02-04  H.J. Lu  <hjl@gnu.org>
9312
9313         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9314         __attribute_used__.
9315         (__dl_runtime_resolve): Likewise.
9316
9317         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9318         declaration.
9319
9320 2001-11-15  H.J. Lu  <hjl@gnu.org>
9321
9322         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9323         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9324
9325         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9326
9327 2002-02-07  H.J. Lu  <hjl@gnu.org>
9328
9329         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9330         ".set noreorder".
9331         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9332         Likewise.
9333
9334 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9335
9336         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9337
9338         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9339         ___tls_get_addr_internal.
9340         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9341
9342         * po/ko.po: Update from translation team.
9343
9344 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9345
9346         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9347         attribute, change __pad{1,2} type to unsigned int.
9348         (struct stat64): Remove packed attribute.
9349
9350 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9353
9354 2002-02-07  Andreas Schwab  <schwab@suse.de>
9355
9356         * configure.in: Fix check for -zcombreloc.
9357
9358 2002-02-06  H.J. Lu  <hjl@gnu.org>
9359
9360         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9361         * configure.in: Check if __builtin_memset really works.
9362         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9363         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9364
9365 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9366
9367         * io/bug-ftw3.c (main): Don't try the test if root.
9368
9369 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9370
9371         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9372         constraints.
9373         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9374         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9375         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9376         Likewise.
9377         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9378         a weak alias for __clone.
9379         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9380         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9381         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9382         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9383         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9384         a weak alias for __mmap64.
9385
9386 2002-02-05  H.J. Lu  <hjl@gnu.org>
9387
9388         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9389         (atomic_add): Likewise.
9390         (compare_and_swap): Likewise.
9391         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9392
9393 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9394
9395         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9396
9397         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9398         alignment of the TCB and store total size and alignment of static
9399         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9400         tls_index is a typedef.
9401         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9402         _dl_tls_static_align.
9403         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9404         * elf/dl-support.c: Define _dl_tls_static_size and
9405         _dl_tls_static_align.
9406
9407 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9408
9409         * configure.in: Add --without-tls option.
9410         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9411         --without-tls is given.
9412
9413         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9414
9415         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9416
9417 2002-02-06  Roland McGrath  <roland@frob.com>
9418
9419         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9420         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9421
9422         * scripts/versions.awk: Improve error message for missing version.
9423         Each version inherits from the last one only if they have the same
9424         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9425         but not GLIBC_x and FOO_y.
9426
9427         * scripts/firstversions.awk: Handle libraries that don't have each
9428         particular version named in the third column of shlib-versions.
9429
9430         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9431
9432 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9433
9434         * Versions.def [ld]: Add GLIBC_2.3.
9435         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9436         * elf/Makefile (dl-routines): Add dl-tls.
9437         (distribute): Add dl-tls.h.
9438         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9439         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9440         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9441         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9442         along with the other info in the link map.  Change queueing of init
9443         images for double linked list.  Use _dl_next_tls_modid to compute
9444         l_tls_modid.
9445         * elf/rtld.c (_dl_start_final): Store alignment requirement
9446         along with the other info in rtld map and executable map.
9447         (dl_main): Add ld.so to the init image list if necessary.  Compute
9448         final module ID with _dl_next_tls_modid.
9449         * include/link.h (struct link_map): Add l_tls_previmage and
9450         l_tls_align.
9451         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9452         * sysdeps/i386/elf/Versions: New file.
9453         * sysdeps/generic/dl-tls.c: New file.
9454         * sysdeps/generic/dl-tls.h: New file.
9455         * sysdeps/i386/dl-tls.h: New file.
9456
9457 2002-02-06  Roland McGrath  <roland@frob.com>
9458
9459         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9460         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9461
9462 2002-01-05  Roland McGrath  <roland@frob.com>
9463
9464         * sysdeps/mach/configure.in: New file.
9465         * sysdeps/mach/configure: New generated file.
9466
9467         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9468         It has never been used by anything.
9469
9470 2002-02-06  H.J. Lu  <hjl@gnu.org>
9471
9472         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9473         is included.
9474
9475 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9476
9477         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9478         attribute((packed)) to counter stupid people misusing gcc options.
9479         (struct stat64): Likewise.
9480
9481 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9482
9483         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9484         the variables which are used as booleans.
9485
9486 2002-02-06  Andreas Jaeger  <aj@suse.de>
9487
9488         * include/libc-symbols.h (INTUSE): Renamed from INT.
9489         * elf/dl-deps.c: Change users.
9490         * sysdeps/generic/dl-sysdep.c: Likewise.
9491         * sysdeps/generic/dl-cache.c: Likewise.
9492         * elf/dl-reloc.c: Likewise.
9493         * elf/rtld.c: Likewise.
9494         * elf/dl-version.c: Likewise.
9495         * elf/dl-load.c: Likewise.
9496         * elf/dl-dst.h: Likewise.
9497         * elf/dl-init.c: Likewise.
9498         * elf/dl-error.c: Likewise.
9499         * elf/dl-fini.c: Likewise.
9500         * elf/dl-runtime.c: Likewise.
9501         * elf/do-lookup.h: Likewise.
9502
9503         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9504         definition.
9505         * stdio-common/_itowa.h: Likewise.
9506
9507 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9508
9509         * elf/dl-minimal.c: Define _itoa_lower_digits.
9510
9511         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9512         DT_FLAGS set.
9513
9514         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9515         loading modules with the DF_STATIC_TLS flag set.
9516         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9517         element.
9518         * include/link.h (struct link_map): Add l_flags field.
9519         * elf/elf.h (DF_STATIC_TLS): New definition.
9520
9521         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9522         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9523
9524         * elf/rtld.c (process_dl_debug): Correct printing help message.
9525         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9526         for %s.
9527
9528         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9529         definition and pass &errno in use of this variable.
9530         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9531
9532 2002-02-04  Andreas Schwab  <schwab@suse.de>
9533
9534         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9535         * locale/programs/charmap-dir.c: Wrap calls that output messages
9536         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9537         * locale/programs/charmap.c: Likewise.
9538         * locale/programs/ld-address.c: Likewise.
9539         * locale/programs/ld-collate.c: Likewise.
9540         * locale/programs/ld-ctype.c: Likewise.
9541         * locale/programs/ld-identification.c: Likewise.
9542         * locale/programs/ld-measurement.c: Likewise.
9543         * locale/programs/ld-messages.c: Likewise.
9544         * locale/programs/ld-monetary.c: Likewise.
9545         * locale/programs/ld-name.c: Likewise.
9546         * locale/programs/ld-numeric.c: Likewise.
9547         * locale/programs/ld-paper.c: Likewise.
9548         * locale/programs/ld-telephone.c: Likewise.
9549         * locale/programs/ld-time.c: Likewise.
9550         * locale/programs/linereader.c: Likewise.
9551         * locale/programs/linereader.h: Likewise.
9552         * locale/programs/localedef.c: Likewise.
9553         * locale/programs/locfile.c: Likewise.
9554         * locale/programs/repertoire.c: Likewise.
9555
9556 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9557
9558         * elf/rtld.c (_dl_start_final): Determine load address to locate
9559         ehdr with GL(dl_rtld_map).l_map_start.
9560
9561         * po/ca.po: Update from translation team.
9562
9563         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9564         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9565         header entry.
9566         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9567         _dl_tls_module_cnt.
9568         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9569
9570 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9571
9572         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9573         * include/link.h (struct link_map): Add various members for TLS
9574         information.
9575         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9576         _rtld_tlsoffset, add _dl_initimage_list.
9577         * sysdeps/i386/dl-lookupcfg.h: New file.
9578         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9579         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9580         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9581         is used.
9582
9583         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9584         unused.
9585
9586         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9587         thread-pointer as soon as possible.
9588         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9589         elements in rtld_global.
9590         * sysdeps/generic/tls.h: New file.
9591         * elf/Makefile (distribute): Add tls.h.
9592         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9593         relocations.  Not complete yet.
9594
9595         * resolv/resolv.h: Allow user to define __need_res_state and only
9596         define __res_start structure then.
9597         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9598
9599         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9600         dl_cpuclock_offset initialization to _dl_start_final.
9601         (_dl_show_auxv): Avoid unnecessary sign extension.
9602         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9603
9604 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9605
9606         * config.h.in: Add HAVE_TLS_SUPPORT.
9607         * sysdeps/i386/elf/configure.in: New file.
9608
9609 2002-02-03  Andreas Schwab  <schwab@suse.de>
9610
9611         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9612         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9613
9614 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9615
9616         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9617         alloca if the memory reqirements are too high.
9618
9619 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9620
9621         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9622         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9623         the former is available anyway and speed isn't important here.
9624         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9625         * elf/dl-version.c (match_symbol): Likewise.
9626         (_dl_check_map_versions): Likewise.
9627         * elf/rtld.c (process_envvars): Likewise.
9628         (print_statistics): Likewise.
9629         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9630         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9631         bases.  Add assert to catch uses of unimplemented features.
9632         (__strsep): Add assert to catch uses of unimplemented features.
9633         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9634         and avoid inline optimization.
9635         * elf/rtld.c (process_envvars): Likewise.
9636         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9637         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9638         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9639
9640 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * stdio-common/_itoa.h: Minor simplifications of the code.
9643         * stdio-common/_itoa.c: Likewise.
9644
9645         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9646         instead of _dl_printf for debugging info output.
9647
9648         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9649         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9650
9651 2002-02-01  H.J. Lu  <hjl@gnu.org>
9652
9653         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9654         (atomic_add): Likewise.
9655         (compare_and_swap): Return 0 only when failed to compare. Use
9656         branch likely.
9657
9658         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9659         branch likely.
9660
9661 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9662
9663         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9664
9665 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9666
9667         * elf/dl-minimal.c (__strsep): New minimal implementation.
9668
9669 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9670
9671         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9672         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9673         with tm_isdst > 0 when the requested time falls within a
9674         spring-forward gap [PR libc/2894].
9675
9676 2002-02-03  Andreas Schwab  <schwab@suse.de>
9677
9678         * stdio-common/tst-rndseek.c: Increase timeout.
9679
9680 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9681
9682         Change ld.so to not use functions which are exported.  One cannot
9683         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9684         definitions.
9685         * include/libc-symbols.h: Define INT and INTDEF.
9686         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9687         _dl_signal_error_internal, _dl_map_object_internal,
9688         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9689         _dl_lookup_versioned_symbol_internal,
9690         _dl_relocate_object_internal, _dl_debug_state_internal,
9691         _dl_start_profile_internal, and _dl_unload_cache_internal.
9692         * include/dlfcn.h: Declare _dl_catch_error_internal.
9693         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9694         above.  Add INTDEF to function definitions.
9695         * elf/dl-debug.c: Likewise.
9696         * elf/dl-deps.c: Likewise.
9697         * elf/dl-dst.h: Likewise.
9698         * elf/dl-error.c: Likewise.
9699         * elf/dl-fini.c: Likewise.
9700         * elf/dl-init.c: Likewise.
9701         * elf/dl-load.c: Likewise.
9702         * elf/dl-lookup.c: Likewise.
9703         * elf/dl-misc.c: Likewise.
9704         * elf/dl-open.c: Likewise.
9705         * elf/dl-profile.c: Likewise.
9706         * elf/dl-reloc.c: Likewise.
9707         * elf/dl-runtime.c: Likewise.
9708         * elf/dl-version.c: Likewise.
9709         * elf/do-lookup.h: Likewise.
9710         * sysdeps/generic/dl-cache.c: Likewise.
9711         * sysdeps/generic/dl-sysdep.c: Likewise.
9712         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9713         instead of _dl_init.
9714         * sysdeps/arm/dl-machine.h: Likewise.
9715         * sysdeps/cris/dl-machine.h: Likewise.
9716         * sysdeps/hppa/dl-machine.h: Likewise.
9717         * sysdeps/i386/dl-machine.h: Likewise.
9718         * sysdeps/ia64/dl-machine.h: Likewise.
9719         * sysdeps/m68k/dl-machine.h: Likewise.
9720         * sysdeps/mips/dl-machine.h: Likewise.
9721         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9722         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9723         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9724         * sysdeps/sh/dl-machine.h: Likewise.
9725         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9726         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9727         * sysdeps/x86_64/dl-machine.h: Likewise.
9728         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9729
9730         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9731         and _dl_debug_initialize.
9732
9733         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9734         more information.
9735         * elf/rtld.c (dl_main): Avoid strrchr.
9736         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9737         result of readlink.  Search from the back for '/'.
9738
9739         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9740         strncpy if possible.
9741
9742         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9743         strncmp.
9744         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9745         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9746         strspn, and strcspn.
9747         (process_envvars): Don't use strcspn.
9748
9749         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9750         (_dl_dst_substitute): Likewise.
9751
9752 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9753
9754         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9755         code which is never used when relocating ld.so itself.
9756
9757         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9758         starting ld.so itself.  Move l_addr variable initialization closer
9759         to use.
9760         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9761
9762 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9763
9764         * Versions.def (libc): Add GLIBC_PRIVATE.
9765         (libdb, libnss_db, libdb1): Remove.
9766         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9767         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9768         (libpthread): Add GLIBC_PRIVATE.
9769         (libresolv): Likewise, remove GLIBC_2.1.
9770         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9771         GLIBC_2.2.3, GLIBC_2.3.
9772         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9773         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9774         _dl_sym, _dl_vsym): Likewise.
9775         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9776         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9777         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9778         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9779         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9780         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9781         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9782         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9783         Likewise.
9784         (_dl_object_relocation_scope): Remove.
9785         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9786         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9787         __gconv_cache): Move to GLIBC_PRIVATE.
9788         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9789         __internal_setnetgrent): Likewise.
9790         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9791         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9792         * locale/Versions (__collate_element_hash, __collate_element_strings,
9793         __collate_symbol_classes, __collate_symbol_hash,
9794         __collate_symbol_strings, _nl_current_LC_COLLATE,
9795         _nl_current_LC_CTYPE): Likewise.
9796         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9797         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9798         (libnss_nis, libnss_nisplus): Likewise.
9799         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9800         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9801         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9802         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9803         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9804         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9805         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9806         __ns_get16, __ns_samename): Likewise.
9807         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9808         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9809         GLIBC_PRIVATE.
9810         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9811         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9812         __libc_connect): Likewise.
9813         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9814         Likewise.
9815         * stdlib/Versions (__libc_system): Likewise.
9816         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9817         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9818         * sysdeps/ia64/fpu/Versions: Likewise.
9819         * sysdeps/ia64/Versions: Likewise.
9820         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9821         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9822         to GLIBC_PRIVATE.
9823         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9824         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9825         __libc_sigaction): Likewise.
9826         * termios/Versions (__libc_tcdrain): Likewise.
9827
9828         * misc/sys/cdefs (__attribute_noinline__): Define.
9829         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9830         __attribute_noinline__.
9831
9832         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9833         * elf/dl-xstat64.c: New file.
9834         * elf/dl-fxstat64.c: New file.
9835         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9836         don't export __fxstat64 at multiple versions.
9837         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9838         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9839
9840 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9841
9842         * locale/program/ld-collate.c (collate_finish): Assign a wide
9843         char collation sequence value to multi character collating
9844         elements, and avoid over writing by non-character elements.
9845
9846 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9847
9848         * elf/Makefile (distribute): Add dl-procinfo.c.
9849         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9850         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9851
9852 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9853
9854         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9855         definition.
9856         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9857         _rtld_global struct.
9858         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9859         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9860         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9861         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9862         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9863         _dl_fpu_control_set): Remove unused externs.
9864         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9865         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9866         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9867         related variables in _rtld_global struct.
9868         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9869         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9870         unused extern.
9871
9872 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9873
9874         * sysdeps/generic/dl-procinfo.c: New file.
9875
9876 2002-02-01  Andreas Schwab  <schwab@suse.de>
9877
9878         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9879
9880 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9881
9882         * elf/rtld.c (_dl_start): Mark as internal_function.
9883         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9884         in register.
9885         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9886         General pretty printing.
9887
9888 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9889
9890         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9891         * elf/dl-reloc.c: Pretty printing.
9892         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9893         procinfo-related variables in rtld_global struct.
9894         * elf/dl-support.c: Likewise.
9895         * elf/rtld.c: Likewise.
9896         * sysdeps/i386/i686/Makefile: Likewise.
9897         * sysdeps/i386/i686/hp-timing.c: Likewise.
9898         * sysdeps/i386/i686/hp-timing.h: Likewise.
9899         * sysdeps/ia64/Makefile: Likewise.
9900         * sysdeps/ia64/hp-timing.c: Likewise.
9901         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9902         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9903         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9904         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9905         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9906         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9907         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9908         * sysdeps/x86_64/Makefile: Likewise.
9909
9910         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9911         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9912         _dl_debug_fd to rtld_global.
9913         * elf/Versions: Likewise.
9914         * elf/dl-close.c: Likewise.
9915         * elf/dl-iteratephdr.c: Likewise.
9916         * elf/dl-lookup.c: Likewise.
9917         * elf/dl-misc.c: Likewise.
9918         * elf/dl-open.c: Likewise.
9919         * elf/dl-support.c: Likewise.
9920         * elf/do-lookup.h: Likewise.
9921         * elf/rtld.c: Likewise.
9922         * sysdeps/generic/dl-cache.c: Likewise.
9923         * sysdeps/generic/dl-sysdep.c: Likewise.
9924         * sysdeps/ia64/Versions: Likewise.
9925         * sysdeps/unix/clock_gettime.c: Likewise.
9926         * sysdeps/unix/clock_settime.c: Likewise.
9927         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9928         * sysdeps/sparc/Versions: Removed.
9929         * sysdeps/i386/i686/Versions : Removed.
9930         * sysdeps/x86_64/Versions: Removed.
9931         * configure.in: Define HAVE_PROTECTED if .protected is available.
9932         * config.h.in: Add entry for HAVE_PROTECTED.
9933
9934 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9935
9936         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9937         code in struct _rtld_global.  Export this struct, remove all
9938         exports for the signal variables.
9939         * sysdeps/arm/dl-machine: Likewise.
9940         * sysdeps/generic/dl-origin: Likewise.
9941         * sysdeps/generic/dl-sysdep: Likewise.
9942         * sysdeps/generic/dl-cache: Likewise.
9943         * sysdeps/hppa/dl-fptr: Likewise.
9944         * sysdeps/hppa/dl-machine: Likewise.
9945         * sysdeps/cris/dl-machine: Likewise.
9946         * sysdeps/i386/dl-machine: Likewise.
9947         * sysdeps/ia64/dl-machine: Likewise.
9948         * sysdeps/m68k/dl-machine: Likewise.
9949         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9950         * sysdeps/mips/mips64/dl-machine: Likewise.
9951         * sysdeps/mips/dl-machine: Likewise.
9952         * sysdeps/powerpc/elf/libc-start: Likewise.
9953         * sysdeps/powerpc/dl-machine: Likewise.
9954         * sysdeps/powerpc/dl-start: Likewise.
9955         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9956         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9957         * sysdeps/sh/dl-machine: Likewise.
9958         * sysdeps/s390/s390-32/dl-machine: Likewise.
9959         * sysdeps/s390/s390-64/dl-machine: Likewise.
9960         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9961         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9962         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9963         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9964         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9965         * sysdeps/x86_64/dl-machine: Likewise.
9966
9967 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9968
9969         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9970         are too high.
9971
9972 2002-01-31  Andreas Schwab  <schwab@suse.de>
9973
9974         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9975
9976 2002-01-31  Andreas Schwab  <schwab@suse.de>
9977
9978         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9979         reference to _dl_pagesize.
9980
9981 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9982
9983         * Versions.def [ld]: Add GLIBC_2.3.
9984         * elf/dl-addr.c: Move global variables for SHARED code in struct
9985         _rtld_global.  Export this struct, remove all exports for the
9986         signal variables.
9987         * elf/dl-close.c: Likewise.
9988         * elf/dl-conflict.c: Likewise.
9989         * elf/dl-debug.c: Likewise.
9990         * elf/dl-deps.c: Likewise.
9991         * elf/dl-dst.h: Likewise.
9992         * elf/dl-error.c: Likewise.
9993         * elf/dl-fini.c: Likewise.
9994         * elf/dl-init.c: Likewise.
9995         * elf/dl-iteratephdr.c: Likewise.
9996         * elf/dl-libc.c: Likewise.
9997         * elf/dl-load.c: Likewise.
9998         * elf/dl-lookup.c: Likewise.
9999         * elf/dl-minimal.c: Likewise.
10000         * elf/dl-object.c: Likewise.
10001         * elf/dl-open.c: Likewise.
10002         * elf/dl-profile.c: Likewise.
10003         * elf/dl-profstub.c: Likewise.
10004         * elf/dl-reloc.c: Likewise.
10005         * elf/dl-runtime.c: Likewise.
10006         * elf/dl-support.c: Likewise.
10007         * elf/dl-sym.c: Likewise.
10008         * elf/dl-version.c: Likewise.
10009         * elf/do-lookup.h: Likewise.
10010         * elf/do-rel.h: Likewise.
10011         * elf/dynamic-link.h: Likewise.
10012         * elf/rtld.c: Likewise.
10013         * sysdeps/generic/dl-cache.c: Likewise.
10014         * sysdeps/generic/dl-sysdep.c: Likewise.
10015         * sysdeps/generic/ldsodefs.h: Likewise.
10016         * sysdeps/generic/libc-start.c: Likewise.
10017         * sysdeps/i386/dl-machine.h: Likewise.
10018         * sysdeps/ia64/dl-fptr.c: Likewise.
10019         * sysdeps/ia64/dl-machine.h: Likewise.
10020         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10021         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10022         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10023         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10024         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10025         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10026         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10027         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10028
10029 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10030
10031         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10032         to avoid warning
10033         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10034
10035         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10036         SHARED version.
10037         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10038
10039         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10040
10041 2002-01-29  Ben Collins  <bcollins@debian.org>
10042
10043         * string/bits/string2.h (__mempcpy): Protect size arg for
10044         addition when using __builtin_memcpy.
10045
10046 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10047
10048         * stdlib/Makefile (tests): Add tst-qsort.
10049         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10050
10051         * manual/signal.texi (Process Signal Mask): Document that
10052         pthread_sigmask, not sigprocmask, must be used in MT programs.
10053         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10054
10055         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10056         found.
10057         * misc/Makefile (tests): Add tst-hsearch.
10058         * misc/tst-hsearch.c: New file.
10059
10060 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10061
10062         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10063         * malloc/malloc.h: Likewise.
10064         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10065         * malloc/arena.c: New file.
10066         * malloc/hooks.c: New file.
10067         * malloc/tst-mallocstate.c: New file.
10068         * malloc/Makefile: Add new testcase tst-mallocstate.
10069         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10070
10071 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10072
10073         * stdlib/msort.c: Remove last patch.  The optimization violates the
10074         same rule which qsort.c had problems with.
10075
10076 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10077
10078         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10079         to a pivot element that lies outside the array to be sorted, as
10080         ISO C99 requires that the comparison function be called only with
10081         addresses of array elements [PR libc/2880].
10082
10083 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10084
10085         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10086         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10087
10088         * timezone/asia: Update from tzdata2002b.
10089         * timezone/australasia: Likewise.
10090         * timezone/backward: Likewise.
10091         * timezone/europe: Likewise.
10092         * timezone/leapseconds: Likewise.
10093         * timezone/iso3166.tab: Likewise.
10094         * timezone/zone.tab: Likewise.
10095
10096 2002-01-23  Richard Henderson  <rth@redhat.com>
10097
10098         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10099
10100 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10101
10102         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10103         this element [PR libc/2855].
10104
10105         * string/strcoll.c: Handle zero-length arguments specially
10106         [PR libc/2856].
10107
10108 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10109
10110         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10111         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10112         short lengths and constant src.
10113         (strcpy): Don't optimize for gcc 3.0+.
10114         (__stpcpy): For gcc 3.0+, don't use
10115         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10116         for short string literal src.
10117
10118 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10119
10120         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10121         Set for arm, too.
10122
10123 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10124
10125         * manual/llio.texi (Linked Channels, Cleaning Streams):
10126         Make it clearer that a just-opened input stream might need cleaning.
10127
10128 2002-01-21  H.J. Lu  <hjl@gnu.org>
10129
10130         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10131         Don't use label at end of compound statement.
10132
10133 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10134
10135         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10136         Remove test for negative integer arg; sin_pi does it correctly.
10137
10138 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10139
10140         * nscd/Makefile (distribute): Filter out xmalloc.c.
10141
10142 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10143
10144         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10145         Set offset if read end wasn't the buffer end.
10146         (_IO_file_seekoff_mmap): New function.
10147         (_IO_file_xsgetn_mmap): New function.
10148         (_IO_file_jumps_mmap): Use the two new functions.
10149         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10150         != end buffer.
10151         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10152         _IO_file_underflow_mmap.
10153         * libio/iofopen.c: Don't position file descriptor at end of file.
10154         * libio/tst-widetext.c: Improve error messages.
10155         * stdio-common/tst-rndseek.c: Likewise.
10156
10157 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10158
10159         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10160         end of enum for !_GNU_SOURCE.
10161         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10162         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10163         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10164         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10165         values unless _GNU_SOURCE.
10166
10167         * iconvdata/tcvn5712-1.c: Minor cleanups.
10168
10169 2002-01-18  Andreas Schwab  <schwab@suse.de>
10170
10171         * sysdeps/unix/sysv/linux/configure.in
10172         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10173
10174 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10175
10176         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10177         more efficient "Towers of Hanoi" mergesort.
10178         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10179         for generic, sizeof(int) and sizeof(long) variants respectively.
10180
10181 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10182
10183         * manual/syslog.texi (openlog): Describe possible problems with
10184         first parameter.
10185         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10186
10187         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10188         * nscd/connections.c (begin_drop_privileges): New function.
10189         (finish_drop_privileges): New function.
10190         (nscd_init): Call the new functions which also install all groups
10191         for the server user.
10192         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10193         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10194
10195 2002-01-17  H.J. Lu  <hjl@gnu.org>
10196
10197         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10198         `const' from `got'.
10199
10200 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10201
10202         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10203         instructions for pointer operations.
10204         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10205
10206 2002-01-17  Andreas Jaeger  <aj@suse.de>
10207
10208         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10209         __uint128_t build-in.
10210
10211         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10212         PowerPC, sync with 2.2 branch.
10213
10214 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10215
10216         * posix/getconf.c: Update copyright year.
10217         * nss/getent.c: Likewise.
10218         * nscd/nscd_nischeck.c: Likewise.
10219         * iconv/iconvconfig.c: Likewise.
10220         * iconv/iconv_prog.c: Likewise.
10221         * elf/ldconfig.c: Likewise.
10222         * catgets/gencat.c: Likewise.
10223         * csu/version.c: Likewise.
10224         * elf/ldd.bash.in: Likewise.
10225         * elf/sprof.c (print_version): Likewise.
10226         * locale/programs/locale.c: Likewise.
10227         * locale/programs/localedef.c: Likewise.
10228         * nscd/nscd.c (print_version): Likewise.
10229         * debug/xtrace.sh: Likewise.
10230         * malloc/memusage.sh: Likewise.
10231         * malloc/mtrace.pl: Likewise.
10232
10233 2002-01-16  Andreas Schwab  <schwab@suse.de>
10234
10235         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10236         reliably remove "-ia64" from rtld name.
10237
10238 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10239
10240         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10241         Patch by Yu Shao <yshao@redhat.com>.
10242
10243 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10244
10245         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10246         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10247         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10248
10249 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10250
10251         * sysdeps/s390/fpu/libm-test-ulps: Update.
10252
10253 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10254
10255         * elf/elf.h: Update x86 relocations.
10256
10257 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10258
10259         * locale/programs/charmap.c (new_width): Check whether byte
10260         sequences for both ends of range have the same length.
10261
10262 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10263
10264         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10265
10266 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10267
10268         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10269         string literals.
10270         (__full_ieee754_sqrt): Add __attribute_used__.
10271
10272 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10273
10274         * sysdeps/generic/group_member.c (__group_member): Also check
10275         groups[0] [PR libc/2781].
10276
10277 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10278
10279         * Makefile (distribute): Add scripts/cpp.
10280         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10281         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10282         unwind-dw2-fde.h, and dwarf2.h.
10283         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10284         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10285         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10286         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10287
10288 2002-01-07  Roland McGrath  <roland@frob.com>
10289
10290         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10291         volatile on type of ARGC so the compiler doesn't get clever.
10292
10293 2002-01-07  Andreas Jaeger  <aj@suse.de>
10294
10295         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10296         * sysdeps/i386/bits/byteswap.h: Likewise.
10297         * sysdeps/ia64/bits/byteswap.h: Likewise.
10298         * sysdeps/m68k/bits/byteswap.h: Likewise.
10299         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10300         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10301
10302 2002-01-02  Bruno Haible  <bruno@clisp.org>
10303
10304         * intl/plural.y: Fix %expect count.
10305
10306 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10307
10308         * elf/Makefile (routines, shared-only-routines): Add
10309         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10310         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10311         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10312         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10313         Optimize if .eh_frame section contains no FDEs.
10314         (__register_frame, __deregister_frame_info_bases,
10315         __deregister_frame): Likewise.
10316         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10317         DW_CFA_restore handling.
10318
10319 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10320
10321         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10322
10323         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10324         for x < 0.25 and restore original range reduction method.
10325         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10326
10327 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10328
10329         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10330         (_IO_file_close_mmap): New function.
10331         (_IO_file_jumps_mmap): New variable.
10332         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10333         trying to convert rest of byte buffer.
10334         (_IO_wfile_underflow_mmap): New function.
10335         (_IO_wfile_jumps_mmap): New variable.
10336         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10337         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10338         (_IO_new_fopen): Call __fopen_internal.
10339         * libio/iofopen64.c: Just call __fopen_internal.
10340         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10341         successfully.
10342         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10343         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10344         _IO_file_close_mmap.
10345
10346         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10347         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10348
10349         * stdio-common/Makefile (tests): Add tst-rndseek.
10350         * stdio-common/tst-rndseek.c: New file.
10351
10352 2002-01-05  Roland McGrath  <roland@frob.com>
10353
10354         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10355         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10356         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10357         * sysdeps/mach/hurd/configure: Regenerated.
10358
10359 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10360
10361         * elf/elf.h: Add more TLS definitions.
10362
10363 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10364
10365         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10366
10367 2002-01-02  Roland McGrath  <roland@frob.com>
10368
10369         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10370         __sigisemptyset.  Don't use MASK uninitialized.
10371
10372         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10373         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10374         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10375         __sigdelset, __sigaddset, __sigorset.
10376
10377         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10378         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10379
10380         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10381         _hurd_ports is null.
10382
10383         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10384         for old CMU and new OSF Mach interface flavors.
10385         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10386         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10387
10388         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10389
10390         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10391         Pass extra arguments to task_create for OSF variant.
10392         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10393
10394         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10395         conditional on [HAVE_AUX_VECTOR].
10396
10397         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10398         mach_msg_timeout_t as type of final argument.
10399
10400         * hurd/privports.c (__get_privileged_ports):
10401         Change host_priv_t to mach_port_t in argument type.
10402         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10403         Update decls.
10404
10405         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10406         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10407         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10408         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10409         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10410         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10411
10412 2002-01-01  Roland McGrath  <roland@frob.com>
10413
10414         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10415
10416 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10417
10418         * include/stdlib.h: Define inlines for the _l variants of the strto*
10419         functions.
10420
10421 2002-01-01  Roland McGrath  <roland@frob.com>
10422
10423         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10424
10425         * mach/Machrules (MIG): Set CPP as well as CC.
10426
10427 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10428
10429         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10430         locale to parse /proc/loadavg [PR libc/2760].
10431
10432 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10433
10434         * elf/dl-conflict.c: Include sys/param.h.
10435         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10436         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10437         warning.
10438         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10439         literals to avoid warnings.
10440
10441 2001-12-31  Andreas Jaeger  <aj@suse.de>
10442
10443         * configure.in: Don't check for gsed since we do not use it anywhere.
10444
10445 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10446
10447         * io/fts.c: Update from BSD to fix memory leaks.
10448
10449 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10450
10451         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10452         * elf/chroot_canon.c: Likewise.
10453         * elf/dl-object.c: Likewise.
10454         * iconv/iconv_charmap.c: Likewise.
10455         * iconv/iconv_prog.c: Likewise.
10456         * libio/iogetdelim.c: Likewise.
10457         * locale/lc-time.c: Likewise.
10458         * stdlib/canonicalize.c: Likewise.
10459         * sunrpc/svc.c: Likewise.
10460         * sysdeps/generic/glob.c: Likewise.
10461
10462 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10463
10464         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10465         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10466         remove high order bit from the program counter.
10467         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10468
10469 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10470
10471         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10472         unnecessary code and add missing reloc types.
10473         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10474         case for reloc type R_390_NONE.
10475
10476 2001-12-28  Andreas Jaeger  <aj@suse.de>
10477
10478         * io/bug-ftw3.c: Include string.h for prototypes.
10479
10480         * crypt/md5test.c (main): Remove unused variable.
10481
10482         * dlfcn/modstatic.c: Add prototype to avoid warning.
10483
10484 2001-12-26  Roland McGrath  <roland@frob.com>
10485
10486         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10487         check only (SS->pending & MASK) for the signal to return.
10488         From Jeroen Dekkers <jeroen@dekkers.cx>.
10489
10490 2001-12-22  Roland McGrath  <roland@frob.com>
10491
10492         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10493         Use preprocessor #if conditionals instead of `if' to avoid
10494         warnings about divide by zero in dead code.
10495
10496         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10497         _hurd_port_init, and __hurd_self_sigstate.
10498
10499         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10500
10501 2001-12-21  Andreas Jaeger  <aj@suse.de>
10502
10503         * elf/dblloadmod1.c: Add prototype to avoid warning.
10504         * elf/dblloadmod2.c: Likewise.
10505         * elf/dblloadmod3.c: Likewise.
10506         * elf/reldepmod5.c: Likewise.
10507         * elf/reldepmod6.c: Likewise.
10508
10509         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10510         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10511         used on all architectures.
10512
10513         * sunrpc/svc_tcp.c: Add noreturn attribute for
10514         svctcp_rendezvous_abort.
10515         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10516
10517         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10518         to avoid warning.
10519
10520 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10521
10522         * manual/llio.texi (aio_fsync): Fix a typo.
10523         Patch by Tammy Fox <tfox@redhat.com>.
10524
10525 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10526
10527         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10528         stack bias from child stack pointer before passing it to clone syscall.
10529
10530 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10531
10532         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10533         _SC_TZNAME_MAX.
10534         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10535         Reported by Thorsten Kukuk <kukuk@suse.de>.
10536
10537         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10538         add some casts.
10539
10540         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10541
10542 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10543
10544         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10545         conforming: return EBADF if file descriptor is invalid and EINVAL
10546         if file descriptor is no valid tty.
10547         * login/tst-grantpt.c: New file.
10548         * login/Makefile (tests): Add tst-grantpt.
10549
10550 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10551
10552         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10553         different than implemented in last patch.
10554         * io/bug-ftw3.c: Adjust test for changed handling of
10555         inaccessibility of toplevel dir.
10556
10557 2001-12-16  Roland McGrath  <roland@frob.com>
10558
10559         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10560         * grp/initgroups.c (internal_getgrouplist): Likewise.
10561
10562         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10563         `default:' to silence new GCC warning.
10564         Rewrite cast of lvalue to silence new GCC warning.
10565
10566         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10567
10568         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10569         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10570
10571 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10572
10573         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10574         Patch by Stephen R. van den Berg.
10575
10576         * crypt/md5.h: Define md5_uintptr.
10577
10578 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10579
10580         * libio/tst_swprintf.c (main): Add test for string argument with
10581         zero precision.
10582         * stdio-common/Makefile (tests): Add tst-sprintf.
10583         * stdio-common/tst-sprintf.c: New file.
10584
10585 2001-12-13  Andreas Schwab  <schwab@suse.de>
10586
10587         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10588         zero precision with wide character string format.
10589
10590 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10591
10592         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10593         but have a user supplied buffer, return the empty buffer, not NULL.
10594
10595 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10596
10597         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10598         Patch by Eric Sharkey <sharkey@netrics.com>.
10599
10600         * crypt/md5test.c (main): Add test for multiple calls to
10601         __md5_process_bytes to itererate over input string.
10602
10603 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10604
10605         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10606         from __nis_findfastest.  Take timeout value from parameter.
10607         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10608         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10609         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10610
10611 2001-12-12  Andreas Jaeger  <aj@suse.de>
10612
10613         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10614         combreloc test so that it works in this case.
10615
10616         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10617
10618 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10619
10620         * sysdeps/sh/Makefile: New file.
10621         * sysdeps/sh/_mcount.S: New file.
10622         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10623         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10624
10625 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10626
10627         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10628         limitation [PR libc/2564].
10629
10630 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10631
10632         * elf/Makefile (dl-routines): Add conflict.
10633         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10634         (ld.so): Add _begin local symbol.
10635         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10636         Define.
10637         * elf/dl-deps.c (_dl_build_local_scope): New function.
10638         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10639         of all libraries.
10640         * elf/do-rel.h (VALIDX): Define.
10641         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10642         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10643         can be skipped.
10644         * elf/dl-conflict.c: New file.
10645         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10646         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10647         non-NULL.
10648         (_dl_lookup_symbol_skip): Likewise.
10649         (_dl_lookup_versioned_symbol): Likewise.
10650         (_dl_lookup_versioned_symbol_skip): Likewise.
10651         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10652         define to ElfW(Rel).
10653         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10654         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10655         ranges.
10656         Don't adjust address dynamic tags if l_addr is 0.
10657         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10658         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10659         (VALIDX, ADDRIDX): Define.
10660         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10661         (dl_main): Print library list for LD_TRACE_PRELINKING.
10662         If prelinking information can be used, skip relocating libraries and
10663         call _dl_resolve_conflicts instead.
10664         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10665         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10666         if LD_TRACE_PRELINKING.
10667         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10668         + DT_ADDRNUM.
10669         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10670         (DL_DEBUG_PRELINK): Define.
10671         (_dl_resolve_conflicts): Add prototype.
10672
10673         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10674         .plt for prelinked libraries where prelinking info cannot be used.
10675         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10676         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10677         * sysdeps/arm/bits/link.h: New file.
10678         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10679         content of .got[1].
10680         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10681         (ELF_MACHINE_PLT_REL): Define.
10682         (elf_machine_rela, elf_machine_rela_relative): New functions.
10683         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10684         of adjusting it if prelinked and prelinking cannot be used.
10685         * sysdeps/i386/bits/link.h: New file.
10686         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10687         content of .got[1].
10688         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10689         (ELF_MACHINE_PLT_REL): Define.
10690         (elf_machine_rela, elf_machine_rela_relative): New functions.
10691         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10692         of adjusting it if prelinked and prelinking cannot be used.
10693         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10694         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10695         to find out map for R_PPC_JMP_SLOT relocs.
10696         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10697         (OPCODE_BA): Define.
10698         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10699         libraries where prelinking info cannot be used.
10700         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10701         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10702         (elf_machine_rela): Set value to 0 if relocating conflicts.
10703         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10704         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10705         (sparc64_fixup_plt): Fix a typo.
10706         (elf_machine_rela): Set value to 0 if relocating conflicts.
10707         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10708         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10709         libraries where prelinking info cannot be used.
10710         * sysdeps/sh/bits/link.h: New file.
10711         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10712         content of .got[1].
10713         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10714         of adjusting it if prelinked and prelinking cannot be used.
10715         * sysdeps/s390/s390-32/bits/link.h: New file.
10716         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10717         Save original content of .got[1].
10718         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10719         of adjusting it if prelinked and prelinking cannot be used.
10720         * sysdeps/s390/s390-64/bits/link.h: New file.
10721         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10722         Save original content of .got[1].
10723         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10724         of adjusting it if prelinked and prelinking cannot be used.
10725         * sysdeps/x86_64/bits/link.h: New file.
10726         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10727         Save original content of .got[1].
10728         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10729         of adjusting it if prelinked and prelinking cannot be used.
10730
10731 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10732
10733         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10734         where appropriate instead of numbers.  Little optimizations.
10735
10736 2001-12-10  Roland McGrath  <roland@frob.com>
10737
10738         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10739         set it.
10740
10741         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10742         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10743
10744         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10745         Fix conditionals so this is set by default for stdio and not for libio.
10746         * sysdeps/mach/hurd/configure: Regenerated.
10747
10748 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10749
10750         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10751
10752 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10753
10754         * io/Makefile (tests): Add bug-ftw3.
10755         * io/bug-ftw3.c: New file.
10756
10757         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10758         matches and GLOB_NOCHECK is set.
10759         * posix/globtest.sh: Correct expected result for NOCHECK test.
10760
10761         * po/ca.po: Update from translation team.
10762
10763 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10764
10765         Implement transliteration of characters in strings of the locale
10766         definitions.
10767         * locale/programs/linereader.c: Adjust for additional parameter to
10768         lr_token.
10769         (get_string): If character <Uxxxx> is not found try to transliterate
10770         it.
10771         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10772         lr_token.  Add const to charmap parameter of all functions.
10773         (find_translit, find_translit2): New functions.
10774         * locale/programs/charmap.c: Adjust for additional parameter to
10775         lr_token.
10776         * locale/programs/repertoire.c: Likewise.
10777         * locale/programs/linereader.h: Likewise.
10778         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10779         parameter of all functions.
10780         * locale/programs/ld-collate.c: Likewise.
10781         * locale/programs/ld-identification.c: Likewise.
10782         * locale/programs/ld-measurement.c: Likewise.
10783         * locale/programs/ld-messages.c: Likewise.
10784         * locale/programs/ld-monetary.c: Likewise.
10785         * locale/programs/ld-name.c: Likewise.
10786         * locale/programs/ld-numeric.c: Likewise.
10787         * locale/programs/ld-paper.c: Likewise.
10788         * locale/programs/ld-paper.c: Likewise.
10789         * locale/programs/ld-telephone.c: Likewise.
10790         * locale/programs/ld-time.c: Likewise.
10791         * locale/programs/locfile.c: Likewise.
10792         * locale/programs/localedef.c: Likewise.
10793         * locale/programs/localedef.h: Likewise.
10794         * locale/programs/locfile.h: Likewise.  Add declaration for
10795         find_translit.
10796         * locale/programs/simple-hash.c: Add const to first parameter of
10797         find_entry, iterate_table, and lookup.
10798         * locale/programs/simple-hash.h: Likewise.
10799         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10800         instead.
10801         * include/locale.h: Define __LC_LAST.
10802         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10803
10804 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10805
10806         * sysdeps/powerpc/Dist: Update for recent FP changes.
10807         * sysdeps/powerpc/fpu/Dist: Likewise.
10808
10809 2001-12-07  Andreas Schwab  <schwab@suse.de>
10810
10811         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10812
10813 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10814
10815         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10816         save/restore functions here.
10817         (libm-support): Don't define these functions here.
10818         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10819         functions here.
10820         * sysdeps/powerpc/fe_nomask.c: Move to...
10821         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10822         * sysdeps/powerpc/fprrest.S: Move to...
10823         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10824         * sysdeps/powerpc/fprsave.S: Move to...
10825         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10826
10827 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10828
10829         * sysdeps/unix/sysv/linux/opensock.c: New file.
10830
10831 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10832
10833         * config.make.in (with-fp): Define from configure.
10834         * configure.in: Substitute with_fp.
10835         * configure: Regenerate.
10836         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10837         specified, and don't change FPU environment.
10838
10839 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10840
10841         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10842         * assert/assert.c: Check result of __asprintf call and don't use
10843         string if it failed.
10844         * assert/assert-perr.c: Likewise.
10845         * inet/rcmd.c: Likewise.
10846         * locale/programs/localedef.c (main): Check result of
10847         construct_output_path and exit if it failed.
10848         (construct_output_path): Check result of asprintf and mkdir calls and
10849         fail if they failed.
10850         * posix/getopt.c: Check result of __asprintf calls and fail if
10851         they failed.
10852         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10853
10854 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10855
10856         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10857         patch.
10858         * sysdeps/generic/strncase.c: Likewise.
10859         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10860
10861 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10862
10863         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10864
10865         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10866         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10867         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10868         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10869         * sysdeps/powerpc/fclrexcpt.c: Move to...
10870         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10871         * sysdeps/powerpc/fpu_control.h: Move to...
10872         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10873
10874 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10875
10876         * iconvdata/ibm1129.h: Remove duplicate mappings.
10877         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10878         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10879         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10880
10881         * timezone/zic.c: Fix handling of turnaround times.
10882         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10883
10884 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10885
10886         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10887         overflow problem.
10888
10889 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10890
10891         * posix/regex.c: For use outside glibc defined bounded pointer
10892         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10893
10894         * iconvdata/Makefile (modules): Add TCVN5712-1.
10895         * iconvdata/TESTS: Add TCVN5712-1.
10896         * iconvdata/gconv-modules: Likewise.
10897         * iconvdata/tcvn5712-1.c: New file.
10898         * iconvdata/testdata/TCVN-5712: New file.
10899         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10900
10901 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10902
10903         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10904
10905 2001-12-02  Roland McGrath  <roland@frob.com>
10906
10907         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10908
10909         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10910         Reported by Jeff Bailey <jbailey@nisa.net>.
10911
10912         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10913         Reported by Jeff Bailey <jbailey@nisa.net>.
10914
10915         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10916         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10917         Reported by Jeff Bailey <jbailey@nisa.net>.
10918
10919 2001-12-01  Roland McGrath  <roland@frob.com>
10920
10921         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10922         missing backslash in test arguments.
10923         * sysdeps/mach/hurd/configure: Regenerated.
10924
10925 2001-11-26  Roland McGrath  <roland@frob.com>
10926
10927         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10928         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10929
10930 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10931
10932         * iconvdata/Makefile (modules): Add ARMSCII-8.
10933         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10934         * iconvdata/armscii-8.c: New file.
10935
10936 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10937
10938         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10939         don't match, fix {{a,b},c} globbing, clean up.
10940         Patch by Flavio Veloso <flaviovs@magnux.com>.
10941         * posix/globtest.sh: Add new tests.
10942
10943 2001-11-29  Andreas Jaeger  <aj@suse.de>
10944
10945         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10947
10948         * sysdeps/generic/abort.c: Include libioP.h for
10949         _IO_flush_all_lockp prototype.
10950
10951 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10952
10953         * posix/regex.h: Define __restrict_arr correctly.
10954
10955 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10956
10957         * iconvdata/ibm1163.c: New file.
10958         * iconvdata/ibm1163.h: New file.
10959         * iconvdata/ibm1164.c: New file.
10960         * iconvdata/ibm1164.h: New file.
10961         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10962         * iconvdata/Makefile: Likewise.
10963         * iconvdata/testdata/IBM1163: New file.
10964         * iconvdata/testdata/IBM1163..UTF8: New file.
10965         * iconvdata/testdata/IBM1164: New file.
10966         * iconvdata/testdata/IBM1164..UTF8: New file.
10967         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10968
10969         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10970         * iconvdata/ibm1124.h: Likewise.
10971         * iconvdata/ibm1132.h: Likewise.
10972         * iconvdata/ibm1133.h: Likewise.
10973         * iconvdata/ibm1160.h: Likewise.
10974         * iconvdata/ibm1161.h: Likewise.
10975         * iconvdata/ibm1162.h: Likewise.
10976         * iconvdata/ibm856.h: Likewise.
10977         * iconvdata/ibm922.h: Likewise.
10978         * iconvdata/ibm930.h: Likewise.
10979         * iconvdata/ibm932.h: Likewise.
10980         * iconvdata/ibm933.h: Likewise.
10981         * iconvdata/ibm935.h: Likewise.
10982         * iconvdata/ibm937.h: Likewise.
10983         * iconvdata/ibm939.h: Likewise.
10984         * iconvdata/ibm943.h: Likewise.
10985         * iconvdata/ibm930.c: Pretty printing.
10986         * iconvdata/ibm937.c: Avoid access accross array boundary.
10987
10988         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10989         the current locale's codeset.
10990         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10991         empty input string.
10992         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10993         and from-charset.  Don't determine locale's charset here.
10994
10995         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10996         as the old _IO_flush_all but lock only if parameter is nonzero.
10997         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10998         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10999         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11000         if libio is used [PR libc/2575].
11001
11002 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11003
11004         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11005         __signbitl): Only define for ISO C99.
11006
11007 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11008
11009         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11010         herrnop to NETDB_INTERNAL if we run out of buffer space.
11011
11012 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11013
11014         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11015         overflow test for platforms with signed char.
11016         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11017
11018 2001-11-28  Bruno Haible  <bruno@clisp.org>
11019
11020         * locale/programs/simple-hash.c (lookup_2): Remove function.
11021         (insert_entry_2): Call lookup instead of lookup_2.
11022
11023 2001-03-04  Bruno Haible  <bruno@clisp.org>
11024
11025         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11026
11027 2001-10-31  Bruno Haible  <bruno@clisp.org>
11028
11029         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11030
11031 2001-03-21  Bruno Haible  <bruno@clisp.org>
11032
11033         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11034         chokes on empty macro arguments.
11035         * intl/plural.y: Add #pragma for alloca on AIX 3.
11036
11037 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11038
11039         * intl/dcigettext.c (guess_category_value): Only implement for
11040         glibc.  Otherwise rely on function _nl_locale_name which isn't
11041         present in the glibc sources.
11042
11043 2001-09-24  Bruno Haible  <bruno@clisp.org>
11044
11045         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11046         transliteration when building on a glibc system but outside glibc.
11047
11048 2001-09-22  Bruno Haible  <bruno@clisp.org>
11049
11050         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11051         * intl/dcigettext.c (plural_eval): Remove function, moved to
11052         intl/plural-eval.c.
11053         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11054         Include plural-eval.c.
11055
11056 2001-09-22  Bruno Haible  <bruno@clisp.org>
11057
11058         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11059         don't start with a digit; nplurals must be positive.
11060
11061 2001-09-02  Bruno Haible  <bruno@clisp.org>
11062
11063         * intl/plural-exp.h: New file, extracted from gettextP.h.
11064         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11065         * intl/gettextP.h (struct expression, struct parse_args,
11066         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11067         * intl/loadmsgcat.c: Include plural-exp.h.
11068         (PLURAL_PARSE): Move macro to plural-exp.h.
11069         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11070         plural-exp.c.
11071         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11072         EXTRACT_PLURAL_EXPRESSION.
11073         (_nl_unload_domain): Update.
11074         * intl/dcigettext.c: Include plural-exp.h.
11075         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11076         (FREE_EXPRESSION): Move macro to plural-exp.h.
11077         * intl/Makefile (routines): Add plural-exp.
11078         (distribute): Add plural-exp.h.
11079
11080 2001-07-28  Bruno Haible  <bruno@clisp.org>
11081
11082         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11083         isdigit, tolower argument to 'unsigned char'.
11084         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11085         'unsigned char'.
11086         * intl/localealias.c (read_alias_file): Cast isspace argument to
11087         'unsigned char'.
11088
11089 2001-10-20  Bruno Haible  <bruno@clisp.org>
11090
11091         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11092         anyway.)
11093         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11094         with the variable 'index' in plural_lookup.
11095         * intl/l10nflist.c (strchr): Likewise.
11096         * intl/localealias.c (strchr): Likewise.
11097
11098         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11099         * intl/bindtextdom.c: Likewise.
11100         * intl/dcigettext.c: Likewise.
11101         * intl/dgettext.c: Likewise.
11102         * intl/dngettext.c: Likewise.
11103         * intl/explodename.c: Likewise.
11104         * intl/finddomain.c: Likewise.
11105         * intl/gettext.c: Likewise.
11106         * intl/l10nflist.c: Likewise.
11107         * intl/loadmsgcat.c: Likewise.
11108         * intl/localealias.c: Likewise.
11109         * intl/ngettext.c: Likewise.
11110         * intl/textdomain.c: Likewise.
11111         * intl/gettext.h: Assume <limits.h> exists.
11112
11113 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11114
11115         * stdio-common/Makefile (tests): Add scanf11.
11116         * stdio-common/scanf11.c: New file.
11117
11118 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11119
11120         * version.h (RELEASE): Define as development.
11121         (VERSION): Set to 2.2.90.
11122
11123 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11124
11125         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11126         * nis/nss_nis/nis-grp.c: Likewise.
11127         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11128
11129         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11130         * nis/nss_nis/nis-pwd.c: Likewise.
11131         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11132
11133         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11134         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11135         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11136
11137         * nscd/grpcache.c: Use strtoul instead of atol.
11138         * nscd/pwdcache.c: Likewise.
11139         * nss/getent.c: Likewise.
11140
11141 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11142
11143         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11144         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11145
11146 2001-11-19  Bruno Haible  <bruno@clisp.org>
11147
11148         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11149         90%.
11150         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11151         improves the quality of the hash function, especially for short
11152         strings.
11153
11154 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11155
11156         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11157         are found call conv_error and not input_error [PR libc/2669].
11158
11159         * math/bits/mathcalls.h: Mark ceil and floor as const.
11160         Reported by David Mosberger.
11161
11162 2001-11-21  Jim Meyering  <meyering@lucent.com>
11163
11164         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11165         Define to be __-prefixed.
11166         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11167
11168 2001-11-26  Andreas Jaeger  <aj@suse.de>
11169
11170         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11171         avoid warning.
11172
11173 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11174
11175         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11176         initialization.
11177
11178         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11179         unused variables.  Fix threshold for returning 1.0.
11180
11181         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11182         argument.
11183
11184         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11185         remove unused variables.
11186
11187         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11188
11189         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11190         include local math header files.
11191
11192 2001-11-22  Andreas Jaeger  <aj@suse.de>
11193
11194         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11195         avoid warning.
11196
11197 2001-11-21  Andreas Jaeger  <aj@suse.de>
11198
11199         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11200
11201         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11202         sys/debugreg.h
11203
11204 2001-11-15  Andreas Jaeger  <aj@suse.de>
11205
11206         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11207         compilers that support it.
11208
11209         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11210         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11211         * stdlib/stdlib.h: Likewise.
11212
11213 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11214
11215         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11216         statement with gotos.
11217         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11218
11219 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11220
11221         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11222
11223 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11224
11225         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11226
11227 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11228             H.J. Lu  <hjl@gnu.org>
11229
11230         * Versions.def (libc): Add GCC_3.0.
11231         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11232         if gcc supports this flag.
11233         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11234         (gcc3): Allow glibc to be compiled with gcc 3.x.
11235         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11236         * config.make.in (static-libgcc, unwind-find-fde): Add.
11237         * Makerules (build-shlib-helper, build-module-helper): Use it.
11238         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11239         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11240         necessary.
11241         (_fini): Call __deregister_frame_info_bases if
11242         __register_frame_info_bases was used to register.
11243         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11244         for GLIBC_2.0.
11245         (__register_frame_info_bases, __register_frame_info_table_bases,
11246         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11247         * elf/Makefile (routines): Add unwind-dw2-fde.
11248         (shared-only-routines): Add unwind-dw2-fde.
11249         * sysdeps/alpha/gccframe.h: New file.
11250         * sysdeps/arm/gccframe.h: New file.
11251         * sysdeps/generic/framestate.c: New file.
11252         * sysdeps/generic/dwarf2.h: New file.
11253         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11254         * sysdeps/generic/unwind-dw2-fde.c: New file.
11255         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11256         * sysdeps/generic/unwind-dw2-fde.h: New file.
11257         * sysdeps/generic/unwind-dw2.c: New file.
11258         * sysdeps/generic/unwind-pe.h: New file.
11259         * sysdeps/generic/unwind.h: New file.
11260         * sysdeps/hppa/gccframe.h: New file.
11261         * sysdeps/i386/gccframe.h: New file.
11262         * sysdeps/m68k/gccframe.h: New file.
11263         * sysdeps/mips/gccframe.h: New file.
11264         * sysdeps/powerpc/gccframe.h: New file.
11265         * sysdeps/s390/gccframe.h: New file.
11266         * sysdeps/sh/gccframe.h: New file.
11267         * sysdeps/sparc/gccframe.h: New file.
11268         * sysdeps/vax/gccframe.h: New file.
11269         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11270         Set on all architectures except ia64.
11271         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11272         for i386.
11273         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11274         __deregister_frame_info): Move to elf/Versions.
11275         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11276         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11277         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11278         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11279         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11280         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11281         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11282         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11283         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11284         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11285         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11286         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11287         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11288         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11289         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11290         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11291         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11292         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11293
11294 2001-11-15  Jeff Law  <law@redhat.com>
11295
11296         * posix/regex.c (uintptr_t): Do not provide a definition if the
11297         system provided one.
11298
11299 2001-11-13  Roland McGrath  <roland@frob.com>
11300
11301         * stdio-common/tmpfile.c: Moved to ...
11302         * sysdeps/generic/tmpfile.c: ... here.
11303         * sysdeps/mach/hurd/tmpfile.c: New file.
11304
11305         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11306         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11307         (fopenport): Define as weak alias.
11308
11309         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11310         * libio/libioP.h: ... to here.
11311
11312 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11313
11314         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11315         program header twice.  Construct list with the needed information.
11316
11317 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11318
11319         * po/ca.po: Update from translation team.
11320
11321         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11322         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11323         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11324         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11325
11326 2001-11-10  Andreas Jaeger  <aj@suse.de>
11327
11328         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11329         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11330         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11331
11332 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11333
11334         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11335         correctly.
11336         * elf/dl-load.c (is_dst): New function.
11337         (_dl_dst_count): Use is_dst to check for DST variable.
11338         (_dl_dst_substitute): Likewise.
11339
11340 2001-11-09  Roland McGrath  <roland@frob.com>
11341
11342         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11343         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11344         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11345         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11346         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11347         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11348         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11349         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11350         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11351         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11352         * sysdeps/mach/hurd/powerpc/Dist: New file.
11353
11354         * hurd/privports.c (__get_privileged_ports):
11355         Only contact the proc server if necessary for this call.
11356         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11357         Check error return for mach_port_mod_refs.
11358
11359 2001-11-09  Andreas Schwab  <schwab@suse.de>
11360
11361         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11362
11363 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11364
11365         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11366         object is always the last in the list.
11367         (_dl_map_object_from_fd): Delete code to remove from object list
11368         when DF_1_NOOPEN is seen.  This is done in lose.
11369
11370 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11371
11372         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11373
11374 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11375
11376         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11377         HWCAP_CHECK macro code.
11378
11379         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11380         Now returns MAP_FAILED on error.
11381         * elf/rtld.c: Adjust caller.
11382         * sysdeps/generic/dl-cache.c: Likewise.
11383         * sysdeps/generic/ldsodefs.h: Adjust description.
11384
11385         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11386         (_dl_check_map_versions): Likewise.
11387
11388 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11389
11390         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11391         _dl_signal_error directly, always use lose.  Set fd to -1 after
11392         file is closed.
11393         (lose): Don't call close if fd == -1.
11394
11395 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11396
11397         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11398          Also fix typo @code {mbsinit} to @code{mbsinit}.
11399
11400 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11401
11402         * elf/dl-profile.c: Replace state variable with simple flag named
11403         running.  Remove commented-out code.
11404
11405         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11406         (_dl_init_paths): Likewise.
11407         (_dl_map_object_from_fd): Likewise.
11408         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11409
11410 2001-11-06  Roland McGrath  <roland@frob.com>
11411
11412         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11413         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11414
11415         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11416         sysdeps/powerpc/elf/sysdep.h.
11417         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11418
11419 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11420
11421         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11422         speed.
11423         (process_envvars): Some more optimizations.
11424         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11425
11426         * elf/elf.h: Add dynamic tag definitions for prelinking.
11427
11428         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11429         Rewrite code to remove environment varables for SUID binaries.
11430         Small optimization in LD_PROFILE handling.
11431         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11432         changes.
11433         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11434
11435         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11436
11437         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11438         strings.  Change type of second parameter.
11439         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11440         for last change.
11441
11442         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11443
11444 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11445
11446         * manual/string.texi: Fix typos.
11447         * manual/examples/argp-ex2.c: Likewise.
11448
11449 2001-11-05  Roland McGrath  <roland@frob.com>
11450
11451         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11452         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11453         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11454         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11455         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11456         here, put under [__ELF__].
11457
11458 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11459
11460         * manual/charset.texi: Extensive editing work.
11461         * manual/nss.texi: Likewise.
11462         Changes by Dennis Grace <dgrace@us.ibm.com>.
11463
11464 2001-11-04  Roland McGrath  <roland@frob.com>
11465
11466         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11467         parameter to dir_mkfile.
11468
11469 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11470
11471         * string/bits/string2.h (__strndup): If n is smaller than len, set
11472         len to n + 1.
11473         * string/tester.c (test_strndup): New function.
11474         (main): Call it.
11475
11476 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11477
11478         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11479
11480         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11481         * scripts/cpp: New file.
11482
11483         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11484         for rtld_search_dirs content.  Minor optimizations.
11485
11486 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11487
11488         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11489         avoiding unnecessary duplication.
11490
11491 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11492
11493         * elf/dl-load.c (_dl_map_object): If library was found using
11494         LD_LIBRARY_PATH, don't try RUNPATH list.
11495
11496 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11497
11498         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11499         Correct second argument of register_dump call.
11500         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11501         Likewise.
11502
11503 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11504
11505         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11506         modules.
11507         * iconvdata/TESTS: Likewise.
11508         * iconvdata/gconv-modules: Likewise.
11509         * iconvdata/ibm1132.c: New file.
11510         * iconvdata/ibm1132.h: New file.
11511         * iconvdata/ibm1133.c: New file.
11512         * iconvdata/ibm1133.h: New file.
11513         * iconvdata/ibm1162.c: New file.
11514         * iconvdata/ibm1162.h: New file.
11515         * iconvdata/testdata/IBM1132: New file.
11516         * iconvdata/testdata/IBM1132..UTF8: New file.
11517         * iconvdata/testdata/IBM1133: New file.
11518         * iconvdata/testdata/IBM1133..UTF8: New file.
11519         * iconvdata/testdata/IBM1162: New file.
11520         * iconvdata/testdata/IBM1162..UTF8: New file.
11521         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11522
11523         * string/string.h: Fix typo in comment.
11524         * wcsmbs/wchar.h: Likewise.
11525
11526 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11527
11528         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11529         const in type of longopts parameter.
11530
11531 2001-10-29  Andreas Jaeger  <aj@suse.de>
11532
11533         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11534
11535 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11536
11537         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11538         output, clarify `#' behaviour on 0.
11539         (Floating-Point Conversions): Clarify that %g only uses %e when
11540         the exponent would be greater than 1.
11541
11542 2001-10-28  Roland McGrath  <roland@frob.com>
11543
11544         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11545         * sysdeps/mach/powerpc/machine-sp.h: New file.
11546         * sysdeps/mach/powerpc/sysdep.h: New file.
11547         * sysdeps/mach/powerpc/thread_state.h: New file.
11548
11549         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11550         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11551         expect to need the same thing on every platform.
11552
11553         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11554         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11555
11556         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11557         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11558         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11559         Move all these assembly-related definitions to ...
11560         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11561
11562         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11563         by Peter Bruin <pjbruin@dds.nl>.
11564
11565         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11566         packing results for a `poll' call.
11567
11568 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11569
11570         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11571         correctly.
11572         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11573         bracket expression.
11574
11575         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11576         nrules value.
11577         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11578
11579 2001-10-24  H.J. Lu  <hjl@gnu.org>
11580
11581         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11582         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11583         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11584
11585 2001-10-21  Jim Meyering  <meyering@lucent.com>
11586
11587         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11588         this code would end up calling gettext even in packages built
11589         with --disable-nls.
11590         * posix/getopt.c (_): Likewise.
11591         * posix/regex.c (_): Likewise.
11592
11593 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11594
11595         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11596         lookup not ip6.int.
11597         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11598         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11599
11600 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11601
11602         * misc/sys/cdefs.h (__attribute_used__): Define.
11603         * elf/rtld.c (_dl_start): Add __attribute_used__.
11604         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11605
11606 2001-10-25  Andreas Schwab  <schwab@suse.de>
11607
11608         * stdlib/a64l.c: Expect least significant digit first.
11609         * stdlib/l64a.c: Produce least significant digit first.
11610         * stdlib/Makefile (tests): Add test-a64l.
11611         * stdlib/test-a64l.c: New file.
11612         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11613
11614 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11615
11616         * po/sk.po: Update from translation team.
11617
11618 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11619
11620         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11621
11622 2001-10-18  Andreas Schwab  <schwab@suse.de>
11623
11624         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11625         next whole number.
11626         (print_function_ulps): Likewise.
11627         (print_complex_function_ulps): Likewise.
11628         (print_max_error): Likewise.
11629         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11630
11631 2001-10-16  Andreas Schwab  <schwab@suse.de>
11632
11633         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11634         implementation.
11635
11636         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11637         BSD_SETJMP or BSD__SETJMP is defined, resp.
11638         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11639         a tail call to __sigsetjmp that would require extending the
11640         caller's frame.
11641         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11642         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11643         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11644         Reported by Jes Sorensen <jes@trained-monkey.org>.
11645
11646 2001-10-16  Andreas Jaeger  <aj@suse.de>
11647
11648         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11649         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11650         close PR libc/2589.
11651
11652 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11653
11654         * po/ca.po: New file.  Contributed by the translation team.
11655
11656 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11657
11658         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11659         a varargs prototype.  Remove dependency from kernel header files.
11660
11661         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11662         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11663
11664 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11665
11666         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11667         to generate hexadecimal identifier.
11668         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11669
11670 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11671
11672         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11673
11674 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11675
11676         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11677         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11678         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11679
11680         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11681         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11682         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11683         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11684         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11685         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11686
11687         * timezone/africa: Update from tzdata2001d.
11688         * timezone/asia: Likewise.
11689         * timezone/australasia: Likewise.
11690         * timezone/backward: Likewise.
11691         * timezone/europe: Likewise.
11692         * timezone/leapseconds: Likewise.
11693         * timezone/northamerica: Likewise.
11694         * timezone/southamerica: Likewise.
11695         * timezone/zone.tab: Likewise.
11696
11697 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11698
11699         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11700         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11701
11702 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11703
11704         * elf/elf.h (PT_TLS): New definition.
11705
11706 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11707
11708         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11709         bits/errno.h
11710
11711 2001-10-07  Roland McGrath  <roland@frob.com>
11712
11713         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11714
11715 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11716
11717         * elf/elf.h: Add more ELFOSABI_* constants.
11718
11719 2001-10-04  Ben Collins  <bcollins@debian.org>
11720
11721         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11722         decleration of __need_wchar_t.
11723
11724 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11725
11726         * string/bits/string2.h (__strsep_g): Add prototype.
11727         (__strsep): Use it.
11728         * string/Versions (__strsep): Remove.
11729         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11730
11731 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11732
11733         * manua/llio.texi: Clarify file references added by mmap.
11734         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11735
11736 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11737
11738         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11739         Add sc_loadrs and sc_rbs_bas to match current kernel.
11740
11741 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11742
11743         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11744
11745         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11746
11747 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11748
11749         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11750         object has been bumped because of relocation dependency, avoid
11751         duplicates in l_scope.
11752         (show_scope): Fix typos.
11753         * elf/Makefile: Add rules to build and run reldep6.
11754         * elf/reldep6.c: New file.
11755         * elf/reldep6mod0.c: New file.
11756         * elf/reldep6mod1.c: New file.
11757         * elf/reldep6mod2.c: New file.
11758         * elf/reldep6mod3.c: New file.
11759         * elf/reldep6mod4.c: New file.
11760
11761 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11762
11763         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11764         sparc64_fixup_plt.
11765         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11766         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11767         for non-lazy binding. Fix .plt[32768+] handling.
11768         (elf_machine_plt_value): Don't add addend.
11769         (elf_machine_rela): Call sparc64_fixup_plt instead of
11770         elf_machine_fixup_plt.
11771         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11772         dynamic linker at 0xfffff800XXXXXXXX.
11773
11774         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11775
11776 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11777
11778         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11779
11780 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11781
11782         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11783         declare __cmsg_data field if its size would be bigger than 0.
11784         (CMSG_DATA): Adjust accordingly.
11785         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11786         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11787         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11788         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11789         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11790         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11791         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11792
11793 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11794
11795         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11796         * iconvdata/testdata/IBM1160: New file.
11797         * iconvdata/testdata/IBM1160..UTF8: New file.
11798         * iconvdata/testdata/IBM1161: New file.
11799         * iconvdata/testdata/IBM1161..UTF8: New file.
11800         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11801
11802 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11803
11804         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11805         UL_SETFSIZE computations better.
11806
11807         * rt/Makefile: Remove use of filter for librt again.
11808
11809         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11810         UL_SETFSIZE computations better.
11811
11812         * string/Versions: Export __strsep for GLIBC_2.2.5.
11813         * string/bits/string2.h: Define all __STRING_INLINE functions if
11814         _FORCE_INLINES is defined.
11815         Use int instead of char of parameter types.
11816         (__strsep): Don't use __strsep_g.  Don't define it.
11817         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11818         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11819         __strcpy_small.
11820         (__stpcpy_a_small): Renamed from __stpcpy_small.
11821         (__strcspn_c1): Don't define if _FORCE_INLINES.
11822         (__strspn_c1): Likewise.
11823
11824 2001-09-22  Ben Collins  <bcollins@debian.org>
11825
11826         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11827         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11828         * sysdeps/ia64/bits/sigaction.h: Likewise.
11829         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11830
11831 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11832
11833         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11834
11835 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11836
11837         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11838
11839 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11840
11841         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11842
11843 2001-09-20  H.J. Lu  <hjl@gnu.org>
11844
11845         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11846         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11847         for __RTLD_SPROF.
11848         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11849         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11850
11851 2001-09-20  H.J. Lu  <hjl@gnu.org>
11852
11853         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11854         don't add 1.
11855
11856 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11857
11858         * nss/getent.c: Accept -s parameter to overwrite rules in
11859         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11860
11861         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11862         with as many ".0" as necessary to form a complete address
11863         inet_network understands.
11864
11865         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11866         calls.
11867
11868 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11869
11870         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11871         _JMPBUF_UNWINDS.
11872         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11873
11874 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11875
11876         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11877         IBM1161.
11878         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11879         * iconvdata/ibm1160.c: New file.
11880         * iconvdata/ibm1160.h: New file.
11881         * iconvdata/ibm1161.c: New file.
11882         * iconvdata/ibm1161.h: New file.
11883         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11884
11885 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11886
11887         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11888         difference between base address and first PT_LOAD's virtual address,
11889         not the base address.
11890
11891 2001-09-11  Tom Rix  <trix@redhat.com>
11892
11893         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11894         ifdef for __getopt_clean_environment.
11895         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11896
11897 2001-09-22  Andreas Jaeger  <aj@suse.de>
11898
11899         * elf/reldep4.c (main): Add proper prototype to fix warning.
11900
11901         * elf/reldep5.c (main): Remove unused variable.
11902
11903         * math/math_private.h: Add prototypes.
11904
11905 2001-09-21  Andreas Jaeger  <aj@suse.de>
11906
11907         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11908         * sysdeps/x86_64/Dist: New file.
11909         * sysdeps/x86_64/soft-fp/Dist: New file.
11910
11911         * sysdeps/gnu/Dist: Remove eval.c.
11912
11913 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11914
11915         * malloc/memusage.c (realloc): Don't count already allocated
11916         memory in the sums.
11917         (me): Always use dlsym() to find the real implementations.
11918
11919         * malloc/memusage.sh: Make -n option actually do something.
11920
11921 2001-09-20  Andreas Jaeger  <aj@suse.de>
11922
11923         * elf/elf.h (R_390_NUM): Correct value.
11924
11925         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11926         libpthread.
11927
11928         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11929         for x86-64, install x86-64 into */lib64.
11930
11931         * shlib-versions: Add x86-64.
11932
11933         * elf/elf.h: Add x86-64 relocations.
11934
11935 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11936
11937         * po/fr.po: Update from translation team.
11938
11939 2001-09-19  Andreas Jaeger  <aj@suse.de>
11940
11941         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11942         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11943         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11944         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11945         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11946         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11947         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11948         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11949         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11950         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11951         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11952         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11953         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11954         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11955         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11956         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11957         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11958         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11959         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11960         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11961         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11962         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11963         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11964         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11965         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11966         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11967         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11968         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11969         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11970         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11971         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11972         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11973         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11974         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11975         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11976         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11977         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11978         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11979         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11980         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11981         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11982         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11983         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11984         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11985         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11986         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11987         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11988         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11989         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11990         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11991         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11992         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11993         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11994         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11995         * sysdeps/unix/x86_64/sysdep.S: New file.
11996         * sysdeps/unix/x86_64/sysdep.h: New file.
11997         * sysdeps/x86_64/Implies: New file.
11998         * sysdeps/x86_64/Makefile: New file.
11999         * sysdeps/x86_64/Versions: New file.
12000         * sysdeps/x86_64/__longjmp.S: New file.
12001         * sysdeps/x86_64/abort-instr.h: New file.
12002         * sysdeps/x86_64/atomicity.h: New file.
12003         * sysdeps/x86_64/bits/endian.h: New file.
12004         * sysdeps/x86_64/bits/setjmp.h: New file.
12005         * sysdeps/x86_64/bits/string.h: New file.
12006         * sysdeps/x86_64/bp-asm.h: New file.
12007         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12008         * sysdeps/x86_64/bsd-setjmp.S: New file.
12009         * sysdeps/x86_64/dl-machine.h: New file.
12010         * sysdeps/x86_64/elf/initfini.c: New file.
12011         * sysdeps/x86_64/elf/start.S: New file.
12012         * sysdeps/x86_64/ffs.c: New file.
12013         * sysdeps/x86_64/ffsll.c: New file.
12014         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12015         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12016         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12017         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12018         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12019         * sysdeps/x86_64/fpu/e_expl.c: New file.
12020         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12021         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12022         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12023         * sysdeps/x86_64/fpu/e_logl.S: New file.
12024         * sysdeps/x86_64/fpu/e_powl.S: New file.
12025         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12026         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12027         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12028         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12029         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12030         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12031         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12032         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12033         * sysdeps/x86_64/fpu/fegetround.c: New file.
12034         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12035         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12036         * sysdeps/x86_64/fpu/fesetround.c: New file.
12037         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12038         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12039         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12040         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12041         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12042         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12043         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12044         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12045         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12046         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12047         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12048         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12049         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12050         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12051         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12052         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12053         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12054         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12055         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12056         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12057         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12058         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12059         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12060         * sysdeps/x86_64/gmp-mparam.h: New file.
12061         * sysdeps/x86_64/hp-timing.c: New file.
12062         * sysdeps/x86_64/hp-timing.h: New file.
12063         * sysdeps/x86_64/htonl.S: New file.
12064         * sysdeps/x86_64/memusage.h: New file.
12065         * sysdeps/x86_64/setjmp.S: New file.
12066         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12067         * sysdeps/x86_64/stackinfo.h: New file.
12068         * sysdeps/x86_64/sysdep.h: New file.
12069         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12070
12071         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12072         L Moshier.
12073
12074 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12075
12076         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12077         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12078
12079 2001-09-18  Andreas Schwab  <schwab@suse.de>
12080
12081         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12082         list, now that l_scope is a pointer.
12083
12084         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12085         scope list.
12086
12087 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12088
12089         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12090         (elf_machine_rela_relative): Add a missing declaration.
12091
12092 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12093
12094         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12095         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12096         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12097         ldd-rewrite scripts.
12098
12099 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12100
12101         * elf/ldd.bash.in: Update copyright message.
12102
12103 2001-09-17  H.J. Lu  <hjl@gnu.org>
12104
12105         * hurd/hurdmalloc.c (bcopy): Removed.
12106         (realloc): Replace bcopy with memcpy.
12107         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12108         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12109         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12110
12111         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12112         (gethostbyaddr): Likewise.
12113         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12114
12115 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12116
12117         * sysdeps/gnu/eval.c: Removed.
12118
12119 2001-09-18  Andreas Jaeger  <aj@suse.de>
12120
12121         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12122         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12123
12124         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12125         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12126
12127         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12128         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12129
12130 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12131
12132         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12133         nrules value.
12134
12135 2001-09-14  H.J. Lu  <hjl@gnu.org>
12136
12137         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12138
12139 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12140
12141         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12142         Patch by Florian La Roche <laroche@redhat.com>.
12143
12144         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12145
12146         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12147         ETHER_CRC_LEN.
12148
12149 2001-09-14  Andreas Schwab  <schwab@suse.de>
12150
12151         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12152         Sumner <bls@sgi.com>.
12153         * posix/execlp.c: Likewise.
12154
12155 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12156
12157         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12158         is already found earlier in the search scope.
12159
12160 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12161
12162         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12163         filter.
12164
12165 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12166
12167         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12168
12169 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12170
12171         * config.h.in: Enforce optimization to be used.
12172         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12173         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12174         * posix/Makefile (annexc-CFLAGS): Define to -O.
12175         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12176
12177 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12178
12179         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12180         Patch by Stephan Kulow.
12181
12182 2001-09-08  Ben Collins  <bcollins@debian.org>
12183
12184         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12185         usage of RESOLVE() (r_type, not reloc->r_type).
12186
12187 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12188
12189         * elf/dl-object.c: Avoid allocating extra memory block for name.
12190         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12191         allocated separately.
12192         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12193
12194 2001-09-08  H.J. Lu  <hjl@gnu.org>
12195
12196         * po/zh_TW.po: Fix a typo.
12197
12198 2001-09-07  Tom Rix  <trix@redhat.com>
12199
12200         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12201
12202 2001-08-26  Tom Rix  <trix@redhat.com>
12203
12204         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12205         command line options.
12206         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12207         * sysdeps/unix/sysv/aix/start.c: Removed.
12208         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12209         * sysdeps/unix/sysv/aix/init-first.c: New file.
12210         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12211
12212 2001-09-08  Ben Collins  <bcollins@debian.org>
12213
12214         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12215         * sysdeps/generic/dl-machine.h: Likewise.
12216         * sysdeps/hppa/dl-fptr.c: Likewise.
12217         * sysdeps/ia64/dl-fptr.c: Likewise.
12218         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12219         * sysdeps/mips/dl-machine.h: Likewise.
12220         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12221         * sysdeps/powerpc/dl-machine.c: Likewise.
12222
12223 2001-09-07  Ben Collins  <bcollins@debian.org>
12224
12225         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12226
12227         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12228
12229 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12230
12231         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12232         dependencies if necessary.
12233
12234         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12235         loaded directly) determine length if l_initfini list by iterating
12236         over its elements.  Minor optimizations.
12237         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12238         for dependency objects.
12239         If object was already loaded check whether any of the dependencies
12240         is already on the relocation dependency list.  If yes, remove the
12241         latter.  Minor optimizations.
12242         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12243         maps here.  Search l_initfini list only if the object was loaded
12244         directly and not only as a dependency.
12245         (_dl_lookup_symbol): Add relocation dependency also if object
12246         is not in global scope.  Remove test for self-reference here.
12247         (_dl_lookup_versioned_symbol): Likewise.
12248         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12249         element of first name record.
12250         * elf/loadtest.c: Add some more test to recognize early if an object
12251         wasn't unloaded.
12252         * elf/Makefile: Add rules to build and run reldep5.
12253         * elf/reldep5.c: New file.
12254         * elf/reldepmod5.c: New file.
12255         * elf/reldepmod6.c: New file.
12256
12257         * elf/reldep2.c: Fix typo.
12258
12259 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12260
12261         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12262         elements.  Change l_scope to be a pointer only.
12263         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12264         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12265         here add searchlist of newly open file to the dependency's scope.
12266         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12267         only searchlist from its scope.  Free own scope array if necessary.
12268         * elf/Makefile (tests): Add dblload and dblunload now.
12269
12270 2001-09-06  Andreas Jaeger  <aj@suse.de>
12271
12272         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12273         Stephen L Moshier.
12274
12275 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12276
12277         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12278         they both fail.
12279         * elf/dblload.c: New file.
12280         * elf/dblloadmod1.c: New file.
12281         * elf/dblloadmod2.c: New file.
12282         * elf/dblloadmod3.c: New file.
12283         * elf/dblunload.c: New file.
12284
12285 2001-09-04  Richard Henderson  <rth@redhat.com>
12286
12287         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12288         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12289
12290 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12291
12292         Correct very misleading message for error in failed runtime relocation.
12293         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12294         place of the error.
12295         (_dl_signal_cerror): Likewise.
12296         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12297         * elf/dl-close.c: Likewise.
12298         * elf/dl-deps.c: Likewise.
12299         * elf/dl-load.c: Likewise.
12300         * elf/dl-lookup.c: Likewise.
12301         * elf/dl-open.c: Likewise.
12302         * elf/dl-reloc.c: Likewise.
12303         * elf/dl-sym.c: Likewise.
12304         * elf/dl-version.c: Likewise.
12305         * sysdeps/generic/dl-sysdep.c: Likewise.
12306
12307 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12308
12309         * iconv/strtab.c (strtabinit): Initialize null Strent.
12310         (newstring): Move len == 0 handling...
12311         (strtabadd): ...here.
12312         If len == 1, return null Strent.
12313         When inserting a suffix of an existing string, check if
12314         it is not equal to some suffix already recorded.
12315         Copy left and right members over if adding longer string.
12316
12317 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12318
12319         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12320
12321         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12322         (__syscall_gethostname): Add prototype.
12323
12324 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12325
12326         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12327
12328 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12329
12330         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12331
12332 2001-08-27  Roland McGrath  <roland@frob.com>
12333
12334         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12335         short, copy that much into NAME anyway before returning error.
12336
12337 2001-09-01  Richard Henderson  <rth@redhat.com>
12338
12339         * sysdeps/alpha/elf/Dist: Remove file.
12340         * sysdeps/alpha/elf/Makefile: Remove file.
12341         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12342         * sysdeps/alpha/elf/crtend.S: Remove file.
12343         * sysdeps/alpha/elf/initfini.c: New file.
12344
12345 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12346
12347         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12348         * iconv/tst-iconv3.c: Likewise.
12349
12350 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12351
12352         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12353
12354 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12355
12356         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12357         export it.
12358         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12359         * iconv/iconv_prog.c (insert_cache): New function.
12360         (print_known_names): If cache is used call insert_cache to use the
12361         information from the cache [PR libc/2509].
12362
12363 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12364
12365         * time/strptime.c (strptime_internal): Recognize 'l' format and
12366         handle it like 'I' for symmetry with strftime.
12367
12368 2001-08-31  Richard Henderson  <rth@redhat.com>
12369
12370         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12371         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12372         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12373         (print_statistics): Make scalar unsigned long long.
12374         * sysdeps/alpha/hp-timing.h: New file.
12375
12376 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12377
12378         * stdio-common/perror.c (perror): Save errno early, pass it
12379         down to perror_internal.
12380         (perror_internal): Add errnum argument.
12381
12382 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12383
12384         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12385         Don't add old memory content for R_ALPHA_REFQUAD.
12386
12387 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12388
12389         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12390         memory correctly.
12391
12392         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12393         instead of open, __close instead of close, __getpagesize instead
12394         of getpagesize.
12395
12396         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12397         instead of strnlen.
12398         * include/string.h (strndupa): Redefine here to use __strnlen
12399         instead of strnlen.
12400         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12401
12402         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12403         connected).
12404
12405 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12406
12407         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12408         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12409         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12410         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12411         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12412         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12413         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12414
12415 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12416
12417         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12418
12419 2001-08-30  Andreas Jaeger  <aj@suse.de>
12420
12421         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12422         contributed Stephen L Moshier.
12423
12424 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12425
12426         * sunrpc/etc.rpc (sgi_fam): Add.
12427
12428 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12429
12430         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12431
12432 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12433
12434         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12435         first is from a previous call.
12436         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12437
12438 2001-08-29  Andreas Schwab  <schwab@suse.de>
12439
12440         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12441
12442 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12443
12444         * config.make.in (INSTALL_SCRIPT): Define.
12445         * Makeconfig (INSTALL_SCRIPT): Define.
12446         * Makerules (do-install-script): New macro to install scripts using
12447         INSTALL_SCRIPT.
12448         (install-bin-script): New rule to install scripts with
12449         do-install-script.
12450         (install-bin-script-nosubdir): New rule.
12451         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12452         (distinfo-vars): Add $(install-bin-script).
12453         * Rules (others): Likewise.
12454         * Makefile (glibcbug): Install with install-bin-script.
12455         * debug/Makefile (xtrace): Likewise.
12456         (catchsegv): Likewise.
12457         * elf/Makefile (ldd): Likewise.
12458         * malloc/Makefile (mtrace): Likewise.
12459         * timezone/Makefile (tzselect): Likewise.
12460
12461 2001-08-29  H.J. Lu  <hjl@gnu.org>
12462
12463         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12464         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12465         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12466
12467 2001-08-29  Andreas Schwab  <schwab@suse.de>
12468
12469         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12470
12471 2001-08-28  H.J. Lu  <hjl@gnu.org>
12472
12473         * Makeconfig (combreloc-LDFLAGS): New variable.
12474         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12475         * config.make.in (have-z-combreloc): New variable.
12476         * configure.in: Substitute libc_cv_z_combreloc.
12477
12478 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12479
12480         * po/sv.po: Update from translation team.
12481         * po/fr.po: Likewise.
12482         * po/da.po: Likewise.
12483
12484 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12485
12486         * Makerules: Fix a typo: MD% -> MD5.
12487
12488 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12489
12490         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12491         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12492
12493 2001-08-28  Andreas Jaeger  <aj@suse.de>
12494
12495         * manual/libc-texinfo.sh: Add entry about free manuals.
12496
12497         * manual/contrib.texi (Contributors): Fix cross reference.
12498
12499         * manual/libc.texinfo (Copying): Include freemanuals.
12500
12501         * manual/Makefile (appendices): Add freemanuals.
12502
12503         * manual/freemanuals.texi: New file.
12504         Patch by Brian Youmans <3diff@gnu.org>.
12505
12506         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12507         smaller table.
12508
12509         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12510         table on separate page.
12511         Patch by Brian Youmans <3diff@gnu.org>.
12512
12513 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12514
12515         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12516         the connection went down after we first used it try to connect
12517         again and resend the message before printing to the console.
12518         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12519
12520 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12521
12522         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12523         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12524         bit set.
12525
12526 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12527
12528         * iconv/strtab.c (searchstring): Use correct length for comparison.
12529         (strtabadd): Account total size correct if new string has old string as
12530         substring.
12531
12532 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12533
12534         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12535
12536 2001-08-27  Andreas Jaeger  <aj@suse.de>
12537
12538         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12539
12540         * math/libm-test.inc (j0_test): Add extra tests.
12541         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12542         not x, in Hankel approximation.
12543         Patches by Stephen L Moshier.
12544
12545 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12546
12547         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12548         link_map.
12549
12550         * configure.in: Fix test for .rela.dyn section.
12551
12552         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12553
12554 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12555
12556         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12557         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12558         Pass type_class to _dl_lookup_*.
12559         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12560         Pass around just type_class instead of noexec, noplt pair.
12561         (_dl_lookup_versioned_symbol): Likewise.
12562         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12563         noexec, noplt pair.
12564         (_dl_lookup_versioned_symbol_skip): Likewise.
12565         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12566         * elf/do-lookup.h (do_lookup): Likewise.
12567         * include/link.h (struct link_map): Replace noexec and noplt fields
12568         in l_lookup_cache with type_class field.
12569         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12570         ELF_RTYPE_CLASS_COPY): Define.
12571         Adjust prototypes for _dl_lookup_symbol and
12572         _dl_lookup_versioned_symbol.
12573         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12574         elf_machine_lookup_noexec_p): Remove.
12575         (elf_machine_type_class): Define.
12576         * sysdeps/arm/dl-machine.h: Likewise.
12577         * sysdeps/hppa/dl-machine.h: Likewise.
12578         * sysdeps/cris/dl-machine.h: Likewise.
12579         * sysdeps/i386/dl-machine.h: Likewise.
12580         * sysdeps/ia64/dl-machine.h: Likewise.
12581         * sysdeps/m68k/dl-machine.h: Likewise.
12582         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12583         * sysdeps/mips/dl-machine.h: Likewise.
12584         * sysdeps/powerpc/dl-machine.h: Likewise.
12585         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12586         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12587         * sysdeps/sh/dl-machine.h: Likewise.
12588         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12589         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12590
12591 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12592
12593         * manual/message.texi (Advanced gettext functions): Change
12594         description of plural forms for Slovak.
12595         Reported by Marcel Telka <marcel@telka.sk>.
12596
12597         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12598         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12599
12600 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12601
12602         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12603         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12604
12605 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12606
12607         * include/link.h (struct link_map): Add l_lookup_cache element.
12608         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12609         (RESOLVE_MAP): Likewise.
12610         (_dl_relocate_object): Remove cache initialization.
12611         * elf/dl-lookup.c: Rip out cache handling code.
12612         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12613         declarations.
12614
12615         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12616         remove some __builtin_expect.
12617         (_dl_lookup_versioned_symbol): Likewise.
12618
12619         * config.h.in: Add HAVE_Z_COMBRELOC.
12620         * configure.in: Add test for -z combreloc.
12621
12622         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12623         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12624         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12625         case to almost no code.
12626
12627 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12628
12629         * po/tr.po: Update from translation team.
12630
12631 2001-08-24  Andreas Jaeger  <aj@suse.de>
12632
12633         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12634         make clean works.
12635
12636 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12637
12638         * elf/rtld.c (print_statistics): Printf % after percent values.
12639         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12640
12641         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12642         don't have to compute the hash value and initialize current_value.
12643         Move reference_name variable to where it is needed.
12644         (_dl_lookup_versioned_symbol): Likewise.
12645
12646 2001-08-24  Roland McGrath  <roland@frob.com>
12647
12648         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12649         Just test that strerror returns non-null for a few errno codes.
12650
12651 2001-08-23  Roland McGrath  <roland@frob.com>
12652
12653         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12654         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12655
12656         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12657
12658         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12659         __mach_reply_port.
12660
12661 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12662
12663         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12664         returns NULL.
12665
12666         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12667         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12668         doesn't do it.
12669         * elf/rtld.c: Include <sys/param.h>.
12670         * elf/dl-reloc.c: Likewise.
12671
12672 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12673
12674         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12675         empty to prevent junk from being generated.
12676         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12677
12678 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12679
12680         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12681         records.  Rename endrel to relative, initialize it to r, and use it
12682         in elf_machine_rel_relative calls.  Point r after relative relocs.
12683
12684 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12685
12686         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12687         of R_386_NONE.
12688
12689 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12690
12691         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12692         necessary.  Undefine newly defined macros at the end.
12693         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12694         Rename from elf_machine_rel_relative.
12695         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12696         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12697         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12698         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12699         Likewise.
12700         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12701         Likewise.
12702         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12703         Fix argument types.
12704         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12705         Fix argument types.
12706         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12707         Likewise.  Fix argument types.
12708         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12709         Likewise.  Fix argument types.
12710         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12711         Fix argument types.
12712         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12713         ElfW(Rel) in argument.
12714         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12715         function.
12716
12717 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12718
12719         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12720
12721 2001-08-24  Andreas Jaeger  <aj@suse.de>
12722
12723         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12724         Stephen L Moshier <moshier@mediaone.net>.
12725
12726 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12727
12728         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12729         first if RELCOUNT is set.
12730
12731         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12732         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12733         elf_machine_rel_relative.
12734         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12735         Minor optimizations.
12736         * sysdeps/arm/dl-machine.h: Likewise.
12737         * sysdeps/cris/dl-machine.h: Likewise.
12738         * sysdeps/hppa/dl-machine.h: Likewise.
12739         * sysdeps/i386/dl-machine.h: Likewise.
12740         * sysdeps/ia64/dl-machine.h: Likewise.
12741         * sysdeps/m68k/dl-machine.h: Likewise.
12742         * sysdeps/mips/dl-machine.h: Likewise.
12743         * sysdeps/powerpc/dl-machine.h: Likewise.
12744         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12745         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12746         * sysdeps/sh/dl-machine.h: Likewise.
12747         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12748         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12749
12750 2001-08-23  Roland McGrath  <roland@frob.com>
12751
12752         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12753
12754         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12755         sysdeps/mach version.  Implement counting ("recursive") mutexes
12756         on top of cthreads mutexes.
12757         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12758
12759         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12760         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12761         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12762         __libc_clean_end): Define these to call the cleanup function after
12763         normal exit when they're supposed to.
12764
12765         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12766         Take new first arg DOIT, a boolean saying whether to really install
12767         any cleanup handler.
12768         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12769         (__libc_cleanup_end): Likewise.
12770         * sysdeps/generic/bits/libc-lock.h: Same changes.
12771         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12772         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12773         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12774         Likewise.
12775         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12776         * sysdeps/generic/bits/stdio-lock.h
12777         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12778
12779 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12780
12781         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12782
12783 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12784
12785         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12786         functions.
12787         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12788         lookups in cache.
12789         (_dl_lookup_versioned_symbol): Likewise.
12790         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12791         relocation lookup.
12792         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12793         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12794         (lookup_cache, lookup_cache_versioned): Add declarations.
12795
12796 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12797
12798         * stdlib/tst-random.c (main): Swap parameters in fail call.
12799         Patch by Pete Bevin <pete@petebevin.com>.
12800
12801 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12802
12803         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12804
12805 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12806
12807         * malloc/obstack.c: Indent preprocessor directives.
12808         Patch by Jim Meyering <meyering@ascend.com>.
12809
12810         * po/ja.po: Update from translation team.
12811
12812 2001-08-23  Roland McGrath  <roland@frob.com>
12813
12814         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12815
12816         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12817         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12818
12819 2001-08-22  Roland McGrath  <roland@frob.com>
12820
12821         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12822         __libc_lock_define_recursive.
12823         * elf/dl-open.c: Don't declare it here any more.
12824         * elf/dl-close.c: Likewise.
12825         * elf/dl-lookup.c: Likewise.
12826         * elf/dl-iteratephdr.c: Likewise.
12827         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12828         __libc_lock_unlock_recursive.
12829         * elf/dl-close.c (_dl_close): Likewise
12830         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12831         * elf/dl-open.c (_dl_open): Likewise
12832
12833         * sysdeps/generic/bits/libc-lock.h
12834         (__libc_lock_define_recursive): New macro.
12835         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12836         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12837         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12838
12839         * conform/conformtest.pl (checknamespace): Sort the output list.
12840
12841         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12842         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12843         definitions conditional on [__USE_XOPEN].
12844
12845         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12846         these unconditionally, not only use [__USE_BSD], so as to match
12847         the sysdeps/unix/sysv/linux files.
12848
12849 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12850
12851         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12852         avoid warnings.
12853
12854         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12855         DL_LOOKUP_ADDRESS.
12856
12857 2001-08-22  Roland McGrath  <roland@frob.com>
12858
12859         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12860         conditionalization of sa_handler/sa_sigaction member types to
12861         match the sysdeps/unix/sysv/linux file.
12862
12863 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12864
12865         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12866         symbol sizes a bit better.
12867
12868         * sysdeps/ia64/strncpy.S: Complete rewrite.
12869         Contributed by Jakub Jelinek <jakub@redhat.com>.
12870
12871         * string/stratcliff.c (main): Add strncpy test.
12872
12873 2001-08-22  Roland McGrath  <roland@frob.com>
12874
12875         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12876         and don't declare unsetenv or _environ directly.
12877         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12878
12879 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12880
12881         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12882         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12883         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12884         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12885         test for cmsg struct size.
12886
12887 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12888
12889         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12890         Rename __argc to ___argc in prototypes to avoid compatibility
12891         problems with systems that reserve the identifier "__argc".
12892         Similarly for __argv.
12893
12894 2001-08-21  Roland McGrath  <roland@frob.com>
12895
12896         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12897
12898         * mach/Makefile (tests): Removed.
12899         * mach/hello.c: File removed.
12900
12901 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12902
12903         * po/sv.po: Update from translation team.
12904
12905         * stdio-common/vfscanf.c: Fix handling of %l[].
12906         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12907
12908         * libio/Makefile (tests): Add tst-sscanf.
12909         * libio/tst-sscanf.c: New file.
12910
12911         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12912         * malloc/mtrace.c (tr_where): dli_sname always points to a
12913         non-empty string if != NULL.
12914         Reported by Tim Janik <timj@gtk.org>.
12915
12916 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12917
12918         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12919         buf.  Free resources on failure.
12920         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12921         (makefd_xprt): Likewise.
12922         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12923         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12924         * sunrpc/auth_unix.c (authunix_create): Likewise.
12925
12926 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12927
12928         * string/strnlen.c: Remove.
12929         * sysdeps/generic/strnlen.c: New file.
12930         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12931
12932 2001-08-21  Roland McGrath  <roland@frob.com>
12933
12934         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12935         as a macro, not an extern inline function.
12936
12937         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12938         * Versions.def (libc): Add GLIBC_2.2.5 set.
12939         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12940         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12941
12942 2001-08-20  Roland McGrath  <roland@frob.com>
12943
12944         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12945         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12946
12947 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12948
12949         * string/bits/string2.h: Remove strnlen optimization here.
12950         * sysdeps/i386/i486/bits/string.h: Add it here.
12951
12952 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12953
12954         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12955
12956 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12957
12958         * po/gl.po: Update from translation team.
12959
12960 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12961
12962         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12963         * misc/err.c (convert_and_print): Likewise.
12964
12965         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12966         function calls.
12967
12968 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12969
12970         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12971         change of the gregset_t type.
12972         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12973
12974 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12975
12976         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12977
12978 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12979
12980         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12981
12982         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12983
12984 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12985
12986         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12987         before calling the cthreads initialization code.
12988
12989 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12990
12991         * argp/argp-help.c: Fix two problems introduced in last change.
12992
12993         * include/dirent.h: Include <dirstream.h> first.
12994
12995 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12996
12997         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12998
12999         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13000         * sunrpc/xdr_rec.c: Likewise.
13001         * sunrpc/xdr_mem.c: Likewise.
13002         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13003         * sunrpc/rpc_cmsg.c: Likewise.
13004         * sunrpc/getrpcport.c (getrpcport): Likewise.
13005         * sunrpc/clnt_simp.c (callrpc): Likewise.
13006         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13007         * string/envz.c: Likewise.
13008
13009         * po/ko.po: Update from translation team.
13010
13011         * argp/argp-help.c: Handle wide oriented stderr stream.
13012
13013 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13014
13015         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13016         __builtin_expect.
13017
13018         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13019
13020         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13021         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13022         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13023
13024         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13025
13026         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13027
13028         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13029
13030         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13031         wchar_t for function declarations and defintions.
13032
13033         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13034         Define suseconds_t if it hasn't happened yet.
13035
13036         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13037
13038         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13039
13040         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13041         <stddef.h>.
13042
13043         * conform/data/stddef.h-data: Remove wint_t.
13044
13045         * conform/conformtest.pl: Change namespace test to take #undef
13046         lines into account.
13047
13048         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13049
13050         * conform/data/sys/socket.h-data: Add sockatmark.
13051
13052 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13053
13054         * io/fts.c: Update from recent BSD source.
13055
13056 2001-08-17  Roland McGrath  <roland@frob.com>
13057
13058         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13059         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13060         Likewise.
13061
13062 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13063
13064         * locale/duplocale.c (__duplocale): Also initialize the special
13065         __ctype_* elements.
13066
13067         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13068
13069 2001-08-17  Andreas Jaeger  <aj@suse.de>
13070
13071         * misc/getpass.c: Include wchar.h for prototypes.
13072         * malloc/obstack.c: Likewise.
13073
13074 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13075
13076         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13077
13078         * wcsmbs/wcscoll.c: Also define __wcscoll.
13079         * include/wchar.h: Declare __wcscoll.
13080
13081         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13082         * libio/vwprintf.c: Likewise.
13083         * libio/wprintf.c: Likewise.
13084
13085         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13086
13087 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13088
13089         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13090         instead of mbrtowc.
13091         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13092         wcslen, and __wcscoll instead of wcscoll.
13093
13094         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13095
13096         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13097         __getuid instead of getuid.
13098
13099         * stdio-common/perror.c (perror): Use __close instead of close.
13100         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13101         * libio/freopen.c (freopen): Likewise.
13102         * libio/freopen64.c (freopen64): Likewise.
13103
13104         * libio/tst-ungetwc2.c (main): Define str const.
13105
13106         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13107         * libio/fwprintf.c: Also define __fwprintf.
13108         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13109         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13110         * assert/assert-perr.c: Likewise.
13111         * assert/assert.c: Likewise.
13112         * gmon/gmon.c: Likewise.
13113         * inet/rcmd.c: Likewise.
13114         * malloc/obstack.c: Likewise.
13115         * misc/err.c: Likewise.
13116         * misc/error.c: Likewise.
13117         * misc/getpass.c: Likewise.
13118         * posix/getopt.c: Likewise.
13119         * resolv/res_hconf.c: Likewise.
13120         * stdio-common/perror.c: Likewise.
13121         * stdio-common/psignal.c: Likewise.
13122         * stdlib/fmtmsg.c: Likewise.
13123         * sunrpc/auth_unix.c: Likewise.
13124         * sunrpc/clnt_perr.c: Likewise.
13125         * sunrpc/clnt_tcp.c: Likewise.
13126         * sunrpc/clnt_udp.c: Likewise.
13127         * sunrpc/clnt_unix.c: Likewise.
13128         * sunrpc/svc_simple.c: Likewise.
13129         * sunrpc/svc_tcp.c: Likewise.
13130         * sunrpc/svc_udp.c: Likewise.
13131         * sunrpc/svc_unix.c: Likewise.
13132         * sunrpc/xdr.c: Likewise.
13133         * sunrpc/xdr_array.c: Likewise.
13134         * sunrpc/xdr_rec.c: Likewise.
13135         * sunrpc/xdr_ref.c: Likewise.
13136         * sysdeps/generic/wordexp.c: Likewise.
13137
13138         * po/it.po: Update from translation team.
13139
13140         * misc/err.c: Handle wide oriented stderr stream.
13141
13142 2001-08-14  Tom Rix  <trix@redhat.com>
13143
13144         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13145         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13146
13147 2001-08-13  Tom Rix  <trix@redhat.com>
13148
13149         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13150         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13151         and __intptr_t.
13152
13153 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13154
13155         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13156         Store the access registers to the ucontext structure.
13157         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13158         Likewise.
13159
13160         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13161         Load the access registers from the ucontext structure.
13162         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13163         Likewise.
13164
13165         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13166         offsets to the new ucontext layout.
13167         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13168
13169         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13170         of the ucontext structure.
13171         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13172
13173 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13174
13175         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13176         (error_at_line): Likewise.
13177
13178         * stdio-common/perror.c (perror): Implement according to standard.
13179         The stream orientation must not be changed if the stream was not
13180         oriented before the call.
13181         * stdio-common/Makefile (tests): Add tst-perror.
13182         * stdio-common/tst-perror.c: New file.
13183
13184
13185 See ChangeLog.12 for earlier changes.