(sysdep_routines, shared-only-routines): Don't add divdi3 here.
[glibc.git] / ChangeLog
blob185ce4dac25f63809fd25df21f4560a250981c74
1 2002-09-22  Bruno Haible  <bruno@clisp.org>
3         * iconvdata/tst-e2big.c: New file.
4         * iconvdata/Makefile (tests): Add tst-e2big.
6 2002-09-23  Roland McGrath  <roland@redhat.com>
8         * elf/Makefile (test-extras): Define this instead of test-srcs.
9         * Makerules (all-nonlib): Include $(test-extras) too.
11 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
13         * sysdeps/hppa/abort-instr.h: New file.
15 2002-09-22  Roland McGrath  <roland@frob.com>
17         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
19         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
21 2002-09-22  Andreas Schwab  <schwab@suse.de>
23         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
25         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
26         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
27         Use GCC builtins.
29 2002-09-21  Roland McGrath  <roland@redhat.com>
31         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
32         Correct the value so it covers all platforms, and is computed
33         from _DL_PLATFORMS_COUNT rather than hard-wired.
34         From Andrew Suffield <asuffield@debian.org>.
36 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
38         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
39         locking when using mount tab file.
40         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
41         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
42         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
44         * elf/dl-init.c (_dl_init): Fix test of the size of the
45         preinit_array section.
46         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
47         Reported by Brian Cabral <cabral@ikuni.com>.
49 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
51         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
52         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
53         specific macros copied from sysdeps/powerpc/sysdep.h.
54         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
55         specific macros.
56         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
57         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
58         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
60 2002-09-19  Bruno Haible  <bruno@clisp.org>
62         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
63         returning.
65 2002-09-17  Bruno Haible  <bruno@clisp.org>
67         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
68         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
69         also on platforms with !HAVE_UT_TYPE.
70         (proc_utmp_eq): Remove function.
71         (internal_getut_r, pututline_file): Call __utmp_equal instead.
73 2002-09-20  Bruno Haible  <bruno@clisp.org>
75         * abi-tags: Add support for FreeBSD with ABI OS value 3.
76         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
78 2002-09-20  Roland McGrath  <roland@redhat.com>
80         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
81         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
82         terms of __WORDSIZE.
83         * sysdeps/x86_64/gmp-mparam.h: File removed.
84         * sysdeps/sparc/gmp-mparam.h: File removed.
85         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
86         * sysdeps/ia64/gmp-mparam.h: File removed.
87         * sysdeps/alpha/gmp-mparam.h: File removed.
89 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
91         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
92         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
93         casts.  Align __libc_stack_end to 8 bytes.
95 2002-09-20  Roland McGrath  <roland@redhat.com>
97         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
98         instead of asm for lrintf, __lrintf aliases.
100         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
101         int array for 32-/64-bit compatibility.
102         From Steven Munroe  <sjmunroe@us.ibm.com>.
104 2002-09-17  Bruno Haible  <bruno@clisp.org>
106         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
107         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
108         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
109         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
110         for iterating through the list of interfaces.
111         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
113 2002-09-20  Roland McGrath  <roland@redhat.com>
115         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
116         Reported by Bruno Haible <bruno@clisp.org>.
118         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
120         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
121         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
122         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
124 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
126         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
127         * sysdeps/powerpc/bits/wordsize.h: New file.
128         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
129         array to int array for 32-/64-bit compatibility.
131 2002-09-20  Roland McGrath  <roland@redhat.com>
133         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
135         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
136         Reported by Bruno Haible <bruno@clisp.org>.
138         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
139         before doubling RQ_LEN.
140         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
141         Reported by Bruno Haible <bruno@clisp.org>.
143 2002-09-18  Bruno Haible  <bruno@clisp.org>
145         * login/logout.c (logout): Don't assume ut_time has the same size as
146         a time_t.
147         * login/logwtmp.c (logwtmp): Likewise.
149         * sysdeps/pthread/configure: New file, moved here from
150         linuxthreads/sysdeps/unix/sysv/linux/configure.
152 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
154         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
155         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
156         Reported by Glen Nakamura <glen@imodulo.com>.
158 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
160         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
161         thread's sigstate data structure if it has been allocated.
163 2002-09-19  Roland McGrath  <roland@redhat.com>
165         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
166         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
168 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
170         * version.h (VERSION): Bump to 2.2.94.
172         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
173         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
174         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
177         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
179         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
181         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
185 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
187         * sysdeps/wordsize-32/Makefile: New file.
188         * sysdeps/arm/Makefile: Removed.
189         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
190         Don't add divdi3 here.
191         * sysdeps/m68k/Makefile: Likewise.
192         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
193         * sysdeps/sh/Makefile: Likewise.
194         * sysdeps/s390/s390-32/Makefile: Likewise.
196 2002-09-18  Roland McGrath  <roland@redhat.com>
198         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
199         the __ctype_* compat symbols, so the relocs generated bind to the
200         right versioned global symbol in the shared object.
202         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
203         from the value taken from the DT_VERSYM table.
204         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
205         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
206         (RESOLVE_GOTSYM): Likewise.
208         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
209         Add libc_hidden_def.
210         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
211         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
212         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
213         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
214         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
215         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
216         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
217         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
219 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
221         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
223         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
224         define sigaction and __sigaction as wrappers around
225         __libc_sigaction which rejects changing SIGCANCEL.
226         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
228         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
229         SETTID/CLEARTID.
231         * signal/allocrtsig.c: Move to...
232         * sysdeps/generic/allocrtsig.c: ...here.  New file.
234 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
236         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
238         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
239         R_386_TLS_LE): Define.
240         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
241         comments.
242         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
243         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
244         (elf_machine_rel): Handle R_386_TLS_TPOFF.
245         (elf_machine_rela): Likewise.
246         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
248 2002-09-17  Roland McGrath  <roland@redhat.com>
250         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
251         file-specific variable override so it compiles properly when using
252         --with-headers.
254 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
256         Ported to PowerPC64 running Linux.
257         * sysdeps/powerpc/powerpc64/Dist: New file.
258         * sysdeps/powerpc/powerpc64/Implies: New file.
259         * sysdeps/powerpc/powerpc64/Makefile: New file.
260         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
261         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
262         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
263         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
264         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
265         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
266         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
267         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
268         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
269         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
270         * sysdeps/powerpc/powerpc64/memset.S: New file.
271         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
272         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
273         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
274         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
275         * sysdeps/powerpc/powerpc64/strchr.S: New file.
276         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
277         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
278         * sysdeps/powerpc/powerpc64/strlen.S: New file.
279         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
280         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
281         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
282         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
291         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
292         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
293         various gcc versions.  Dot names required for powerpc64.
294         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
295         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
296         C_SYMBOL_DOT_NAME(alias).
297         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
298         original strong_alias macro.
299         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
300         C_SYMBOL_DOT_NAME(alias).
301         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
302         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
303         '.'ed name.
304         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
305         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
306         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
307         (hidden_def): Append hidden_dot_def1 macro to definition.
308         (hidden_ver): Append hidden_dot_def1 macro to definition.
309         (hidden_data_def): New macro.  Same as original hidden_def macro.
310         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
311         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
312         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
313         (hidden_weak): Append hidden_dot_weak1 macro to definition.
314         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
315         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
316         Otherwise defined as __GI_name.
317         (libc_hidden_data_def): New macro.  Use hidden_data_def.
318         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
319         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
320         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
321         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
322         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
323         (libm_hidden_data_def): New macro.  Use hidden_data_def.
324         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
325         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
326         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
328 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
330         * include/libc-symbols.h: Change *hidden_proto macros to accept
331         option parameters and pass those to the attribute definition.
332         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
334         * include/unistd.h: Declare __libc_pause.
336         * include/sys/socket.h: Declare __libc_send, __libc_recv,
337         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
339         * include/unistd.h: Declare __libc_fork.
341 2002-09-17  Roland McGrath  <roland@redhat.com>
343         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
344         (passwd2des): Define it as an alias.
345         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
347 2002-09-12  Bruno Haible  <bruno@clisp.org>
349         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
350         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
352         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
353         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
355 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
357         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
358         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
359         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
360         PowerPC64 does not have separate 64-bit syscalls.
362 2002-09-16  Roland McGrath  <roland@redhat.com>
364         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
367         New macro.
369         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
371         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
372         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
373         * sysdeps/generic/_exit.c: Likewise.
375 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
377         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
379         * elf/rtld.c (struct dl_start_final_info): New.
380         (_dl_start_final): Change second argument to struct
381         dl_start_final_info *.  Set start_time from info.
382         (_dl_start): Remove bootstrap_map variable, add info.
383         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
384         store HP_TIMING_NOW result into info.start_time.
386 2002-09-16  Andreas Jaeger  <aj@suse.de>
388         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
389         to _Exit.
390         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
392 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
394         * sysdeps/powerpc/abort-instr.h: New file.
396 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
398         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
399         comment.
401         * test-skeleton.c (main): Provide more information in case waitpid
402         fails.
404         * include/unistd.h: Declare __exit_thread.
405         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
406         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
407         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
408         * sysdeps/unix/sysv/linux/_exit.c: New file.
409         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
410         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
411         Add exit-thread.
413         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
415 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
417         * sysdeps/i386/dl-machine.h (elf_machine_rel)
418         (case R_386_TLS_DTPMOD32): Don't use addend.
419         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
420         (elf_machine_rela): Add support for TLS relocs.
422 2002-09-14  Roland McGrath  <roland@redhat.com>
424         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
426 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
428         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
429         specific asm macros for multiple percision integer math.
431 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
433         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
434         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
435         Remove per-machine conditionals for FLAG_* cases.
436         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
437         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
440 2002-09-10  Alan Modra <amodra@bigpond.net.au>
442         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
443         defined in entry.h.
444         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
445         lowest address for profiling in  __monstartup call.
446         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
448 2002-09-14  Roland McGrath  <roland@redhat.com>
450         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
451         instead of __NR_pread.
452         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
453         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
454         instead of __NR_pwrite.
455         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
457 2002-09-13  Roland McGrath  <roland@redhat.com>
459         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
461 2002-09-13  Andreas Jaeger  <aj@suse.de>
463         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
464         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
466 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
468         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
470 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
472         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
473         reading the headers.
475 2002-09-12  Roland McGrath  <roland@redhat.com>
477         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
478         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
479         find the ELF header.
481         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
482         executable if needed, in case it's actually a shared object.
484 2002-09-11  Roland McGrath  <roland@redhat.com>
486         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
487         l_map_start to adjust l_tls_initimage.
489         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
490         when using h_errno and it's not set to NETDB_INTERNAL.
491         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
493         * Makefile ($(common-objpfx)testrun.sh): New target.
494         (others): Depend on it.
495         (postclean-generated): Append it.
497         * nss/bug-erange.c: New file.
498         * nss/Makefile (tests): Add it.
500         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
501         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
503         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
504         strncmp, keeps the code smaller for a non-performance-critical case.
506         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
507         no longer wrongly matches arbitrary prefixes of NAME.
508         Reported by Jakub Jelinek <jakub@redhat.com>.
510 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
512         * posix/bug-regex11.c (tests): New array.
513         (main): Rewritten to run more different tests.
515 2002-09-10  Roland McGrath  <roland@redhat.com>
517         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
518         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
519         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
521         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
522         well so we don't get it declared by include/math.h's hidden_proto.
523         Then do hidden_proto for __isnanf locally so hidden_def works right.
525         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
526         a cast to turn nl_langinfo return value into an integer.
528 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
530         * posix/regexec.c (build_trtable): Fix the destination of
531         newline to prevent wrong states from overwriting.
532         Append break statements to optimization.
534 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
536         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
537         (build_range_exp): Add castings to strlen invocations.
538         (build_collating_symbol): Restore the type of characters from "char"
539         to "unsigned char", and supplement castings.
540         (build_collating_symbol): Likewise.
541         (build_equiv_class): Likewise.
542         (build_charclass): Likewise.
543         (seek_collating_symbol_entry): Likewise.
544         (parse_bracket_exp): Likewise.
545         (build_word_op): Supplement a casting.
546         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
547         (re_string_allocate): Fix castings.
548         (re_string_construct): Likewise.
549         (re_string_construct_common): Likewise.
550         (re_string_realloc_buffers): Likewise.
551         (build_wcs_buffer): Likewise.
552         (build_wcs_upper_buffer): Likewise.
553         (re_string_skip_chars): Likewise.
554         (re_string_reconstruct): Likewise.
555         * posix/regex_internal.h: Restore the type of characters in
556         re_string_t and bracket_elem_t from "char" to "unsigned char".
557         (re_string_elem_size_at): Fix castings.
558         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
559         (transit_state_bkref_loop): Restore the type of characters from
560         "char" to "unsigned char", and append a cast to "char*" pointer in
561         array subscript.
562         (check_node_accept_bytes): Likewise.
563         (find_collation_sequence_value): Likewise.
565 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
567         * sysdeps/mips/memcpy.S: New file.
568         * sysdeps/mips/memset.S: New file.
569         * sysdeps/mips/fpu/e_sqrt.c:  New file.
570         * sysdeps/mips/fpu/e_sqrtf.c: New file.
572         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
573         functional before. Also removed all SHLIB_COMPAT stuff.
574         * fpu/fegetenv.c: Likewise.
575         * fpu/fesetenv.c:: Likewise.
576         * fpu/feupdateenv.c: Likewise.
577         * fpu/fgetexcptflg.c: Likewise.
578         * fpu/fraiseexcpt.c: Likewise.
580         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
582 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
584         * include/math.h (__finite_internal, __finitef_internal,
585         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
586         (isfinite): Remove.
587         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
588         __isinfl, __isnanl): Add hidden_proto.
589         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
590         libm_hidden_proto.
591         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
592         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
593         __is{inf,nan} calls.
594         * stdio-common/printf_size.c (printf_size): Likewise.
595         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
596         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
597         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
598         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
599         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
600         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
601         (__finite): Add hidden_def.
602         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
603         (__finitef): Add hidden_def.
604         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
605         (__finitel): Add hidden_def.
606         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
607         hidden_def.
608         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
609         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
610         libm_hidden_def.
611         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
612         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
613         hidden_def.
614         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
615         (__isinfl): Remove INTDEF.
616         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
617         hidden_def.
618         (__isnanl): Remove INTDEF.
619         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
620         libm_hidden_def.
621         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
622         instead of sin and cos.
623         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
624         Add hidden_def.
625         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
626         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
627         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
628         libm_hidden_def.
629         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
630         Add hidden_def.
631         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
632         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
633         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
634         libm_hidden_def.
635         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
636         libm_hidden_def.
637         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
638         Add hidden_def.
639         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
640         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
641         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
642         libm_hidden_def.
643         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
644         __finitel_internal): Remove aliases.
645         (__finite, __finitef, __finitel): Add hidden_def.
646         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
647         __isnanl_internal): Remove aliases.
648         (__isnan, __isnanf, __isnanl): Add hidden_def.
649         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
650         __isinfl_internal): Remove aliases.
651         (__isinf, __isinff, __isinfl): Add hidden_def.
652         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
653         __fpclassifyl): Add libm_hidden_def.
654         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
655         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
656         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
657         (hidden_defx): Define and use.
658         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
659         libm_hidden_def.
660         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
661         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
662         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
663         Remove INTDEF.
664         (__isnan, __isnanf): Add hidden_def.
665         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
666         (__finitel): Add libm_hidden_def.
667         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
669         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
670         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
671         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
672         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
673         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
674         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
675         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
676         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
677         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
678         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
679         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
680         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
681         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
682         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
683         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
684         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
685         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
686         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
687         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
688         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
689         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
690         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
691         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
692         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
693         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
694         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
695         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
697 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
699         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
701 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
703         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
704         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
706 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
708         * string/stratcliff.c: Some more strncpy tests.
709         Patch by Daniel Jacobowitz <drow@mvista.com>.
711 2002-09-08  Roland McGrath  <roland@redhat.com>
713         * resolv/resolv.h: Include <sys/types.h> for u_long even in
714         the [__need_res_state] case.
715         Reported by Bruno Haible <bruno@clisp.org>.
717 2002-09-04  Bruno Haible  <bruno@clisp.org>
719         * sysdeps/generic/bits/ustat.h: Comment fix.
720         * io/sys/sendfile.h: Comment fix.
721         * sysdeps/posix/pread.c: Comment fix.
722         * sysdeps/posix/pread64.c: Comment fix.
723         * sysdeps/posix/pwrite.c: Comment fix.
724         * sysdeps/posix/pwrite64.c: Comment fix.
726 2002-09-06  Roland McGrath  <roland@redhat.com>
728         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
729         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
730         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
731         (_UTSNAME_MACHINE_LENGTH): Likewise.
732         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
734 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
736         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
737         test for filesystem type name of mount points.
739         * include/errno.h: Use errno definition with __thread for now only
740         in libc and ld.so.
742         * test-skeleton.c (main): Improve error message for unexpected
743         signal case.
745 2002-09-05  Roland McGrath  <roland@redhat.com>
747         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
748         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
750 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
752         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
753         case of failure.
755 2002-09-04  Bruno Haible  <bruno@clisp.org>
757         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
758         sigset_get_old_mask): Turn into inline functions.
759         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
760         sigset_get_old_mask): Likewise.
761         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
762         sigset_get_old_mask): Likewise.
763         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
764         syntax.
766         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
768         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
769         default definitions.
770         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
771         _sys_nerr_internal instead of _sys_nerr.
773         * nscd/connections.c (handle_request): Declare CALLER inside #if.
775 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
777         * sysdeps/powerpc/__longjmp.S: Moved to...
778         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
779         * sysdeps/powerpc/add_n.S: Moved to...
780         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
781         * sysdeps/powerpc/addmul_1.S: Moved to...
782         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
783         * sysdeps/powerpc/atomicity.h: Moved to...
784         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
785         * sysdeps/powerpc/backtrace.c: Moved to...
786         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
787         * sysdeps/powerpc/bp-asm.h: Moved to...
788         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
789         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
790         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
791         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
792         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
793         * sysdeps/powerpc/dl-machine.c: Moved to...
794         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
795         * sysdeps/powerpc/dl-machine.h: Moved to...
796         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
797         * sysdeps/powerpc/dl-start.S: Moved to...
798         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
799         * sysdeps/powerpc/gprrest0.S: Moved to...
800         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
801         * sysdeps/powerpc/gprrest1.S: Moved to...
802         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
803         * sysdeps/powerpc/gprsave0.S: Moved to...
804         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
805         * sysdeps/powerpc/gprsave1.S: Moved to...
806         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
807         * sysdeps/powerpc/lshift.S: Moved to...
808         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
809         * sysdeps/powerpc/memset.S: Moved to...
810         * sysdeps/powerpc/powerpc32/memset.S: ...here.
811         * sysdeps/powerpc/mul_1.S: Moved to...
812         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
813         * sysdeps/powerpc/ppc-mcount.S: Moved to...
814         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
815         * sysdeps/powerpc/register-dump.h: Moved to...
816         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
817         * sysdeps/powerpc/rshift.S: Moved to...
818         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
819         * sysdeps/powerpc/setjmp.S: Moved to...
820         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
821         * sysdeps/powerpc/stpcpy.S: Moved to...
822         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
823         * sysdeps/powerpc/strchr.S: Moved to...
824         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
825         * sysdeps/powerpc/strcmp.S: Moved to...
826         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
827         * sysdeps/powerpc/strcpy.S: Moved to...
828         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
829         * sysdeps/powerpc/strlen.S: Moved to...
830         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
831         * sysdeps/powerpc/sub_n.S: Moved to...
832         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
833         * sysdeps/powerpc/submul_1.S: Moved to...
834         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
835         * sysdeps/powerpc/elf/bzero.S: Moved to...
836         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
837         * sysdeps/powerpc/elf/start.S: Moved to...
838         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
839         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
840         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
841         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
842         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
843         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
844         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
845         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
846         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
847         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
848         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
849         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
850         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
851         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
853         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
855         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
857         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
859         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
861         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
863         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
865         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
866         powerpc/powerpc64.
868 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
870         * FAQ.in: Add powerpc64 to supported targets list. Also state the
871         minimum gcc version is 3.2
872         * README: Add powerpc64 to supported targets list.
873         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
874         Add powerpc64 and machine=powerpc/powerpc64.
875         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
876         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
877         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
878         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
879         * sysdeps/powerpc/powerpc32/Dist: New file.
880         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
881         * sysdeps/powerpc/powerpc32/Implies: New file.
882         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
883         ($(with-fp) = no): Move test to powerpc32/Makefile.
884         ($(subdir) = misc): Move to powerpc32/Makefile.
885         ($(build-shared) = yes): Move to powerpc32/Makefile.
886         ($(subdir) = csu): Move to powerpc32/Makefile.
887         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
888         * sysdeps/powerpc/powerpc32/Makefile: New file.
889         * sysdeps/powerpc/Versions: Remove libgcc functions.
890         * sysdeps/powerpc/powerpc32/Versions: New file.
891         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
892         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
893         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
894         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
895         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
896         ($machine): Add powerpc/powerpc64 to if ... | for
897         libc_cv_slibdir=/libc64.
898         (powerpc*): Set ldd_rewrite_script.
899         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
900         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
902         Add clone.S.
903         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
904         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
905         functions.  Remove GLIBC_2.2 functions except getrlimit and
906         setrlimit.  Moved them to ...
907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
909 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
911         * libio/tst-atime.c: Include <errno.h>.
912         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
914 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
916         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
917         warnings of some compilers.
918         (build_collating_symbol): Change the type of characters from
919         "unsigned char" to "char", and append a cast to "char*" pointer in
920         array subscript.
921         (build_collating_symbol): Likewise.
922         (build_equiv_class): Likewise.
923         (build_charclass): Likewise.
924         (re_compile_pattern): Remove incorrect cast.
925         (re_compile_fastmap_iter): Change the type of characters from
926         "unsigned char" to "char", and append a cast to "char*" pointer
927         in array subscript.
928         (parse_bracket_exp): Likewise.
929         * posix/regex_internal.c (re_string_construct_common): Likewise.
930         (re_string_allocate): Likewise.
931         (re_string_construct): Likewise.
932         (re_string_realloc_buffers): Likewise.
933         (build_wcs_buffer): Likewise.
934         (re_string_reconstruct): Likewise.
935         * posix/regex_internal.h: Change the type of characters in
936         re_string_t and bracket_elem_t from "unsigned char" to "char".
937         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
938         warnings of some compilers.
939         (transit_state_bkref_loop): Change the type of characters from
940         "unsigned char" to "char", and append a cast to "char*" pointer in
941         array subscript.
942         (check_node_accept_bytes): Likewise.
943         (find_collation_sequence_value): Likewise.
945 2002-09-04  Roland McGrath  <roland@redhat.com>
947         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
948         from 1024 to 65536, to avoid buffer overrun.
950 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
952         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
954 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
956         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
957         for filesystem.
959 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
961         * posix/bug-regex11.c: New test.
962         * posix/Makefile (tests): Add bug-regex11.
964 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
966         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
967         newlocale.
969 2002-09-02  Roland McGrath  <roland@redhat.com>
971         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
972         __pthread_initialize_minimal and __libc_check_standard_fds to
973         match the generic version.
975         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
976         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
978         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
979         warnings on platorms where char is unsigned.
981 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
983         * version.h (VERSION): Bump to 2.2.93.
985         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
987 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
989         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
990         as relocated.
992 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
994         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
996 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
998         * locale/localeinfo.h (struct locale_data): Add private.ctype.
999         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1000         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1001         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1002         (__wcsmbs_load_conv): Remove const from argument.
1003         (_nl_cleanup_ctype): New proto.
1004         (get_gconv_fcts): New function.
1005         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1006         (__wcsmbs_to_wc): Rename back to...
1007         (to_wc): ... this.
1008         (__wcsmbs_gconv_fcts): Rename to...
1009         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1010         (lock): Removed.
1011         (__libc_setlocale_lock): New extern.
1012         (__wcsmbs_load_conv): Remove const from argument.
1013         Initialize new_category->private.ctype instead of a global
1014         variable.
1015         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1016         update_function_ptrs.  No locking is necessary.
1017         (_nl_cleanup_ctype): New function.
1018         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1019         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1020         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1021         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1022         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1023         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1024         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1025         * wcsmbs/wctob.c (wctob): Likewise.
1026         * stdlib/mblen.c (mblen): Likewise.
1027         * stdlib/mbtowc.c (mbtowc): Likewise.
1028         * stdlib/wctomb.c (wctomb): Likewise.
1029         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1030         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1031         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1032         Removed.
1034 2002-09-02  Roland McGrath  <roland@frob.com>
1036         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1038 2002-09-01  Roland McGrath  <roland@redhat.com>
1040         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1041         Variable declarations removed.
1042         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1043         these functions to replace them.
1044         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1045         functions plus an indirection rather than the old global variables.
1046         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1047         Macros removed.
1048         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1049         inline functions.
1050         * ctype/ctype-info.c: Revert last reversion back the other way.
1051         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1052         Define real function versions of include/ctype.h inlines here.
1053         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1054         __ctype_tolower_loc, __ctype_toupper_loc.
1055         * locale/lc-ctype.c: Revert last reversion back the other way.
1056         (_nl_postload_ctype): If current thread uses the global locale,
1057         update its tsd vars.
1058         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1059         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1060         CTYPE_TOLOWER, CTYPE_TOUPPER.
1062         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1063         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1064         from __libc_tsd_threadvar_location.
1065         (__libc_tsd_set, __libc_tsd_get): Update uses.
1067 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1069         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1070         macro definitions for the standard functions to access the
1071         classification and mapping arrays.
1072         * include/ctype.h: Partly revert last patch.  Move the macro
1073         definitions for the exported functions back to the public header.
1074         #undef all the macros defined here before redefining.
1075         * ctype/ctype-info.c: Revert last patch.
1076         * locale/lc-ctype.c: Revert last patch.
1078         * ctype/Makefile (routines): Add isctype.
1079         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1080         * ctype/ctype.h: Add declaration of isctype.
1081         * include/ctype.h: Declare __isctype.
1082         * ctype/isctype.c: New file.
1084 2002-09-01  Roland McGrath  <roland@redhat.com>
1086         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1087         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1089         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1091         * locale/findlocale.c (_nl_remove_locale): Don't search in
1092         _nl_locale_file_list if DATA->alloc is ld_archive.
1093         Use _nl_unload_locale to do the rest of the work.
1095         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1096         of new structure to UNDELETABLE.
1098         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1099         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1100         towlower, towupper): Macros removed.
1101         * ctype/ctype.h (__tobody): Put parens around macro argument.
1102         (__isctype): Macro removed.
1103         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1104         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1105         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1106         tolower, toupper): Macros and inlines removed.
1107         * include/ctype.h [! NOT_IN_libc]
1108         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1109         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1110         tolower, toupper): Define here instead, using _NL_CURRENT.
1111         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1112         using _NL_CURRENT.
1113         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1114         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1115         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1116         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1117         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1118         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1119         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1120         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1121         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1122         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1123         (ISSORTMASK): Update use.
1124         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1125         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1126         (_nss_files_getENTNAME_r): Likewise.
1127         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1128         Likewise.
1130         * Makerules (all-nonlib): Renamed from all-tests.
1131         Include $(others) here too.
1132         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1133         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1134         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1135         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1136         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1137         the program modules via cppflags-iterator.mk.
1138         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1139         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1141 2002-08-31  Roland McGrath  <roland@redhat.com>
1143         * posix/tst-getconf.sh: If no third arg, work with static linking.
1145         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1147         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1148         [_NL_CURRENT_INDIRECT].
1150 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1152         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1154 2002-08-31  Roland McGrath  <roland@redhat.com>
1156         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1157         Instead, make the single allocation of the structure larger to hold
1158         the name strings.
1159         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1160         Instead, calculate size for a single allocation and copy into it.
1161         * locale/freelocale.c (__freelocale): Don't free names individually.
1163         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1165         * locale/xlocale.h (__locale_struct): Move __names member last,
1166         for binary compatibility.
1168         * locale/duplocale.c (__duplocale): Free names from the right array.
1170         * locale/uselocale.c (__uselocale): Return previous locale when
1171         setting a new one.
1173         * locale/newlocale.c: Commit changes from 2002-08-30
1174         batch where I failed to commit this file:
1175         (__newlocale): Fill in __names array.
1177 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1179         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1180         errlist-compat.c if versioning==yes.
1182 2002-08-31  Andreas Jaeger  <aj@suse.de>
1184         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1185         external functions with hidden attribute.
1186         (elf_machine_rela): Optimize.
1188         * sysdeps/x86_64/memset.S: New file.
1189         * sysdeps/x86_64/bzero.S: New file.
1190         * sysdeps/x86_64/stpcpy.S: New file.
1191         * sysdeps/x86_64/strcat.S: New file.
1192         * sysdeps/x86_64/strchr.S: New file.
1193         * sysdeps/x86_64/strcpy.S: New file.
1194         * sysdeps/x86_64/strcspn.S: New file.
1195         * sysdeps/x86_64/strlen.S: New file.
1196         * sysdeps/x86_64/strpbrk.S: New file.
1197         * sysdeps/x86_64/strspn.S: New file.
1198         * sysdeps/x86_64/strcmp.S: New file.
1199         * sysdeps/x86_64/strtok_r.S: New file.
1200         * sysdeps/x86_64/strtok.S: New file.
1201         * sysdeps/x86_64/memcpy.S: New file.
1202         * sysdeps/x86_64/mempcpy.S: New file.
1204         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1206         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1208 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1210         * stdio-common/Makefile (generated): Add errlist-compat.c.
1212         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1214         * locale/localeinfo.h: Pretty printing.
1216         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1217         form_number handling.
1219 2002-08-31  Andreas Jaeger  <aj@suse.de>
1221         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1222         double tests.
1224         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1225         __start_context.
1227         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1229         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1231         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1232         registers used for passing args.
1234         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1235         all needed registers.
1237         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1238         registers.
1240         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1241         registers.
1243 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1245         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1246         always_inline attribute.
1248 2002-08-30  Roland McGrath  <roland@redhat.com>
1250         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1251         presume it's the stub and bail without error.
1253         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1254         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1256         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1258         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1259         macros replace the i686 versions for 64-bit mode.
1261         * locale/duplocale.c: Include <string.h>.
1263         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1264         [_LIBC] (category_to_name): Don't define the function.  Instead
1265         define a macro using _nl_category_names.
1267         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1268         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1269         * locale/global-locale.c (_nl_global_locale): Likewise.
1270         * locale/duplocale.c (__duplocale): strdup __names elements.
1271         * locale/freelocale.c (__freelocale): Free __names elements.
1272         * locale/localename.c (_nl_current_names): Variable removed.
1273         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1274         * locale/localeinfo.h (_nl_current_names): Removed decl.
1275         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1276         _nl_current_names throughout.
1278         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1280         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1281         and sys_nerr in the output file.
1283         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1284         * scripts/cpp: Just use the environment variable.
1286         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1287         * libio/tst-mmap-offend.c (do_test): Likewise.
1288         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1289         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1290         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1292         * locale/localename.c: If the current locale is the global locale, use
1293         _nl_current_names; otherwise use the locale object.
1295 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1297         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1298         'm' to enable mmap I/O.
1299         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1300         former wasn't used (anymore?).
1301         (_IO_FLAGS2_MMAP): New define.
1302         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1303         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1304         _IO_FLAGS2_MMAP bit is set.
1305         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1306         Enable mmap-using mode only if 'm' was set.
1308 2002-08-29  Roland McGrath  <roland@frob.com>
1310         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1312         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1313         Change argument type from int to intptr_t.
1315         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1316         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1317         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1318         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1319         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1321         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1323         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1325         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1327         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1328         * assert/assert-perr.c: Add libc_hidden_def.
1329         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1331         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1332         found at all.
1333         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1334         sys_errlist stuff to ...
1335         * sysdeps/unix/sysv/linux/Versions: ... here.
1337         * mach/mach.h: Include <features.h>.
1339 2002-08-29  Roland McGrath  <roland@redhat.com>
1341         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1342         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1343         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1345         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1347         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1348         (norm_add_slashes): alloca -> __alloca
1350 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1352         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1353         string_malloced, it is unlikely to be set.
1354         Only call free with non-NULL workspace.
1355         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1356         -mcpu=ultrasparc, not only tune for it.
1357         (ASFLAGS*): Set unconditionally.
1359         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1360         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1361         p_vaddr/p_offset when computing LOADADDR.
1363 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1365         * version.h (VERSION): Bump to 2.2.92.
1367         * time/Makefile (tst-ftime_l-ENV): New variable.
1369         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1371         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1372         <U017A>, <U017D> and <U0179>. Add missing mappings.
1373         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1375         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1376         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1377         (struct tostruct): Use ACRINDEX as type for link field.
1378         (statuc gmonparam): Likewise for froms.
1379         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1380         kcount and froms.
1381         (write_call_graph): Use correct type for from_index and to_index.
1382         * gmon/mcount.c: Use correct types for frompcindex and toindex
1383         variables.
1384         Patches by Dan Kegel <dank@kegel.com>.
1386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1387         canonical name.
1389         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1390         __isspace_l.  Replace calls to isspace.
1391         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1393 2002-08-29  Roland McGrath  <roland@redhat.com>
1395         * string/tst-strxfrm.c: Remove __ from function names.
1397 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1399         * include/wchar.h: Declare __mbsrtowcs_l.
1400         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1401         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1402         USE_IN_EXTENDED_LOCALE_MODEL.
1403         * wcsmbs/mbsrtowcs_l: New file.
1404         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1405         define as static.  Change all uses.
1406         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1407         Change all callers.
1408         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1409         * time/strftime.c: When translating for the extended locale model
1410         use the _l functions.
1411         * time/Makefile (tests): Add tst-ftime_l.
1412         * time/tst-ftime_l.c: New file.
1414 2002-08-28  Roland McGrath  <roland@redhat.com>
1416         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1417         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1418         from _nl_find_locale ok if for _nl_C_name.
1420         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1421         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1422         we know they are all linked in.
1424         * NEWS: Added 2.2.6 text from 2.2 branch version.
1426         * time/strptime.c (strptime_internal): Remove spurious const.
1428         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1429         _nl_select_era_entry): Moved to ...
1430         * time/era.c: ... here, new file.
1431         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1432         Add internal_function to definitions.  Take an additional argument
1433         giving the `struct locale_data *' to use.
1434         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1435         _nl_parse_alt_digit): Moved to ...
1436         * time/alt_digit.c: ... here, new file.
1437         * time/lc-time-cleanup.c: New file.
1438         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1439         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1440         (_nl_cleanup_time): Declare it.
1441         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1442         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1443         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1444         * time/strftime.c: Pass locale data to helper functions.
1445         * time/strptime.c: Likewise.
1447         * locale/localeinfo.h (struct locale_data): New member `private'
1448         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1449         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1450         * locale/C-collate.c: Update initializer.
1451         * locale/C-identification.c: Likewise.
1452         * locale/C-measurement.c: Likewise.
1453         * locale/C-telephone.c: Likewise.
1454         * locale/C-address.c: Likewise.
1455         * locale/C-name.c: Likewise.
1456         * locale/C-paper.c: Likewise.
1457         * locale/C-time.c: Likewise.
1458         * locale/C-numeric.c: Likewise.
1459         * locale/C-monetary.c: Likewise.
1460         * locale/C-messages.c : Likewise.
1461         * locale/C-ctype.c: Likewise.
1463         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1464         Redefine this too.
1466 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1468         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1469         (_rtld_global): Use it.
1471         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1472         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1473         object directory.  Pass all Versions files to the awk script.
1474         * sysdeps/gnu/errlist-compat.c: Removed.
1475         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1476         first Versions file in the search path which has them.
1477         Allow multiple errlist symbol versions to have the same count of
1478         errors.
1479         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1480         of "errlist-compat.c".
1481         * sysdeps/gnu/errlist.c: Regenerated.
1482         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1483         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1484         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1485         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1486         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1487         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1488         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1489         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1490         ECANCELLED if not defined by kernel headers.
1491         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1492         already defined by kernel headers.
1493         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1494         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1495         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1496         is a macro.
1497         * Versions.def (GLIBC_2.3) [librt]: Add.
1499         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1501 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1503         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1504         missing comma to .type directive.
1506 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1508         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1509         unconditionally.
1510         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1511         check.
1512         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1514 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1516         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1517         check to close_and_out close.  Replace return NULL statements where
1518         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1519         when it is no longer needed.
1521 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1523         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1524         string constants.
1525         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1526         * sysdeps/arm/dl-machine.h: Likewise.
1527         * sysdeps/cris/dl-machine.h: Likewise.
1528         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1529         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1531 2002-08-28  Roland McGrath  <roland@redhat.com>
1533         * Makeconfig (default_cflags): Revert unintended change.
1535 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1537         * version.h (VERSION): Bump to 2.2.91.
1539         * configure.in: Disable TLS support by default for now.
1541         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1543         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1544         warnings.
1546         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1548         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1549         fprintf/fwprintf calls.
1551 2002-08-28  Roland McGrath  <roland@redhat.com>
1553         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1554         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1556         * locale/setlocale.c: Declare postload functions weak.
1558         * elf/tst-tls1-static.c: New file.
1559         * elf/tst-tls2-static.c: New file.
1560         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1562         Make uselocale support static linking.
1563         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1564         This file again just defines _nl_C_locobj.
1565         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1566         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1567         using all weak references in the initializer.
1568         * locale/Makefile (aux): Add global-locale.
1569         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1570         these unconditional, along with the tsd decl.
1571         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1572         Define it under these conditions.
1573         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1574         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1575         `extern __thread struct locale_data *const *'.
1576         [NL_CURRENT_INDIRECT]
1577         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1578         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1579         the thread variable _nl_current_LC_FOO and also a special absolute
1580         symbol _nl_current_LC_FOO_used.
1581         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1582         Set each _nl_current_LC_FOO symbol to point into the new locale,
1583         using weak references to test if _nl_current_LC_FOO_used was linked in.
1584         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1585         [NL_CURRENT_INDIRECT]: ... with this one.
1586         (_nl_current, _nl_C): Variables removed.
1587         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1588         weak references to _nl_current_LC_FOO_used.
1589         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1590         (free_category): New function, broken out of ...
1591         (free_mem): ... here.  Call that.
1592         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1593         instead of a loop.
1595         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1596         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1597         it is already absolute.
1599         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1600         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1601         [$(build-static) = yes] (tests-static): New variable.
1602         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1604 2002-08-26  Christoph Hellwig  <hch@lst.de>
1606         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1607         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1609 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1611         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1613         * sysdeps/s390/Dist: Add bits/link.h.
1615         * sysdeps/sh/Dist: New file.
1617         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1619         * sysdeps/wordsize-32/Dist: New file.
1621         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1622         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1623         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1625         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1626         sys/personality.h.
1628         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1629         sparc/dl-brk.S.
1631         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1633         * sysdeps/unix/bsd/sun/Dist: New file.
1635         * sysdeps/unix/bsd/osf/Dist: New file.
1637         * sysdeps/unix/bsd/hp/Dist: New file.
1639         * sysdeps/unix/arm/Dist: New file.
1641         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1643         * sysdeps/mach/hurd/Dist: Add set-init.c.
1645         * sysdeps/i386/Dist: Add bits/link.h.
1647         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1649         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1651         * locale/Makefile (distribute): Add hashval.h.
1653         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1655         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1657         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1658         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1659         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1660         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1661         implementations.
1662         * libio/stdio.h: Likewise.
1663         * locale/locale.h: Likewise.
1664         * math/math.h: Likewise.
1665         * math/bits/mathcalls.h: Likewise.
1666         * setjmp/setjmp.h: Likewise.
1667         * signal/signal.h: Likewise.
1668         * stdlib/stdlib.h: Likewise.
1669         * string/string.h: Likewise.
1670         * time/time.h: Likewise.
1671         * wcsmbs/wchar.h: Likewise.
1672         * wctype/wctype.h: Likewise.
1674 2002-08-28  Roland McGrath  <roland@redhat.com>
1676         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1678 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1679             Roland McGrath <roland@redhat.com>
1681         * locale/hashval.h (compute_hashval): Use prototype defn.
1682         (hashval_t): New macro, defined to unsigned long int
1683         if not already defined.
1684         (compute_hashval): Return hashval_t instead of unsigned long int.
1685         * locale/loadarchive.c (hashval_t): New macro.
1686         * locale/programs/locarchive.c: Include hashval.h directly instead
1687         of simple-hash.h.
1688         (compute_hashval, hashval_t): Define these macros first.
1689         (insert_name): Use archive_hashval instead of compute_hashval.
1690         (add_locale, delete_locales_from_archive): Likewise.
1692 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1694         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1695         hash collisions if be_quiet.
1697 2002-08-27  Roland McGrath  <roland@redhat.com>
1699         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1700         __uselocale): Don't declare these any more.
1701         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1703         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1704         and treat it as an EOF return.
1705         * sysdeps/unix/readdir_r.c: Likewise.
1707         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1708         From Alexandre Oliva <aoliva@redhat.com>.
1709         * sysdeps/gnu/errlist-compat.c: Regenerated.
1711 2002-08-27  Brian Youmans  <3diff@gnu.org>
1713         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1714         wording at request of copyright holder Stephen Moshier.
1715         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1716         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1717         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1718         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1719         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1720         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1721         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1722         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1723         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1724         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1725         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1726         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1727         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1728         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1730 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1732         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1733         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1734         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1735         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1736         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1737         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1738         * wctype/iswctype_l.c (iswctype_l): Likewise.
1740 2002-08-27  Roland McGrath  <roland@redhat.com>
1742         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1744         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1745         * stdlib/stdlib.h: Don't declare __*_l names.
1746         * include/stdlib.h: Declare them here instead.
1747         * include/string.h: Don't declare __*_l names.
1748         * string/string.h: Declare them here instead.
1749         * time/time.h: Don't declare __*_l names.
1750         * include/time.h: Declare them here instead.
1751         * wcsmbs/wchar.h: Don't declare __*_l names.
1752         * include/wchar.h: Declare them here instead.
1753         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1754         Don't declare __*_l names.
1755         * include/wctype.h: Declare them here instead.
1756         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1757         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1758         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1759         * include/langinfo.h: Declare it here with __typeof.
1761         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1762         instead, taking an extra __locale_t argument.
1763         * time/Makefile (routines): Add strptime_l.
1764         * time/time.h (__strptime_l, strptime_l): Declare them.
1765         * time/strptime_l.c: New file.
1767         * time/time.h (__strftime_l, strftime_l): Declare them.
1768         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1769         * time/strftime_l.c: New file.
1770         * time/wcsftime_l.c: New file.
1771         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1772         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1773         strftime_l, wcsftime_l.
1774         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1775         or __wcsftime_l instead, taking an extra __locale_t argument.
1777         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1778         (libc: GLIBC_2.3): ... here.
1780 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1782         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1784         * Makefile (distribute): Add LICENSES.
1786         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1787         sys/debugreg.h.
1789         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1791         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1793         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1795         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1797         * sysdeps/mach/hurd/alpha/Dist: New file.
1799         * sysdeps/arm/Dist: Add bits/link.h.
1801         * sunrpc/Makefile: Distribute thrsvc.
1803         * stdio-common/Makefile: Remove more left-overs from old stdio.
1805         * include/linewrap.h: Removed.
1807         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1809         * intl/Makefile (distribute): Add plural-eval.c.
1811 2002-08-27  Roland McGrath  <roland@redhat.com>
1813         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1814         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1815         Say mtab is in either /var/run or /etc.
1817 2002-08-26  Roland McGrath  <roland@redhat.com>
1819         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1820         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1822         * sysdeps/gnu/Versions: New file.
1823         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1824         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1825         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1826         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1827         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1828         and _sys_nerr_internal instead of anything else.  Make it include
1829         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1830         Make it emit some asm magic if [EMIT_ERR_MAX].
1831         * sysdeps/gnu/errlist.c: Regenerated.
1832         * sysdeps/gnu/errlist-compat.awk: New file.
1833         * sysdeps/gnu/errlist-compat.c: New file (generated).
1834         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1835         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1836         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1837         (SYS_ERRLIST, SYS_NERR): Macros removed.
1838         (sys_nerr, _sys_nerr): Remove these weak aliases.
1839         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1840         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1841         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1843         * include/libc-symbols.h (declare_symbol): New macro.
1844         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1845         * configure.in: New check to define it.
1846         * configure: Regenerated.
1848 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1850         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1851         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1853         * Make-dist: Remove traces of old stdio.
1854         * Makeconfig: Likewise.
1856         * locale/Makefile (localedef-aux): New variable.  Only md5
1857         assigned to it.  These files are not ddistributed in this directory.
1859         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1860         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1861         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1863         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1865         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1866         set h_errno to NO_RECOVERY [PR libc/4360].
1868 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1870         * libio/Makefile (tests): Add bug-fopena+.
1871         * libio/bug-fopena+.c: New file.
1872         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1873         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1875         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1877         * locale/xlocale.c: Fix the last change.  The variable still has
1878         to end in _data.
1879         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1880         (__libc_tsd_set): Add _data prefix to variable name.
1882 2002-08-26  Roland McGrath  <roland@redhat.com>
1884         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1885         macro with inline function.
1886         (sigset_get_old_mask): Likewise.
1887         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1888         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1889         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1890         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1891         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1892         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1893         values.
1894         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1895         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1897 2002-07-06  Bruno Haible  <bruno@clisp.org>
1899         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1900         sigset_get_old_mask): Make it work with larger sigset_t.
1901         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1902         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1903         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1905 2002-08-26  Roland McGrath  <roland@redhat.com>
1907         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1908         * manual/filesys.texi (File Times): Document lutimes and futimes.
1909         * misc/Makefile (routines): Add them.
1910         * misc/Versions (libc: GLIBC_2.3): Likewise.
1911         * sysdeps/generic/lutimes.c: New file.
1912         * sysdeps/generic/futimes.c: New file.
1913         * sysdeps/mach/hurd/lutimes.c: New file.
1914         * sysdeps/mach/hurd/futimes.c: New file.
1916         * manual/filesys.texi (File Times): Add explicit note about null
1917         pointer argument to utimes.
1919 2002-08-26  Roland McGrath  <roland@frob.com>
1921         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1922         (__ifreq): Add a cast.  Remove an unused variable.
1924         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1925         _HURD_THREADVAR_LOCALE.
1927 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1929         * posix/regexec.c (re_search_stub): Return correct match length
1930         if start != 0.
1931         * posix/bug-regex10.c: New test.
1932         * posix/Makefile (tests): Add bug-regex10.
1934 2002-08-26  Brian Youmans  <3diff@gnu.org>
1936         * COPYING.LIB: Replaced with fresh copy from
1937         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1938         suggested copying permission notice now says version 2.1 instead
1939         of version 2.
1941         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1942         from Library GPL.
1943         * crypt/crypt_util.c: Likewise.
1944         * crypt/ufc.c: Likewise.
1945         * elf/dl-conflict.c: Likewise.
1946         * elf/dl-iteratephdr.c: Likewise.
1947         * iconv/iconvconfig.h: Likewise.
1948         * malloc/arena.c: Likewise.
1949         * malloc/hooks.c: Likewise.
1950         * malloc/malloc.c: Likewise.
1951         * posix/glob/Makefile.ami: Likewise.
1952         * posix/glob/Makefile.in: Likewise.
1953         * stdlib/gmp-impl.h: Likewise.
1954         * stdlib/gmp.h: Likewise.
1955         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1956         * sysdeps/generic/strnlen.c: Likewise.
1957         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1958         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1959         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1960         * sysdeps/mach/hurd/spawni.c: Likewise.
1961         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1962         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1963         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1964         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1965         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1966         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1968         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1969         Lesser GPL copying permission notice from 2 to 2.1.
1970         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1971         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1972         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1973         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1974         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1975         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1976         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1977         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1978         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1979         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1980         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1981         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1982         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1983         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1984         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1985         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1986         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1987         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1988         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1989         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1990         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1991         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1992         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1993         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1994         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1995         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1996         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1997         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1998         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1999         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2000         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2001         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2002         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2003         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2004         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2005         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2006         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2007         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2008         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2009         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2010         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2011         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2012         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2013         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2014         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2015         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2016         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2017         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2018         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2019         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2020         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2021         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2022         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2023         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2024         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2026         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2027         Moshier and Lesser GPL copying permission notice, per license from
2028         Moshier.
2029         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2030         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2031         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2032         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2033         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2034         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2035         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2036         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2037         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2038         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2039         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2040         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2041         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2042         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2044         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2045         notice, per license from copyright holder Stephen Moshier.
2046         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2047         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2048         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2049         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2050         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2051         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2052         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2053         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2054         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2056 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2058         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2059         (shared-only-routines): Likewise.
2061 2002-08-26  Roland McGrath  <roland@redhat.com>
2063         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2064         name of "", store a null pointer instead.
2066         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2067         * configure: Regenerated.
2069         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2070         Initialize this instead of __libc_tsd_LOCALE_data.
2072         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2073         ptsname_r to EINVAL.
2075         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2077         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2078         implementations depend on pthreads.
2079         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2080         * rt/tst-aio64.c (do_test): Likewise.
2081         * rt/tst-aio2.c (do_test): Likewise.
2082         * rt/tst-aio3.c (do_test): Likewise.
2083         * rt/tst-aio4.c (do_test): Likewise.
2084         * rt/tst-aio5.c (do_test): Likewise.
2085         * rt/tst-aio6.c (do_test): Likewise.
2086         * rt/tst-aio7.c (do_test): Likewise.
2088         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2089         void so as to avoid compiler warnings.
2091         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2092         _IO_wide_data_FD, which is never used here.
2094         * libio/iofread.c
2095         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2096         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2097         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2099         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2100         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2102         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2103         (closelog): Likewise.
2105 2002-07-06  Bruno Haible  <bruno@clisp.org>
2107         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2109         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2110         * sysdeps/unix/alpha/pipe.S: ... here.
2111         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2113         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2115         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2116         * sysdeps/unix/i386/fork.S: Likewise.
2117         * sysdeps/unix/i386/pipe.S: Likewise.
2118         * sysdeps/unix/i386/wait.S: Likewise.
2120         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2121         * sysdeps/unix/arm/fork.S: Likewise.
2123         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2124         arguments.
2125         (DO_CALL): Swap argument order.
2126         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2127         arguments.
2128         (DO_CALL): Swap argument order.
2129         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2130         arguments.
2131         (DO_CALL): Swap argument order.
2132         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2133         arguments.
2134         (DO_CALL): Swap argument order.
2135         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2136         arguments.
2137         (DO_CALL): Swap argument order.
2138         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2139         arguments.
2140         (DO_CALL): Swap argument order.
2141         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2142         arguments.
2143         (DO_CALL): Swap argument order.
2145         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2146         (L): Define right for ELF.
2147         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2148         Now defined in sysdeps/i386/sysdep.h.
2150         * sysdeps/posix/readv.c: Ansify function definition.
2151         * sysdeps/posix/writev.c: Likewise.
2153         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2154         have the same size. Avoid direct cast from size_t to off_t.
2156         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2157         nul byte in entry[n].ut_user.
2158         (simulate_logout): Likewise.
2160         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2161         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2162         existence of corresponding members of 'struct utmp'.
2163         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2164         !_HAVE_UT_TYPE.
2166         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2167         allocate a buffer of at least BUFSIZ bytes, not just of
2168         sizeof (struct dirent).
2170         * sysdeps/generic/glob.c: Include <limits.h>.
2171         (NAME_MAX): Define a fallback.
2172         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2173         stack.
2174         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2175         (main): Allocate enough room for a 'struct dirent64' on the stack.
2176         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2177         'struct dirent'.
2179         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2180         kernel-features.h.
2182         * inet/htontest.c: Include <sys/types.h>.
2184         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2186         * include/sys/sysctl.h: Comment fix.
2188         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2189         _dl_load_lock.
2190         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2192         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2194         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2195         (__getpeername): New alias.
2196         (__getsockname): New alias.
2197         (__socket): New alias.
2199         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2201         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2202         (__fcntl_internal): New alias.
2203         (__profil): New alias.
2205 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2207         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2208         entry was for getaddr* lookup or not.  Add only matching cache
2209         entry.  Change all callers [PR libc/4317].
2211         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2212         finding the read position [PR libc/4265].
2213         * libio/Makefile (tests): Add bug-rewind2.
2214         * libio/bug-rewind2.c: New file.
2216         * libio/bug-rewind.c: Fix creation of temp file.
2218 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2220         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2221         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2222         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2223         to ENOENT if no entry is found.
2224         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2225         failure.
2226         * nis/nss_compat/compat-initgroups.c: Likewise.
2227         * nis/nss_compat/compat-pwd.c: Likewise.
2228         * nis/nss_compat/compat-spwd.c: Likewise.
2229         * nis/nss_nis/nis-alias.c: Likewise.
2230         * nis/nss_nis/nis-ethers.c: Likewise.
2231         * nis/nss_nis/nis-grp.c: Likewise.
2232         * nis/nss_nis/nis-hosts.c: Likewise.
2233         * nis/nss_nis/nis-initgroups.c: Likewise.
2234         * nis/nss_nis/nis-netgrp.c: Likewise.
2235         * nis/nss_nis/nis-network.c: Likewise.
2236         * nis/nss_nis/nis-proto.c: Likewise.
2237         * nis/nss_nis/nis-publickey.c: Likewise.
2238         * nis/nss_nis/nis-pwd.c: Likewise.
2239         * nis/nss_nis/nis-rpc.c: Likewise.
2240         * nis/nss_nis/nis-service.c: Likewise.
2241         * nis/nss_nis/nis-spwd.c: Likewise.
2242         * resolv/nss_dns/dns-host.c: Likewise.
2243         * resolv/nss_dns/dns-network.c: Likewise.
2244         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2245         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2246         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2247         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2248         * nis/nss_nisplus/nisplus-network.c: Likewise.
2249         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2250         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2251         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2252         * nis/nss_nisplus/nisplus-service.c: Likewise.
2253         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2254         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2255         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2256         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2257         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2259         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2260         declaring __restore and __restore_rt as hidden (if possible).
2262 2002-08-25  Roland McGrath  <roland@redhat.com>
2264         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2266         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2267         (getutent_r_file, internal_getut_r): Updated all callers.
2268         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2270 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2272         * locale/programs/locale.c: Don't print aliases for non-existing
2273         locales for 'locale -a'.
2274         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2276 2002-07-19  H.J. Lu  <hjl@gnu.org>
2278         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2280 2002-07-16  H.J. Lu  <hjl@gnu.org>
2282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2283         sys/personality.h.
2284         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2286 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2288         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2289         not moved ahead of the fputs call.
2290         * elf/tst-tlsmod2.c (in_dso): Likewise.
2291         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2292         * elf/tst-tlsmod4.c (in_dso): Likewise.
2294 2002-08-25  Andreas Schwab  <schwab@suse.de>
2296         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2298 2002-08-25  Roland McGrath  <roland@redhat.com>
2300         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2301         resetting handler, to avoid the possibility of a spurious SIGALRM
2302         delivered to the user's handler.
2303         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2305         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2306         set -fkeep-inline-functions, which is not needed for the current file.
2308         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2309         (_dl_setup_hash): Add attribute_hidden.
2310         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2311         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2312         (_dl_new_object, _dl_map_object_deps): Likewise.
2313         (_dl_map_object_deps_internal): Remove decl.
2314         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2316         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2317         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2318         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2319         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2320         instead relying on the compiler to produce only GOTOFF variable refs.
2322 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2324         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2326         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2327         inline to avoid defining it in every file which includes this header.
2329         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2330         defining DONT_USE_BOOTSTRAP_MAP.
2332         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2333         * libio/tst-mmap-setvbuf.c (main): Likewise.
2334         * libio/tst-widetext.c (main): Likewise.
2336         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2337         message.
2338         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2339         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2341         * sysdeps/i386/elf/configure.in: Unconditionally define
2342         PI_STATIC_AND_HIDDEN.
2343         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2344         PI_STATIC_AND_HIDDEN is defined as well.
2345         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2347 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2349         * sysdeps/ia64/bzero.S: Define __bzero as well.
2351         * locale/programs/charmap.c (charmap_new_char): Don't use
2352         ULONG_MAX as maximum UCS4 value.
2354         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2356         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2358         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2359         * malloc/malloc.c (mALLINFo): Likewise.
2361         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2363         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2364         examining result of _IO_do_flush call.
2366         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2367         Use prec not spec when sizing buffers.
2369         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2370         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2371         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2372         * stdio-common/vfscanf.c (inchar): Likewise.
2373         * misc/efgcvt_r.c (fcvt_r): Likewise.
2374         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2375         * elf/readlib.c (process_file): Likewise.
2376         * elf/sprof.c (load_profdata): Likewise.
2377         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2378         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2379         * locale/programs/charmap.c (charmap_read): Likewise.
2380         * libio/fileops.c: Likewise.
2381         * libio/fmemopen.c: Likewise.
2382         * stdlib/strtod.c: Likewise.
2383         * elf/dl-load.c: Likewise.
2384         * iconv/iconvconfig.c: Likewise.
2385         * iconv/iconv_prog.c (process_block): Likewise.
2386         * elf/rtld.c (dl_main): Likewise.
2388         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2389         macro to calm down the compiler.
2391         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2393         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2395         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2396         placement of errno definition.
2397         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2398         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2399         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2400         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2401         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2403         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2404         from 1024 to 65536, to avoid buffer overrun.
2406 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2408         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2409         from 1024 to 65536, to avoid buffer overrun.
2410         * resolv/res_query.c (MAXPACKET): Likewise.
2412 2002-08-24  Andreas Jaeger  <aj@suse.de>
2414         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2416 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2418         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2419         two52 locally.
2420         (log2): Likewise.
2421         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2422         Patch by Simon Gee <simong@agile.tv>.
2424         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2425         Prefer reading /proc/stat since it is more uniform across
2426         architectures.
2428         * manual/texinfo.tex: Update to latest official version.
2430         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2431         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2432         * sysdeps/gnu/bits/shm.h: Likewise.
2433         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2434         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2435         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2436         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2437         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2438         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2439         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2440         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2441         since this is what the kernel says.
2443         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2444         since ssize_t is needed as well.  Replace const with __const.
2446 2002-08-23  Roland McGrath  <roland@redhat.com>
2448         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2449         __malloc_hook, __realloc_hook, __memalign_hook,
2450         __after_morecore_hook): Variable definitions moved to ...
2451         * malloc/malloc.c: ... here, so as to be before all references.
2453         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2454         global variable reference in an unused asm parameter, to ensure the
2455         compiler has set up the GOT register before we use it.
2457         * malloc/hooks.c: Move variable definitions ahead of uses.
2458         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2459         initializers that make reference to variables they define.
2461 2002-08-23  Andreas Jaeger  <aj@suse.de>
2463         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2464         alloca, free, qsort.
2466         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2468         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2469         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2471         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2472         <hch@lst.de>.
2473         * sysdeps/generic/fgetxattr.c: New file.
2474         * sysdeps/generic/flistxattr.c: New file.
2475         * sysdeps/generic/fremovexattr.c: New file.
2476         * sysdeps/generic/fsetxattr.c: New file.
2477         * sysdeps/generic/getxattr.c: New file.
2478         * sysdeps/generic/listxattr.c: New file.
2479         * sysdeps/generic/lgetxattr.c: New file.
2480         * sysdeps/generic/llistxattr.c: New file.
2481         * sysdeps/generic/lremovexattr.c: New file.
2482         * sysdeps/generic/lsetxattr.c: New file.
2483         * sysdeps/generic/removexattr.c: New file.
2484         * sysdeps/generic/setxattr.c: New file.
2485         * misc/Makefile (headers): Add sys/xattr.h.
2486         (routines): Add *xattr calls.
2487         * misc/Versions: Add *xattr calls with version 2.3.
2488         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2489         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2490         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2491         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2492         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2493         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2494         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2495         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2497 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2499         * sysdeps/powerpc/elf/libc-start.c
2500         (__cache_line_size): Declare.
2501         (__aux_init_cache): New function.
2502         (__libc_start_main): Change type of `auxvec' parameter to
2503         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2504         __aux_init_cache.
2505         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2506         (__cache_line_size): Declare.
2507         (__aux_init_cache): New function.
2508         (DL_PLATFORM_INIT): Define.
2509         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2510         value to select the correct stride for dcbz.
2512 2002-08-22  Andreas Jaeger  <aj@suse.de>
2514         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2515         shmat.
2517 2002-08-22  Roland McGrath  <roland@redhat.com>
2519         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2520         position indicated by locrectab against file bounds before rounding to
2521         page size.  In mapping loop, always set TO before breaking out of
2522         contiguous range coalescing loop.
2524         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2525         (or MAP_COPY if available) instead of MAP_SHARED.
2527         * scripts/firstversions.awk: When encountering a version newer than
2528         the specified earliest version, be sure to emit the specified earliest
2529         version first if any renaming of an older version to that has been.
2531 2002-08-21  Roland McGrath  <roland@redhat.com>
2533         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2534         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2535         (Configuring and compiling): Don't mention older GCC versions any more.
2536         * INSTALL: Regenerated.
2538         * manual/install.texi (Configuring and compiling, Installation,
2539         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2541         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2542         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2543         and with noinline otherwise.  Remove hack alloca use to prevent
2544         inlining, we can ask for it explicitly nowadays.
2546         * dlfcn/bug-dlsym1.c: New file.
2547         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2548         * dlfcn/Makefile (distribute): Add them.
2549         (tests): Add bug-dlsym1 here.
2550         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2551         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2552         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2554 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2556         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2557         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2558         before relocation.
2559         (_dl_start): Don't use local bootstrap_map variable if
2560         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2561         pass bootstrap_map to _dl_start_final in this case either.  Don't
2562         pass start_time to _dl_start_final ever.
2563         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2565         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2566         This cripples the scope lists necessary to search for symbols in
2567         dependencies which are not in the global scope.
2569         * include/setjmp.h (__libc_longjmp): Add declaration.
2571 2002-08-21  Andreas Jaeger  <aj@suse.de>
2573         * sysdeps/x86_64/_mcount.S: Fix assembler.
2575         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2576         with biarch support.
2578 2002-08-21  Andreas Jaeger  <aj@suse.de>
2580         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2582         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2584         * sysdeps/x86_64/machine-gmon.h: New file.
2585         * sysdeps/x86_64/_mcount.S: New file.
2587 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2589         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2590         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2591         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2592         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2593         to TL_INIT_TP.  Otherwise pass 1.
2594         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2595         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2597 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2599         * locale/programs/localedef.c (add_to_readlist): Error about
2600         circular dependencies only if the locale in question hasn't
2601         been finished.
2602         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2603         CTYPE_LOCALE to load_locale.
2604         * locale/programs/locfile.c (locfile_read): Don't include
2605         unneeded but available locales in locale_mask.
2607         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2608         print any messages about enlarging archive.
2610 2002-08-20  Brian Youmans  <3diff@gnu.org>
2612         * manual/contrib.texi: Removed licenses, added acknowledgements
2613         for contributions by Intel, IBM, Craig Metz.
2614         * LICENSES: New file, contains the text of all non-FSF licenses in the
2615         distribution that require putting the notice in the accompanying
2616         documentation.
2617         * README.template, README: Mention LICENSES.
2619         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2620         new one modelled on the modern BSD license, per recent letter
2621         of permission from CMU.
2622         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2624         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2625         from IBM to FSF, per the recent Software Letter.  Changed the
2626         distribution terms from GPL to LGPL.
2628         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2629         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2630         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2631         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2632         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2633         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2634         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2635         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2636         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2637         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2639         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2640         from IBM to FSF, per the recent Software Letter.  Corrected the
2641         text of the copying permission notice to say Lesser GPL instead
2642         of GPL in warranty disclaimer paragraph.
2643         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2644         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2645         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2646         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2647         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2648         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2649         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2650         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2651         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2652         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2653         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2654         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2655         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2656         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2657         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2658         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2659         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2660         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2661         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2662         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2663         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2665         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2666         permission notice to say Lesser GPL instead of GPL in warranty
2667         disclaimer paragraph.
2668         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2669         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2670         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2671         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2672         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2673         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2674         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2675         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2676         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2677         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2678         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2679         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2680         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2681         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2682         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2683         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2684         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2685         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2686         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2687         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2688         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2689         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2690         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2692 2002-08-20  Roland McGrath  <roland@redhat.com>
2694         Fix ABI compatibility with libc compiled with old tools on powerpc.
2695         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2696         and Jack Howarth <howarth@bromo.med.uc.edu>.
2697         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2698         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2699         pass -DHAVE_DOT_HIDDEN for these files.
2700         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2701         __floatdisf.
2702         * sysdeps/powerpc/divdi3.c: New file.
2703         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2704         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2706 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2708         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2709         partially overlapping mappings.  Remove unneeded (char *) casts.
2710         Never allow duplication of ranges in mapped areas.
2712 2002-08-20  Roland McGrath  <roland@redhat.com>
2714         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2715         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2717 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2719         * include/unistd.h: Don't hide _exit.
2721         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2722         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2723         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2724         argument 1 to TLS_INIT_TP.
2725         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2727         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2729         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2730         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2731         memory allocation to...
2732         (allocate_dtv): ...here.  New function.
2733         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2734         call allocate_dtv instead of _dl_allocate_tls_storage.
2735         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2736         (_dl_get_tls_static_info): New function.
2737         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2738         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2740 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2742         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2743         immediately if result == NULL.
2745 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2747         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2749 2002-08-18  Roland McGrath  <roland@frob.com>
2751         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2752         instead of __file_name_split.
2753         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2755         * sysdeps/mach/hurd/dl-sysdep.c
2756         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2757         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2759 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2761         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2762         in change before last: MAX -> MIN.
2764 2002-08-15  Roland McGrath  <roland@redhat.com>
2766         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2767         if seek would go past it.
2768         (mmap_remap_check): If file position is at or past EOF after check,
2769         leave read pointers at EOF and don't seek.
2771         * libio/tst-mmap-offend.c: New file.
2772         * libio/Makefile (tests): Add it.
2774         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2775         the name as passed, rather than the name in the archive dictionary.
2777 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2779         * csu/Makefile: Define elide-routines.os not static-only-routines.
2781         * include/sched.h (__clone): Add varargs at the end.
2783         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2784         case.
2785         (TLS_INIT_HELPER): If defined, use it.
2786         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2788 2002-08-15  Roland McGrath  <roland@redhat.com>
2790         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2791         on L->l_prev; it can happen under rtld --verify too.
2793         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2794         header separately, just map an initial window of 2MB from the file
2795         and remap if that is not large enough to cover the whole header.
2797 2002-08-15  Andreas Jaeger  <aj@suse.de>
2799         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2800         version 2.3.
2801         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2802         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2803         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2804         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2805         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2806         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2807         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2808         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2809         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2810         Patch by Andreas Gruenbacher <agruen@suse.de>.
2812         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2814 2002-08-14  Roland McGrath  <roland@redhat.com>
2816         * locale/locarchive.h (struct locale_category_data): Give this name to
2817         the type of locale_data_t's elements.
2818         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2819         (add_locale): Use that to sort the categories by size and put all
2820         those that fit into two pages into the LC_ALL block, instead of
2821         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2822         (show_archive_content): Detect categories inside LC_ALL block
2823         directly, instead of hard-coding.
2824         (oldlocrecentcmp): Compare just on file locations used.
2826 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2828         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2829         (oldlocrecentcmp): New function.
2830         (enlarge_archive): Re-add locales in the order they were added
2831         to the archive.
2832         (add_locale): Put all the small locale files together, if the small
2833         locale file block would occupy less pages if page size aligned, align
2834         it.
2835         (show_archive_content): Adjust for locale archives optimized for speed.
2837 2002-08-14  Roland McGrath  <roland@frob.com>
2839         * configure.in: Use "MISSING" as not-found value for MIG.
2840         * sysdeps/mach/configure.in: Fatal if mig not found.
2841         * configure, sysdeps/mach/configure: Regenerated.
2843 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2845         * locale/loadarchive.c (archfname): Add missing slash.
2847         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2848         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2850 2002-08-12  Roland McGrath  <roland@redhat.com>
2852         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2853         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2854         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2855         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2856         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2857         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2858         * sysdeps/generic/waitpid.c: Likewise.
2860         * include/net/if.h: New file.  Use libc_hidden_proto
2861         for if_nametoindex and if_indextoname.
2862         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2863         * sysdeps/mach/hurd/if_index.c: Likewise.
2864         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2866         * include/grp.h (setgroups): Add libc_hidden_proto.
2867         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2868         * sysdeps/mach/hurd/setgroups.c: Likewise.
2869         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2870         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2872 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2874         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2875         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2876         * sysdeps/generic/setegid.c (setegid): Likewise.
2877         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2878         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2879         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2880         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2881         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2882         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2883         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2884         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2885         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2886         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2887         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2888         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2889         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2891         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2892         __lxstat_internal, __lxstat64_internal): Remove.
2893         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2894         Add hidden_proto.
2895         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2896         Remove INTDEF where present, remove #undef at the beginning.
2897         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2898         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2899         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2900         * sysdeps/generic/xstat.c (__xstat): Likewise.
2901         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2902         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2903         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2904         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2905         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2906         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2907         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2908         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2909         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2910         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2911         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2912         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2913         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2914         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2915         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2916         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2917         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2918         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2919         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2920         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2921         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2922         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2923         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2924         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2925         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2926         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2927         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2928         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2929         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2930         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2931         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2932         * sysdeps/unix/xstat.c (__xstat): Likewise.
2934         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2935         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2936         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2937         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2938         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2939         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2940         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2942         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2943         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2944         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2945         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2946         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2947         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2948         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2949         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2950         Likewise.
2951         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2952         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2953         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2954         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2955         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2956         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2957         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2958         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2960         * include/string.h (strcoll): Add libc_hidden_proto.
2961         * string/strcoll.c (strcoll): Add libc_hidden_def.
2963         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2965 2002-08-11  Philip Blundell  <philb@gnu.org>
2967         * sysdeps/arm/Makefile: New file.
2969 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2971         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2972         by another '|', end of regex or enclosing ')', clear branch.
2973         * posix/bug-regex9.c: New test.
2974         * posix/Makefile (tests): Add bug-regex9.
2976 2002-08-12  Roland McGrath  <roland@redhat.com>
2978         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2979         start count condition, use TOTAL instead of variable that was never
2980         set.  Fix outer loop termination condition to TOTAL >= after update.
2982         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2983         dl_tls_static_align and dl_tls_static_nelem.
2985 2002-08-11  Roland McGrath  <roland@redhat.com>
2987         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2988         of the TLS macros, otherwise the compiler might not have initialized
2989         the PIC register yet when we use the PLT via asm.
2990         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2991         * elf/tst-tlsmod2.c (in_dso): Likewise.
2993         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2995         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2996         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2998         * include/unistd.h: Use libc_hidden_proto for getdomainname
2999         and getlogin_r.
3000         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3001         * sysdeps/mach/hurd/getdomain.c: Likewise.
3002         * sysdeps/unix/getlogin_r.c: Likewise.
3003         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3004         * sysdeps/generic/getlogin_r.c: Likewise.
3006         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3007         * sunrpc/rtime.c: Add libc_hidden_def.
3009         * include/string.h: Use libc_hidden_proto for basename.
3010         * string/basename.c [_LIBC]: Add libc_hidden_def.
3012         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3014         * locale/loadarchive.c: munmap -> __munmap throughout.
3016         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3017         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3018         * sysdeps/generic/gai_strerror.c: Likewise.
3020         * include/sys/errno.h: New file.
3022         * include/signal.h: No libc_hidden_proto for raise,
3023         __libc_current_sigrtmin, __libc_current_sigrtmax.
3024         These need to be overridden by linuxthreads.
3025         * sysdeps/posix/raise.c: Reverted.
3026         * sysdeps/generic/raise.c: Reverted.
3027         * signal/allocrtsig.c: Reverted.
3029         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3031 2002-08-10  Roland McGrath  <roland@redhat.com>
3033         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3034         * locale/localeinfo.h: Declare it.
3035         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3036         current locale if it's not in the file list.
3037         Call _nl_archive_subfreeres.
3039 2002-08-10  Andreas Jaeger  <aj@suse.de>
3041         * sysdeps/i386/strchr.S: Add comment.
3043 2002-08-10  Roland McGrath  <roland@redhat.com>
3045         * include/wchar.h (putwc): Use libc_hidden_proto.
3046         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3047         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3048         * stdio-common/dprintf.c: Add libc_hidden_def.
3049         * stdio-common/fprintf.c: Likewise.
3050         * stdio-common/sprintf.c: Likewise.
3051         * stdio-common/sscanf.c: Likewise.
3052         * libio/iofwrite.c: Likewise.
3053         * libio/memstream.c: Likewise.
3054         * libio/putwc.c: Likewise.
3055         * stdio-common/perror.c: Likewise.
3056         * sysdeps/posix/remove.c: Likewise.
3057         * sysdeps/generic/remove.c: Likewise.
3058         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3059         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3061 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3063         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3064         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3065         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3066         towlower, towupper): Add libc_hidden_weak.
3068         * include/bits/dlfcn.h: New file.
3069         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3071         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3072         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3073         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3074         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3075         * include/shadow.h (_nss_files_parse_spent): Likewise.
3076         * include/netdb.h (_nss_files_parse_protoent,
3077         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3078         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3079         (LINE_PARSER): Use it.
3080         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3081         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3083         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3084         #endif.
3086         * manual/debug.texi (%MENU%): Remove trailing dot.
3087         Reported by <hayastan132@hotmail.com>.
3089         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3090         aliases.
3091         (lseek): Dummy.
3092         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3093         Likewise.
3095 2002-08-09  Roland McGrath  <roland@redhat.com>
3097         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3098         name to find codeset name (if any) and normalize it.  If the
3099         normalized name differs, look up only that in the archive.
3100         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3101         contains a codeset, normalize the codeset store only the normalized
3102         name in the archive.  If not, add an alias containing the locale's
3103         normalized codeset name.  Apply codeset name normalization when
3104         matching entries in the alias file.
3106         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3107         decrement HEAD->namehash_used here.
3108         (add_locale): Only need to insert name string when name_offset != 0.
3110         * locale/programs/localedef.c (options): Add -A/--alias-file.
3111         (alias_file): New variable.
3112         (parse_opt): Grok -A, set that.
3113         * locale/programs/localedef.h: Declare it.
3115         * locale/locarchive.h (struct locrecent): Add `refs' member.
3116         * locale/programs/locarchive.c (insert_name): New function, broken out
3117         of ...
3118         (add_locale_to_archive): ... here.  Call that.
3119         (add_alias): New function.
3120         (add_locale): New static function, add_locale_to_archive renamed.
3121         (add_locale_to_archive): Call that and use add_alias to add an alias
3122         for the name with codeset if the given name lacks it.
3123         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3125         * locale/Makefile (routines): Add loadarchive.
3126         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3127         (_nl_load_locale_from_archive): New function.
3128         * locale/localeinfo.h: Declare it.
3129         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3130         try _nl_load_locale_from_archive first.
3132         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3133         broken out of _nl_load_locale.
3134         (_nl_load_locale): Call that.
3135         * locale/localeinfo.h: Declare it.
3136         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3137         (struct locale_data): Remove unused member `options'.
3138         * locale/findlocale.c (_nl_remove_locale): Update uses.
3139         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3140         * locale/C-collate.c: Update initializer.
3141         * locale/C-identification.c: Likewise.
3142         * locale/C-measurement.c: Likewise.
3143         * locale/C-telephone.c: Likewise.
3144         * locale/C-address.c: Likewise.
3145         * locale/C-name.c: Likewise.
3146         * locale/C-paper.c: Likewise.
3147         * locale/C-time.c: Likewise.
3148         * locale/C-numeric.c: Likewise.
3149         * locale/C-monetary.c: Likewise.
3150         * locale/C-messages.c : Likewise.
3151         * locale/C-ctype.c: Likewise.
3153         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3154         use CHAR_BIT instead of BITSPERBYTE.
3156         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3157         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3158         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3159         (_nl_remove_locale): Likewise.
3160         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3162         * locale/findlocale.c (_nl_default_locale_path): New variable.
3163         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3164         * locale/localeinfo.h: Declare it.
3165         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3166         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3167         * locale/newlocale.c (__newlocale): Likewise.
3169         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3170         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3171         * sysdeps/generic/morecore.c: Likewise.
3172         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3173         (__libc_current_sigrtmax): Likewise.
3175 2002-08-08  Roland McGrath  <roland@redhat.com>
3177         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3178         * catgets/open_catalog.c (__open_catalog): Likewise.
3180         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3181         from typo INITIAL_NUM_NANES.
3182         (create_archive): Update use.
3184 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3186         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3188 2002-08-08  Roland McGrath  <roland@frob.com>
3190         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3192 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3194         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3195         else and undefine after including wcstol_l.c.
3196         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3198 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3200         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3202 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3204         * configure.in: Make the test for broken_alias_attribute stricter.
3206 2002-05-24  Robert Love  <rml@tech9.net>
3208         * posix/Makefile (routines): Add sched_getaffinity and
3209         sched_setaffinity.
3210         * posix/sched.h: Add declarations for sched_getaffinity and
3211         sched_setaffinity.
3212         * sysdeps/generic/sched_getaffinity.c: New file.
3213         * sysdeps/generic/sched_setaffinity.c: New file.
3214         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3215         sched_setaffinity.
3217 2002-08-06  Andreas Schwab  <schwab@suse.de>
3219         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3221 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3223         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3224         message.
3226         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3227         It is known to be defined.
3229         * include/string.h: Define index and rindex only if _ISOMAC is not
3230         defined.
3232         * elf/rtld.c: Include <errno.h>.
3233         * sysdeps/generic/libc-tls.c: Likewise.
3235 2002-08-07  Roland McGrath  <roland@redhat.com>
3237         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3238         it internally.
3239         (precsize_aton): Likewise.
3241         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3242         the static symbols added in the last change (doofus is me).
3244         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3245         loop to notice missing categories in a composite name.
3247         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3248         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3249         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3250         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3252 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3254         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3256 2002-08-07  Roland McGrath  <roland@redhat.com>
3258         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3259         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3260         Reported by Jakub Jelinek  <jakub@redhat.com>.
3262 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3264         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3265         division.
3267 2002-08-06  Roland McGrath  <roland@redhat.com>
3269         * include/getopt.h: Put private decls inside [_GETOPT_H].
3270         Use libc_hidden_proto for getopt_long, getopt_long_only.
3271         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3272         Add libc_hidden_def.
3274         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3275         Define as a macro for __dl_iterate_phdr.
3277         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3278         made static.  Add __ name as a strong alias.
3279         (internal_endnetgrent): Likewise.
3280         (internal_getnetgrent_r): Likewise.
3282         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3283         with no __ prefix.
3284         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3285         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3286         all *_l functions with no __ prefix.
3287         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3288         * ctype/ctype_l.c: Likewise.
3289         * locale/nl_langinfo.c: Likewise.
3290         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3291         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3292         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3293         * wctype/wctype.h [__USE_GNU]: Likewise.
3294         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3295         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3296         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3297         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3298         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3299         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3300         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3301         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3302         (__wcscasecmp_l): Add libc_hidden_def.
3303         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3304         (__wcsncasecmp_l): Add libc_hidden_def.
3305         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3306         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3307         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3308         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3309         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3310         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3311         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3312         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3313         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3314         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3315         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3316         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3317         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3318         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3320 2002-08-05  Roland McGrath  <roland@redhat.com>
3322         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3323         netname2user, host2netname, user2netname, key_gendes.
3324         * sunrpc/netname.c: Add libc_hidden_def.
3325         * sunrpc/key_call.c: Likewise.
3327         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3328         freeaddrinfo.
3329         * inet/getnameinfo.c: Add libc_hidden_def.
3330         * sysdeps/generic/getaddrinfo.c: Likewise.
3331         * sysdeps/posix/getaddrinfo.c: Likewise.
3333         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3334         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3335         * wcsmbs/wmemset.c: Add libc_hidden_def.
3337         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3338         (index, rindex): Define as macros for strchr, strrchr.
3340         * string/envz.c (envz_strip): index -> strchr
3342         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3343         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3345         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3346         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3348         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3349         * stdlib/wctomb.c: Add libc_hidden_def.
3351         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3352         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3353         * resolv/herror.c: Likewise.
3354         * inet/rcmd.c: Add libc_hidden_def.
3355         * inet/ruserpass.c: Likewise.
3356         * inet/getnetgrent_r.c: Likewise.
3358         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3359         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3360         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3361         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3362         libc_hidden_def.
3363         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3364         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3366         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3367         __libc_system.
3368         (__libc_system): Call it, putting just the line == NULL test here.
3370         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3371         variables work right.
3373         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3374         * elf/dl-close.c (_dl_close): Likewise.
3376         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3377         in6addr_any, in6addr_loopback.  Remove decls for
3378         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3379         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3380         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3381         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3382         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3383         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3384         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3385         in6addr_loopback.
3386         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3388         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3389         ether_aton_r.
3390         * inet/ether_aton_r.c: Add libc_hidden_def.
3391         * inet/ether_ntoa_r.c: Likewise.
3393         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3394         xprt_unregister.
3395         * sunrpc/svc.c: Add libc_hidden_def.
3396         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3397         pmap_set, pmap_unset.
3398         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3399         * sunrpc/pm_getport.c: Likewise.
3400         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3401         * sunrpc/publickey.c: Add libc_hidden_def.
3403 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3405         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3406         the other memset call in this function.
3408         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3409         at correct index.  Clear BSS region now that memalign is used.
3411 2002-08-05  Roland McGrath  <roland@redhat.com>
3413         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3414         * sysdeps/generic/uname.c: Add libc_hidden_def.
3415         * sysdeps/mach/hurd/uname.c: Likewise.
3417 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3419         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3420         wcspbrk): Add libc_hidden_proto.
3421         * time/strftime.c (my_strftime): Add libc_hidden_def.
3422         (strftime): Remove libc_hidden_def.
3423         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3424         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3425         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3426         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3427         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3428         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3430         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3431         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3432         __rpc_thread_createerr): Add libc_hidden_proto.
3433         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3434         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3435         __rpc_thread_createerr): Add libc_hidden_def.
3437         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3438         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3439         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3440         clnt_perror, clnt_sperror): Add libc_hidden_def.
3441         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3443         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3444         libc_hidden_proto.
3445         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3446         * sunrpc/des_soft.c (des_setparity): Likewise.
3448         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3449         Add libc_hidden_proto.
3450         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3451         Add libc_hidden_def.
3453 2002-08-05  Roland McGrath  <roland@redhat.com>
3455         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3456         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3457         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3458         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3459         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3460         old data, abandoning the original memory allocated by rtld at startup,
3461         instead of calling realloc normally.
3463 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3465         * po/fr.po: Update from translation team.
3467 2002-08-04  Roland McGrath  <roland@redhat.com>
3469         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3470         then generate a dummy module under the given name, obeying the
3471         normal rules for the "caller" field.
3473         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3474         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3476         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3477         weak here; we declare it weak or strong in the one place we use it.
3478         * sysdeps/generic/libc-start.c: ... which is here.
3479         Don't make the decl weak if [USE_TLS], since static programs need TLS
3480         setup even when single-threaded.
3482         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3484         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3485         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3486         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3487         all these variables.
3489 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3491         * include/stdio.h: Don't define macro magic to redirect function
3492         calls if _ISOMAC is defined.
3494         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3495         ldouble asin tests.
3497 2002-08-04  Roland McGrath  <roland@redhat.com>
3499         * stdlib/lrand48_r.c: Add libc_hidden_def.
3501         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3502         TCB with __libc_memalign instead of mmap.
3503         (_dl_deallocate_tls): Free it with free instead of munmap.
3505         * Makerules (cpp-srcs-left): When setting this to run
3506         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3507         words.  Combine the two loops into one on the concatenated list,
3508         including those as well as $(test-srcs).
3510         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3511         since we align here with optimally minimal waste anyway.
3512         (malloc): Just call that.
3514         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3515         the right variable.
3517         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3518         to compute memory location for l_tls_initimage.
3519         * elf/rtld.c (_dl_start): Likewise.
3520         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3522         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3523         because the .d file is generated in the non-shared case and
3524         so fails to catch them otherwise.
3526         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3527         split out of _dl_allocate_tls.
3528         (_dl_allocate_tls_init): Likewise.
3529         (_dl_allocate_tls): Call those.
3530         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3531         * elf/rtld.c (dl_main): Call them separately instead of calling
3532         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3533         is finished, so that the initializer data has been relocated before we
3534         copy it into the main thread's TLS block.
3536         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3537         loop conditions, prevented the last used module from being initialized.
3539 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3541         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3542         if glob resp. globfree are not macros.
3543         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3544         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3545         Add libc_hidden_ver.
3546         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3547         libc_hidden_def.
3548         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3549         instead of libc_hidden_weak.
3550         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3551         libc_hidden_ver instead of libc_hidden_def.
3552         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3553         libc_hidden_ver instead of libc_hidden_def.
3554         (wcstoll, wcstoq): Remove libc_hidden_weak.
3555         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3556         libc_hidden_ver.
3557         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3558         libc_hidden_ver.
3559         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3560         libc_hidden_ver.
3561         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3562         libc_hidden_ver.
3564 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3566         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3567         to access _sys_siglist.
3568         * string/strsignal.c: Likewise.
3569         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3570         * sysdeps/gnu/siglist.c: Likewise.
3571         * sysdeps/unix/siglist.c: Likewise.
3572         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3574         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3576         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3578         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3579         alias and use it.
3580         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3582         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3583         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3584         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3586         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3587         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3589         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3590         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3591         and __gconv_get_cache respectively.
3592         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3593         defined static.  Change all users.
3594         (__gconv_get_cache): New function.
3595         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3596         (__gconv_get_alias_db): New function.
3597         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3598         (__conv_modules_db): Likewise.
3599         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3600         and __gconv_get_alias_db.
3601         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3602         variables.
3604         * include/stdlib.h: Add prototype and libc_hidden_proto for
3605         __default_morecore.
3606         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3608         * malloc/obstack.c: Remove fputs macro.
3610         * malloc/mtrace.c: Remove fopen macro.
3612 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3614         * manual/debug.texi: Fix spelling to programmatically.
3615         Reported by <hayastan132@hotmail.com>.
3617 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3619         * include/libio.h: Add libc_hidden_proto for __uflow.
3620         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3621         fgetpos to _IO_* names.
3622         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3623         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3624         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3625         putwc_unlocked, vswscanf.
3626         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3627         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3628         * libio/fseek.c: Likewise.
3629         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3630         not fopencookie.
3631         * libio/genops.c (__uflow): Add libc_hidden_def.
3632         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3633         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3634         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3635         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3636         * libio/iofread_u.c (fread_unlocked): Likewise.
3637         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3638         * libio/iovswscanf.c (vswscanf): Likewise.
3639         * libio/putwc_u.c (putwc_unlocked): Likewise.
3640         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3641         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3642         * malloc/mtrace.c: Likewise.
3644         * sunrpc/clnt_perr.c: Remove fputs macro.
3645         * sunrpc/svc_simple.c: Likewise.
3646         * sunrpc/svc_tcp.c: Likewise.
3647         * sunrpc/svc_udp.c: Likewise.
3648         * sunrpc/xdr_rec.c: Likewise.
3649         * sunrpc/xdr_ref.c: Likewise.
3651         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3652         iconv_prog, linereader, and charmap-dir.
3653         * locale/Makefile: Likewise for locale and charmap-dir.
3654         * malloc/Makefile: Likewise for memusagestat.
3655         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3656         * sunrpc/Makefile: Likewise for rpc_main.
3657         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3658         * timezone/Makefile: Likewise for zic.
3660         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3662         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3663         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3664         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3665         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3666         _dl_close.
3668         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3669         __wunderflow.
3670         * libio/genops.c (__underflow): Add libc_hidden_def.
3671         * libio/wgenops.c (__wuflow): Likewise.
3672         (__wunderflow): Likewise.
3674         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3675         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3677         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3678         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3680         * include/string.h: Add libc_hidden_proto for __strverscmp.
3681         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3683         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3684         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3685         * sysdeps/posix/sysconf.c: Likewise.
3686         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3687         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3689         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3690         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3691         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3692         __iswxdigit_l, __towlower_l, __towupper_l.
3693         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3694         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3696         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3697         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3698         * sysdeps/mach/hurd/xmknod.c: Likewise.
3699         * sysdeps/unix/xmknod.c: Likewise.
3700         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3701         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3702         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3704         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3706 2002-08-03  Roland McGrath  <roland@redhat.com>
3708         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3709         setpriority.
3710         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3711         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3712         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3713         * sysdeps/mach/hurd/setpriority.c: Likewise.
3714         * sysdeps/mach/hurd/getpriority.c: Likewise.
3715         * sysdeps/generic/setpriority.c: Likewise.
3716         * sysdeps/generic/getpriority.c: Likewise.
3718         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3719         * malloc/mcheck.c: Add libc_hidden_def.
3721         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3722         * misc/hsearch_r.c: Add libc_hidden_def.
3724         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3725         * posix/fnmatch.c: Add libc_hidden_weak.
3727         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3728         execl, execle, execlp, execvp, getpid, getsid.
3729         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3730         * sysdeps/unix/alarm.c: Likewise.
3731         * posix/confstr.c: Likewise.
3732         * posix/execvp.c: Likewise.
3733         * posix/execlp.c: Likewise.
3734         * posix/execle.c: Likewise.
3735         * posix/execl.c: Likewise.
3736         * sysdeps/generic/getsid.c: Likewise.
3737         * sysdeps/mach/hurd/getsid.c: Likewise.
3738         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3739         * sysdeps/mach/hurd/getpid.c: Likewise.
3741         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3742         qecvt_r, qfcvt_r, lrand48_r.
3743         * misc/efgcvt_r.c: Add libc_hidden_def.
3745         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3746         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3748         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3749         * locale/nl_langinfo.c: Add libc_hidden_def.
3751         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3752         * sysdeps/generic/glob.c: Add libc_hidden_def.
3753         * sysdeps/generic/glob64.c: Likewise.
3754         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3756         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3758         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3760         * locale/setlocale.c (_nl_current_names): Variable moved ...
3761         * locale/localename.c (_nl_current_names): ... here, new file.
3762         Make it global, with attribute_hidden.
3763         * locale/localeinfo.h: Declare it.
3764         * locale/Makefile (aux): Add localename.
3765         * locale/localename.c (__current_locale_name): New function.
3766         * include/locale.h (__current_locale_name): Declare it.
3767         * intl/dcigettext.c (guess_category_value): Use that instead of
3768         calling setlocale.
3770         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3771         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3772         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3773         * locale/newlocale.c: Add alias to __ name.
3774         * locale/duplocale.c: Likewise.
3775         * locale/freelocale.c: Likewise.
3776         * locale/uselocale.c: New file.
3777         * locale/Makefile (routines): Add it.
3778         * locale/Versions (libc: GLIBC_2.3): New set.
3779         Add newlocale, duplocale, freelocale, uselocale.
3780         (libc: GLIBC_PRIVATE): Add __uselocale.
3782         * locale/localeinfo.h [SHARED]
3783         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3784         (_NL_CURRENT_DATA): Define using that.
3785         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3786         (_NL_CURRENT_DEFINE): Define to empty.
3787         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3788         conditionalized on this.
3789         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3790         taking initializer of _nl_C_locobj.
3791         [SHARED] (_nl_global_locale): New variable, using that initializer.
3792         (_nl_C_locobj): Use new macro for initialzier.
3793         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3794         [! SHARED] (CATEGORY_USED): New macro.
3795         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3796         (setdata, setlocale): Use that macro instead of examining _nl_current.
3797         (setdata): Set the slot in _nl_global_locale.
3798         Conditionalize setting of _nl_current on [! SHARED].
3799         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3800         declaration as an extern.
3801         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3803         * include/locale.h: Use libc_hidden_proto for setlocale.
3804         * locale/setlocale.c: Add libc_hidden_def.
3806         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3808         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3809         * misc/hsearch_r.c: Add libc_hidden_def.
3810         * misc/lsearch.c: Likewise.
3812         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3813         endttyent.
3814         * misc/getttyent.c: Add libc_hidden_def.
3816         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3817         * malloc/mcheck.c: Add libc_hidden_def.
3819         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3820         * include/argz.h: Use libc_hidden_proto for argz_delete.
3821         * string/argz-delete.c: Add libc_hidden_def.
3822         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3824         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3825         HIDDEN_JUMPTARGET for _exit.
3826         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3827         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3828         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3829         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3831         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3832         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3833         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3834         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3836         * include/stdlib.h: Use libc_hidden_proto for abort,
3837         __strtof_internal, __strtod_internal, __strtold_internal,
3838         __strtol_internal, __strtoll_internal, __strtoul_internal,
3839         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3840         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3841         __strtoul_l_internal, __strtoull_l_internal.
3842         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3843         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3844         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3845         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3846         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3847         __wcsncasecmp_l.
3848         * sysdeps/generic/abort.c: Add libc_hidden_def.
3849         * stdlib/strtod.c: Likewise.
3850         * sysdeps/generic/strtol.c: Likewise.
3851         * sysdeps/wordsize-64/strtol.c: Likewise.
3852         * sysdeps/wordsize-64/wcstol.c: Likewise.
3853         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3855         * include/stdlib.h: Use libc_hidden_proto for qsort.
3856         * stdlib/msort.c: Add libc_hidden_def.
3858         * include/utime.h: Use libc_hidden_proto for utime.
3859         * sysdeps/generic/utime.c: Add libc_hidden_def.
3860         * sysdeps/unix/utime.c: Likewise.
3862         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3863         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3864         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3865         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3866         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3868         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3869         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3870         and __libc_current_sigrtmax.
3871         * signal/sigismem.c: Add libc_hidden_def.
3872         * signal/sigfillset.c: Likewise.
3873         * signal/sigempty.c: Likewise.
3874         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3875         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3876         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3877         * sysdeps/posix/raise.c: Likewise.
3878         * sysdeps/generic/raise.c: Likewise.
3880 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3882         * include/string.h: Use libc_hidden_proto for __stpcpy.
3883         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3884         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3885         * sysdeps/generic/stpcpy.c: Likewise.
3886         * sysdeps/i386/stpcpy.S: Likewise.
3887         * sysdeps/i386/i586/stpcpy.S: Likewise.
3888         * sysdeps/powerpc/stpcpy.S: Likewise.
3889         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3890         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3892         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3893         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3894         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3895         libc_hidden_def.
3896         * string/strdup.c (__strdup): Likewise.
3897         * string/strndup.c (__strndup): Likewise.
3898         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3899         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3901 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3903         * include/libio.h: New file.
3904         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3905         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3906         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3907         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3908         * sysdeps/unix/common/syscalls.list: Likewise.
3909         * sysdeps/unix/inet/syscalls.list: Likewise.
3910         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3911         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3912         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3913         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3914         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3915         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3916         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3918         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3919         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3920         * sysdeps/unix/syscalls.list: Likewise.
3922 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3923             Ulrich Drepper  <drepper@redhat.com>
3925         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3926         the arguments is big enough to cause an overflow.
3928 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3930         * assert/assert.c: Use hidden_def not INTDEF.
3932 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3934         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3935         not defined.
3937 2002-08-03  Roland McGrath  <roland@redhat.com>
3939         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3940         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3941         verr, verrx.
3942         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3943         * misc/syslog.c: Add libc_hidden_def.
3944         * misc/err.c: Likewise.
3945         * stdlib/exit.c: Likewise.
3946         * stdlib/bsearch.c: Likewise.
3947         * sysdeps/generic/getenv.c: Likewise.
3949         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3951         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3952         libc_hidden_weak for every system call symbol defined.
3954         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3955         timelocal, localtime, strftime.
3956         * time/asctime.c: Add libc_hidden_def.
3957         * time/mktime.c: Likewise.
3958         * time/localtime.c: Likewise.
3959         * time/strftime.c: Likewise.
3960         * time/strptime.c: Likewise.
3961         * sysdeps/generic/time.c: Likewise.
3962         * sysdeps/unix/time.c: Likewise.
3963         * sysdeps/unix/sysv/i386/time.S: Likewise.
3964         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3966         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3967         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3968         * resolv/inet_ntop.c: Likewise.
3969         * resolv/inet_pton.c: Likewise.
3970         * inet/inet_mkadr.c: Add libc_hidden_def.
3971         * inet/inet_netof.c: Likewise.
3972         * resolv/inet_addr.c: Likewise.
3974         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3975         clauses from conditionals for now.  Will have to be fixed later
3976         for older compilers.
3978         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3980 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3982         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3983         broken alias attribute handling.
3984         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3986 2002-08-02  Roland McGrath  <roland@frob.com>
3988         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3989         since it sets the variables we use in a -D switch.
3991 2002-08-02  Roland McGrath  <roland@redhat.com>
3993         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3994         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3995         matches long int, not int.
3997         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3998         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3999         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4000         * wctype/wctrans.c (wctrans): Likewise.
4001         * wctype/wctype.c (__wctype): Likewise.
4002         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4004 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4006         * assert/assert.c (__assert_fail): Fix typo in comment.
4008         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4009         * sunrpc/rpc_thread.c: Define it without static.
4010         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4012 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4014         * assert/assert.c (__assert_fail): Remove undef.
4015         Replace INTDEF with libc_hidden_def.
4016         * assert/__assert.c (__assert): Remove INTUSE.
4017         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4018         libc_hidden_weak.
4019         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4020         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4021         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4022         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4023         libm_hiden_ver): Define.
4024         * include/assert.h (__assert_fail_internal): Remove.
4025         (__assert_fail): Add prototype.  Add hidden_proto.
4026         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4027         libc_hidden_proto.
4028         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4029         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4030         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4031         Add libc_hidden_proto.
4032         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4033         __fcntl): Add libc_hidden_proto.  Remove macros.
4034         (__open_internal, __fcntl_internal): Remove.
4035         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4036         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4037         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4038         libc_hiden_proto.
4039         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4040         libc_hidden_def.
4041         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4042         Add libc_hidden_def.
4043         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4044         * sysdeps/generic/open.c (__open): Remove undef.
4045         Add libc_hidden_def.  Remove INTDEF.
4046         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4047         Add libc_hidden_def.
4048         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4049         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4050         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4051         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4052         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4053         (__libc_fcntl): Add libc_hidden_def.
4054         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4055         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4056         (__libc_open): Add libc_hidden_def.
4057         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4058         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4059         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4060         Add libc_hidden_def.
4061         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4062         Add libc_hidden_def.
4063         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4064         undef.
4065         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4066         (__libc_fcntl): Add libc_hidden_def.
4067         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4068         __getpgid_internal, __chown_internal): Remove.
4069         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4070         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4071         __GI___chown): Add.
4072         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4073         __getpid_internal, __open_internal, __write_internal): Remove.
4074         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4075         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4076         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4077         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4078         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4079         Replace INTDEF with libc_hidden_def.
4080         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4081         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4082         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4083         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4084         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4085         Add libc_hidden_proto.
4086         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4087         * include/sys/select.h (__select): Likewise.
4088         * include/sys/socket.h (__send): Likewise.
4089         * include/sys/statfs.h (__statfs): Likewise.
4090         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4091         __getpid, __getpgid, __setpgid, __close, __read, __write,
4092         __getpagesize, __sbrk): Likewise.
4093         (__chown_internal, __dup2_internal, __getpid_internal,
4094         __getpgid_internal, __close_internal, __write_internal,
4095         __getpagesize_internal): Remove.
4096         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4097         Remove macros.
4098         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4099         * include/sched.h (__sched_setscheduler): Likewise.
4100         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4101         * include/stdlib.h (__secure_getenv): Likewise.
4102         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4103         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4104         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4105         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4106         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4107         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4108         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4109         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4110         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4111         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4112         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4113         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4114         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4115         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4116         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4117         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4118         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4119         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4120         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4121         * libio/genops.c (__overflow): Add libc_hidden_def.
4122         * libio/iovdprintf.c: Remove libio.h include.
4123         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4124         libc_hidden_weak): Define to nothing if not defined.
4125         (__overflow, __woverflow): Add libc_hidden_proto.
4126         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4127         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4128         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4129         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4130         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4131         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4132         and libc_hidden_def.
4133         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4134         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4135         (__getpgid): Add libc_hidden_proto.
4136         (__bsd_getpgrp): Remove INTUSE.
4137         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4138         libc_hidden_def.
4139         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4140         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4141         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4142         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4143         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4144         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4145         __rpc_thread_createerr): Add libc_hidden_def.
4146         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4147         libc_hidden_def.
4148         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4149         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4150         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4151         * sysdeps/generic/chown.c (__chown): Likewise.
4152         * sysdeps/generic/close.c (__close): Likewise.
4153         * sysdeps/generic/dup2.c (__dup2): Likewise.
4154         * sysdeps/generic/pipe.c (__pipe): Likewise.
4155         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4156         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4157         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4158         * sysdeps/generic/read.c (__libc_read): Likewise.
4159         (__read): Add libc_hidden_weak.
4160         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4161         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4162         * sysdeps/generic/select.c (__select): Likewise.
4163         * sysdeps/generic/send.c (__send): Likewise.
4164         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4165         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4166         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4167         * sysdeps/generic/statfs.c (__statfs): Likewise.
4168         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4169         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4170         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4171         Remove undef and INTDEF.
4172         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4173         * sysdeps/generic/getpid.c (__getpid): Likewise.
4174         * sysdeps/generic/write.c (__libc_write): Likewise.
4175         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4176         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4177         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4178         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4179         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4180         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4181         Remove undef and INTDEF.
4182         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4183         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4184         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4185         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4186         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4187         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4188         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4189         (__pipe): Add libc_hidden_def.
4190         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4191         libc_hidden_weak.
4192         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4193         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4194         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4195         (__read): Add libc_hidden_weak.
4196         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4197         (__libc_pwrite64): Add libc_hidden_def.
4198         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4199         * sysdeps/mach/hurd/select.c (__select): Likewise.
4200         * sysdeps/mach/hurd/send.c (__send): Likewise.
4201         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4202         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4203         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4204         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4205         * sysdeps/posix/dup2.c: Likewise.
4206         Remove undef and INTDEF.
4207         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4208         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4209         (__pwrite64): Add libc_hidden_weak.
4210         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4211         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4212         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4213         * sysdeps/standalone/close.c (__close): Likewise.
4214         * sysdeps/standalone/write.c (__libc_write): Likewise.
4215         (__write): Add libc_hidden_weak.
4216         * sysdeps/standalone/read.c (__read): Likewise.
4217         (__libc_read): Add libc_hidden_def.
4218         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4219         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4220         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4221         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4222         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4223         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4224         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4225         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4226         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4227         __GI___sigaction): Add.
4228         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4229         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4230         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4231         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4232         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4233         __GI___setpgid): Add.
4234         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4235         Remove undef and INTDEF.
4236         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4237         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4238         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4239         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4240         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4241         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4242         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4243         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4244         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4245         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4246         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4247         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4248         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4249         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4250         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4251         __GI___statfs, __GI___send): Add.
4252         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4253         libc_hidden_ver resp. libc_hidden_def.
4254         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4255         libc_hidden_def.
4256         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4257         Likewise.  Remove undef and INTDEF.
4258         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4259         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4260         __GI___statfs, __GI___send): Add.
4261         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4262         libc_hidden_def.
4263         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4264         Likewise.
4265         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4266         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4267         libc_hidden_ver resp. libc_hidden_def.
4268         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4269         __GI___send): Add.
4270         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4271         Add libc_hidden_weak.
4272         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4273         Add libc_hidden_def.
4274         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4275         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4276         libc_hidden_weak.
4277         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4278         resp. libc_hidden_def.
4279         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4280         libc_hidden_weak.
4281         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4282         INTDEF.
4283         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4284         Likewise.  Remove undef.
4285         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4286         libc_hidden_weak.
4287         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4288         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4289         libc_hidden_weak.
4290         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4291         libc_hidden_def.
4292         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4293         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4294         Likewise.  Remove undef and INTDEF.
4295         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4296         libc_hidden_def.
4297         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4298         libc_hidden_weak.
4299         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4300         libc_hidden_def.
4301         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4302         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4303         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4304         libc_hidden_weak.
4305         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4306         Add libc_hidden_def.
4307         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4308         __GI___statfs): Add.
4309         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4310         libc_hidden_weak.
4311         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4312         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4313         Remove undef and INTDEF.
4314         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4315         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4316         libc_hidden_def.
4317         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4318         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4319         libc_hidden_weak.
4320         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4321         libc_hidden_def.
4322         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4323         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4324         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4325         Add.
4326         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4327         libc_hidden_def.  Remove undef and INTDEF.
4328         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4329         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4330         libc_hidden_def.
4331         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4332         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4333         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4334         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4335         Remove undef and INTDEF.
4336         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4337         broken visibility attribute handling.
4338         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4340 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4342         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4343         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4345         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4346         previous patch.
4348 2002-06-29  Todd Fries  <todd@openbsd.org>
4350         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4352 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4354         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4356 2002-07-30  Roland McGrath  <roland@redhat.com>
4358         * resolv/resolv.h (_res): Define macro unconditionally.
4359         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4360         * include/resolv.h: ... here.
4361         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4362         as a __thread variable.
4363         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4364         a __thread variable instead of a global.
4365         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4367         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4368         time we test it.
4370         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4372         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4373         decls of memset and memcpy.
4375         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4376         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4378         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4380         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4381         (__libc_tsd_define): Define using __thread.
4383         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4384         (__rpc_thread_variables): Use __libc_tsd_get.
4385         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4386         __rpc_thread_variables, which might allocate what we're about to free.
4388         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4389         thread-local variable.
4390         * resolv/netdb.h (h_errno): Define macro unconditionally.
4391         [_LIBC] (__set_h_errno): Macro moved to ...
4392         * include/netdb.h: ... here.
4393         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4394         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4395         [! _LIBC_REENTRANT]: #undef h_errno here.
4397         * include/errno.h: Protect from multiple inclusion.
4399         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4400         before defining them, since Linux's <linux/posix_types.h> might have
4401         defined them.
4403 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4405         * malloc/malloc.c (public_cALLOc): Check for overflow on
4406         multiplication.
4407         * sunrpc/xdr_array.c (xdr_array): Likewise.
4408         * sunrpc/rpc/types.h (mem_free): Add comment.
4409         Patch by Solar Designer <solar@openwall.com>.
4411 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4413         * sysdeps/unix/sysv/linux/kernel-features.h
4414         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4416 2002-08-01  Roland McGrath  <roland@redhat.com>
4418         * libio/fileops.c (_IO_file_sync_mmap): New function.
4419         (_IO_file_jumps_mmap): Use it.
4420         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4421         repeat the stat check and resize the mapped buffer as necessary.
4423 2002-07-31  Roland McGrath  <roland@redhat.com>
4425         * libio/fileops.c (decide_maybe_mmap): New static function.
4426         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4427         mmap the file contents.  Then switch the jump tables to the mmap
4428         tables if it worked, or the vanilla file tables if not.
4429         (_IO_file_underflow_maybe_mmap): New function.
4430         (_IO_file_seekoff_maybe_mmap): New function.
4431         (_IO_file_xsgetn_maybe_mmap): New function.
4432         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4433         * libio/libioP.h: Declare those.
4434         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4435         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4436         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4437         If the stream is read-only, set its jump tables to those new ones.
4438         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4439         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4440         We need the tables set before _IO_file_attach.
4442         * libio/tst-mmap-eofsync.c: New file.
4443         * libio/tst-mmap-fflushsync.c: New file.
4444         * libio/bug-mmap-fflush.c: New file.
4445         * libio/tst-mmap2-eofsync.c: New file.
4446         * libio/Makefile (tests): Add them.
4448         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4449         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4451 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4453         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4454         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4455         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4456         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4457         declare sys_errlist and sys_nerr.
4458         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4459         provide declarations.
4461 2002-07-31  Roland McGrath  <roland@redhat.com>
4463         * elf/rtld.c (dl_main): Fix typo in error message.
4465 2002-07-31  Roland McGrath  <roland@frob.com>
4467         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4468         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4469         sysdeps/mach/hurd/dl-sysdep.c change.
4471 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4473         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4474         -r`/build/include for kernel headers.
4476         * po/fi.po: New file.
4478 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4480         * configure.in (static_nss): Set to `yes' if --disable-shared.
4482 2002-07-23  Bruno Haible  <bruno@clisp.org>
4484         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4485         is set.
4487 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4489         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4490         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4491         arguments.
4493 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4495         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4496         alias.
4498 2002-07-21  Bruno Haible  <bruno@clisp.org>
4500         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4501         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4502         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4503         trans_sysdep_tab_offset.
4504         (struct sysdep_segment): New type.
4505         (struct sysdep_string): New type.
4506         (SEGMENTS_END): New macro.
4507         * intl/gettextP.h (struct sysdep_string_desc): New type.
4508         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4509         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4510         orig_tab, trans_tab, hash_tab to const pointers because they point
4511         into read-only memory.
4512         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4513         (PRI*): Define fallback values.
4514         (get_sysdep_segment_value): New function.
4515         (_nl_load_domain): Distinguish major and minor revision parts. Add
4516         support for minor revision 1 with system dependent strings.
4517         (_nl_unload_domain): Also free the 'malloced' field.
4518         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4519         now done in loadmsgcat.c. Add support for system dependent strings.
4521 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4523         * posix/bug-regex7.c: New file.
4524         * posix/bug-regex8.c: New file.
4525         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4527 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4529         * posix/bug-regex4.c (main): Fix typos.
4530         * posix/bug-regex6.c (main): Likewise.
4532 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4534         * posix/bug-regex6.c (main): Fix warnings.
4536         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4538         * iconv/iconv_prog.c (main): Improve error message for the cases
4539         where -t and/or -f parameter are missing.
4541 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4543         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4544         (re_search): Likewise.
4545         (re_match_2): Likewise.
4546         (re_search_2): Likewise.
4547         (re_search_stub): New function.
4548         (re_search_2_stub): New function.
4549         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4551 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4553         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4554         (re_string_eoi): Use STOP instead of LEN.
4555         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4556         (re_string_construct): Likewise.
4557         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4558         * posix/regexec.c (re_search_internal): Add a new argument STOP
4559         so that it can handle the argument STOP of re_search_2 and re_match_2
4560         correctly.
4561         (regexec): Adapt to new I/F of re_search_internal.
4562         (re_search_stub): Likewise.
4564 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4566         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4568         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4570         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4571         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4572         of __divdi3.
4574         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4575         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4576         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4577         alias for adjtimex syscall.
4579         * elf/dl-minimal.c: Define __assert_fail_internal.
4580         * assert/assert.c: Likewise.
4581         * include/assert.h: Define __assert_file macro if !SHARED and not
4582         NOT_IN_libc.
4584         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4585         programs.
4586         * locale/Makefile: Likewise.
4587         * nscd/Makefile: Likewise.
4588         * catgets/Makefile: Likewise.
4590 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4592         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4593         compute current position.
4595         * stdio-common/tst-fseek.c (main): Improve error messages.
4597         * libio/tst-freopen.c (main): Remove unused variable.
4599         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4600         succesful seek call.  Simplify error checking.
4602 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4604         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4605         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4607 2002-07-19  Roland McGrath  <roland@frob.com>
4609         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4610         __libc_enable_secure is set.
4612 2002-07-24  Roland McGrath  <roland@frob.com>
4614         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4615         This implementation supports only IPv4.
4616         * inet/ifaddrs.h: New file.
4617         * sysdeps/generic/ifaddrs.c: New file.
4618         * sysdeps/gnu/ifaddrs.c: New file.
4619         * inet/test-ifaddrs.c: New file.
4620         * inet/Makefile (routines): Add ifaddrs.
4621         (headers): Add ifaddrs.h here.
4622         (tests): Add test-ifaddrs.
4623         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4625         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4626         socket call to get an AF_INET socket, instead of using __opensock.
4627         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4629         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4630         if not -1 use it instead of calling __opensock.
4631         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4632         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4633         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4635         * sysdeps/mach/hurd/ifreq.h: New file.
4636         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4637         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4638         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4640         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4641         which gets moved around.  Calculate size of mmap'd buffer instead.
4643 2002-07-24  Philip Blundell  <philb@gnu.org>
4645         * sysdeps/unix/arm/brk.S: Improve schedule.
4646         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4647         efficient instruction.
4648         (__socket): Optimize return sequence.
4650 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4652         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4653         sockets on old kernels.
4655 2002-07-22  Philip Blundell  <philb@gnu.org>
4657         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4658         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4659         alias.
4661 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4663         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4664         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4666         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4667         test to detect duplicate locales.
4669         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4670         position would be before beginning of file.
4671         (_IO_file_seekoff_mmap): Likewise.
4672         * libio/Makefile (tests): Add bug-fseek.
4673         * libio/bug-fseek.c: New file.
4675         * intl/explodename.c: Remove support for CEN-style locale variables.
4676         It was never used and shouldn't be since it's not portable.
4677         * intl/finddomain.c: Likewise.
4678         * intl/l10nflist.c: Likewise.
4679         * intl/loadinfo.h: Likewise.
4680         * locale/findlocale.c: Likewise.
4682 2002-07-24  Roland McGrath  <roland@frob.com>
4684         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4685         position, calculate it to take into account an active pushback buffer.
4687         * libio/Makefile (tests): Add bug-ungetc.
4688         * libio/bug-ungetc.c: New file.
4690 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4692         * sysdeps/generic/libc-tls.c: New file.
4693         * csu/Makefile (routines): Add libc-tls.
4694         (static-only-routines): Add libc-tls.
4695         * elf/dl-support.c (_dl_phdr): New variable.
4696         (_dl_phnum): New variable.
4697         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4698         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4699         for !SHARED.  First look through auxiliary vector.  If TLS always
4700         call __pthread_initialize_minimal.
4702         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4703         in mmap call is never zero.
4705 2002-07-23  Andreas Jaeger  <aj@suse.de>
4707         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4708         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4710 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4712         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4713         creation and removal of the temp file.
4715         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4716         file creation.
4717         * test-skeleton.c (create_temp_file): New function.
4719 2002-07-22  Andreas Jaeger  <aj@suse.de>
4721         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4722         local label.
4724 2002-07-21  Roland McGrath  <roland@frob.com>
4726         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4727         put -I../include before -I../stdlib so we get the right errno.h et al.
4728         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4729         (CFLAGS-wcstof.c): Likewise.
4730         (CFLAGS-wcstold.c): Likewise.
4731         (CFLAGS-wcstod_l.c): Likewise.
4732         (CFLAGS-wcstof_l.c): Likewise.
4733         (CFLAGS-wcstold_l.c): Likewise.
4735 2002-07-19  Roland McGrath  <roland@frob.com>
4737         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4739 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4741         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4742         __ASSUME_AT_XID is defined.
4743         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4744         for 2.4.1 and up.
4745         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4746         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4748         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4749         (CFLAGS-wcstof.c): Likewise.
4750         (CFLAGS-wcstold.c): Likewise.
4751         (CFLAGS-wcstod_l.c): Likewise.
4752         (CFLAGS-wcstof_l.c): Likewise.
4753         (CFLAGS-wcstold_l.c): Likewise.
4755 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4757         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4758         __priority_which_t): Always typedef to int for C++.
4760 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4762         * configure.in: Add test for __thread support in compiler.
4763         * config.h.in: Add HAVE___THREAD.
4764         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4765         * include/sys/errno.h: Moved to...
4766         * stdlib/sys/errno.h: ...here.  New file.
4767         * stdlib/errno.h: New file.  Moved from...
4768         * include/errno.h: ...here.  Changed into an internal header defining
4769         libc-local things like __set_errno.
4770         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4771         bits/errno.h.
4772         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4773         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4774         either.
4775         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4776         from...
4777         (_dl_start_final): ...here.  Add code to initialize tls elements from
4778         bootstrap_map.
4779         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4780         if USE_TLS && HAVE___THREAD.
4781         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4782         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4783         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4784         * sysdeps/standalone/bits/errno.h: Likewise.
4785         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4786         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4787         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4788         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4789         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4790         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4791         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4792         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4793         use GL(dl_rtld_map), use map parameter.
4794         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4795         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4796         USE_TLS && HAVE___THREAD.
4797         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4798         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4799         TLS code sequence.
4800         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4802         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4803         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4804         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4805         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4806         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4807         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4809 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4811         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4812         MS_INVALIDATE values.
4814 2002-07-17  Andreas Schwab  <schwab@suse.de>
4815             Ulrich Drepper  <drepper@redhat.com>
4817         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4818         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4819         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4820         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4822 2002-07-01  H.J. Lu  <hjl@gnu.org>
4824         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4825         return value.
4827         * elf/circlemod1.c (circlemod1): Return int.
4828         * elf/circlemod2.c (circlemod2): Likewise.
4829         * elf/circlemod2a.c (circlemod2): Likewise.
4830         * elf/circlemod3.c (circlemod3): Likewise.
4831         (circlemod3a): A new function.
4833 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4835         * catgets/tst-catgets.c (main): Don't expect results for
4836         untranslated messages.
4838         * glibcbug.in: Fix little typo.  Remove STDIO.
4840         * config.h.in: Fail if __FAST_MATH__ is defined.
4841         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4842         (CPPFLAGS-test-idouble.c): Likewise.
4843         (CPPFLAGS-test-ildouble.c): Likewise.
4845 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4847         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4848         * intl/tst-gettext.c: Correctly handle untranslated messages in
4849         positive tests.
4851         * po/de.po: Update from translation team.
4853 2002-07-02  H.J. Lu  <hjl@gnu.org>
4855         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4856         use ll/sc.
4857         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4859         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4860         to 2.4.0 for mips.
4862 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4864         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4865         TLS fail if USE_TLS is not defined.
4867         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4868         and adjust state for seek position.  [PR libc/4070]
4869         * libio/Makefile (tests): Add bug-rewind.
4870         * libio/bug-rewind.c: New file.
4872 2002-07-12  Philip Blundell  <philb@gnu.org>
4874         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4875         (__backtrace): Use it.
4876         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4878 2002-07-12  Philip Blundell  <philb@gnu.org>
4880         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4881         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4882         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4883         (elf_machine_rela): Remove unused variable.
4885         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4886         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4887         define.
4889 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4891         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4893 2002-07-14  Andreas Jaeger  <aj@suse.de>
4895         * sysdeps/x86_64/bits/link.h: Add biarch support.
4897 2002-07-13  Andreas Jaeger  <aj@suse.de>
4899         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4900         Use correct indices.
4901         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4903 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4905         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4906         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4907         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4908         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4909         * sysdeps/s390/s390-32/bits/link.h: Remove.
4910         * sysdeps/s390/s390-64/bits/link.h: Remove.
4911         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4912         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4913         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4914         * sysdeps/s390/bits/wordsize.h: New file.
4915         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4916         elfclass.h.
4917         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4918         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4919         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4920         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4921         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4922         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4923         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4924         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4925         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4926         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4927         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4928         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4929         resource.h.
4930         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4931         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4932         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4933         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4934         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4935         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4936         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4937         sigaction.h.
4938         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4939         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4940         siginfo.h.
4941         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4942         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4943         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4944         socket.h.
4945         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4946         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4947         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4948         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4949         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4950         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4951         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4952         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4953         procfs.h.
4954         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4955         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4956         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4957         ucontext.h.
4958         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4959         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4961 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4963         * Versions.def (libc): Add GLIBC_2.3.
4964         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4965         * stdlib/canonicalize.c: Add compatibility version for realpath
4966         and make new code available in GLIBC_2.3.
4968 2002-07-06  Bruno Haible  <bruno@clisp.org>
4970         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4972 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4974         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4975         function do_init.  Use __libc_once.
4976         (do_init): New function.
4978         * iconvdata/iso8859-11.h: Removed.
4979         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4980         (distribute): Remove iso8859-11.h.
4981         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4983         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4984         underflow operation if c == (W)EOF.
4986 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4988         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4989         non-zero, adjust exponent.
4990         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4991         Remove NO_LONG_DOUBLE aliases.
4992         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4993         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4994         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4995         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4996         1**y and -1**+-Inf.
4997         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4998         Fix BITS_PER_MP_LIMB 32 extraction.
4999         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5000         exceptions for qNaNs.
5001         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5002         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5003         Raise exceptions when needed.  Don't recurse unnecessarily.
5004         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5005         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5006         exceptions for qNaNs.
5007         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5008         to fix *quo return value sign.
5009         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5010         case -Inf argument.
5011         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5013 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5015         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5016         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5017         -DNDEBUG.
5019 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5021         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5022         the result.
5024         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5025         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5027         * Versions.def (libthread_db): Add GLIBC_2.3.
5029 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5031         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5032         new stream if possible.
5033         * libio/freopen64.c (freopen64): Likewise.
5034         * libio/Makefile (tests): Add tst-freopen.
5035         * libio/tst-freopen.c: New file.
5037 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5039         * libio/stdio.h (obstack_printf): Add format attribute.
5040         (obstack_vprintf): Likewise.
5042 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5044         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5045         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5046         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5047         architectures.
5049 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5051         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5052         (init_dfa): ...here.
5054 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5056         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5057         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5058         nodes in parse trees.
5059         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5060         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5061         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5062         nodes which can epsilon transit.
5063         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5064         to IS_EPSILON_NODE macro.
5065         * posix/regexec.c (update_regs): New function to update registers
5066         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5067         (proceed_next_node): Use the entities of the nodes to determine
5068         whether the node can transit to.
5069         (set_regs): Use update_regs function to update registers.
5071 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5073         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5074         * posix/bug-regex6.c: New file.
5075         * posix/Makefile (tests): Add bug-regex6.
5076         (bug-regex6-ENV): Set LOCPATH.
5078 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5080         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5081         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5083 2002-07-06  Bruno Haible  <bruno@clisp.org>
5085         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5087 2002-07-06  Bruno Haible  <bruno@clisp.org>
5089         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5090         declarations.
5092         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5094         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5096         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5097         not _UTSNAME_H.
5098         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5100         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5101         * sysdeps/generic/bits/ustat.h: Likewise.
5103         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5105 2002-07-08  Andreas Jaeger  <aj@suse.de>
5107         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5109 2002-07-08  Andreas Jaeger  <aj@suse.de>
5111         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5113 2002-07-06  Andreas Jaeger  <aj@suse.de>
5115         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5116         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5117         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5118         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5119         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5120         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5121         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5122         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5123         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5124         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5125         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5127 2002-06-05  Brian Youmans <3diff@gnu.org>
5129         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5130         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5131         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5132         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5133         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5134         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5135         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5136         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5137         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5138         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5139         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5140         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5141         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5142         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5143         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5144         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5145         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5146         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5147         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5148         * sysdeps/ia64/fpu/e_log.S: Likewise.
5149         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5150         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5151         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5152         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5153         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5154         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5155         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5156         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5157         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5158         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5159         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5160         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5161         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5162         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5163         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5164         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5165         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5166         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5167         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5168         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5169         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5170         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5171         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5172         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5173         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5174         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5175         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5176         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5177         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5178         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5179         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5180         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5181         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5182         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5183         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5184         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5185         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5186         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5187         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5188         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5189         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5190         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5191         * sysdeps/ia64/fpu/s_round.S: Likewise.
5192         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5193         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5194         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5195         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5196         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5197         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5198         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5199         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5200         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5201         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5202         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5203         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5204         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5205         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5206         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5207         reflect IBM donation of math library to FSF
5208         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5209         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5210         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5211         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5212         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5213         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5214         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5215         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5216         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5217         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5218         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5219         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5220         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5221         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5222         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5223         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5224         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5225         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5226         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5227         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5228         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5229         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5230         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5231         * sysdeps/vax/__longjmp.c: Likewise.
5232         * sysdeps/vax/setjmp.c: Likewise.
5233         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5234         remove advertising clause
5235         * sysdeps/vax/htonl.s: Likewise.
5236         * sysdeps/vax/htons.s: Likewise.
5237         * libio/wfiledoalloc.c: Likewise.
5238         * stdlib/random.c: Likewise.
5239         * stdlib/random_r.c: Likewise.
5240         * sysdeps/mach/sys/reboot.h: Likewise.
5241         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5242         * sysdeps/posix/getaddrinfo.c: Likewise.
5243         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5244         GPL and corrected pointer to point to the correct license.
5246 2002-07-04  Andreas Jaeger  <aj@suse.de>
5248         * scripts/config.guess: New upstream version.
5249         * scripts/config.sub: Likewise.
5251 2002-07-02  Andreas Schwab  <schwab@suse.de>
5253         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5254         in parallel to bumping up the buffer pointer.
5256 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5258         * math/libm-test.inc (acos_test): Add missing L suffix for
5259         expected result.
5260         (cpow_test): Likewise.
5261         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5262         error for acos (0.0625).
5264 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5266         * locale/iso-639.def: Add entry for Ganda.
5267         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5268         definition.
5269         (address_finish): Handle entries with two letter ISO 639 code.
5271         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5272         directory if it existed before.
5273         * iconv/iconvconfig.c: Implement --prefix option.
5275         * math/libm-test.inc (cexp_test): Add missing L suffix for
5276         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5277         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5278         1.25 i).
5280 2002-05-29  H.J. Lu  <hjl@gnu.org>
5282         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5283         is turned on.
5285 2002-05-28  H.J. Lu  <hjl@gnu.org>
5287         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5288         are not dlopened on the dependency list of a dlopened object.
5290 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5292         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5293         dependencies if they are created between objects which are created
5294         while processing RTLD_NOW for objects loaded as part of the same
5295         dlopen call.
5297 2002-06-14  H.J. Lu  <hjl@gnu.org>
5299         * elf/Makefile (tests): Add circleload1.
5300         (modules-names): Add circlemod1, circlemod2, circlemod3,
5301         circlemod1a, circlemod2a and circlemod3a.
5302         ($(objpfx)circleload1): New target.
5303         ($(objpfx)circleload1.out): Likewise.
5304         ($(objpfx)circlemod1.so): Likewise.
5305         ($(objpfx)circlemod2.so): Likewise.
5306         ($(objpfx)circlemod1a.so): Likewise.
5307         ($(objpfx)circlemod2a.so): Likewise.
5308         * elf/circleload1.c: New file.
5309         * elf/circlemod1.c: New file.
5310         * elf/circlemod1a.c: New file.
5311         * elf/circlemod2.c: New file.
5312         * elf/circlemod2a.c: New file.
5313         * elf/circlemod3.c: New file.
5314         * elf/circlemod3a.c: New file.
5316 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5318         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5319         file descriptor.
5320         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5321         add check for fd not open for writing.
5323         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5324         completed element(s) and do not suspend thread if so.  Patch
5325         heavily modified by drepper.
5327         * rt/tst-aio7.c: New file.  Regression test for problems which the
5328         above three changes fix.
5329         * rt/Makefile (tests): Add tst-aio7.
5331 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5333         * rt/tst-aio6.c: Fix comment.
5335         * catgets/gencat.c (read_input_file): Handle more than one slash
5336         at end of line correctly [PR libc/3926].
5337         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5339         * catgets/sample.SJIS: Add test case for above bug.
5340         * catgets/test-gencat.c: Adjust test code.
5341         * catgets/test-gencat.sh: Adjust expected results.
5343         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5344         to skip relative relocations.
5345         Patch by Geoff Keating <geoffk@redhat.com>.
5347 2002-05-26  Bruno Haible  <bruno@clisp.org>
5349         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5350         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5351         All callers changed.
5352         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5353         STANDARD_FROM_LOOP_ERR_HANDLER.
5354         (utf8_internal_loop): Likewise.
5355         (ucs2_internal_loop): Likewise.
5356         (internal_ucs2_loop): Perform error handling like in
5357         STANDARD_FROM_LOOP_ERR_HANDLER.
5358         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5359         in STANDARD_FROM_LOOP_ERR_HANDLER.
5360         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5361         handling.
5362         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5363         in STANDARD_FROM_LOOP_ERR_HANDLER.
5364         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5365         handling.
5366         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5367         in STANDARD_FROM_LOOP_ERR_HANDLER.
5368         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5369         handling.
5370         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5371         STANDARD_FROM_LOOP_ERR_HANDLER.
5372         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5373         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5374         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5375         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5376         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5377         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5378         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5379         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5380         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5381         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5382         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5383         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5384         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5385         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5386         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5387         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5388         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5389         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5390         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5391         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5392         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5393         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5394         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5395         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5396         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5397         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5398         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5399         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5400         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5401         an error, still set result = __GCONV_ILLEGAL_INPUT.
5402         (BODY for TO_LOOP): Likewise.
5403         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5404         STANDARD_FROM_LOOP_ERR_HANDLER.
5405         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5406         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5407         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5408         handling.
5409         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5410         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5411         STANDARD_FROM_LOOP_ERR_HANDLER.
5412         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5413         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5414         STANDARD_FROM_LOOP_ERR_HANDLER.
5415         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5416         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5417         STANDARD_FROM_LOOP_ERR_HANDLER.
5418         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5419         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5420         STANDARD_FROM_LOOP_ERR_HANDLER.
5421         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5422         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5423         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5424         handling.
5425         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5426         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5427         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5428         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5430 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5432         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5433         labels in assembler instructions.
5435 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5437         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5438         not enough content is available.
5439         * libio/tst-eof.c: New file.
5440         * libio/Makefile (tests): Add tst-eof.
5442         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5443         update atime.
5444         * libio/tst-atime.c: New file.
5445         * libio/Makefile (tests): Add tst-atime.
5447         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5448         handling of overly long words.
5450 2002-06-25  Andreas Jaeger  <aj@suse.de>
5452         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5453         to not use 32-bit pc relative relocations.
5454         (elf_machine_dynamic): Likewise.
5456 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5458         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5459         (__GETDENTS): Check for failed getdents64 syscall.
5460         * dirent/Makefile (tests): Add bug-readdir1.
5461         * dirent/bug-readdir1.c: New file.
5463 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5465         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5466         lookups.
5467         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5468         code.  Print TLS modid and offset for modules containing PT_TLS
5469         segments.
5471 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5473         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5474         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5475         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5476         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5478 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5480         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5481         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5482         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5483         * nss/getXXent_r.c (NEW, NEW1): Define.
5484         (NEW (REENTRANT_GETNAME)): Strong alias to
5485         INTERNAL (REENTRANT_GETNAME).
5486         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5488 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5490         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5491         (_IO_file_jumps_mmap): Use it.
5492         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5493         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5494         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5495         prototype.
5496         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5497         (_IO_wfile_jumps_mmap): Don't use it anymore.
5498         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5499         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5500         _IO_wdefault_setbuf.
5501         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5502         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5503         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5505 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5507         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5508         * libio/tst-mmap-setvbuf.c: New test.
5510 2002-06-21  Andreas Jaeger  <aj@suse.de>
5512         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5514 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5516         * include/unistd.h (__fork_internal): Remove.
5517         (__fork): Don't define to __fork_internal.
5518         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5519         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5520         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5521         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5522         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5524 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5526         * po/hr.po: New file.
5528 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5530         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5531         Reported by Michael Meissner <meissner@redhat.com>.
5533 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5535         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5536         Patch by Hans Boehm <hans_boehm@hp.com>.
5538 2002-06-20  Andreas Jaeger  <aj@suse.de>
5540         * math/libm-test.inc: Use exact values as input parameters,
5541         compute output parameters with 36 digits for 128-bit long doubles.
5542         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5543         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5544         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5546 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5548         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5549         argument or result is subnormal.
5551 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5553         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5554         quotient.
5555         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5556         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5558         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5560 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5562         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5563         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5564         Reported by Peter A. Buhr.
5566 2002-06-15  Roland McGrath  <roland@frob.com>
5568         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5569         warning.
5571         * sysdeps/mach/hurd/getcwd.c
5572         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5574         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5575         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5577         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5578         jump to local subroutine.
5580 2002-06-14  Roland McGrath  <roland@frob.com>
5582         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5583         * sysdeps/mach/hurd/Makeconfig: ... here.
5585 2002-06-13  Andreas Schwab  <schwab@suse.de>
5587         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5588         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5589         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5591 2002-06-13  Roland McGrath  <roland@frob.com>
5593         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5594         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5595         Use intptr_t instead of int for argc in stack layout.
5596         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5597         (_dl_init_first): Likewise.
5598         (_hurd_stack_setup): Likewise.
5599         (init1): Add a cast.
5600         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5602         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5603         argument to pfinet_siocgifconf RPC.
5605 2002-06-13  Andreas Schwab  <schwab@suse.de>
5607         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5608         expansion order.
5610 2002-06-12  Roland McGrath  <roland@frob.com>
5612         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5613         if already defined.
5614         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5615         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5617 2002-06-11  Roland McGrath  <roland@frob.com>
5619         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5620         file on [!RTLD_STAT64].
5621         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5623         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5624         (__fdopen): Use INTUSE.
5625         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5627         * stdio-common/tmpfile64.c: File removed.
5628         * sysdeps/generic/tmpfile64.c: New file.
5629         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5630         if not already defined.
5631         (tmpfile): Use it in place of __GT_FILE.
5633         * include/unistd.h: Declare __chown_internal.
5635         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5636         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5638 2002-06-09  Roland McGrath  <roland@frob.com>
5640         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5641         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5642         value of HURD_INTERFACE_VERSION >= 20020609.
5643         * sysdeps/mach/hurd/configure: Regenerated.
5644         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5645         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5646         convert a struct stat64 into a struct stat and return 0 or -1
5647         with errno set to EOVERFLOW.
5648         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5649         for struct statfs64 to struct statfs.
5650         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5651         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5652         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5653         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5654         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5655         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5656         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5657         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5658         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5659         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5660         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5661         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5662         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5663         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5664         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5665         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5666         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5667         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5668         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5669         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5670         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5671         Use struct stat64 for io_stat argument.
5672         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5673         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5674         to io_seek.
5675         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5676         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5677         * hurd/hurd/fd.h: Update decls.
5678         * sysdeps/mach/hurd/getcwd.c
5679         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5680         and struct dirent64.
5681         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5682         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5683         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5684         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5686 2002-06-08  Roland McGrath  <roland@frob.com>
5688         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5689         instead of unsigned long int for __allocation and __size members.
5691 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5693         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5694         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5695         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5696         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5698 2002-06-07  Roland McGrath  <roland@frob.com>
5700         * sysdeps/mach/hurd/bits/environments.h: File removed.
5702 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5704         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5705         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5706         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5707         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5708         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5709         (sendfile64): Likewise.
5710         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5711         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5712         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5713         Likewise.
5714         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5716         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5717         already defined.
5719 2002-06-04  Bruno Haible  <bruno@clisp.org>
5721         * sysdeps/cris/stackinfo.h: New file.
5723         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5724         to an integer type before performing bit operations on it.
5726 2002-06-05  Roland McGrath  <roland@frob.com>
5728         * sysdeps/generic/sendfile.c: Include <errno.h>.
5729         * sysdeps/generic/sendfile64.c: Likewise.
5731         * io/Makefile (routines): Add sendfile and sendfile64.
5732         (headers): Add sys/sendfile.h to the list.
5733         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5734         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5735         * io/sys/sendfile.h: ... here.
5736         * sysdeps/generic/sendfile.c: New file.
5737         * sysdeps/generic/sendfile64.c: New file.
5739         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5740         Move sendfile, sendfile64 to ...
5741         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5742         * sysdeps/mach/hurd/sendfile.c: New file.
5743         * sysdeps/mach/hurd/sendfile64.c: New file.
5745         * sysdeps/mach/nanosleep.c: New file.
5747 2002-06-04  Roland McGrath  <roland@frob.com>
5749         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5750         * sysdeps/alpha/elf/configure: New file (generated).
5752 2002-06-02  Roland McGrath  <roland@frob.com>
5754         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5756 2002-06-01  Roland McGrath  <roland@frob.com>
5758         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5759         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5761 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5763         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5764         Add nsmap.
5765         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5766         Remove nstimes setting.
5767         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5768         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5769         there is mix of IPv6 and IPv4 nameservers.
5770         Use nsmap array to find free slots and preserve nameserver ordering.
5771         Fix RES_ROTATE.
5773 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5775         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5776         use this header with LFS.
5778         * po/sk.po: Update from translation team.
5780 2002-05-28  Andreas Schwab  <schwab@suse.de>
5782         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5783         message when finding object of wrong class.
5785 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5787         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5788         Patch by <radu@netsoft.ro>.
5790 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5792         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5793         Add readahead.
5794         * sysdeps/unix/sysv/linux/readahead.c: New file.
5795         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5796         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5797         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5798         Add sendfile64 alias to sendfile syscall.
5799         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5800         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5801         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5802         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5803         syscall.
5805         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5806         special section for PIC register loading.
5807         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5809         * config.h.in: Define HAVE_HIDDEN.
5810         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5812         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5814 2002-05-28  Roland McGrath  <roland@frob.com>
5816         * sysdeps/mach/alpha/setfpucw.c: New file.
5818 2002-05-26  Roland McGrath  <roland@frob.com>
5820         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5821         Use integer_t instead of int for IOC_VOID case.
5823 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5825         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5827 2002-05-26  Bruno Haible  <bruno@clisp.org>
5829         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5830         end of the ISO-8859-7 from idx table.
5832 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5834         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5836 2002-05-24  David S. Miller  <davem@redhat.com>
5838         * string/bits/string2.h (memset): Do not try to optimize when
5839         not _STRING_ARCH_unaligned if GCC will do the right thing.
5841 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5843         * posix/regex.c: Define `inline' as a macro into nothing for the
5844         compilers which lack the keyword.
5845         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5846         for the compatibility of gawk.
5847         * posix/regcomp.c: Add fake implementation of isblank() for the
5848         environments which lack the function.
5849         Don't use free_charset() in case of non-i18n envs.
5850         (build_range_exp): Don't use i18n related code in case of non-i18n
5851         envs.
5852         (build_collating_symbol): Likewise.
5853         (build_equiv_class): Likewise.
5854         (build_charclass): Likewise.
5855         (re_compile_fastmap_iter): Likewise.
5856         (parse_bracket_exp): Likewise.
5857         (build_word_op): Likewise.
5858         (regfree): Don't use free_charset() in case of non-i18n envs.
5859         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5860         re_token_type_t in case of non-i18n envs.
5861         Don't define re_charset_t in case of non-i18n envs.
5862         Change the type of wcs of re_string_t from wchar_t to wint_t,
5863         since we store also WEOF.
5864         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5865         the type of wcs of re_string_t from wchar_t to wint_t.
5866         (re_string_reconstruct): Likewise.
5867         (create_ci_newstate): Don't use i18n related code in case of
5868         non-i18n envs.
5869         (create_cd_newstate): Likewise.
5871 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5873         * iconv/loop.c: Fix typo.
5875 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5877         * inet/ether_line.c (ether_line): Fix a typo causing only
5878         lower 4 bits of each ethernet address byte being assigned.
5879         Don't modify what line points to.
5880         * inet/tst-ether_aton.c (main): Add ether_line tests.
5882 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5884         * manual/filesys.texi: Don't make readlink example leak memory
5885         when readlink fails.
5887 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5889         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5890         some more security checks.
5892 2002-05-17  David S. Miller  <davem@redhat.com>
5894         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5896 2002-05-16  David S. Miller  <davem@redhat.com>
5898         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5899         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5900         (elf_machine_load_address): Likewise.
5901         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5903         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5904         is unaligned, do not forget to fully initialize %g1 magic value.
5906         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5907         register definitions and provide 32-bit variants of structures
5908         during 64-bit builds.
5910         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5911         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5912         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5913         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5914         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5915         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5916         Do not clear implicit one bit here, it must be done post-rounding.
5917         Only pad to the left using left shift if value uses less than the
5918         available fractional bits.
5920 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5922         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5923         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5924         (shared-only-routines): Likewise.
5925         * sysdeps/powerpc/libgcc-compat.c: New file.
5926         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5927         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5928         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5929         * sysdeps/wordsize-32/shdi3.c: Removed.
5931 2002-05-16  Bruno Haible  <bruno@clisp.org>
5933         * MakeTAGS (libc.pot): Don't sort the output.
5934         * po/header.pot: Update to match xgettext 0.11 output.
5936 2002-05-16  Bruno Haible  <bruno@clisp.org>
5938         * MakeTAGS (subdirs): Remove duplicates.
5940 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5942         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5943         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5944         alias.
5946 2002-05-19  Andreas Jaeger  <aj@suse.de>
5948         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5949         installation in /usr/local.
5951 2002-05-16  Bruno Haible  <bruno@clisp.org>
5953         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5954         string as argument of #error.
5956 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5958         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5959         don't define static.  Remove old __realpath function.  TC1 of
5960         POSIX 2001 will allow the second parameter to be NULL.
5961         * stdlib/test-canon.c: Comment out test for NULL as second
5962         parameter of realpath.
5964         * time/offtime.c (__offtime): Set errno if overflow is detected.
5966         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5967         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5968         dl-brk and dl-sbrk.
5970         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5971         (fdimf): Likewise.
5973 2002-05-15  Roland McGrath  <roland@frob.com>
5975         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5977 2002-05-12  Bruno Haible  <bruno@clisp.org>
5979         * iconvdata/testdata/EUC-JISX0213: New file.
5980         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5981         * iconvdata/testdata/SHIFT_JISX0213: New file.
5982         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5983         * iconvdata/testdata/ISO-2022-JP-3: New file.
5984         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5985         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5986         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5987         contains comments indicating precomposed characters.
5989 2002-04-21  Bruno Haible  <bruno@clisp.org>
5991         * iconvdata/iso-2022-jp-3.c: New file.
5992         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5993         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5994         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5995         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5996         (distribute): Add iso-2022-jp-3.c.
5998 2002-05-12  Bruno Haible  <bruno@clisp.org>
6000         * iconvdata/tst-table-to.c (main): Restore handling of
6001         transliterations, broken by last patch.
6003 2002-05-12  Bruno Haible  <bruno@clisp.org>
6005         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6007 2002-05-12  Bruno Haible  <bruno@clisp.org>
6009         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6010         when there is not enough room in the output buffer.
6011         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6013 2002-04-20  Bruno Haible  <bruno@clisp.org>
6015         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6016         macros.
6017         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6018         Also make this macro work if FROM_DIRECTION evaluates to 0.
6019         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6020         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6021         of consume_incomplete.
6022         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6023         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6024         4, not 8.
6025         * iconvdata/cp1258.c: Likewise.
6026         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6027         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6028         not 2.
6029         * iconvdata/ibm933.c: Likewise.
6030         * iconvdata/ibm935.c: Likewise.
6031         * iconvdata/ibm937.c: Likewise.
6032         * iconvdata/ibm939.c: Likewise.
6033         * iconvdata/iso-2022-cn.c: Define
6034         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6035         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6036         * iconvdata/iso-2022-cn-ext.c: Likewise.
6037         * iconvdata/iso-2022-jp.c: Define
6038         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6039         {MIN,MAX}_NEEDED_{FROM,TO}.
6040         * iconvdata/tcvn5712-1.c: Define
6041         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6042         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6043         * iconvdata/euc-jisx0213.c: Define
6044         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6045         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6046         * iconvdata/shift_jisx0213.c: Likewise.
6048 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6050         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6051         shdi3, fixdfdi, fixsfdi in csu dir.
6052         (shared-only-routines): Likewise.
6053         * sysdeps/wordsize-32/cmpdi2.c: New file.
6054         * sysdeps/wordsize-32/shdi3.c: New file.
6055         * sysdeps/wordsize-32/fixdfdi.c: New file.
6056         * sysdeps/wordsize-32/fixsfdi.c: New file.
6057         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6058         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6059         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6061         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6062         Only use va_arg if the argument will be used [PR libc/3259].
6064 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6066         * catgets/catgets.c (catopen): Free buffer if internal catalog
6067         open fails.
6069 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6071         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6072         non-buffering methods.
6073         * debug/pcprofiledump.c: Implement -u option.
6074         Patch by Roger Luethi <rl@hellgate.ch>.
6076 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6078         * include/netinet/in.h (bindresvport_internal): Add prototype.
6079         * include/rpc/auth.h  (authunix_create_internal,
6080         authunix_create_default_internal, authnone_create_internal,
6081         authdes_pk_create_internal): Add prototypes.
6082         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6083         clntudp_create_internal, clntudp_bufcreate_internal,
6084         clntunix_create_internal): Add prototypes.
6085         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6086         svc_getreq_internal, svc_getreq_common_internal,
6087         svc_getreqset_internal, svc_getreq_poll_internal,
6088         svc_register_internal, svc_unregister_internal,
6089         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6090         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6091         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6092         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6093         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6094         * inet/rcmd.c (rcmd_af): Use __listen.
6095         (rresvport_af): Use __bind.
6096         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6097         authunix_create, authunix_create_default, authnone_create,
6098         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6099         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6100         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6101         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6102         _authenticate, add INTDEF after such function definitions.
6103         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6104         __setsockopt, __getsockname instead of non-__ variants.
6105         * sunrpc/pmap_rmt.c: Likewise.
6106         * sunrpc/rtime.c: Likewise.
6107         * sunrpc/svc_udp.c: Likewise.
6108         * sunrpc/clnt_unix.c: Likewise.
6109         * sunrpc/svc_unix.c: Likewise.
6110         * sunrpc/bindrsvprt.c: Likewise.
6111         * sunrpc/svc_tcp.c: Likewise.
6112         * sunrpc/auth_none.c: Likewise.
6113         * sunrpc/clnt_raw.c: Likewise.
6114         * sunrpc/clnt_tcp.c: Likewise.
6115         * sunrpc/auth_unix.c: Likewise.
6116         * sunrpc/key_call.c: Likewise.
6117         * sunrpc/clnt_gen.c: Likewise.
6118         * sunrpc/pm_getmaps.c: Likewise.
6119         * sunrpc/clnt_simp.c: Likewise.
6120         * sunrpc/pmap_clnt.c: Likewise.
6121         * sunrpc/svc_run.c: Likewise.
6122         * sunrpc/svc.c: Likewise.
6123         * sunrpc/svc_simple.c: Likewise.
6124         * sunrpc/pm_getport.c: Likewise.
6125         * sunrpc/auth_des.c: Likewise.
6126         * sunrpc/svc_auth.c: Likewise.
6127         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6128         __register_frame_info_table_bases, __deregister_frame_info_bases):
6129         Add INTDEF.
6130         (__register_frame_info_bases_internal,
6131         __register_frame_info_table_bases_internal,
6132         __deregister_frame_info_bases_internal): Add prototypes.
6133         (__register_frame_info, __register_frame): Use INTUSE in call to
6134         __register_frame_info_bases.
6135         (__register_frame_info_table): Similarly.
6136         (__deregister_frame_info, __deregister_frame): Similarly.
6137         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6138         sendto as weak alias.
6139         * sysdeps/mach/hurd/sendto.c: Likewise.
6140         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6141         recvfrom as weak alias.
6142         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6143         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6144         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6145         recvmsg as weak alias.
6146         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6147         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6148         sendmsg as weak alias.
6149         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6150         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6151         setsockopt, add setsockopt as weak alias.
6152         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6153         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6154         weak alias.
6155         * sysdeps/mach/hurd/bind.c: Likewise.
6156         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6157         as weak alias.
6158         * sysdeps/mach/hurd/listen.c: Likewise.
6159         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6160         getsockname, add getsockname as weak alias.
6161         * sysdeps/mach/hurd/getsockname.c: Likewise.
6162         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6163         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6164         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6165         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6166         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6167         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6168         Add aliases.
6169         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6170         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6171         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6172         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6173         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6174         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6175         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6176         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6177         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6178         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6179         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6180         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6182 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6184         * locale/programs/localedef.h (show_archive_content): Add verbose
6185         argument.
6186         * locale/programs/localedef.c (main): Adjust caller.
6187         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6188         types.
6189         (nameentcmp, dataentcmp): New functions.
6190         (xstrcmp): Remove.
6191         (show_archive_content): Print verbose listing with --list-archive -v.
6193 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6195         * locale/programs/locarchive.c (open_archive): Take extra argument
6196         readonly.  If true open file with O_RDONLY and don't create the
6197         archive if it doesn't exist.
6198         Adapt all callers.
6199         (close_archive): Don't do anything if fd element is -1.
6200         * locale/programs/localedef.h (open_archive): Adjust prototype.
6201         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6202         call.
6204         * malloc/malloc.c (__posix_memalign): Correct check for size of
6205         alignment value [PR libc/3444].
6207         * include/stdio.h: Remove references to old stdio implementation.
6209         * libio/Makefile (bug-ungetwc2-ENV): Define.
6211 2002-05-13  Roland McGrath  <roland@frob.com>
6213         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6215         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6217 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6219         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6220         Allocate three, not two, more than LEN when appending '/.'.
6221         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6222         if NAME ends with '/.' if it is shorter than 2 chars.
6224 2002-05-12  Roland McGrath  <roland@frob.com>
6226         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6227         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6229         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6230         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6232 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6234         * sysdeps/ia64/Makefile: Remove extra endif.
6235         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6237 2002-05-10  Andreas Schwab  <schwab@suse.de>
6239         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6241 2002-05-09  Andreas Jaeger  <aj@suse.de>
6243         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6244         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6245         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6247         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6248         * sysdeps/wordsize-64/glob.c: ...here.
6249         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6250         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6251         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6253 2002-05-08  Roland McGrath  <roland@frob.com>
6255         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6256         O_NOTRANS flag in "." lookup.
6258 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6260         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6262 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6264         * locale/duplocale.c (__duplocale): Update special members only
6265         when allocation succeeded.
6267 2002-05-03  Roland McGrath  <roland@frob.com>
6269         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6270         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6272 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6274         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6275         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6276         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6277         * sysdeps/ia64/ia64libgcc.S: New file.
6279 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6281         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6283         * malloc/memusage.c: Distinguish anonymous mmap.
6285 2002-05-01  Roland McGrath  <roland@frob.com>
6287         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6288         and use INTDEF on it.
6289         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6291         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6293         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6295 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6297         * malloc/memusage.c: Add support for tracking mmap & friends.
6298         * malloc/memusage.sh: Implement -m/--mmap option.
6300 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6302         * locale/programs/locarchive.c (create_archive): Add archivefname
6303         argument, create fname from it.
6304         (enlarge_archive): Honour output_prefix.
6305         (open_archive): Likewise.
6307 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6309         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6310         too many stpcpy macros.
6312 2002-04-26  Bruno Haible  <bruno@clisp.org>
6314         * locale/programs/ld-collate.c (collate_read): Cast first argument
6315         for "%.*s" to int.
6317 2002-04-26  Bruno Haible  <bruno@clisp.org>
6319         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6320         __dcngettext_internal): New declarations.
6321         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6322         attribute declarations.
6324 2002-04-30  Roland McGrath  <roland@frob.com>
6326         Removed old GNU stdio implementation; GNU libio is now the only option.
6327         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6328         Define USE_IN_LIBIO unconditionally.
6329         * configure: Regenerated.
6330         * Makeconfig (stdio): Set to libio by default.
6331         * config.make.in (stdio): Variable removed.
6332         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6333         * sysdeps/unix/sysv/linux/configure: Regenerated.
6334         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6335         * sysdeps/mach/hurd/configure: Regenerated.
6336         * stdio/.cvsignore: File removed.
6337         * stdio/Makefile: File removed.
6338         * stdio/Versions: File removed.
6339         * stdio/__fbufsize.c: File removed.
6340         * stdio/__flbf.c: File removed.
6341         * stdio/__fpending.c: File removed.
6342         * stdio/__fpurge.c: File removed.
6343         * stdio/__freadable.c: File removed.
6344         * stdio/__freading.c: File removed.
6345         * stdio/__fsetlocking.c: File removed.
6346         * stdio/__fwritable.c: File removed.
6347         * stdio/__fwriting.c: File removed.
6348         * stdio/clearerr.c: File removed.
6349         * stdio/fclose.c: File removed.
6350         * stdio/fcloseall.c: File removed.
6351         * stdio/feof.c: File removed.
6352         * stdio/ferror.c: File removed.
6353         * stdio/fflush.c: File removed.
6354         * stdio/fgetc.c: File removed.
6355         * stdio/fgetpos.c: File removed.
6356         * stdio/fgets.c: File removed.
6357         * stdio/fileno.c: File removed.
6358         * stdio/fmemopen.c: File removed.
6359         * stdio/fopen.c: File removed.
6360         * stdio/fopncook.c: File removed.
6361         * stdio/fputc.c: File removed.
6362         * stdio/fputs.c: File removed.
6363         * stdio/fread.c: File removed.
6364         * stdio/freopen.c: File removed.
6365         * stdio/fseek.c: File removed.
6366         * stdio/fsetpos.c: File removed.
6367         * stdio/ftell.c: File removed.
6368         * stdio/fwrite.c: File removed.
6369         * stdio/getc.c: File removed.
6370         * stdio/getchar.c: File removed.
6371         * stdio/getdelim.c: File removed.
6372         * stdio/gets.c: File removed.
6373         * stdio/glue.c: File removed.
6374         * stdio/internals.c: File removed.
6375         * stdio/linewrap.c: File removed.
6376         * stdio/linewrap.h: File removed.
6377         * stdio/memstream.c: File removed.
6378         * stdio/newstream.c: File removed.
6379         * stdio/obstream.c: File removed.
6380         * stdio/putc.c: File removed.
6381         * stdio/putchar.c: File removed.
6382         * stdio/puts.c: File removed.
6383         * stdio/rewind.c: File removed.
6384         * stdio/setbuf.c: File removed.
6385         * stdio/setbuffer.c: File removed.
6386         * stdio/setlinebuf.c: File removed.
6387         * stdio/setvbuf.c: File removed.
6388         * stdio/stdio.h: File removed.
6389         * stdio/ungetc.c: File removed.
6390         * stdio/vasprintf.c: File removed.
6391         * stdio/vscanf.c: File removed.
6392         * stdio/vsnprintf.c: File removed.
6393         * stdio/vsprintf.c: File removed.
6394         * stdio/vsscanf.c: File removed.
6395         * sysdeps/generic/defs.c: File removed.
6396         * sysdeps/generic/fdopen.c: File removed.
6397         * sysdeps/generic/pipestream.c: File removed.
6398         * sysdeps/generic/stdio_init.c: File removed.
6399         * sysdeps/generic/sysd-stdio.c: File removed.
6400         * sysdeps/generic/vdprintf.c: File removed.
6401         * sysdeps/mach/hurd/defs.c: File removed.
6402         * sysdeps/mach/hurd/fdopen.c: File removed.
6403         * sysdeps/mach/hurd/pipestream.c: File removed.
6404         * sysdeps/mach/hurd/stdio_init.c: File removed.
6405         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6406         * sysdeps/mach/hurd/vdprintf.c: File removed.
6407         * sysdeps/posix/defs.c: File removed.
6408         * sysdeps/posix/fdopen.c: File removed.
6409         * sysdeps/posix/pipestream.c: File removed.
6410         * sysdeps/posix/stdio_init.c: File removed.
6411         * sysdeps/posix/vdprintf.c: File removed.
6412         * sysdeps/unix/pipestream.c: File removed.
6413         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6414         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6415         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6417 2002-04-29  Roland McGrath  <roland@frob.com>
6419         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6421 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6423         * sysdeps/generic/tls.h: Describe what must be defined.
6425         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6426         glob_in_dir [PR libc/3385].
6427         * posix/globtest.sh: Add test case.
6429         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6430         //TRANSLIT twice.
6432 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6434         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6435         _internal symbol handling.
6436         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6438 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6440         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6441         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6443 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6445         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6446         not _LIBC and RE_ENABLE_I18N.
6447         (build_range_exp): Implement for not _LIBC.
6448         (build_collating_symbol): Likewise.
6449         (parse_bracket_exp): Unify redundant error handlings.
6450         Don't erase mbcset for non matching list in multibyte envs.
6451         (build_word_op): Add '_' to matching list for \w operator.
6452         * posix/regex_internal.c (re_string_construct): Invoke
6453         build_upper_buffer in case of not RE_ENABLE_I18N.
6454         (re_string_reconstruct): Don't touch cur_state in case of not
6455         RE_ENABLE_I18N.
6456         * posix/regex_internal.h (attribute_hidden): New macro in case of
6457         not _LIBC.
6458         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6459         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6460         RE_ENABLE_I18N.
6461         (transit_state_mb): Likewise.
6462         (check_node_accept_bytes): Implement the code evaluating range
6463         expression in case of not _LIBC.
6464         (find_collation_sequence_value): Hide in case of not _LIBC.
6466 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6468         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6469         i386/semctl.c.
6470         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6471         be used.
6473 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6475         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6477         * sysdeps/ia64/strncpy.S: Fix recovery code.
6478         Patch by David Mosberger <davidm@hpl.hp.com>.
6480 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6482         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6483         GLIBC_2.2.6.
6485 2002-04-14  Bruno Haible  <bruno@clisp.org>
6487         * posix/regex.c (re_max_failures): Add back symbol for binary
6488         compatibility.
6490 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6492         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6493         of buffer building functions.
6494         * posix/regex_internal.c (re_string_allocate): New function.
6495         (re_string_realloc_buffers): New function.
6496         (re_string_skip_chars): New function.
6497         (re_string_reconstruct): New function.
6498         (re_string_construct): Adapt it to new interface of buffer building
6499         functions.
6500         (re_string_construct_common): Likewise.
6501         (build_wcs_buffer): Likewise.
6502         (build_wcs_upper_buffer): Likewise.
6503         (build_upper_buffer): Likewise.
6504         (re_string_translate_buffer): Likewise.
6505         (re_string_context_at): Adapt it to variable length buffers.
6506         * posix/regex_internal.h (re_string_t): Add new fields to handle
6507         variable length buffers.
6508         (re_match_context_t): Likewise.
6509         * posix/regexec.c (re_search_internal): Adapt it to new interface
6510         of re_string_t and re_match_context_t.
6511         (acquire_init_state_context): Likewise.
6512         (check_matching): Likewise.
6513         (check_halt_state_context): Likewise.
6514         (proceed_next_node): Likewise.
6515         (set_regs): Likewise.
6516         (sift_states_backward): Likewise.
6517         (clean_state_log_if_need): Likewise.
6518         (sift_states_iter_mb): Likewise.
6519         (sift_states_iter_bkref): Likewise.
6520         (add_epsilon_backreference): Likewise.
6521         (transit_state): Likewise.
6522         (transit_state_sb): Likewise.
6523         (transit_state_mb): Likewise.
6524         (transit_state_bkref): Likewise.
6525         (transit_state_bkref_loop): Likewise.
6526         (check_node_accept): Likewise.
6527         (match_ctx_init): Likewise.
6528         (extend_buffers): New function.
6530 2002-04-21  Bruno Haible  <bruno@clisp.org>
6532         * iconvdata/tst-table.sh: For the second check, use the truncated
6533         GB18030 charmap table, like for the first check.
6535 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6537         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6538         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6540 2002-04-23  H.J. Lu  <hjl@gnu.org>
6542         * include/math.h (isfinite): Fix a typo.
6544 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6546         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6547         which is created by the test suite.
6549 2002-04-20  Bruno Haible  <bruno@clisp.org>
6551         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6552         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6554 2002-04-20  Bruno Haible  <bruno@clisp.org>
6556         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6557         to avoid gcc warning.
6559 2002-04-20  Bruno Haible  <bruno@clisp.org>
6561         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6562         of data->__statep->__count.
6564 2002-04-20  Bruno Haible  <bruno@clisp.org>
6566         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6567         tag characters.
6568         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6570 2002-04-24  Roland McGrath  <roland@frob.com>
6572         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6573         use END macro instead of our own .end directive.
6574         Use `callsys' insn mnemonic instead of `call_pal'.
6576         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6578         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6579         macro; we need this for Hurd.
6581         Log entry was missing for 2002/03/24 commit of rev 1.8,
6582         goes with 2002-03-17 changes.
6583         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6584         (sysdep_routines): Append ioperm here.
6585         (sysdep_headers): Append sys/io.h here.
6587 2002-04-23  Roland McGrath  <roland@frob.com>
6589         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6590         * sysdeps/mach/hurd/sendto.c: Likewise.
6591         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6592         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6593         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6595 2002-04-22  Roland McGrath  <roland@frob.com>
6597         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6598         failure from i386_io_perm_* RPCs to ENOSYS.
6600 2002-04-22  Andreas Jaeger  <aj@suse.de>
6602         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6604         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6606         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6607         register instead of destroying %rbx.
6609 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6611         * string/string.h: Declare strerror_r also for XPG6.
6613 2002-04-19  Roland McGrath  <roland@frob.com>
6615         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6617 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6619         * Makefile: Add handling of xtests and xcheck targets.
6620         * MakeTAGS: Likewise.
6621         * Makeconfig: Likewise.
6622         * Makerules: Likewise.
6623         * Rules: Likewise.
6624         * manual/Makefile: Likewise.
6625         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6626         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6628 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6630         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6631         authnone_private_s.
6632         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6633         Delete #ifdef _RPC_THREAD_SAFE_ block.
6634         (authnone_private): Make a struct, not a pointer to struct.
6635         (authnone_private_guard): New once-control variable.
6636         (authnone_create_once): New function, split out of
6637         authnone_create.  No need to allocate memory.
6638         (authnone_create): Just call authnone_create_once via
6639         __libc_once, then return &authnone_private->no_client.
6640         (authnone_marshal): Access private data via CLIENT argument,
6641         not authnone_private pointer.
6642         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6643         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6644         authnone_private_s.
6646 2002-04-12  H.J. Lu  <hjl@gnu.org>
6648         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6650 2002-04-18  Bruno Haible  <bruno@clisp.org>
6652         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6653         FROM_DIRECTION): Make the FROM direction stateless.
6654         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6655         FROM_DIRECTION): Likewise.
6657 2002-04-15  Bruno Haible  <bruno@clisp.org>
6659         * iconvdata/JISX0213.TXT: New file.
6660         * iconvdata/jisx0213.h: New file.
6661         * iconvdata/jisx0213.c: New file.
6662         * iconvdata/euc-jisx0213.c: New file.
6663         * iconvdata/shift_jisx0213.c: New file.
6664         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6665         * iconvdata/EUC-JISX0213.precomposed: New file.
6666         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6667         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6668         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6669         which the "to" direction is stateful.
6670         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6671         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6672         SHIFT_JISX0213.
6673         (libJISX0213-routines): New variable.
6674         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6675         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6676         (LDFLAGS-libJISX0213.so): New variable.
6677         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6678         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6679         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6681 2002-04-15  Bruno Haible  <bruno@clisp.org>
6683         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6684         uint32_t.  Update to Unicode 3.2.
6685         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6686         (BODY for TO_LOOP): Handle the ASCII range specially.
6687         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6688         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6689         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6691 2002-04-15  Bruno Haible  <bruno@clisp.org>
6693         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6694         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6696 2002-04-15  Bruno Haible  <bruno@clisp.org>
6698         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6699         (ucs4_to_cns11643): Update.
6700         * iconvdata/cns11643.c: Update to Unicode 3.2.
6701         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6702         __cns11643_from_ucs4p2_tab): Regenerated.
6703         (__cns11643_from_ucs4p2c_tab): New array.
6704         * iconvdata/cvs11643l1.c: Update comments.
6705         * iconvdata/EUC-TW.irreversible: Remove two entries.
6707 2002-04-15  Bruno Haible  <bruno@clisp.org>
6709         * locale/C-translit.h.in: Update to Unicode 3.2.
6710         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6711         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6713 2002-04-15  Bruno Haible  <bruno@clisp.org>
6715         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6716         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6718 2002-04-15  Bruno Haible  <bruno@clisp.org>
6720         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6721         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6722         always one byte, not 0 bytes in some cases and 2 bytes in others.
6724         * iconvdata/tst-table-from.c (main): Correct the usage message.
6726 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6728         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6729         (parse_dup_op): Fix error handling like "a{}".
6730         (parse_bracket_exp): Add error handling.
6731         (fetch_number): Add error handling for "a{<very_large_number>}".
6733 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6735         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6736         in case that the symbol name is too long.
6737         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6738         in case of REG_ICASE.
6740 2002-04-19  Andreas Jaeger  <aj@suse.de>
6742         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6743         <hartvige@mips.com>.
6745 2002-04-15  H.J. Lu  <hjl@gnu.org>
6747         * include/math.h (__finitel_internal): Declare only if
6748         __NO_LONG_DOUBLE_MATH is not defined.
6749         (__isinfl_internal): Likewise.
6750         (__isnanl_internal): Likewise.
6752         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6753         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6754         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6755         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6756         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6757         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6758         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6760         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6761         __fcntl_internal.
6763         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6764         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6766 2002-04-15  Bruno Haible  <bruno@clisp.org>
6768         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6769         (BODY for TO_LOOP): Likewise.
6770         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6771         * iconvdata/tst-table.sh: Add support for encodings which contain
6772         precomposed Unicode characters, known to the iconv converter in both
6773         directions but not listed in the charmap.
6774         * iconvdata/IBM856.irreversible: New file.
6775         * iconvdata/IBM922.irreversible: New file.
6776         * iconvdata/IBM1132.irreversible: New file.
6777         * iconvdata/IBM1133.irreversible: New file.
6778         * iconvdata/IBM1160.irreversible: New file.
6779         * iconvdata/IBM1161.irreversible: New file.
6780         * iconvdata/IBM1163.irreversible: New file.
6781         * iconvdata/IBM1164.irreversible: New file.
6782         * iconvdata/ARMSCII-8.irreversible: New file.
6783         * iconvdata/TCVN5712-1.precomposed: New file.
6784         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6785         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6786         ARMSCII-8, TCVN5712-1.
6787         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6788         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6789         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6790         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6792 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6794         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6795         for EVENING69.  Include offsets in TZ environment variable.
6797 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6799         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6800         avoid compiler warnings.
6802         * locale/programs/localedef.c (main): Always call
6803         construct_output_path.
6805         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6807         * locale/programs/locfile.c (to_archive): New variable.  To collect
6808         data which has to be added to the locale archive.
6809         (write_all_categories): Take new third parameter with locale name.
6810         Unless no_archive flag set add new locale data to the archive
6811         (write_locale_data): Unless no-archive flag set store generated data
6812         in to_archive data structure instead of generation output file.
6813         Add new parameter with locale category index.
6814         * locale/programs/locfile.h: Add new parameters in declaractions of
6815         write_all_categories and write_locale_data.
6816         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6817         --add-to-archive, and --delete-from-archive options.  Pass extra
6818         parameter to write_all_categories.
6819         * locale/programs/localedef.h: Add prototypes for functions in
6820         locarchive.c.
6821         * locale/locarchive.h: New file.
6822         * locale/programs/locarchive.c: New file.
6823         * locale/Makefile (distribute): Add programs/locarchive.c and
6824         locarchive.h.
6825         (localedef-modules): Add md5 and locarchive.
6826         Add vpath to crypt subdir for md5.c.
6828         * locale/programs/ld-address.c: Pass locale category ID as new second
6829         parameter to write_locale_data.
6830         * locale/programs/ld-collate.c: Likewise.
6831         * locale/programs/ld-ctype.c: Likewise.
6832         * locale/programs/ld-identification.c: Likewise.
6833         * locale/programs/ld-measurement.c: Likewise.
6834         * locale/programs/ld-messages.c: Likewise.
6835         * locale/programs/ld-monetary.c: Likewise.
6836         * locale/programs/ld-name.c: Likewise.
6837         * locale/programs/ld-numeric.c: Likewise.
6838         * locale/programs/ld-paper.c: Likewise.
6839         * locale/programs/ld-telephone.c: Likewise.
6840         * locale/programs/ld-time.c: Likewise.
6842         * locale/simple-hash.c: Move compute_hashval function from here...
6843         * locale/hashval.h: ...to here.  New file.
6844         * locale/simple-hash.h: Add prototype for compute_hashval.
6846         * include/libintl.h: Minor cleanups.
6848 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6850         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6852 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6854         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6856 2002-04-14  Bruno Haible  <bruno@clisp.org>
6858         * locale/programs/charmap.c (charmap_read): Don't access result if
6859         result == NULL.
6861 2002-02-17  Andreas Schwab  <schwab@suse.de>
6863         * elf/reldep7.c: New file.
6864         * elf/reldep7mod1.c: New file.
6865         * elf/reldep7mod2.c: New file.
6866         * elf/Makefile: Add rules to build and run reldep7.
6868 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6870         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6871         the end of the function.  Pass original flags to recursive call if
6872         add_dependency failed.
6873         (_dl_lookup_versioned_symbol): Likewise.
6875 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6877         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6878         early, but check whether it overflowed afterwards.
6879         * time/tst-mktime.c (main): Add new tests.
6881 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6883         * debug/xtrace.sh: Fix program name in help message.
6884         Patch by Roger Luethi <rl@hellgate.ch>.
6886         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6887         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6888         NOT_IN_libc.
6889         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6890         * sysdeps/mach/hurd/lxstat.c: Likewise.
6891         * sysdeps/unix/common/lxstat.c: Likewise.
6892         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6893         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6894         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6895         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6896         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6897         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6898         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6899         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6900         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6902         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6903         prototypes.  Add __mbrlen and __mbrtowc macros.
6904         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6905         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6907         * include/unistd.h: Add prototype for __write_internal and add
6908         __libc_write macro is SHARED.
6909         * sysdeps/generic/write.c: Use INTDEF for __write.
6910         * sysdeps/mach/hurd/write.c: Likewise.
6911         * sysdeps/unix/sysv/aix/write.c: Likewise.
6912         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6914         * assert/assert.c: Replace STR_N_SIZE with something usable in
6915         macro arguments.
6916         * assert/assert-perr.c: Likewise.
6918         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6919         SA_LEN macro to use it if not NOT_IN_libc.
6920         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6922         * include/fcntl.h: Declare __open_internal and define __open and
6923         __libc_open macros if not NOT_IN_libc.
6924         * sysdeps/generic/open.c: Use INTDEF for __open.
6925         * sysdeps/mach/hurd/open.c: Likewise.
6926         * sysdeps/unix/sysv/aix/open.c: Likewise.
6927         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6929         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6930         has correct number.
6932         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6933         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6934         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6935         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6937         * include/wctype.h: Declare __iswalpha_l_internal,
6938         __iswdigit_l_internal, __iswspace_l_internal,
6939         __iswxdigit_l_internal, and __iswctype_internal.  Define
6940         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6941         __iswxdigit_l macros if not NOT_IN_libc.
6942         * wctype/iswctype.c: Use INTDEF for __iswctype.
6943         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6945         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6946         __isnan_internal, and __isnanl_internal.
6947         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6948         __isnan, and __isnanl.
6949         * stdio-common/printf_size.c: Likewise.
6950         * sysdeps/generic/printf_fphex.c: Likewise.
6951         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6952         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6953         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6954         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6955         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6956         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6957         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6958         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6959         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6960         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6961         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6962         * sysdeps/m68k/s_isinfl.c: Likewise.
6963         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6964         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6966         * include/sys/time.h: Declare __gettimeofday_internal and define
6967         __gettimeofday macro if not NOT_IN_libc.
6968         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6969         * sysdeps/mach/gettimeofday.c: Likewise.
6970         * sysdeps/posix/gettimeofday.c: Likewise.
6971         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6972         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6973         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6974         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6976         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6977         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6978         Remove __lstat and __fstat inline functions.
6979         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6980         * sysdeps/mach/hurd/fxstat.c: Likewise.
6981         * sysdeps/unix/fxstat.c: Likewise.
6982         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6983         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6984         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6985         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6986         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6987         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6988         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6989         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6990         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6992         * include/unistd.h: Declare __getpid_internal and define
6993         __getpid macro if not NOT_IN_libc.
6994         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6995         * sysdeps/generic/getpid.c: Likewise.
6996         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6997         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6999         * include/unistd.h: Declare __getpgid_internal and define
7000         __getpgid macro if not NOT_IN_libc.
7001         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7002         * sysdeps/mach/hurd/getpgid.c: Likewise.
7003         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7004         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7005         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7006         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7008         * include/unistd.h: Declare __getpagesize_internal and define
7009         __getpagesize macro if not NOT_IN_libc.
7010         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7011         __getpagesize.
7012         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7013         * sysdeps/mach/getpagesize.c: Likewise.
7014         * sysdeps/posix/getpagesize.c: Likewise.
7015         * sysdeps/unix/getpagesize.c: Likewise.
7016         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7017         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7018         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7019         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7021 2002-04-13  Andreas Jaeger  <aj@suse.de>
7023         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7024         as clobber to reduce register pressure.
7025         (__strpbrk_cg): Likewise.
7026         (__mempcpy_by4): Likewise.
7027         (__strstr_cg): Likewise.
7028         Add prototype for __memrchr.
7030 2002-04-13  Andreas Schwab  <schwab@suse.de>
7032         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7033         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7034         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7036 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7038         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7039         check whether the caller prefers getting the most recent version of
7040         a symbol of the earliest version.
7041         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7042         _dl_do_lookup to also take the new parameter and pass it on.
7043         Change 'explicit' parameter of _dl_lookup_symbol and
7044         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7045         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7046         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7047         _dl_lookup_versioned_symbol.
7048         * elf/dl-reloc.c: Likewise.
7049         * elf/dl-runtime.c: Likewise.
7050         * elf/dl-sym.c: Likewise.
7051         * sysdeps/mips/dl-machine.h: Likewise.
7053 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7055         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7056         in a token.
7057         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7059 2002-04-10  Andreas Jaeger  <aj@suse.de>
7061         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7063         * include/argz.h: Remove extra char from last patch.
7065 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7067         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7068         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7069         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7070         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7071         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7072         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7073         __chown_internal.
7074         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7076         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7077         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7078         * intl/ngettext.c: Likewise.
7080         * include/sys/socket.h: Declare __connect_internal and define
7081         __connect macro if not NOT_IN_libc.
7082         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7083         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7084         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7086         * include/unistd.h: Declare __close_internal and define __close macro
7087         if not NOT_IN_libc.
7088         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7089         WJUMP3): Add extra parenthesis to avoid expanding element names with
7090         macors like __close.
7091         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7093         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7094         if not NOT_IN_libc.
7095         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7096         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7097         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7099         * include/unistd.h: Declare __fork_internal and define __fork macro
7100         if not NOT_IN_libc.
7101         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7102         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7103         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7105         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7106         __fsetlocking macro to use it if not NOT_IN_libc.
7107         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7109         * libio/__fbufsize.c: Correct copyright.
7110         * libio/__flbf.c: Likewise.
7111         * libio/__fpending.c: Likewise.
7112         * libio/__fpurge.c: Likewise.
7113         * libio/__freadable.c: Likewise.
7114         * libio/__freading.c: Likewise.
7115         * libio/__fsetlocking.c: Likewise.
7116         * libio/__fwritable.c: Likewise.
7117         * libio/__fwriting.c: Likewise.
7119         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7120         macro to use it if not NOT_IN_libc.
7121         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7123         * include/mntent.h: Declare __setmntent_internal,
7124         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7125         __getmntent_r, and __endmntent macros to use these functions if not
7126         NOT_IN_libc.
7127         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7128         __endmntent.
7130         * include/math.h: Declare __finite_internal, __finitef_internal, and
7131         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7132         these functions.
7133         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7134         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7135         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7136         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7137         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7138         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7139         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7140         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7141         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7142         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7144         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7145         to use this function if not NOT_IN_libc.
7146         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7147         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7148         * sysdeps/mach/hurd/fcntl.c: Likewise.
7149         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7150         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7152         * include/argz.h: Declare __argz_count_internal and
7153         __argz_stringify_internal.
7154         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7155         __argz_stringify.
7156         * string/argz-count.c: Use INTDEF for __argz_count.
7157         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7159         * include/stdlib.h: Declare __cxa_atexit_internal and define
7160         __cxa_atexit macro if not NOT_IN_libc.
7161         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7162         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7164         * assert/assert.c: Use INTDEF for __assert_fail.
7165         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7166         * include/assert.h: Declare __assert_fail_internal.
7168         * extra-lib.mk: Mark assignment to lib with override.
7170 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7172         * Makerules: Use cppflags-iterator.mk to add defines for all test
7173         source files.
7175 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7177         * elf/elf.h: Define R_SH_TLS_xxx macros.
7178         * elf/rtld.c: Remove an extra parenthesis.
7179         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7180         TLS_GD macros.
7181         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7182         * sysdeps/sh/dl-lookupcfg.h: New file.
7183         * sysdeps/sh/dl-tls.h: New file.
7184         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7185         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7186         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7187         R_SH_TLS_TPOFF32 relocations.
7189 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7191         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7192         of NOT_IN_LIBC.
7193         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7194         * include/stdlib.h: Likewise.
7196 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7198         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7199         instead of _RTLD_LOCAL.
7200         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7201         * include/unistd.h: Likewise.
7202         * sysdeps/generic/ldsodefs.h: Likewise.
7204         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7205         if in libc or ld.so.
7207 2002-04-08  Andreas Jaeger  <aj@suse.de>
7209         * elf/cache.c (print_entry): Support x86-64.
7211 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7213         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7214         with one accessing the locale data structures directly.
7215         * stdio-common/printf-prs.c: Include localeinfo.h for new
7216         MB_CUR_MAX definition.
7218         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7219         is the name of the source file without extension.
7220         * Makefile (distribute): Add cppflags-iterator.mk.
7221         * cppflags-iterator.mk: New file.
7222         * extra-lib.mk: For the sources of the library run
7223         cppflags-iterator.mk.
7225         * include/libintl.h: Declare __dcgettext_internal and
7226         _libc_intl_domainname_internal.  Define __dcgettext using these
7227         two symbols if used in libc itself.
7228         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7229         _libc_intl_domainname_internal.
7230         * argp/argp-parse.c: Likewise.
7231         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7232         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7233         * intl/gettext.c: Likewise.
7234         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7235         alias.
7236         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7237         __dcgettext.
7238         * posix/regex_internal.c (gettext): Likewise.
7240 2002-04-08  Andreas Jaeger  <aj@suse.de>
7242         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7244         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7245         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7246         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7247         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7248         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7249         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7251 2002-04-08  Roland McGrath  <roland@frob.com>
7253         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7254         widening __hurd_fail value.
7256 2002-04-07  Roland McGrath  <roland@frob.com>
7258         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7259         <mach/machine/alpha_instruction.h>.
7260         (_hurd_setup_sighandler): Take proper arguments for current decls.
7261         Update code to use _hurdsig_catch_fault.
7262         Use `callsys' instruction instead of `call_pal'.
7263         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7265         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7266         (ALIGN, at, AT, fp): New macros.
7268 2002-04-06  Roland McGrath  <roland@frob.com>
7270         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7272         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7273         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7275         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7276         * sysdeps/mach/hurd/connect.c: Likewise.
7277         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7278         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7280         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7281         __msg_sig_post RPC.
7283         * hurd/catch-exc.c: Use integer_t instead of int.
7284         * hurd/hurdfault.c: Likewise.
7286         * sysdeps/mach/hurd/alpha/exc2signal.c
7287         (_hurd_exception2signal): Rewritten.
7288         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7289         (_hurd_longjmp_thread_state): Rewritten.
7291 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7293         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7294         DB_LOOKUP_FCT prototype.
7295         * nss/getXXent_r.c: Likewise.
7296         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7297         * inet/getaliasname_r.c: Likewise.
7298         * inet/getnetbyad_r.c: Likewise.
7299         * inet/getnetbynm_r.c: Likewise.
7300         * inet/getnetent_r.c: Likewise.
7301         * inet/getproto_r.c: Likewise.
7302         * inet/getprtent_r.c: Likewise.
7303         * inet/getprtname_r.c: Likewise.
7304         * inet/getrpcbyname_r.c: Likewise.
7305         * inet/getrpcbynumber_r.c: Likewise.
7306         * inet/getrpcent_r.c: Likewise.
7307         * inet/getservent_r.c: Likewise.
7308         * inet/getsrvbynm_r.c: Likewise.
7309         * inet/getsrvbypt_r.c: Likewise.
7310         * shadow/getspent_r.c: Likewise.
7311         * shadow/getspnam_r.c: Likewise.
7313         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7315         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7316         Use i686-friendly PIC code.
7317         * sysdeps/i386/elf/setjmp.S: Likewise.
7319         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7321         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7322         list.
7323         * elf/Versions: Remove it here.
7325 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7327         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7328         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7330 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7332         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7333         test just before the test runs.
7334         * intl/tst-translit.sh: Likewise.
7335         * intl/tst-codeset.sh: Likewise.
7337         * timezone/zic.c: Update from tzcode2002c.
7338         * timezone/asia: Update from tzdata2002c.
7339         * timezone/backward: Likewise.
7340         * timezone/europe: Likewise.
7341         * timezone/northamerica: Likewise.
7342         * timezone/northamerica: Likewise.
7343         * timezone/northamerica: Likewise.
7344         * timezone/southamerica: Likewise.
7345         * timezone/zone.tab: Likewise.
7347 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7349         * sysdeps/generic/brk.c (__curbrk): Declare.
7350         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7351         * sysdeps/generic/dl-sbrk.c: Likewise.
7352         * sysdeps/unix/arm/dl-brk.S: New file.
7353         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7354         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7355         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7356         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7357         * sysdeps/unix/i386/dl-brk.S: New file.
7358         * sysdeps/unix/mips/dl-brk.S: New file.
7359         * sysdeps/unix/sparc/dl-brk.S: New file.
7360         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7361         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7362         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7363         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7365 2002-04-03  Andreas Schwab  <schwab@suse.de>
7367         * Makefile (headers): Add gnu/lib-names.h here instead of
7368         install-others.
7369         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7370         installation rule.
7371         (install-headers): Add dependency on install-headers-nosubdir.
7372         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7373         instead of install-others.
7374         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7375         installation rule.
7377 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7379         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7380         Reported by Sam Roberts <sroberts@uniserve.com>.
7382 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7384         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7385         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7386         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7387         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7389 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7391         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7392         (RTLD_START): Ditto.
7393         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7394         dependency violation.
7396 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7398         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7399         all variable declarations.
7401 2002-04-04  Andreas Schwab  <schwab@suse.de>
7403         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7405 2002-04-04  Andreas Jaeger  <aj@suse.de>
7407         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7408         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7410         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7411         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7412         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7414         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7416         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7418         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7419         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7421         * configure.in: Handle all mips entries the same.
7423         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7424         * sysdeps/mips/mips3/*: Likewise.
7425         * sysdeps/mips/p40/bits/endian.h: Likewise.
7427 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7429         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7430         non-null result [PR libc/2600].
7432         * misc/tst-dirname.c: Add more tests.
7434 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7436         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7437         define a code_set_name provide one based on the filename.
7439         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7441 2001-12-28  Andreas Jaeger  <aj@suse.de>
7443         * time/mktime.c (__mktime_internal): Check for year < 70
7444         [PR libc/2738].
7446 2002-04-03  Andreas Jaeger  <aj@suse.de>
7448         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7449         shmat.
7450         Reported by Andi Kleen <ak@suse.de>.
7452 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7454         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7455         * sysdeps/generic/w_lgammaf.c: Likewise.
7456         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7458         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7459         Adjust for new output format of the backtrace functions.
7461         * misc/syslog.c (vsyslog): Only use cleanup handler if
7462         _LIBC_REENTRANT is defined [PR libc/2924].
7464         * libio/Makefile (tests): Add bug-ungetwc2.
7465         * libio/bug-ungetwc2.c: New file.
7467         * manual/install.texi: Typographical and grammatical cleanup.
7468         Patch by Dennis Grace <dgrace@us.ibm.com>.
7470         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7471         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7473         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7474         always "&".  Adjust callers.
7475         Add "_" prefix to several generated definitions.
7476         Patch by paul@serice.net [PR libc/3158].
7478 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7480         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7481         size of _dl_arm_cap_flags.
7482         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7484         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7485         Define as 8.
7487 2002-03-22  H.J. Lu  <hjl@gnu.org>
7489         * scripts/firstversions.awk: Check the first version.
7491 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7493         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7494         dependencies must be stable to work correctly.
7495         Reported by martin.lubich@datacon.at.
7497         * libio/bug-ungetwc1.c: New file.
7498         * libio/Makefile (tests): Add bug-ungetwc1.
7500         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7501         if stream was last used for writing.
7503         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7504         number [PR libc/3111].
7506         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7507         to ...
7508         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7510 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7512         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7513         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7514         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7515         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7516         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7518 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7520         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7521         dynamic tags.
7523 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7525         * sysdeps/i386/fpu/s_fabs.S: New file.
7526         * sysdeps/i386/fpu/s_fabsf.S: New file.
7527         * sysdeps/i386/fpu/s_fabsl.S: New file.
7528         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7529         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7530         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7532 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7534         * rt/tst-shm.c (do_test): Add one more test for size of shared
7535         memory object.
7537 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7539         * malloc/malloc.c: Add short description and prototypes for
7540         malloc_get_state, malloc_set_state and posix_memalign, for
7541         consistency and to avoid warnings with -Wstrict-prototypes.
7542         Reported by Andreas Jaeger <aj@suse.de>.
7544 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7546         * po/gl.po: Update from translation team.
7548 2002-03-31  Roland McGrath  <roland@frob.com>
7550         * hurd/hurdselect.c (_hurd_select): Fix
7551         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7552         Use a union rather than casts to compare mach_msg_type_t as int.
7554 2002-03-25  Roland McGrath  <roland@frob.com>
7556         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7557         check off the end of NAME when it's shorter than 2 chars.
7558         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7560 2002-03-17  Roland McGrath  <roland@frob.com>
7562         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7563         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7564         * sysdeps/mach/hurd/i386/Dist: Add them.
7565         * sysdeps/mach/hurd/i386/Versions
7566         (libc: GLIBC_2.2.6): New set, add ioperm.
7567         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7568         (mach_interface_list): Check for mach_i386.defs.
7569         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7570         * sysdeps/mach/configure: Regenerated.
7572 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7574         * po/fr.po: Update from translation team.
7576 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7578         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7579         getpriority from syscalls list.
7581 2002-03-28  Andreas Jaeger  <aj@suse.de>
7583         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7584         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7585         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7586         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7588 2002-03-27  Andreas Jaeger  <aj@suse.de>
7590         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7591         sigcontext): Follow further kernel change.
7593         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7594         kernel change.
7596         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7597         Change for struct sigcontext change.
7599         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7600         Follow changes in struct sigcontext.
7602         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7603         sysycall, use wrapper instead.
7605 2002-03-26  Andreas Jaeger  <aj@suse.de>
7607         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7608         read and write accesses as detailed as possible.
7609         (__memcpy_by2): Likewise.
7610         (__memcpy_g): Likewise.
7611         (memmove): Likewise.
7612         (memcmp): Likewise.
7613         (__memset_ccn_by4): Likewise.
7614         (__memset_ccn_by2): Likewise.
7615         (__memset_gcn_by4): Likewise.
7616         (__memset_gcn_by2): Likewise.
7617         (memchr): Likewise.
7618         (__memrchr): Likewise.
7619         (rawmemchr): Likewise.
7620         (__strlen_g): Likewise.
7621         (__strcpy_g): Likewise.
7622         (__mempcpy_by4): Likewise.
7623         (__mempcpy_by2): Likewise.
7624         (__mempcpy_byn): Likewise.
7625         (__stpcpy_g): Likewise.
7626         (__strncpy_by4): Likewise.
7627         (__strncpy_by2): Likewise.
7628         (__strncpy_byn): Likewise.
7629         (__strncpy_gg): Likewise.
7630         (__strcat_c): Likewise.
7631         (__strcat_g): Likewise.
7632         (__strncat_g): Likewise.
7633         (__strcmp_gg): Likewise.
7634         (__strncmp_g): Likewise.
7635         (__strchr_c): Likewise.
7636         (__strchr_g): Likewise.
7637         (__strchrnul_c): Likewise.
7638         (__strchrnul_g): Likewise.
7639         (__strrchr_c): Likewise.
7640         (__strrchr_g): Likewise.
7641         (__strrchr_c): Likewise.
7642         (__strrchr_g): Likewise.
7643         (__strcspn_c1): Likewise.
7644         (__strcspn_cg): Likewise.
7645         (__strcspn_g): Likewise.
7646         (__strcspn_g): Likewise.
7647         (__strspn_c1): Likewise.
7648         (__strspn_cg): Likewise.
7649         (__strspn_g): Likewise.
7650         (__strspn_g): Likewise.
7651         (__strpbrk_cg): Likewise.
7652         (__strpbrk_g): Likewise.
7653         (__strstr_cg): Likewise.
7654         (__strstr_g): Likewise.
7656         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7657         Michal Ludvig <mludvig@suse.cz>.
7659         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7660         compatibilty, adjust for kernel changes.
7662         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7663         sigcontext): Adjust for kernel changes.
7665 2002-03-25  Andreas Jaeger  <aj@suse.de>
7667         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7668         little endian.
7669         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7671 2002-03-24  Andreas Jaeger  <aj@suse.de>
7673         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7675         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7677         * iconv/tst-iconv3.c (main): Use correct printf strings.
7679 2002-03-18  Roland McGrath  <roland@frob.com>
7681         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7682         (CMGROUP_MAX): New macro.
7684 2002-03-23  Roland McGrath  <roland@frob.com>
7686         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7687         * sysdeps/posix/shm_unlink.c: Likewise.
7689 2002-03-22  Roland McGrath  <roland@frob.com>
7691         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7692         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7693         under --enable-libio.
7694         * sysdeps/mach/hurd/configure: Regenerated.
7696 2002-03-23  Roland McGrath  <roland@frob.com>
7698         * sysdeps/mach/hurd/i386/Makefile
7699         (sysdep_routines, shared-only-routines): Don't add framestate,
7700         reverting 2001-10-02 change.
7701         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7702         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7703         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7704         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7705         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7706         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7707         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7708         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7709         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7710         Do it here instead, only if [$(unwind-find-fde) = yes].
7712 2002-03-23  Andreas Jaeger  <aj@suse.de>
7714         * signal/signal.h: Fix typo. Patch by Steve Kemp
7715         <skx@tardis.ed.ac.uk>.
7717 2002-03-22  Andreas Jaeger  <aj@suse.de>
7719         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7720         getresuid.
7722         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7723         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7724         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7725         user_fpregs_struct): Rename fwd.
7727         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7728         Follow sigcontext changes.
7730 2002-03-22  Andreas Jaeger  <aj@suse.de>
7732         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7733         changes for NaNs on MIPS.
7734         Patch by Hartvig Ekner <hartvige@mips.com>.
7736 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7738         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7739         Use realloc if too large.
7740         (addgrbyid): Likewise.
7741         * nscd/hstcache.c (addhstbyname): Likewise.
7742         (addhstbyaddr): Likewise.
7743         (addhstbynamev6): Likewise.
7744         (addhstbyaddrv6): Likewise.
7745         * nscd/pwdcache.c (addpwbyname): Likewise.
7746         (addpwbyuid): Likewise.
7748 2002-03-21  Andreas Jaeger  <aj@suse.de>
7750         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7751         _fpstate): Add separate struct for x86-64.
7753         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7754         user_fpregs_struct): Change member names to follow kernel.
7756 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7758         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7759         Correctly close the UDP connection right away [PR libc/3120].
7761 2002-03-20  Andreas Jaeger  <aj@suse.de>
7763         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7764         user_fpregs_struct): Fix for changed kernel struct.
7765         (struct user_regs_struct): Likewise.
7766         (struct user): Likewise.
7767         Add 32-bit x86 compatibility.
7769         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7771 2002-03-19  Andreas Jaeger  <aj@suse.de>
7773         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7775 2002-03-18  Andreas Jaeger  <aj@suse.de>
7777         * iconvdata/Makefile: Only run tests when shared libs are
7778         available.
7780 2002-03-17  Andreas Jaeger  <aj@suse.de>
7782         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7784         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7786         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7787         bits.
7789         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7790         (CAUSE_SHIFT): New macro.
7791         Patch by Hartvig Ekner <hartvige@mips.com>.
7793         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7794         * sysdeps/generic/unwind-pe.h: Likewise.
7796         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7797         type to _IO_setb.
7799         * libio/stdio.c (AL2): Define variant when visibility attribute is
7800         not supported.
7802         * include/libc-symbols.h (_INTVARDEF): Define variant when
7803         visibility attribute is not supported.
7805 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7807         * po/fr.po: Update from translation team.
7809 2002-02-25  Bruno Haible  <bruno@clisp.org>
7811         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7813 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7815         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7816         buffers if _IO_file_attach failed.
7818         * libio/fileops.c (_IO_file_open): Close file descriptor if
7819         _IO_SEEKOFF call failed.
7821 2002-03-15  H.J. Lu  <hjl@gnu.org>
7822             Ulrich Drepper  <drepper@redhat.com>
7824         * configure.in: Check for availability of
7825         init_array/fini_array/preinit_array handling in binutils.
7826         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7827         * config.make.in (have-initfini-array): New variable.
7829 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7831         * stdio-common/tst-printf.c (main): Comment out one test which
7832         checked the compiler's ability to fold floating-point constants
7833         but not really printf.
7834         (rfg3): Make s const.
7835         * stdio-common/tst-printf.sh: Adjust for removed test.
7837         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7838         internal function.  Adjust for internal_function calling convention.
7839         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7840         as internal_function.
7842         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7843         hidden.
7845         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7846         declaration and definition.
7847         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7848         declaration.
7849         * nss/getXXent_r.c: Likewise.
7850         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7851         definition.
7853         * include/time.h: Declare __localtime_r as hidden.
7855         * include/aliases.h: Declare __getaliasent_r as hidden.
7856         * include/grp.h: Declare __getgrent_r as hidden.
7857         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7858         __getservent_r, and __getprotoent_r as hidden.
7859         * include/pwd.h: Declare __getpwent_r as hidden.
7860         * include/shadow.h: Declare __getspent_r as hidden.
7861         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7863         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7864         and __gconv_transliterate as hidden.
7865         Add internal_function to __gconv_get_path declaration.
7866         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7867         definition.  Add attribute_hidden to __gconv_read_conf definition.
7869 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7871         * elf/rtld.c: Declare _environ as hidden.
7872         * sysdeps/generic/dl-environ.c: Likewise.
7873         * sysdeps/generic/dl-sysdep.c: Likewise.
7875         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7876         _dl_mcount_internal as hidden.
7878         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7879         * sysdeps/generic/dl-brk.c: New file.
7880         * sysdeps/generic/dl-sbrk.c: New file.
7881         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7882         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7884         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7885         (__errno_location): New function.  Declare errno as hidden.
7886         * elf/rtld.c (_dl_argc): Define as hidden.
7887         (_dl_skip_args): Define as hidden.
7888         (_begin, _end): Declare as hidden.
7889         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7890         * sysdeps/generic/entry.h (_start): Declare as hidden.
7891         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7892         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7893         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7894         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7896 2002-03-14  Roland McGrath  <roland@frob.com>
7898         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7900         * Makeconfig (%.v.i, %.v): New implicit rules.
7901         (preprocess-versions): Variable removed.
7902         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7903         shlib-versions input files as dependencies.
7904         ($(common-objpfx)soversions.i): Depend on that instead of the input
7905         files.  Use it as input instead of using a pipeline.
7906         (postclean-generated): Append soversions.i, shlib-versions.v, and
7907         shlib-versions.v.i here.
7908         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7909         the Versions.def input files as dependencies.
7910         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7911         ($(common-objpfx)Versions.all): Depend on that instead of the input
7912         files.  Use it as input instead of using a pipeline.
7913         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7914         (postclean-generated): Append those .v and .v.i files here.
7916 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7918         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7919         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7920         Remove.
7922 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7924         * sysdeps/generic/mp_clz_tab.c: New file.
7925         * sysdeps/i386/mp_clz_tab.c: New file.
7926         * sysdeps/hppa/mp_clz_tab.c: New file.
7927         * sysdeps/powerpc/mp_clz_tab.c: New file.
7928         * stdlib/Makefile (aux): Revert last patch.
7929         * math/Makefile (gmp-objs): Likewise.
7931 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7933         * time/strftime.c: Comment fixes for references to obsolescent
7934         standards, In most cases the simplest fix is to remove the
7935         confusing comments.  Cross-referencing all the standards properly
7936         is a bit of a pain, and it should be enough to put that info in
7937         the documentation as I did in my recent time.texi patch.
7939 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7941         * manual/time.texi (Formatting Calendar Time):
7942         ISO C99 also specifies the E and O modifiers.
7943         %P is a GNU extension, and is not in ISO C99.
7944         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7945         %T is also in ISO C99.
7946         The RFC 822 example is not valid in arbitrary locales.
7947         Reword the POSIX.2 wording slightly, to make it a bit clearer
7948         that POSIX.2 formats are also supported by later POSIX versions.
7949         If a format was introduced in ISO C99 it is also required by
7950         POSIX.1-2001.
7952 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7954         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7955         _sys_nerr_internal with INTVARDEF2.
7956         * include/libc-symbols.h (INTVARDEF2): New macro.
7957         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7958         (_sys_nerr_internal): Library.
7960         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7961         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7963         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7965 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7967         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7969 2002-03-02  Andreas Schwab  <schwab@suse.de>
7971         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7972         'h' flag and positional arg.
7973         * stdio-common/tst-printf.c (rfg3): New function to test
7974         positional arguments.
7975         (main): Fix some warnings.
7977 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7979         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7980         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7982 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7984         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7986         * include/locale.h (_nl_C_locobj): Declare as hidden.
7988         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7989         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7991         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7993         * include/sys/gmon.h: Declare _gmonparam as hidden.
7995         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7996         (__ctype32_wctrans): Likewise.
7997         (__ctype32_width): Likewise.
7999         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8000         use of __ttyname.
8002         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8003         Define as hidden.
8004         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8005         hidden.  Change all users of these variables.
8007         * posix/regex_internal.h (__re_error_msgid): Renamed from
8008         re_error_msgid.  Declare as hidden.
8009         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8010         hidden.
8012         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8013         (__printf_function_table): Likewise.
8014         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8015         hidden.
8016         (__printf_function_table): Likewise.
8018         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8019         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8021         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8022         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8024         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8025         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8027 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8029         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8030         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8031         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8032         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8033         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8034         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8035         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8036         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8037         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8038         _nl_C_LC_CTYPE_width: Declare as hidden.
8039         * include/locale.h: Declare _nl_locale_file_list.
8040         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8041         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8042         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8043         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8044         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8045         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8046         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8047         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8048         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8049         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8050         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8051         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8052         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8053         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8054         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8055         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8056         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8057         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8058         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8059         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8060         _nl_C_LC_CTYPE_width, and as hidden.
8061         * locale/findlocale.c: Declare _nl_C as hidden.
8062         * locale/newlocale.c: Likewise.
8063         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8064         _nl_locale_file_list.
8065         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8066         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8067         Define _nl_C_locobj as hidden.
8069         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8070         (_mtrace_line): Likewise.
8072         * include/time.h: Declare __mon_yday as hidden.
8073         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8075         * libio/libioP.h: Declare __libio_codecvt as hidden.
8076         * libio/fileops.c: Declare __libio_translit as hidden.
8077         * libio/iofwide.c: Define __libio_translit as hidden.
8079         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8080         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8081         * login/getutline_r.c: Likewise.
8082         * login/utmpname.c: Likewise.
8084         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8085         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8086         __libc_utmp_file_name as hidden.
8088         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8089         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8090         * locale/freelocale.c: Likewise.
8091         * locale/lc-time.c: Likewise.
8093         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8094         (__libc_ptyname2): Likewise.
8095         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8096         hidden.
8097         (__libc_ptyname2): Likewise.
8099         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8100         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8101         * sysdeps/generic/init-first.c: Likewise.
8102         * sysdeps/i386/init-first.c: Likewise.
8103         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8104         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8105         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8106         * sysdeps/sh/init-first.c: Likewise.
8107         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8108         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8110         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8111         (_itowa_upper_digits): Likewise.
8113         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8114         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8115         as hidden.
8117         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8118         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8119         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8120         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8122         * gmon/gmon.c (__bb_head): Define as hidden.
8123         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8125         * argp/argp-parse.c (_argp_hang): Define as static.
8127         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8128         handling in latest compilers.
8130         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8131         define alias.
8132         * libio/fileops.c (_IO_file_jumps): Likewise.
8133         * libio/stdfiles.c (_IO_list_all): Likewise.
8134         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8136         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8137         include/malloc.h.
8138         * include/malloc.h: Add __libc_malloc_initialized declaration
8139         here.  Mark variable hidden.
8140         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8142         * elf/dl-open.c (__libc_argc): Declare as hidden.
8143         (__libc_argv): Likewise.
8144         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8145         (__libc_argv): Likewise.
8146         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8147         __libc_argv as hidden.
8148         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8149         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8150         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8151         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8153         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8154         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8155         * stdlib/erand48.c: Likewise.
8156         * stdlib/jrand48.c: Likewise.
8157         * stdlib/lcong48.c: Likewise.
8158         * stdlib/lrand48.c: Likewise.
8159         * stdlib/mrand48.c: Likewise.
8160         * stdlib/nrand48.c: Likewise.
8161         * stdlib/seed48.c: Likewise.
8162         * stdlib/srand48.c: Likewise.
8164         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8165         (_itoa_lower_digits_internal): New declaration.
8166         (_itoa_upper_digits_internal): New declaration.
8167         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8168         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8169         (_itoa_upper_digits_internal): New declaration.
8170         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8171         _itoa_lower_digits.
8172         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8173         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8175         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8176         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8178         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8179         (_itowa_lower_digits): Likewise.
8180         (_itowa_upper_digits): Likewise.
8181         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8182         (_itowa_upper_digits): Likewise.
8184         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8185         not already defined.
8186         (GERMANIC_PLURAL): Declare as hidden.
8188         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8189         (attribute_hidden): Define as empty macro if not already defined.
8191         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8192         (__gconv_max_path_elem_len): Likewise.
8193         (__gconv_path_envvar): Likewise.
8195         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8196         * stdlib/Makefile (aux): Remove mp_clz_tab.
8197         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8199         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8201         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8203         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8204         _nl_category_names, _nl_category_name_sizes, _nl_current,
8205         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8207         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8208         (_nl_current_default_domain): Likewise
8209         (_nl_state_lock): Likewise.
8210         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8211         (_nl_current_default_domain): Likewise
8212         (_nl_state_lock): Likewise.
8213         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8215         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8216         (_fpioconst_pow10): Likewise.
8218         * include/time.h (_tmbuf): Add attribute_hidden.
8220         * time/tzset.c (tzstring_list): Define as static.
8222         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8223         __use_tzfile declaration.
8225         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8226         and __wcsmbs_last_locale declaration.
8228 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8230         * timezone/Makefile (tzbases): Move systemv from here...
8231         (tzlinks): to here, since the entries in systemv were all changed
8232         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8233         tested) by Peter Breitenlohner.
8235 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8237         * time/tst-posixtz.c (tests): Add new tests.
8238         (main): Test whether tzset() sets daylight properly.
8240 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8242         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8243         __tzname_cur_max setting...
8244         (tzset_internal): ...here.
8246 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8248         * time/tzset.c (compute_change): Don't return any value.
8249         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8250         (__tz_convert): But here.
8252 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8254         * manual/examples/mkfsock.c: Include <string.h> as well.
8255         Patch by Alain De Carolis <alaind@wseurope.com>.
8257 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8259         * posix/regexec.c (re_match): Fix incorrect register sizes.
8260         (re_search): Likewise.
8262 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8264         * posix/regcomp.c (regfree): Remove a disused condition.
8265         * posix/regex_internal.c (re_acquire_state): Likewise.
8266         (re_acquire_state_context): Likewise.
8267         (register_state): Remove a redundant malloc invocation.
8268         * posix/regex_internal.h: (re_state_table_entry): Simplify
8269         the structure.
8271 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8273         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8274         handling conditions.
8275         (regerror): Likewise.
8276         (regfree): Likewise.
8277         (re_compile_internal): Likewise.
8278         (init_dfa): Likewise.
8279         (init_word_char): Likewise.
8280         (create_initial_state): Likewise.
8281         (analyze): Likewise.
8282         (analyze_tree): Likewise.
8283         (duplicate_node): Likewise.
8284         (calc_eclosure): Likewise.
8285         (calc_eclosure_iter): Likewise.
8286         (parse): Likewise.
8287         (parse_reg_exp): Likewise.
8288         (parse_branch): Likewise.
8289         (parse_expression): Likewise.
8290         (parse_subexp): Likewise.
8291         (parse_dup_op): Likewise.
8292         (parse_bracket_exp): Likewise.
8293         (build_equiv_class): Likewise.
8294         (build_charclass): Likewise.
8295         (build_word_op): Likewise.
8296         (fetch_number): Likewise.
8297         (create_tree): Likewise.
8298         (duplicate_tree): Likewise.
8299         * posix/regex.c (BE): New macro.
8300         * posix/regexec.c (re_match): Add __builtin_expect to error
8301         handling conditions.
8302         (re_match_2): Likewise.
8303         (re_search): Likewise.
8304         (re_search_internal): Likewise.
8305         (check_matching): Likewise.
8306         (proceed_next_node): Likewise.
8307         (set_regs): Likewise.
8308         (sift_states_backward): Likewise.
8309         (add_epsilon_backreference): Likewise.
8310         (transit_state): Likewise.
8311         (transit_state_sb): Likewise.
8312         (transit_state_mb): Likewise.
8313         (transit_state_bkref): Likewise.
8314         (transit_state_bkref_loop): Likewise.
8315         (build_trtable): Likewise.
8316         (group_nodes_into_DFAstates): Likewise.
8317         (match_ctx_init): Likewise.
8318         (match_ctx_add_entry): Likewise.
8319         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8320         to error handling conditions.
8321         (re_string_construct_toupper): Likewise.
8322         (build_wcs_buffer): Likewise.
8323         (build_wcs_upper_buffer): Likewise.
8324         (build_upper_buffer): Likewise.
8325         (re_string_translate_buffer): Likewise.
8326         (re_node_set_alloc): Likewise.
8327         (re_node_set_init_1): Likewise.
8328         (re_node_set_init_2): Likewise.
8329         (re_node_set_init_copy): Likewise.
8330         (re_node_set_intersect): Likewise.
8331         (re_node_set_init_union): Likewise.
8332         (re_node_set_merge): Likewise.
8333         (re_node_set_insert): Likewise.
8334         (re_dfa_add_node): Likewise.
8335         (re_acquire_state): Likewise.
8336         (re_acquire_state_context): Likewise.
8337         (create_new_state_common): Likewise.
8338         (register_state): Likewise.
8339         (create_ci_new_state): Likewise.
8340         (create_cd_new_state): Likewise.
8341         (re_string_context_at): Remove redundant condition.
8343 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8345         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8347         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8349 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8351         * sysdeps/i386/elf/configure.in: Fix comment.
8353         * sysdeps/sparc/sparc64/configure.in: New file.
8354         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8355         if .dynamic comes before .got.
8356         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8358         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8359         HP_TIMING_ACCUM): Fix typos.
8361 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8363         * string/strfry.c: Add some more randomness to the seed.
8364         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8366         * po/es.po: Update from translation team.
8367         * po/fr.po: Likewise.
8369         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8371         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8372         when determining type of format.
8373         Patch by James Antill <james@anqd.org> [PR libc/2787].
8375 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8377         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8379 2002-03-11  Roland McGrath  <roland@frob.com>
8381         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8383         * Versions.def (libc): Add GLIBC_2.2.6.
8384         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8385         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8386         __errno_location instead of __hurd_errno_location, and don't inline it.
8387         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8388         * hurd/errno.c: New file.
8389         * hurd/Makefile (routines): Add errno.
8391 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8393         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8394         ridiculously large widths and precisions [PR libc/3026].
8396 2002-03-11  Andreas Jaeger  <aj@suse.de>
8398         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8399         support.
8400         Patch by Susanne Oberhauser <froh@SuSE.de>.
8402 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8404         * inet/rexec.c (ahostbuf): Define as static.
8406         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8407         (__ctype32_wctrans): Likewise.
8408         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8409         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8410         (__ctype32_wctrans): Likewise.
8411         (__ctype32_width): Likewise.
8413         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8414         They were never exported anyway.
8416         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8417         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8418         exported.
8419         * include/sys/gmon.h: Declare _gmonparam.
8421         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8422         symbols for getdents64.  They were never exported.
8424 2002-03-09  Roland McGrath  <roland@frob.com>
8426         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8427         Reported by Jon Arney <jarney1@cox.net>.
8429 2002-02-23  Roland McGrath  <roland@frob.com>
8431         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8432         declaration.
8433         (__hurd_errno_location): Function removed.
8435 2002-03-06  Andreas Jaeger  <aj@suse.de>
8437         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8438         32-bit.
8440 2002-03-04  Andreas Jaeger  <aj@suse.de>
8442         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8444         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8445         x86-64.
8447         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8449         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8451         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8453         * sysdeps/x86_64/bits/setjmp.h: New file.
8455         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8457         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8459         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8460         for x86.
8461         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8462         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8464 2002-02-28  Bo Thorsen  <bo@suse.de>
8466         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8467         version.
8469 2002-03-03  Andreas Jaeger  <aj@suse.de>
8471         * sysdeps/x86_64/bits/wordsize.h: New file.
8473         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8474         * elf/tst-tlsmod1.c: Likewise.
8476         * posix/regcomp.c: Get regex.h from include dir for internal
8477         prototypes.
8479         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8480         to libc-internal.h and include it.
8481         * include/libc-internal.h: Add __init_misc.
8483         * misc/init-misc.c: Include libc-internal.h for prototypes.
8485         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8487         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8488         _IO_putc_internal.
8490 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8492         * posix/regcomp.c: Compatibility changes to allow using the code
8493         outside glibc.
8495 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8497         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8498         compiled non-PIC.
8500 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8502         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8503         of .str elements in the returned data structure.
8505         * elf/elf.h: Add Alpha TLS bits.
8507 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8509         * sysdeps/unix/sysv/linux/nice.c: New file.
8511 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8513         * elf/Makefile (dl-routines): Add dl-origin.
8514         (elide-routines.os): Add dl-origin.
8515         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8516         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8517         _dl_debug_state.
8518         * include/libc-symbols.c: Define attribute_hidden depending on
8519         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8521         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8522         * elf/dl-load.c: Likewise.
8523         * elf/rtld.c: Likewise.
8524         * include/unistd.h: Declare __libc_enable_secure_internal.
8525         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8526         Use INTUSE with __libc_enable_secure.
8527         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8529         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8530         * elf/dl-error.c: Likewise,
8531         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8533         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8534         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8535         function definition.  Use INTDEF with _dl_get_origin.
8536         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8538         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8539         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8541         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8542         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8543         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8545         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8546         * elf/dl-deps.c: Likewise.
8547         * elf/dl-error.c: Likewise.
8548         * elf/dl-fini.c: Likewise.
8549         * elf/dl-init.c: Likewise.
8550         * elf/dl-load.c: Likewise.
8551         * elf/dl-lookup.c: Likewise.
8552         * elf/dl-reloc.c: Likewise.
8553         * elf/dl-version.c: Likewise.
8554         * elf/do-lookup.h: Likewise.
8555         * sysdeps/arm/dl-machine.h: Likewise.
8556         * sysdeps/cris/dl-machine.h: Likewise.
8557         * sysdeps/hppa/dl-machine.h: Likewise.
8558         * sysdeps/i386/dl-machine.h: Likewise.
8559         * sysdeps/m68k/dl-machine.h: Likewise.
8560         * sysdeps/powerpc/dl-machine.h: Likewise.
8561         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8562         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8563         * sysdeps/sh/dl-machine.h: Likewise.
8564         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8565         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8566         * sysdeps/x86_64/dl-machine.h: Likewise.
8567         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8568         _dl_argv[0].  Use INTUSE with _dl_argv.
8569         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8570         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8572 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8574         * elf/rtld.c (_rtld_global): Remove .protected.
8575         (_rtld_local): Strong alias to _rtld_global.
8576         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8577         only .os object.
8578         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8579         _rtld_local instead of _rtld_global.
8580         (_rtld_local): Add hidden extern, possibly in .sdata section.
8581         * configure.in: Add tests for visibility attribute and .sdata.
8582         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8583         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8584         * sysdeps/arm/dl-machine.h: Likewise.
8585         * sysdeps/generic/ldsodefs.h: Likewise.
8586         * sysdeps/hppa/dl-machine.h: Likewise.
8587         * sysdeps/cris/dl-machine.h: Likewise.
8588         * sysdeps/i386/dl-machine.h: Likewise.
8589         * sysdeps/ia64/dl-machine.h: Likewise.
8590         * sysdeps/m68k/dl-machine.h: Likewise.
8591         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8592         * sysdeps/mips/dl-machine.h: Likewise.
8593         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8594         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8595         * sysdeps/sh/dl-machine.h: Likewise.
8596         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8597         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8598         * sysdeps/x86_64/dl-machine.h: Likewise.
8600 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8602         * login/login.c (login): Always initialize ut_line field
8603         [PR libc/2991].
8605 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8607         * sysdeps/i386/Makefile (sysdep_routines): Add
8608         divdi3 in csu dir.
8609         (shared-only-routines): Likewise.
8610         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8611         (shared-only-routines): Likewise.
8612         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8613         (shared-only-routines): Likewise.
8614         * sysdeps/wordsize-32/divdi3.c: New file.
8616 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8618         * locale/iso-4217.def: Remove obsolete currencies for countries
8619         with Euro.
8621 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8623         * posix/regcomp.c (regcomp): Remove a redundant condition.
8624         (init_word_char): Add a check on malloc failure.
8625         (create_initial_state): Likewise.
8626         (duplicate_node): Likewise.
8627         (calc_eclosure): Likewise.
8628         (calc_eclosure_iter): Likewise.
8629         (parse_expression): Likewise.
8630         (parse_bracket_exp): Remove unnecessary malloc invocations.
8631         (build_equiv_class): Likewise.
8632         (build_charclass): Likewise.
8633         * posix/regex_internal.c (re_node_set_intersect): Add a check
8634         on malloc failure.
8635         (re_node_set_add_intersect): Likewise.
8636         (re_node_set_merge): Likewise.
8637         (re_acquire_state): Likewise.
8638         (re_acquire_state_context): Likewise.
8639         (create_newstate_common): Likewise.
8640         (register_state): Likewise.
8641         (create_ci_newstate): Likewise.
8642         (create_cd_newstate): Likewise.
8643         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8644         and re_acquire_state_context.
8645         * posix/regexec.c (regexec): Suit it to the error handling of
8646         re_search_internal.
8647         (re_match): Likewise.
8648         (re_search): Likewise.
8649         (re_search_internal): Add a check on malloc failure.
8650         (acquire_init_state_context): Likewise.
8651         (check_matching): Likewise.
8652         (proceed_next_node): Likewise.
8653         (set_regs): Likewise.
8654         (sift_states_backward): Likewise.
8655         (sift_states_iter_bkref): Likewise.
8656         (add_epsilon_backreference): Likewise.
8657         (transit_state): Likewise.
8658         (transit_state_sb): Likewise.
8659         (transit_state_mb): Likewise.
8660         (transit_state_bkref_loop): Likewise.
8661         (build_trtable): Likewise.
8662         (group_nodes_into_DFAstates): Likewise.
8663         (match_ctx_init): Likewise.
8664         (match_ctx_add_entry): Likewise.
8666 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8668         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8669         l_libname if profiling is enabled [PR libc/2916].
8671         * sysdeps/ia64/dl-tls.h: New file.
8673 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8675         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8676         Work around an Alpha gas bug.
8678 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8680         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8681         uses read to load the catalog.
8682         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8684 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8686         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8687         regex_internal.c, and regex_internal.h.
8688         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8689         * posix/regex.c: Complete rewrite.
8690         * posix/regexec.c: New file.
8691         * posix/regcomp.c: New file.
8692         * posix/regex_internal.c: New file.
8693         * posix/regex_internal.h: New file.
8694         * posix/regex.h (RE_ICASE): New macro.
8695         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8697         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8698         ungetwc.  It's a macro.
8699         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8700         implementation.
8701         Reported by Jason Merrill <jason@redhat.com>.
8703 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8705         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8706         position to fp->_offset if it is set.
8707         * stdio-common/Makefile (tests): Add tst-fdopen.
8708         * stdio-common/tst-fdopen.c: New test.
8710 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8712         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8713         * stdio-common/tst-ungetc.c (main): Add another test.
8715 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8717         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8718         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8719         aliases.  Add prototypes for the new aliases.
8720         * assert/assert.c: Likewise.
8721         * include/libc-symbols.h: Likewise.
8722         * include/stdio.h: Likewise.
8723         * include/netinet/in.h: Likewise.
8724         * include/rpc/auth.h: Likewise.
8725         * include/rpc/auth_unix.h: Likewise.
8726         * include/rpc/key_prot.h: Likewise.
8727         * include/rpc/pmap_prot.h: Likewise.
8728         * include/rpc/pmap_rmt.h: Likewise.
8729         * include/rpc/rpc_msg.h: Likewise.
8730         * include/rpc/xdr.h: Likewise.
8731         * inet/gethstbyad_r.c: Likewise.
8732         * inet/gethstbynm2_r.c: Likewise.
8733         * inet/gethstbynm_r.c: Likewise.
8734         * inet/gethstent_r.c: Likewise.
8735         * inet/in6_addr.c: Likewise.
8736         * libio/__fpurge.c: Likewise.
8737         * libio/filedoalloc.c: Likewise.
8738         * libio/fileops.c: Likewise.
8739         * libio/ftello.c: Likewise.
8740         * libio/ftello64.c: Likewise.
8741         * libio/genops.c: Likewise.
8742         * libio/iofclose.c: Likewise.
8743         * libio/iofdopen.c: Likewise.
8744         * libio/iofflush.c: Likewise.
8745         * libio/iofflush_u.c: Likewise.
8746         * libio/iofgetpos.c: Likewise.
8747         * libio/iofgetpos64.c: Likewise.
8748         * libio/iofgets.c: Likewise.
8749         * libio/iofgets_u.c: Likewise.
8750         * libio/iofopen.c: Likewise.
8751         * libio/iofopncook.c: Likewise.
8752         * libio/iofputs.c: Likewise.
8753         * libio/iofread.c: Likewise.
8754         * libio/iofread_u.c: Likewise.
8755         * libio/iofsetpos.c: Likewise.
8756         * libio/iofsetpos64.c: Likewise.
8757         * libio/ioftell.c: Likewise.
8758         * libio/iofwrite.c: Likewise.
8759         * libio/iogetline.c: Likewise.
8760         * libio/iogets.c: Likewise.
8761         * libio/iogetwline.c: Likewise.
8762         * libio/iolibio.h: Likewise.
8763         * libio/iopadn.c: Likewise.
8764         * libio/iopopen.c: Likewise.
8765         * libio/ioseekoff.c: Likewise.
8766         * libio/ioseekpos.c: Likewise.
8767         * libio/iosetbuffer.c: Likewise.
8768         * libio/iosetvbuf.c: Likewise.
8769         * libio/ioungetc.c: Likewise.
8770         * libio/ioungetwc.c: Likewise.
8771         * libio/iovdprintf.c: Likewise.
8772         * libio/iovsprintf.c: Likewise.
8773         * libio/iovsscanf.c: Likewise.
8774         * libio/libioP.h: Likewise.
8775         * libio/memstream.c: Likewise.
8776         * libio/obprintf.c: Likewise.
8777         * libio/oldfileops.c: Likewise.
8778         * libio/oldiofclose.c: Likewise.
8779         * libio/oldiofdopen.c: Likewise.
8780         * libio/oldiofgetpos.c: Likewise.
8781         * libio/oldiofgetpos64.c: Likewise.
8782         * libio/oldiofopen.c: Likewise.
8783         * libio/oldiofsetpos.c: Likewise.
8784         * libio/oldiofsetpos64.c: Likewise.
8785         * libio/oldiopopen.c: Likewise.
8786         * libio/oldstdfiles.c: Likewise.
8787         * libio/putc.c: Likewise.
8788         * libio/setbuf.c: Likewise.
8789         * libio/setlinebuf.c: Likewise.
8790         * libio/stdfiles.c: Likewise.
8791         * libio/stdio.c: Likewise.
8792         * libio/strops.c: Likewise.
8793         * libio/vasprintf.c: Likewise.
8794         * libio/vscanf.c: Likewise.
8795         * libio/vsnprintf.c: Likewise.
8796         * libio/vswprintf.c: Likewise.
8797         * libio/wfiledoalloc.c: Likewise.
8798         * libio/wfileops.c: Likewise.
8799         * libio/wgenops.c: Likewise.
8800         * libio/wstrops.c: Likewise.
8801         * malloc/mtrace.c: Likewise.
8802         * misc/error.c: Likewise.
8803         * misc/syslog.c: Likewise.
8804         * nss/getXXbyYY_r.c: Likewise.
8805         * nss/getXXent_r.c: Likewise.
8806         * nss/hosts-lookup.c: Likewise.
8807         * stdio-common/getw.c
8808         * stdio-common/printf-prs.c: Likewise.
8809         * stdio-common/printf_fp.c: Likewise.
8810         * stdio-common/printf_size.c: Likewise.
8811         * stdio-common/putw.c: Likewise.
8812         * stdio-common/scanf.c: Likewise.
8813         * stdio-common/sprintf.c: Likewise.
8814         * stdio-common/tmpfile64.c: Likewise.
8815         * stdio-common/vfprintf.c: Likewise.
8816         * stdio-common/vfscanf.c: Likewise.
8817         * stdlib/strfmon.c: Likewise.
8818         * sunrpc/auth_des.c: Likewise.
8819         * sunrpc/auth_none.c: Likewise.
8820         * sunrpc/auth_unix.c: Likewise.
8821         * sunrpc/authdes_prot.c: Likewise.
8822         * sunrpc/authuxprot.c: Likewise.
8823         * sunrpc/clnt_perr.c: Likewise.
8824         * sunrpc/clnt_raw.c: Likewise.
8825         * sunrpc/clnt_tcp.c: Likewise.
8826         * sunrpc/clnt_udp.c: Likewise.
8827         * sunrpc/clnt_unix.c: Likewise.
8828         * sunrpc/key_call.c: Likewise.
8829         * sunrpc/key_prot.c: Likewise.
8830         * sunrpc/openchild.c: Likewise.
8831         * sunrpc/pm_getmaps.c: Likewise.
8832         * sunrpc/pm_getport.c: Likewise.
8833         * sunrpc/pmap_clnt.c: Likewise.
8834         * sunrpc/pmap_prot.c: Likewise.
8835         * sunrpc/pmap_prot2.c: Likewise.
8836         * sunrpc/pmap_rmt.c: Likewise.
8837         * sunrpc/rpc_cmsg.c: Likewise.
8838         * sunrpc/rpc_prot.c: Likewise.
8839         * sunrpc/svc_authux.c: Likewise.
8840         * sunrpc/svc_raw.c: Likewise.
8841         * sunrpc/svc_simple.c: Likewise.
8842         * sunrpc/svc_tcp.c: Likewise.
8843         * sunrpc/svc_udp.c: Likewise.
8844         * sunrpc/svc_unix.c: Likewise.
8845         * sunrpc/xdr.c: Likewise.
8846         * sunrpc/xdr_array.c: Likewise.
8847         * sunrpc/xdr_mem.c: Likewise.
8848         * sunrpc/xdr_rec.c: Likewise.
8849         * sunrpc/xdr_ref.c: Likewise.
8850         * sunrpc/xdr_stdio.c: Likewise.
8851         * sysdeps/generic/_strerror.c: Likewise.
8852         * sysdeps/generic/printf_fphex.c: Likewise.
8853         * sysdeps/generic/tmpfile.c: Likewise.
8854         * sysdeps/gnu/errlist.awk: Likewise.
8855         * sysdeps/gnu/errlist.c: Likewise.
8857         * libio/Makefile (routines): Remove iosprint.
8858         * libio/iosprintf.c: Removed
8861 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8863         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8864         non_dynamic_init and exported now.
8865         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8866         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8867         !SHARED.
8868         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8869         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8870         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8872 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8874         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8875         true in this case.
8877         * locale/iso-639.def: Add language codes for Walloon.
8879         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8880         total number of relocations performed.
8882         * elf/sprof.c (load_profdata): If do_test provide information as
8883         to why loading failed.
8884         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8885         hist_hdr.dimen.
8887         * csu/set-init.c: Moved to...
8888         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8889         * csu/Makefile: Don't compile set-init.
8890         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8891         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8892         to __libc_init.
8893         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8894         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8895         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8896         __libc_init.
8897         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8898         __libc_subinit.
8900 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8902         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8903         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8904         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8905         (_dl_deallocate_tls): New function.
8906         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8907         _dl_deallocate_tls.
8909 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8911         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8912         * stdio-common/tst-fseek.c (main): Add test for this.
8914 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8916         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8918 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8920         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8921         pointer before dereferencing.
8923 2002-02-18  Roland McGrath  <roland@frob.com>
8925         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8927         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8928         Use task_policy in place of task_priority.
8930         * sysdeps/generic/bits/mman.h
8931         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8932         * sysdeps/mach/msync.c: New file.
8934         * sysdeps/mach/powerpc/syscall.S: New file.
8936         * mach/msg.c [MACH_MSG_OVERWRITE]
8937         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8938         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8940         * sysdeps/mach/configure.in: Check for clock.defs to put into
8941         mach_interface_list.
8942         * sysdeps/mach/configure: Regenerated.
8944         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8945         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8946         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8947         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8948         (mach-shortcuts): Add device_read_overwrite_request,
8949         device_read_overwrite, vm_read_overwrite, thread_switch.
8951         * configure.in (base_machine): Set to $machine by default.
8952         * configure: Regenerated.
8954         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8955         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8956         * sysdeps/mach/configure: Regenerated.
8957         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8959         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8961         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8963         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8964         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8966 2002-02-17  Roland McGrath  <roland@frob.com>
8968         * sysdeps/mach/hurd/times.c
8969         [NO_CREATION_TIME] (startup_time): New static variable.
8970         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8971         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8972         creation_time from task_basic_info.
8973         (__times): Use __gettimeofday instead of __host_get_time.
8975         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8976         Use untyped Mach IPC message format.
8978         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8980         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8981         _S_catch_exception_raise_state_identity,
8982         _hurdsig_fault_catch_exception_raise_state,
8983         _hurdsig_fault_catch_exception_raise_state_identity.
8985         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8987         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8988         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8990         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8991         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8993         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8994         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8995         them as no-op macros.
8996         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8997         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8999         * sysdeps/powerpc/dl-machine.h
9000         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9002         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9003         Use untyped Mach IPC message format.
9005         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9006         Handle untyped Mach IPC message formats.
9008         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9009         Expect different argument conventions when this is defined.
9010         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9011         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9012         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9013         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9014         for OSF Mach variant.
9015         (faulted): Use mig_reply_error_t for REPLY.
9016         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9017         in __thread_set_exception_ports call.
9018         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9019         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9021         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9022         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9023         on Darwin, which includes bogons.
9025         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9026         variable LOADBASE so it's not declared when it's not used.
9028 2002-02-16  Roland McGrath  <roland@frob.com>
9030         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9031         to use BI.creation_time.
9033         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9035         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9036         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9037         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9038         host_page_size instead of vm_statistics.
9040         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9041         mach_interface.h here, since not all variants use that name.
9043         * sysdeps/mach/configure.in: Add some checks for Mach headers
9044         to ensure a sane installation.
9045         (mach_interface_list): Define this variable by checking for .defs
9046         files found in various variants.
9047         * configure.in (mach_interface_list): AC_SUBST this.
9048         * config.make.in (mach-interface-list): New substituted variable.
9049         * mach/Makefile (user-interfaces): Define this using the value
9050         of $(mach-interface-list) instead of mach, mach4.
9051         Updated other references to mach_interface to use it as well.
9053         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9055         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9056         mig_reply_error_t for OSF Mach variant.
9058         * mach/Makefile (routines): Remove bootprivport.
9059         * mach/bootprivport.c: File removed.  It has never been used.
9061         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9062         Grok the OSF flavor of message format.
9063         (mach_msg_destroy_port): For MAKE_SEND and
9064         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9065         no-senders notification.
9067 2002-02-06  Roland McGrath  <roland@frob.com>
9069         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9070         to here if 2.0 compatibility enabled ...
9071         (libc: GLIBC_2.1.3): ... from here.
9073 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9075         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9076         generation counter.
9077         * elf/dl-close.c (_dl_close): Likewise.
9079 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9081         * elf/Makefile: Add rules to build and run tst-tls8.
9082         * elf/tst-tls8.c: New file.
9083         * elf/tst-tlsmod4.c: New file.
9085         * stdlib/test-a64l.c (tests): Add more test cases.
9087         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9088         Reported by Walter Harms <WHarms@bfs.de>.
9090 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9092         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9093         definitions for struct sigcontext.
9094         Suggested by David Mosberger-Tang.
9096 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9098         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9099         for removing reference of module in slotinfo list.
9100         (_dl_close): Use remove_slotinfo.
9101         * sysdeps/generic/dl-tls.c: General pretty printing.
9102         (oom): Define only if SHARED.
9103         (_dl_next_tls_modid): Correct starting point for the case we assume
9104         there is a gap.  Add missing instruction grouping (doh!).  Correct
9105         tests for reaching maximum index.
9106         * elf/Makefile: Add rules to build and run tst-tls7.
9107         * elf/tst-tls7.c: New file.
9108         * elf/tst-tlsmod3.c: New file.
9110         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9111         USE_TLS.
9112         * elf/tst-tlsmod2.c: Likewise.
9114         * elf/dl-close.c (_dl_close): When closing an object using TLS
9115         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9116         true.  Increment dl_tls_generation only if we closed any TLS-using
9117         object.
9118         * elf/tst-tls6.c: New file.
9119         * elf/Makefile: Add rules to build and run tst-tls6.
9121         * po/da.po: Update from translation team.
9123         * locale/categories.def: Fix typo [PR libc/2948].
9124         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9125         [PR libc/2949].
9126         * locale/iso-4217.def: Update from official version [PR libc/2950].
9127         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9128         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9129         message if input is too confusion instead of using assert.
9130         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9131         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9133         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9134         * elf/tst-tls2.c: Likewise.
9135         * elf/tst-tls3.c: Likewise.
9137 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9139         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9141 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9143         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9144         if this is really necessary.
9146         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9147         slotinfo array.
9148         (free_mem): Free memory for the slotinfo array if possible.
9150 2002-02-12  Andreas Schwab  <schwab@suse.de>
9152         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9154 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9156         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9157         TLS_DTV_UNALLOCATE.
9158         (oom): New function.
9159         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9160         (_dl_determine_tlsoffset): Likewise.
9161         (_dl_allocate_tls): Likewise.
9162         (__TLS_GET_ADDR): Define if not already defined.
9163         (_dl_tls_symaddr): New function.
9164         (allocate_and_init): New function.
9165         (__tls_get_addr): Actually implement handling of generation counter
9166         and deferred allocation.
9167         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9168         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9169         _dl_tls_generation.
9170         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9171         Declare _dl_tls_symaddr.
9172         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9173         SHARED.
9174         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9175         l_tls_previmage.
9176         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9177         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9178         (_dl_vsym): Likewise.
9179         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9180         layout.
9181         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9182         nextimage list handling.  Instead add all modules using TLS to
9183         dl_tls_dtv_slotinfo_list.
9184         * elf/dl-open.c (dl_open_worker): After successfully loading all
9185         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9186         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9187         empty segment don't do anything.  Remove handling of initimage list.
9188         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9189         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9190         * elf/dl-minimal.c: Define __libc_memalign.
9191         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9192         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9193         _dl_tls_generation.
9194         * include/stdlib.h: Declare __libc_memalign.
9196         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9197         * elf/tst-tls4.c: New file.
9198         * elf/tst-tls5.c: New file.
9199         * elf/tst-tlsmod2.c: New file.
9201         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9203         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9205         * elf/tst-tls1.c: Use test-skeleton.c.
9206         * elf/tst-tls2.c: Likewise.
9207         * elf/tst-tls3.c: Likewise.
9209         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9211 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9213         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9215 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9217         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9219         * elf/tst-tls3.c: New file.
9220         * elf/tst-tlsmod1.c: New file.
9221         * elf/Makefile: Add rules to build and run tst-tls3.
9223         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9224         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9225         TLS relocations.
9227         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9229         * po/fr.po: Update from translation team.
9231         * elf/tls-macros.h: Add alternative macros for use in PIC.
9233         * elf/dl-lookup.c: Include <tls.h>.
9234         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9236         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9237         required by passing pointer to last element of the list.
9239         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9240         l_tls_initimage to a place where it actually is performed.
9242         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9243         after globfree() calls.
9245         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9246         (openaux): Pass open_mode as new last argument to _dl_map_object.
9247         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9248         open_mode element of args variable with it.
9249         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9250         _dl_map_object_deps.
9251         * elf/rtld.c (dl_main): Add zero as last parameter to
9252         _dl_map_object_deps call.
9253         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9254         * elf/nodlopen2.c: New file.
9255         * elf/nodlopenmod2.c: New file.
9256         * elf/Makefile: Add rules to build and run nodlopen2.
9258         * elf/tst-tls1.c: Move TLS helper macros to...
9259         * elf/tls-macros.h: ...here.  New file.
9260         * elf/tst-tls2.c: New file.
9261         * elf/Makefile (tests): Add tst-tls2.
9262         (distribute): Add tls-macros.h.
9264         * po/sv.po: Update from translation team.
9266         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9267         architecture specific definitions from the actual test code.
9269         * po/tr.po: Update from translation team.
9271 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9273         * elf/Makefile (tests): Add tst-tls1.
9274         * elf/tst-tls1.c: New file.
9276         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9277         alignment of TCB for now.
9279         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9280         initialization image for the application itself.
9282         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9283         loop to initialize TLS block.
9285 2002-02-08  Richard Henderson  <rth@redhat.com>
9287         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9288         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9290         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9292 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9294         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9296 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9298         * po/ca.po: Update from translation team.
9299         * po/sk.po: Likewise.
9301         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9302         (dl_main): Move dtv/static TLS handling before relocation.
9303         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9304         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9305         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9306         so far uses TLS initialize GL(dl_tls_static_size) and
9307         GL(dl_tls_static_align) to account for the TCB.
9308         (_dl_allocate_tls): New function.
9309         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9310         _dl_initial_dtv_malloced.
9312         * configure.in: Test for __builtin_memset more realistically.
9314         * csu/version.c (banner): If TLS support is available say so.
9316 2002-02-04  H.J. Lu  <hjl@gnu.org>
9318         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9319         __attribute_used__.
9320         (__dl_runtime_resolve): Likewise.
9322         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9323         declaration.
9325 2001-11-15  H.J. Lu  <hjl@gnu.org>
9327         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9328         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9330         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9332 2002-02-07  H.J. Lu  <hjl@gnu.org>
9334         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9335         ".set noreorder".
9336         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9337         Likewise.
9339 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9341         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9343         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9344         ___tls_get_addr_internal.
9345         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9347         * po/ko.po: Update from translation team.
9349 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9351         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9352         attribute, change __pad{1,2} type to unsigned int.
9353         (struct stat64): Remove packed attribute.
9355 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9357         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9359 2002-02-07  Andreas Schwab  <schwab@suse.de>
9361         * configure.in: Fix check for -zcombreloc.
9363 2002-02-06  H.J. Lu  <hjl@gnu.org>
9365         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9366         * configure.in: Check if __builtin_memset really works.
9367         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9368         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9370 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9372         * io/bug-ftw3.c (main): Don't try the test if root.
9374 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9376         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9377         constraints.
9378         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9379         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9380         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9381         Likewise.
9382         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9383         a weak alias for __clone.
9384         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9385         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9386         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9387         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9388         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9389         a weak alias for __mmap64.
9391 2002-02-05  H.J. Lu  <hjl@gnu.org>
9393         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9394         (atomic_add): Likewise.
9395         (compare_and_swap): Likewise.
9396         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9398 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9400         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9402         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9403         alignment of the TCB and store total size and alignment of static
9404         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9405         tls_index is a typedef.
9406         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9407         _dl_tls_static_align.
9408         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9409         * elf/dl-support.c: Define _dl_tls_static_size and
9410         _dl_tls_static_align.
9412 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9414         * configure.in: Add --without-tls option.
9415         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9416         --without-tls is given.
9418         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9420         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9422 2002-02-06  Roland McGrath  <roland@frob.com>
9424         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9425         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9427         * scripts/versions.awk: Improve error message for missing version.
9428         Each version inherits from the last one only if they have the same
9429         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9430         but not GLIBC_x and FOO_y.
9432         * scripts/firstversions.awk: Handle libraries that don't have each
9433         particular version named in the third column of shlib-versions.
9435         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9437 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9439         * Versions.def [ld]: Add GLIBC_2.3.
9440         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9441         * elf/Makefile (dl-routines): Add dl-tls.
9442         (distribute): Add dl-tls.h.
9443         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9444         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9445         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9446         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9447         along with the other info in the link map.  Change queueing of init
9448         images for double linked list.  Use _dl_next_tls_modid to compute
9449         l_tls_modid.
9450         * elf/rtld.c (_dl_start_final): Store alignment requirement
9451         along with the other info in rtld map and executable map.
9452         (dl_main): Add ld.so to the init image list if necessary.  Compute
9453         final module ID with _dl_next_tls_modid.
9454         * include/link.h (struct link_map): Add l_tls_previmage and
9455         l_tls_align.
9456         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9457         * sysdeps/i386/elf/Versions: New file.
9458         * sysdeps/generic/dl-tls.c: New file.
9459         * sysdeps/generic/dl-tls.h: New file.
9460         * sysdeps/i386/dl-tls.h: New file.
9462 2002-02-06  Roland McGrath  <roland@frob.com>
9464         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9465         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9467 2002-01-05  Roland McGrath  <roland@frob.com>
9469         * sysdeps/mach/configure.in: New file.
9470         * sysdeps/mach/configure: New generated file.
9472         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9473         It has never been used by anything.
9475 2002-02-06  H.J. Lu  <hjl@gnu.org>
9477         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9478         is included.
9480 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9482         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9483         attribute((packed)) to counter stupid people misusing gcc options.
9484         (struct stat64): Likewise.
9486 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9488         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9489         the variables which are used as booleans.
9491 2002-02-06  Andreas Jaeger  <aj@suse.de>
9493         * include/libc-symbols.h (INTUSE): Renamed from INT.
9494         * elf/dl-deps.c: Change users.
9495         * sysdeps/generic/dl-sysdep.c: Likewise.
9496         * sysdeps/generic/dl-cache.c: Likewise.
9497         * elf/dl-reloc.c: Likewise.
9498         * elf/rtld.c: Likewise.
9499         * elf/dl-version.c: Likewise.
9500         * elf/dl-load.c: Likewise.
9501         * elf/dl-dst.h: Likewise.
9502         * elf/dl-init.c: Likewise.
9503         * elf/dl-error.c: Likewise.
9504         * elf/dl-fini.c: Likewise.
9505         * elf/dl-runtime.c: Likewise.
9506         * elf/do-lookup.h: Likewise.
9508         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9509         definition.
9510         * stdio-common/_itowa.h: Likewise.
9512 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9514         * elf/dl-minimal.c: Define _itoa_lower_digits.
9516         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9517         DT_FLAGS set.
9519         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9520         loading modules with the DF_STATIC_TLS flag set.
9521         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9522         element.
9523         * include/link.h (struct link_map): Add l_flags field.
9524         * elf/elf.h (DF_STATIC_TLS): New definition.
9526         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9527         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9529         * elf/rtld.c (process_dl_debug): Correct printing help message.
9530         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9531         for %s.
9533         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9534         definition and pass &errno in use of this variable.
9535         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9537 2002-02-04  Andreas Schwab  <schwab@suse.de>
9539         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9540         * locale/programs/charmap-dir.c: Wrap calls that output messages
9541         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9542         * locale/programs/charmap.c: Likewise.
9543         * locale/programs/ld-address.c: Likewise.
9544         * locale/programs/ld-collate.c: Likewise.
9545         * locale/programs/ld-ctype.c: Likewise.
9546         * locale/programs/ld-identification.c: Likewise.
9547         * locale/programs/ld-measurement.c: Likewise.
9548         * locale/programs/ld-messages.c: Likewise.
9549         * locale/programs/ld-monetary.c: Likewise.
9550         * locale/programs/ld-name.c: Likewise.
9551         * locale/programs/ld-numeric.c: Likewise.
9552         * locale/programs/ld-paper.c: Likewise.
9553         * locale/programs/ld-telephone.c: Likewise.
9554         * locale/programs/ld-time.c: Likewise.
9555         * locale/programs/linereader.c: Likewise.
9556         * locale/programs/linereader.h: Likewise.
9557         * locale/programs/localedef.c: Likewise.
9558         * locale/programs/locfile.c: Likewise.
9559         * locale/programs/repertoire.c: Likewise.
9561 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9563         * elf/rtld.c (_dl_start_final): Determine load address to locate
9564         ehdr with GL(dl_rtld_map).l_map_start.
9566         * po/ca.po: Update from translation team.
9568         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9569         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9570         header entry.
9571         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9572         _dl_tls_module_cnt.
9573         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9575 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9577         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9578         * include/link.h (struct link_map): Add various members for TLS
9579         information.
9580         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9581         _rtld_tlsoffset, add _dl_initimage_list.
9582         * sysdeps/i386/dl-lookupcfg.h: New file.
9583         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9584         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9585         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9586         is used.
9588         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9589         unused.
9591         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9592         thread-pointer as soon as possible.
9593         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9594         elements in rtld_global.
9595         * sysdeps/generic/tls.h: New file.
9596         * elf/Makefile (distribute): Add tls.h.
9597         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9598         relocations.  Not complete yet.
9600         * resolv/resolv.h: Allow user to define __need_res_state and only
9601         define __res_start structure then.
9602         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9604         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9605         dl_cpuclock_offset initialization to _dl_start_final.
9606         (_dl_show_auxv): Avoid unnecessary sign extension.
9607         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9609 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9611         * config.h.in: Add HAVE_TLS_SUPPORT.
9612         * sysdeps/i386/elf/configure.in: New file.
9614 2002-02-03  Andreas Schwab  <schwab@suse.de>
9616         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9617         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9619 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9621         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9622         alloca if the memory reqirements are too high.
9624 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9626         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9627         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9628         the former is available anyway and speed isn't important here.
9629         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9630         * elf/dl-version.c (match_symbol): Likewise.
9631         (_dl_check_map_versions): Likewise.
9632         * elf/rtld.c (process_envvars): Likewise.
9633         (print_statistics): Likewise.
9634         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9635         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9636         bases.  Add assert to catch uses of unimplemented features.
9637         (__strsep): Add assert to catch uses of unimplemented features.
9638         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9639         and avoid inline optimization.
9640         * elf/rtld.c (process_envvars): Likewise.
9641         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9642         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9643         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9645 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9647         * stdio-common/_itoa.h: Minor simplifications of the code.
9648         * stdio-common/_itoa.c: Likewise.
9650         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9651         instead of _dl_printf for debugging info output.
9653         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9654         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9656 2002-02-01  H.J. Lu  <hjl@gnu.org>
9658         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9659         (atomic_add): Likewise.
9660         (compare_and_swap): Return 0 only when failed to compare. Use
9661         branch likely.
9663         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9664         branch likely.
9666 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9668         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9670 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9672         * elf/dl-minimal.c (__strsep): New minimal implementation.
9674 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9676         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9677         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9678         with tm_isdst > 0 when the requested time falls within a
9679         spring-forward gap [PR libc/2894].
9681 2002-02-03  Andreas Schwab  <schwab@suse.de>
9683         * stdio-common/tst-rndseek.c: Increase timeout.
9685 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9687         Change ld.so to not use functions which are exported.  One cannot
9688         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9689         definitions.
9690         * include/libc-symbols.h: Define INT and INTDEF.
9691         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9692         _dl_signal_error_internal, _dl_map_object_internal,
9693         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9694         _dl_lookup_versioned_symbol_internal,
9695         _dl_relocate_object_internal, _dl_debug_state_internal,
9696         _dl_start_profile_internal, and _dl_unload_cache_internal.
9697         * include/dlfcn.h: Declare _dl_catch_error_internal.
9698         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9699         above.  Add INTDEF to function definitions.
9700         * elf/dl-debug.c: Likewise.
9701         * elf/dl-deps.c: Likewise.
9702         * elf/dl-dst.h: Likewise.
9703         * elf/dl-error.c: Likewise.
9704         * elf/dl-fini.c: Likewise.
9705         * elf/dl-init.c: Likewise.
9706         * elf/dl-load.c: Likewise.
9707         * elf/dl-lookup.c: Likewise.
9708         * elf/dl-misc.c: Likewise.
9709         * elf/dl-open.c: Likewise.
9710         * elf/dl-profile.c: Likewise.
9711         * elf/dl-reloc.c: Likewise.
9712         * elf/dl-runtime.c: Likewise.
9713         * elf/dl-version.c: Likewise.
9714         * elf/do-lookup.h: Likewise.
9715         * sysdeps/generic/dl-cache.c: Likewise.
9716         * sysdeps/generic/dl-sysdep.c: Likewise.
9717         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9718         instead of _dl_init.
9719         * sysdeps/arm/dl-machine.h: Likewise.
9720         * sysdeps/cris/dl-machine.h: Likewise.
9721         * sysdeps/hppa/dl-machine.h: Likewise.
9722         * sysdeps/i386/dl-machine.h: Likewise.
9723         * sysdeps/ia64/dl-machine.h: Likewise.
9724         * sysdeps/m68k/dl-machine.h: Likewise.
9725         * sysdeps/mips/dl-machine.h: Likewise.
9726         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9727         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9728         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9729         * sysdeps/sh/dl-machine.h: Likewise.
9730         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9731         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9732         * sysdeps/x86_64/dl-machine.h: Likewise.
9733         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9735         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9736         and _dl_debug_initialize.
9738         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9739         more information.
9740         * elf/rtld.c (dl_main): Avoid strrchr.
9741         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9742         result of readlink.  Search from the back for '/'.
9744         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9745         strncpy if possible.
9747         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9748         strncmp.
9749         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9750         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9751         strspn, and strcspn.
9752         (process_envvars): Don't use strcspn.
9754         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9755         (_dl_dst_substitute): Likewise.
9757 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9759         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9760         code which is never used when relocating ld.so itself.
9762         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9763         starting ld.so itself.  Move l_addr variable initialization closer
9764         to use.
9765         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9767 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9769         * Versions.def (libc): Add GLIBC_PRIVATE.
9770         (libdb, libnss_db, libdb1): Remove.
9771         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9772         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9773         (libpthread): Add GLIBC_PRIVATE.
9774         (libresolv): Likewise, remove GLIBC_2.1.
9775         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9776         GLIBC_2.2.3, GLIBC_2.3.
9777         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9778         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9779         _dl_sym, _dl_vsym): Likewise.
9780         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9781         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9782         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9783         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9784         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9785         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9786         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9787         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9788         Likewise.
9789         (_dl_object_relocation_scope): Remove.
9790         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9791         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9792         __gconv_cache): Move to GLIBC_PRIVATE.
9793         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9794         __internal_setnetgrent): Likewise.
9795         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9796         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9797         * locale/Versions (__collate_element_hash, __collate_element_strings,
9798         __collate_symbol_classes, __collate_symbol_hash,
9799         __collate_symbol_strings, _nl_current_LC_COLLATE,
9800         _nl_current_LC_CTYPE): Likewise.
9801         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9802         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9803         (libnss_nis, libnss_nisplus): Likewise.
9804         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9805         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9806         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9807         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9808         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9809         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9810         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9811         __ns_get16, __ns_samename): Likewise.
9812         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9813         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9814         GLIBC_PRIVATE.
9815         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9816         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9817         __libc_connect): Likewise.
9818         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9819         Likewise.
9820         * stdlib/Versions (__libc_system): Likewise.
9821         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9822         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9823         * sysdeps/ia64/fpu/Versions: Likewise.
9824         * sysdeps/ia64/Versions: Likewise.
9825         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9826         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9827         to GLIBC_PRIVATE.
9828         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9829         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9830         __libc_sigaction): Likewise.
9831         * termios/Versions (__libc_tcdrain): Likewise.
9833         * misc/sys/cdefs (__attribute_noinline__): Define.
9834         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9835         __attribute_noinline__.
9837         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9838         * elf/dl-xstat64.c: New file.
9839         * elf/dl-fxstat64.c: New file.
9840         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9841         don't export __fxstat64 at multiple versions.
9842         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9843         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9845 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9847         * locale/program/ld-collate.c (collate_finish): Assign a wide
9848         char collation sequence value to multi character collating
9849         elements, and avoid over writing by non-character elements.
9851 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9853         * elf/Makefile (distribute): Add dl-procinfo.c.
9854         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9855         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9857 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9859         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9860         definition.
9861         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9862         _rtld_global struct.
9863         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9864         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9865         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9866         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9867         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9868         _dl_fpu_control_set): Remove unused externs.
9869         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9870         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9871         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9872         related variables in _rtld_global struct.
9873         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9874         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9875         unused extern.
9877 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9879         * sysdeps/generic/dl-procinfo.c: New file.
9881 2002-02-01  Andreas Schwab  <schwab@suse.de>
9883         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9885 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9887         * elf/rtld.c (_dl_start): Mark as internal_function.
9888         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9889         in register.
9890         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9891         General pretty printing.
9893 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9895         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9896         * elf/dl-reloc.c: Pretty printing.
9897         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9898         procinfo-related variables in rtld_global struct.
9899         * elf/dl-support.c: Likewise.
9900         * elf/rtld.c: Likewise.
9901         * sysdeps/i386/i686/Makefile: Likewise.
9902         * sysdeps/i386/i686/hp-timing.c: Likewise.
9903         * sysdeps/i386/i686/hp-timing.h: Likewise.
9904         * sysdeps/ia64/Makefile: Likewise.
9905         * sysdeps/ia64/hp-timing.c: Likewise.
9906         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9907         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9908         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9909         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9910         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9911         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9912         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9913         * sysdeps/x86_64/Makefile: Likewise.
9915         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9916         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9917         _dl_debug_fd to rtld_global.
9918         * elf/Versions: Likewise.
9919         * elf/dl-close.c: Likewise.
9920         * elf/dl-iteratephdr.c: Likewise.
9921         * elf/dl-lookup.c: Likewise.
9922         * elf/dl-misc.c: Likewise.
9923         * elf/dl-open.c: Likewise.
9924         * elf/dl-support.c: Likewise.
9925         * elf/do-lookup.h: Likewise.
9926         * elf/rtld.c: Likewise.
9927         * sysdeps/generic/dl-cache.c: Likewise.
9928         * sysdeps/generic/dl-sysdep.c: Likewise.
9929         * sysdeps/ia64/Versions: Likewise.
9930         * sysdeps/unix/clock_gettime.c: Likewise.
9931         * sysdeps/unix/clock_settime.c: Likewise.
9932         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9933         * sysdeps/sparc/Versions: Removed.
9934         * sysdeps/i386/i686/Versions : Removed.
9935         * sysdeps/x86_64/Versions: Removed.
9936         * configure.in: Define HAVE_PROTECTED if .protected is available.
9937         * config.h.in: Add entry for HAVE_PROTECTED.
9939 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9941         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9942         code in struct _rtld_global.  Export this struct, remove all
9943         exports for the signal variables.
9944         * sysdeps/arm/dl-machine: Likewise.
9945         * sysdeps/generic/dl-origin: Likewise.
9946         * sysdeps/generic/dl-sysdep: Likewise.
9947         * sysdeps/generic/dl-cache: Likewise.
9948         * sysdeps/hppa/dl-fptr: Likewise.
9949         * sysdeps/hppa/dl-machine: Likewise.
9950         * sysdeps/cris/dl-machine: Likewise.
9951         * sysdeps/i386/dl-machine: Likewise.
9952         * sysdeps/ia64/dl-machine: Likewise.
9953         * sysdeps/m68k/dl-machine: Likewise.
9954         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9955         * sysdeps/mips/mips64/dl-machine: Likewise.
9956         * sysdeps/mips/dl-machine: Likewise.
9957         * sysdeps/powerpc/elf/libc-start: Likewise.
9958         * sysdeps/powerpc/dl-machine: Likewise.
9959         * sysdeps/powerpc/dl-start: Likewise.
9960         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9961         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9962         * sysdeps/sh/dl-machine: Likewise.
9963         * sysdeps/s390/s390-32/dl-machine: Likewise.
9964         * sysdeps/s390/s390-64/dl-machine: Likewise.
9965         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9966         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9967         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9968         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9969         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9970         * sysdeps/x86_64/dl-machine: Likewise.
9972 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9974         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9975         are too high.
9977 2002-01-31  Andreas Schwab  <schwab@suse.de>
9979         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9981 2002-01-31  Andreas Schwab  <schwab@suse.de>
9983         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9984         reference to _dl_pagesize.
9986 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9988         * Versions.def [ld]: Add GLIBC_2.3.
9989         * elf/dl-addr.c: Move global variables for SHARED code in struct
9990         _rtld_global.  Export this struct, remove all exports for the
9991         signal variables.
9992         * elf/dl-close.c: Likewise.
9993         * elf/dl-conflict.c: Likewise.
9994         * elf/dl-debug.c: Likewise.
9995         * elf/dl-deps.c: Likewise.
9996         * elf/dl-dst.h: Likewise.
9997         * elf/dl-error.c: Likewise.
9998         * elf/dl-fini.c: Likewise.
9999         * elf/dl-init.c: Likewise.
10000         * elf/dl-iteratephdr.c: Likewise.
10001         * elf/dl-libc.c: Likewise.
10002         * elf/dl-load.c: Likewise.
10003         * elf/dl-lookup.c: Likewise.
10004         * elf/dl-minimal.c: Likewise.
10005         * elf/dl-object.c: Likewise.
10006         * elf/dl-open.c: Likewise.
10007         * elf/dl-profile.c: Likewise.
10008         * elf/dl-profstub.c: Likewise.
10009         * elf/dl-reloc.c: Likewise.
10010         * elf/dl-runtime.c: Likewise.
10011         * elf/dl-support.c: Likewise.
10012         * elf/dl-sym.c: Likewise.
10013         * elf/dl-version.c: Likewise.
10014         * elf/do-lookup.h: Likewise.
10015         * elf/do-rel.h: Likewise.
10016         * elf/dynamic-link.h: Likewise.
10017         * elf/rtld.c: Likewise.
10018         * sysdeps/generic/dl-cache.c: Likewise.
10019         * sysdeps/generic/dl-sysdep.c: Likewise.
10020         * sysdeps/generic/ldsodefs.h: Likewise.
10021         * sysdeps/generic/libc-start.c: Likewise.
10022         * sysdeps/i386/dl-machine.h: Likewise.
10023         * sysdeps/ia64/dl-fptr.c: Likewise.
10024         * sysdeps/ia64/dl-machine.h: Likewise.
10025         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10026         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10027         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10028         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10029         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10030         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10031         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10032         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10034 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10036         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10037         to avoid warning
10038         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10040         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10041         SHARED version.
10042         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10044         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10046 2002-01-29  Ben Collins  <bcollins@debian.org>
10048         * string/bits/string2.h (__mempcpy): Protect size arg for
10049         addition when using __builtin_memcpy.
10051 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10053         * stdlib/Makefile (tests): Add tst-qsort.
10054         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10056         * manual/signal.texi (Process Signal Mask): Document that
10057         pthread_sigmask, not sigprocmask, must be used in MT programs.
10058         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10060         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10061         found.
10062         * misc/Makefile (tests): Add tst-hsearch.
10063         * misc/tst-hsearch.c: New file.
10065 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10067         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10068         * malloc/malloc.h: Likewise.
10069         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10070         * malloc/arena.c: New file.
10071         * malloc/hooks.c: New file.
10072         * malloc/tst-mallocstate.c: New file.
10073         * malloc/Makefile: Add new testcase tst-mallocstate.
10074         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10076 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10078         * stdlib/msort.c: Remove last patch.  The optimization violates the
10079         same rule which qsort.c had problems with.
10081 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10083         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10084         to a pivot element that lies outside the array to be sorted, as
10085         ISO C99 requires that the comparison function be called only with
10086         addresses of array elements [PR libc/2880].
10088 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10090         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10091         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10093         * timezone/asia: Update from tzdata2002b.
10094         * timezone/australasia: Likewise.
10095         * timezone/backward: Likewise.
10096         * timezone/europe: Likewise.
10097         * timezone/leapseconds: Likewise.
10098         * timezone/iso3166.tab: Likewise.
10099         * timezone/zone.tab: Likewise.
10101 2002-01-23  Richard Henderson  <rth@redhat.com>
10103         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10105 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10107         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10108         this element [PR libc/2855].
10110         * string/strcoll.c: Handle zero-length arguments specially
10111         [PR libc/2856].
10113 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10115         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10116         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10117         short lengths and constant src.
10118         (strcpy): Don't optimize for gcc 3.0+.
10119         (__stpcpy): For gcc 3.0+, don't use
10120         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10121         for short string literal src.
10123 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10125         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10126         Set for arm, too.
10128 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10130         * manual/llio.texi (Linked Channels, Cleaning Streams):
10131         Make it clearer that a just-opened input stream might need cleaning.
10133 2002-01-21  H.J. Lu  <hjl@gnu.org>
10135         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10136         Don't use label at end of compound statement.
10138 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10140         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10141         Remove test for negative integer arg; sin_pi does it correctly.
10143 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10145         * nscd/Makefile (distribute): Filter out xmalloc.c.
10147 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10149         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10150         Set offset if read end wasn't the buffer end.
10151         (_IO_file_seekoff_mmap): New function.
10152         (_IO_file_xsgetn_mmap): New function.
10153         (_IO_file_jumps_mmap): Use the two new functions.
10154         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10155         != end buffer.
10156         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10157         _IO_file_underflow_mmap.
10158         * libio/iofopen.c: Don't position file descriptor at end of file.
10159         * libio/tst-widetext.c: Improve error messages.
10160         * stdio-common/tst-rndseek.c: Likewise.
10162 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10164         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10165         end of enum for !_GNU_SOURCE.
10166         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10167         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10168         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10169         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10170         values unless _GNU_SOURCE.
10172         * iconvdata/tcvn5712-1.c: Minor cleanups.
10174 2002-01-18  Andreas Schwab  <schwab@suse.de>
10176         * sysdeps/unix/sysv/linux/configure.in
10177         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10179 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10181         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10182         more efficient "Towers of Hanoi" mergesort.
10183         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10184         for generic, sizeof(int) and sizeof(long) variants respectively.
10186 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10188         * manual/syslog.texi (openlog): Describe possible problems with
10189         first parameter.
10190         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10192         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10193         * nscd/connections.c (begin_drop_privileges): New function.
10194         (finish_drop_privileges): New function.
10195         (nscd_init): Call the new functions which also install all groups
10196         for the server user.
10197         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10198         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10200 2002-01-17  H.J. Lu  <hjl@gnu.org>
10202         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10203         `const' from `got'.
10205 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10207         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10208         instructions for pointer operations.
10209         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10211 2002-01-17  Andreas Jaeger  <aj@suse.de>
10213         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10214         __uint128_t build-in.
10216         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10217         PowerPC, sync with 2.2 branch.
10219 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10221         * posix/getconf.c: Update copyright year.
10222         * nss/getent.c: Likewise.
10223         * nscd/nscd_nischeck.c: Likewise.
10224         * iconv/iconvconfig.c: Likewise.
10225         * iconv/iconv_prog.c: Likewise.
10226         * elf/ldconfig.c: Likewise.
10227         * catgets/gencat.c: Likewise.
10228         * csu/version.c: Likewise.
10229         * elf/ldd.bash.in: Likewise.
10230         * elf/sprof.c (print_version): Likewise.
10231         * locale/programs/locale.c: Likewise.
10232         * locale/programs/localedef.c: Likewise.
10233         * nscd/nscd.c (print_version): Likewise.
10234         * debug/xtrace.sh: Likewise.
10235         * malloc/memusage.sh: Likewise.
10236         * malloc/mtrace.pl: Likewise.
10238 2002-01-16  Andreas Schwab  <schwab@suse.de>
10240         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10241         reliably remove "-ia64" from rtld name.
10243 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10245         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10246         Patch by Yu Shao <yshao@redhat.com>.
10248 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10250         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10251         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10252         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10254 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10256         * sysdeps/s390/fpu/libm-test-ulps: Update.
10258 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10260         * elf/elf.h: Update x86 relocations.
10262 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10264         * locale/programs/charmap.c (new_width): Check whether byte
10265         sequences for both ends of range have the same length.
10267 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10269         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10271 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10273         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10274         string literals.
10275         (__full_ieee754_sqrt): Add __attribute_used__.
10277 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10279         * sysdeps/generic/group_member.c (__group_member): Also check
10280         groups[0] [PR libc/2781].
10282 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10284         * Makefile (distribute): Add scripts/cpp.
10285         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10286         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10287         unwind-dw2-fde.h, and dwarf2.h.
10288         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10289         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10290         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10291         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10293 2002-01-07  Roland McGrath  <roland@frob.com>
10295         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10296         volatile on type of ARGC so the compiler doesn't get clever.
10298 2002-01-07  Andreas Jaeger  <aj@suse.de>
10300         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10301         * sysdeps/i386/bits/byteswap.h: Likewise.
10302         * sysdeps/ia64/bits/byteswap.h: Likewise.
10303         * sysdeps/m68k/bits/byteswap.h: Likewise.
10304         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10305         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10307 2002-01-02  Bruno Haible  <bruno@clisp.org>
10309         * intl/plural.y: Fix %expect count.
10311 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10313         * elf/Makefile (routines, shared-only-routines): Add
10314         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10315         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10316         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10317         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10318         Optimize if .eh_frame section contains no FDEs.
10319         (__register_frame, __deregister_frame_info_bases,
10320         __deregister_frame): Likewise.
10321         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10322         DW_CFA_restore handling.
10324 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10326         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10328         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10329         for x < 0.25 and restore original range reduction method.
10330         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10332 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10334         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10335         (_IO_file_close_mmap): New function.
10336         (_IO_file_jumps_mmap): New variable.
10337         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10338         trying to convert rest of byte buffer.
10339         (_IO_wfile_underflow_mmap): New function.
10340         (_IO_wfile_jumps_mmap): New variable.
10341         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10342         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10343         (_IO_new_fopen): Call __fopen_internal.
10344         * libio/iofopen64.c: Just call __fopen_internal.
10345         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10346         successfully.
10347         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10348         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10349         _IO_file_close_mmap.
10351         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10352         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10354         * stdio-common/Makefile (tests): Add tst-rndseek.
10355         * stdio-common/tst-rndseek.c: New file.
10357 2002-01-05  Roland McGrath  <roland@frob.com>
10359         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10360         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10361         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10362         * sysdeps/mach/hurd/configure: Regenerated.
10364 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10366         * elf/elf.h: Add more TLS definitions.
10368 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10370         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10372 2002-01-02  Roland McGrath  <roland@frob.com>
10374         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10375         __sigisemptyset.  Don't use MASK uninitialized.
10377         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10378         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10379         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10380         __sigdelset, __sigaddset, __sigorset.
10382         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10383         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10385         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10386         _hurd_ports is null.
10388         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10389         for old CMU and new OSF Mach interface flavors.
10390         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10391         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10393         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10395         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10396         Pass extra arguments to task_create for OSF variant.
10397         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10399         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10400         conditional on [HAVE_AUX_VECTOR].
10402         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10403         mach_msg_timeout_t as type of final argument.
10405         * hurd/privports.c (__get_privileged_ports):
10406         Change host_priv_t to mach_port_t in argument type.
10407         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10408         Update decls.
10410         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10411         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10412         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10413         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10414         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10415         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10417 2002-01-01  Roland McGrath  <roland@frob.com>
10419         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10421 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10423         * include/stdlib.h: Define inlines for the _l variants of the strto*
10424         functions.
10426 2002-01-01  Roland McGrath  <roland@frob.com>
10428         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10430         * mach/Machrules (MIG): Set CPP as well as CC.
10432 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10434         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10435         locale to parse /proc/loadavg [PR libc/2760].
10437 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10439         * elf/dl-conflict.c: Include sys/param.h.
10440         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10441         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10442         warning.
10443         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10444         literals to avoid warnings.
10446 2001-12-31  Andreas Jaeger  <aj@suse.de>
10448         * configure.in: Don't check for gsed since we do not use it anywhere.
10450 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10452         * io/fts.c: Update from BSD to fix memory leaks.
10454 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10456         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10457         * elf/chroot_canon.c: Likewise.
10458         * elf/dl-object.c: Likewise.
10459         * iconv/iconv_charmap.c: Likewise.
10460         * iconv/iconv_prog.c: Likewise.
10461         * libio/iogetdelim.c: Likewise.
10462         * locale/lc-time.c: Likewise.
10463         * stdlib/canonicalize.c: Likewise.
10464         * sunrpc/svc.c: Likewise.
10465         * sysdeps/generic/glob.c: Likewise.
10467 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10469         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10470         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10471         remove high order bit from the program counter.
10472         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10474 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10476         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10477         unnecessary code and add missing reloc types.
10478         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10479         case for reloc type R_390_NONE.
10481 2001-12-28  Andreas Jaeger  <aj@suse.de>
10483         * io/bug-ftw3.c: Include string.h for prototypes.
10485         * crypt/md5test.c (main): Remove unused variable.
10487         * dlfcn/modstatic.c: Add prototype to avoid warning.
10489 2001-12-26  Roland McGrath  <roland@frob.com>
10491         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10492         check only (SS->pending & MASK) for the signal to return.
10493         From Jeroen Dekkers <jeroen@dekkers.cx>.
10495 2001-12-22  Roland McGrath  <roland@frob.com>
10497         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10498         Use preprocessor #if conditionals instead of `if' to avoid
10499         warnings about divide by zero in dead code.
10501         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10502         _hurd_port_init, and __hurd_self_sigstate.
10504         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10506 2001-12-21  Andreas Jaeger  <aj@suse.de>
10508         * elf/dblloadmod1.c: Add prototype to avoid warning.
10509         * elf/dblloadmod2.c: Likewise.
10510         * elf/dblloadmod3.c: Likewise.
10511         * elf/reldepmod5.c: Likewise.
10512         * elf/reldepmod6.c: Likewise.
10514         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10515         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10516         used on all architectures.
10518         * sunrpc/svc_tcp.c: Add noreturn attribute for
10519         svctcp_rendezvous_abort.
10520         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10522         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10523         to avoid warning.
10525 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10527         * manual/llio.texi (aio_fsync): Fix a typo.
10528         Patch by Tammy Fox <tfox@redhat.com>.
10530 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10532         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10533         stack bias from child stack pointer before passing it to clone syscall.
10535 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10537         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10538         _SC_TZNAME_MAX.
10539         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10540         Reported by Thorsten Kukuk <kukuk@suse.de>.
10542         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10543         add some casts.
10545         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10547 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10549         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10550         conforming: return EBADF if file descriptor is invalid and EINVAL
10551         if file descriptor is no valid tty.
10552         * login/tst-grantpt.c: New file.
10553         * login/Makefile (tests): Add tst-grantpt.
10555 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10557         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10558         different than implemented in last patch.
10559         * io/bug-ftw3.c: Adjust test for changed handling of
10560         inaccessibility of toplevel dir.
10562 2001-12-16  Roland McGrath  <roland@frob.com>
10564         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10565         * grp/initgroups.c (internal_getgrouplist): Likewise.
10567         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10568         `default:' to silence new GCC warning.
10569         Rewrite cast of lvalue to silence new GCC warning.
10571         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10573         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10574         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10576 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10578         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10579         Patch by Stephen R. van den Berg.
10581         * crypt/md5.h: Define md5_uintptr.
10583 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10585         * libio/tst_swprintf.c (main): Add test for string argument with
10586         zero precision.
10587         * stdio-common/Makefile (tests): Add tst-sprintf.
10588         * stdio-common/tst-sprintf.c: New file.
10590 2001-12-13  Andreas Schwab  <schwab@suse.de>
10592         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10593         zero precision with wide character string format.
10595 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10597         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10598         but have a user supplied buffer, return the empty buffer, not NULL.
10600 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10602         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10603         Patch by Eric Sharkey <sharkey@netrics.com>.
10605         * crypt/md5test.c (main): Add test for multiple calls to
10606         __md5_process_bytes to itererate over input string.
10608 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10610         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10611         from __nis_findfastest.  Take timeout value from parameter.
10612         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10613         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10614         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10616 2001-12-12  Andreas Jaeger  <aj@suse.de>
10618         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10619         combreloc test so that it works in this case.
10621         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10623 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10625         * sysdeps/sh/Makefile: New file.
10626         * sysdeps/sh/_mcount.S: New file.
10627         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10628         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10630 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10632         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10633         limitation [PR libc/2564].
10635 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10637         * elf/Makefile (dl-routines): Add conflict.
10638         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10639         (ld.so): Add _begin local symbol.
10640         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10641         Define.
10642         * elf/dl-deps.c (_dl_build_local_scope): New function.
10643         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10644         of all libraries.
10645         * elf/do-rel.h (VALIDX): Define.
10646         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10647         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10648         can be skipped.
10649         * elf/dl-conflict.c: New file.
10650         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10651         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10652         non-NULL.
10653         (_dl_lookup_symbol_skip): Likewise.
10654         (_dl_lookup_versioned_symbol): Likewise.
10655         (_dl_lookup_versioned_symbol_skip): Likewise.
10656         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10657         define to ElfW(Rel).
10658         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10659         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10660         ranges.
10661         Don't adjust address dynamic tags if l_addr is 0.
10662         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10663         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10664         (VALIDX, ADDRIDX): Define.
10665         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10666         (dl_main): Print library list for LD_TRACE_PRELINKING.
10667         If prelinking information can be used, skip relocating libraries and
10668         call _dl_resolve_conflicts instead.
10669         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10670         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10671         if LD_TRACE_PRELINKING.
10672         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10673         + DT_ADDRNUM.
10674         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10675         (DL_DEBUG_PRELINK): Define.
10676         (_dl_resolve_conflicts): Add prototype.
10678         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10679         .plt for prelinked libraries where prelinking info cannot be used.
10680         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10681         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10682         * sysdeps/arm/bits/link.h: New file.
10683         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10684         content of .got[1].
10685         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10686         (ELF_MACHINE_PLT_REL): Define.
10687         (elf_machine_rela, elf_machine_rela_relative): New functions.
10688         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10689         of adjusting it if prelinked and prelinking cannot be used.
10690         * sysdeps/i386/bits/link.h: New file.
10691         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10692         content of .got[1].
10693         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10694         (ELF_MACHINE_PLT_REL): Define.
10695         (elf_machine_rela, elf_machine_rela_relative): New functions.
10696         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10697         of adjusting it if prelinked and prelinking cannot be used.
10698         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10699         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10700         to find out map for R_PPC_JMP_SLOT relocs.
10701         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10702         (OPCODE_BA): Define.
10703         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10704         libraries where prelinking info cannot be used.
10705         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10706         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10707         (elf_machine_rela): Set value to 0 if relocating conflicts.
10708         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10709         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10710         (sparc64_fixup_plt): Fix a typo.
10711         (elf_machine_rela): Set value to 0 if relocating conflicts.
10712         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10713         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10714         libraries where prelinking info cannot be used.
10715         * sysdeps/sh/bits/link.h: New file.
10716         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10717         content of .got[1].
10718         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10719         of adjusting it if prelinked and prelinking cannot be used.
10720         * sysdeps/s390/s390-32/bits/link.h: New file.
10721         * sysdeps/s390/s390-32/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/s390/s390-64/bits/link.h: New file.
10726         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10727         Save original content of .got[1].
10728         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10729         of adjusting it if prelinked and prelinking cannot be used.
10730         * sysdeps/x86_64/bits/link.h: New file.
10731         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10732         Save original content of .got[1].
10733         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10734         of adjusting it if prelinked and prelinking cannot be used.
10736 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10738         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10739         where appropriate instead of numbers.  Little optimizations.
10741 2001-12-10  Roland McGrath  <roland@frob.com>
10743         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10744         set it.
10746         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10747         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10749         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10750         Fix conditionals so this is set by default for stdio and not for libio.
10751         * sysdeps/mach/hurd/configure: Regenerated.
10753 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10755         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10757 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10759         * io/Makefile (tests): Add bug-ftw3.
10760         * io/bug-ftw3.c: New file.
10762         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10763         matches and GLOB_NOCHECK is set.
10764         * posix/globtest.sh: Correct expected result for NOCHECK test.
10766         * po/ca.po: Update from translation team.
10768 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10770         Implement transliteration of characters in strings of the locale
10771         definitions.
10772         * locale/programs/linereader.c: Adjust for additional parameter to
10773         lr_token.
10774         (get_string): If character <Uxxxx> is not found try to transliterate
10775         it.
10776         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10777         lr_token.  Add const to charmap parameter of all functions.
10778         (find_translit, find_translit2): New functions.
10779         * locale/programs/charmap.c: Adjust for additional parameter to
10780         lr_token.
10781         * locale/programs/repertoire.c: Likewise.
10782         * locale/programs/linereader.h: Likewise.
10783         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10784         parameter of all functions.
10785         * locale/programs/ld-collate.c: Likewise.
10786         * locale/programs/ld-identification.c: Likewise.
10787         * locale/programs/ld-measurement.c: Likewise.
10788         * locale/programs/ld-messages.c: Likewise.
10789         * locale/programs/ld-monetary.c: Likewise.
10790         * locale/programs/ld-name.c: Likewise.
10791         * locale/programs/ld-numeric.c: Likewise.
10792         * locale/programs/ld-paper.c: Likewise.
10793         * locale/programs/ld-paper.c: Likewise.
10794         * locale/programs/ld-telephone.c: Likewise.
10795         * locale/programs/ld-time.c: Likewise.
10796         * locale/programs/locfile.c: Likewise.
10797         * locale/programs/localedef.c: Likewise.
10798         * locale/programs/localedef.h: Likewise.
10799         * locale/programs/locfile.h: Likewise.  Add declaration for
10800         find_translit.
10801         * locale/programs/simple-hash.c: Add const to first parameter of
10802         find_entry, iterate_table, and lookup.
10803         * locale/programs/simple-hash.h: Likewise.
10804         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10805         instead.
10806         * include/locale.h: Define __LC_LAST.
10807         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10809 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10811         * sysdeps/powerpc/Dist: Update for recent FP changes.
10812         * sysdeps/powerpc/fpu/Dist: Likewise.
10814 2001-12-07  Andreas Schwab  <schwab@suse.de>
10816         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10818 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10820         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10821         save/restore functions here.
10822         (libm-support): Don't define these functions here.
10823         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10824         functions here.
10825         * sysdeps/powerpc/fe_nomask.c: Move to...
10826         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10827         * sysdeps/powerpc/fprrest.S: Move to...
10828         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10829         * sysdeps/powerpc/fprsave.S: Move to...
10830         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10832 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10834         * sysdeps/unix/sysv/linux/opensock.c: New file.
10836 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10838         * config.make.in (with-fp): Define from configure.
10839         * configure.in: Substitute with_fp.
10840         * configure: Regenerate.
10841         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10842         specified, and don't change FPU environment.
10844 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10846         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10847         * assert/assert.c: Check result of __asprintf call and don't use
10848         string if it failed.
10849         * assert/assert-perr.c: Likewise.
10850         * inet/rcmd.c: Likewise.
10851         * locale/programs/localedef.c (main): Check result of
10852         construct_output_path and exit if it failed.
10853         (construct_output_path): Check result of asprintf and mkdir calls and
10854         fail if they failed.
10855         * posix/getopt.c: Check result of __asprintf calls and fail if
10856         they failed.
10857         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10859 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10861         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10862         patch.
10863         * sysdeps/generic/strncase.c: Likewise.
10864         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10866 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10868         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10870         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10871         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10872         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10873         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10874         * sysdeps/powerpc/fclrexcpt.c: Move to...
10875         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10876         * sysdeps/powerpc/fpu_control.h: Move to...
10877         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10879 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10881         * iconvdata/ibm1129.h: Remove duplicate mappings.
10882         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10883         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10884         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10886         * timezone/zic.c: Fix handling of turnaround times.
10887         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10889 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10891         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10892         overflow problem.
10894 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10896         * posix/regex.c: For use outside glibc defined bounded pointer
10897         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10899         * iconvdata/Makefile (modules): Add TCVN5712-1.
10900         * iconvdata/TESTS: Add TCVN5712-1.
10901         * iconvdata/gconv-modules: Likewise.
10902         * iconvdata/tcvn5712-1.c: New file.
10903         * iconvdata/testdata/TCVN-5712: New file.
10904         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10906 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10908         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10910 2001-12-02  Roland McGrath  <roland@frob.com>
10912         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10914         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10915         Reported by Jeff Bailey <jbailey@nisa.net>.
10917         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10918         Reported by Jeff Bailey <jbailey@nisa.net>.
10920         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10921         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10922         Reported by Jeff Bailey <jbailey@nisa.net>.
10924 2001-12-01  Roland McGrath  <roland@frob.com>
10926         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10927         missing backslash in test arguments.
10928         * sysdeps/mach/hurd/configure: Regenerated.
10930 2001-11-26  Roland McGrath  <roland@frob.com>
10932         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10933         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10935 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10937         * iconvdata/Makefile (modules): Add ARMSCII-8.
10938         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10939         * iconvdata/armscii-8.c: New file.
10941 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10943         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10944         don't match, fix {{a,b},c} globbing, clean up.
10945         Patch by Flavio Veloso <flaviovs@magnux.com>.
10946         * posix/globtest.sh: Add new tests.
10948 2001-11-29  Andreas Jaeger  <aj@suse.de>
10950         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10951         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10953         * sysdeps/generic/abort.c: Include libioP.h for
10954         _IO_flush_all_lockp prototype.
10956 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10958         * posix/regex.h: Define __restrict_arr correctly.
10960 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10962         * iconvdata/ibm1163.c: New file.
10963         * iconvdata/ibm1163.h: New file.
10964         * iconvdata/ibm1164.c: New file.
10965         * iconvdata/ibm1164.h: New file.
10966         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10967         * iconvdata/Makefile: Likewise.
10968         * iconvdata/testdata/IBM1163: New file.
10969         * iconvdata/testdata/IBM1163..UTF8: New file.
10970         * iconvdata/testdata/IBM1164: New file.
10971         * iconvdata/testdata/IBM1164..UTF8: New file.
10972         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10974         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10975         * iconvdata/ibm1124.h: Likewise.
10976         * iconvdata/ibm1132.h: Likewise.
10977         * iconvdata/ibm1133.h: Likewise.
10978         * iconvdata/ibm1160.h: Likewise.
10979         * iconvdata/ibm1161.h: Likewise.
10980         * iconvdata/ibm1162.h: Likewise.
10981         * iconvdata/ibm856.h: Likewise.
10982         * iconvdata/ibm922.h: Likewise.
10983         * iconvdata/ibm930.h: Likewise.
10984         * iconvdata/ibm932.h: Likewise.
10985         * iconvdata/ibm933.h: Likewise.
10986         * iconvdata/ibm935.h: Likewise.
10987         * iconvdata/ibm937.h: Likewise.
10988         * iconvdata/ibm939.h: Likewise.
10989         * iconvdata/ibm943.h: Likewise.
10990         * iconvdata/ibm930.c: Pretty printing.
10991         * iconvdata/ibm937.c: Avoid access accross array boundary.
10993         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10994         the current locale's codeset.
10995         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10996         empty input string.
10997         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10998         and from-charset.  Don't determine locale's charset here.
11000         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11001         as the old _IO_flush_all but lock only if parameter is nonzero.
11002         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11003         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11004         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11005         if libio is used [PR libc/2575].
11007 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11009         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11010         __signbitl): Only define for ISO C99.
11012 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11014         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11015         herrnop to NETDB_INTERNAL if we run out of buffer space.
11017 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11019         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11020         overflow test for platforms with signed char.
11021         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11023 2001-11-28  Bruno Haible  <bruno@clisp.org>
11025         * locale/programs/simple-hash.c (lookup_2): Remove function.
11026         (insert_entry_2): Call lookup instead of lookup_2.
11028 2001-03-04  Bruno Haible  <bruno@clisp.org>
11030         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11032 2001-10-31  Bruno Haible  <bruno@clisp.org>
11034         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11036 2001-03-21  Bruno Haible  <bruno@clisp.org>
11038         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11039         chokes on empty macro arguments.
11040         * intl/plural.y: Add #pragma for alloca on AIX 3.
11042 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11044         * intl/dcigettext.c (guess_category_value): Only implement for
11045         glibc.  Otherwise rely on function _nl_locale_name which isn't
11046         present in the glibc sources.
11048 2001-09-24  Bruno Haible  <bruno@clisp.org>
11050         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11051         transliteration when building on a glibc system but outside glibc.
11053 2001-09-22  Bruno Haible  <bruno@clisp.org>
11055         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11056         * intl/dcigettext.c (plural_eval): Remove function, moved to
11057         intl/plural-eval.c.
11058         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11059         Include plural-eval.c.
11061 2001-09-22  Bruno Haible  <bruno@clisp.org>
11063         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11064         don't start with a digit; nplurals must be positive.
11066 2001-09-02  Bruno Haible  <bruno@clisp.org>
11068         * intl/plural-exp.h: New file, extracted from gettextP.h.
11069         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11070         * intl/gettextP.h (struct expression, struct parse_args,
11071         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11072         * intl/loadmsgcat.c: Include plural-exp.h.
11073         (PLURAL_PARSE): Move macro to plural-exp.h.
11074         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11075         plural-exp.c.
11076         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11077         EXTRACT_PLURAL_EXPRESSION.
11078         (_nl_unload_domain): Update.
11079         * intl/dcigettext.c: Include plural-exp.h.
11080         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11081         (FREE_EXPRESSION): Move macro to plural-exp.h.
11082         * intl/Makefile (routines): Add plural-exp.
11083         (distribute): Add plural-exp.h.
11085 2001-07-28  Bruno Haible  <bruno@clisp.org>
11087         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11088         isdigit, tolower argument to 'unsigned char'.
11089         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11090         'unsigned char'.
11091         * intl/localealias.c (read_alias_file): Cast isspace argument to
11092         'unsigned char'.
11094 2001-10-20  Bruno Haible  <bruno@clisp.org>
11096         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11097         anyway.)
11098         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11099         with the variable 'index' in plural_lookup.
11100         * intl/l10nflist.c (strchr): Likewise.
11101         * intl/localealias.c (strchr): Likewise.
11103         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11104         * intl/bindtextdom.c: Likewise.
11105         * intl/dcigettext.c: Likewise.
11106         * intl/dgettext.c: Likewise.
11107         * intl/dngettext.c: Likewise.
11108         * intl/explodename.c: Likewise.
11109         * intl/finddomain.c: Likewise.
11110         * intl/gettext.c: Likewise.
11111         * intl/l10nflist.c: Likewise.
11112         * intl/loadmsgcat.c: Likewise.
11113         * intl/localealias.c: Likewise.
11114         * intl/ngettext.c: Likewise.
11115         * intl/textdomain.c: Likewise.
11116         * intl/gettext.h: Assume <limits.h> exists.
11118 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11120         * stdio-common/Makefile (tests): Add scanf11.
11121         * stdio-common/scanf11.c: New file.
11123 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11125         * version.h (RELEASE): Define as development.
11126         (VERSION): Set to 2.2.90.
11128 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11130         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11131         * nis/nss_nis/nis-grp.c: Likewise.
11132         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11134         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11135         * nis/nss_nis/nis-pwd.c: Likewise.
11136         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11138         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11139         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11140         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11142         * nscd/grpcache.c: Use strtoul instead of atol.
11143         * nscd/pwdcache.c: Likewise.
11144         * nss/getent.c: Likewise.
11146 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11148         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11149         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11151 2001-11-19  Bruno Haible  <bruno@clisp.org>
11153         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11154         90%.
11155         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11156         improves the quality of the hash function, especially for short
11157         strings.
11159 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11161         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11162         are found call conv_error and not input_error [PR libc/2669].
11164         * math/bits/mathcalls.h: Mark ceil and floor as const.
11165         Reported by David Mosberger.
11167 2001-11-21  Jim Meyering  <meyering@lucent.com>
11169         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11170         Define to be __-prefixed.
11171         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11173 2001-11-26  Andreas Jaeger  <aj@suse.de>
11175         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11176         avoid warning.
11178 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11180         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11181         initialization.
11183         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11184         unused variables.  Fix threshold for returning 1.0.
11186         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11187         argument.
11189         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11190         remove unused variables.
11192         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11194         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11195         include local math header files.
11197 2001-11-22  Andreas Jaeger  <aj@suse.de>
11199         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11200         avoid warning.
11202 2001-11-21  Andreas Jaeger  <aj@suse.de>
11204         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11206         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11207         sys/debugreg.h
11209 2001-11-15  Andreas Jaeger  <aj@suse.de>
11211         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11212         compilers that support it.
11214         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11215         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11216         * stdlib/stdlib.h: Likewise.
11218 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11220         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11221         statement with gotos.
11222         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11224 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11226         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11228 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11230         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11232 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11233             H.J. Lu  <hjl@gnu.org>
11235         * Versions.def (libc): Add GCC_3.0.
11236         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11237         if gcc supports this flag.
11238         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11239         (gcc3): Allow glibc to be compiled with gcc 3.x.
11240         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11241         * config.make.in (static-libgcc, unwind-find-fde): Add.
11242         * Makerules (build-shlib-helper, build-module-helper): Use it.
11243         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11244         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11245         necessary.
11246         (_fini): Call __deregister_frame_info_bases if
11247         __register_frame_info_bases was used to register.
11248         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11249         for GLIBC_2.0.
11250         (__register_frame_info_bases, __register_frame_info_table_bases,
11251         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11252         * elf/Makefile (routines): Add unwind-dw2-fde.
11253         (shared-only-routines): Add unwind-dw2-fde.
11254         * sysdeps/alpha/gccframe.h: New file.
11255         * sysdeps/arm/gccframe.h: New file.
11256         * sysdeps/generic/framestate.c: New file.
11257         * sysdeps/generic/dwarf2.h: New file.
11258         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11259         * sysdeps/generic/unwind-dw2-fde.c: New file.
11260         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11261         * sysdeps/generic/unwind-dw2-fde.h: New file.
11262         * sysdeps/generic/unwind-dw2.c: New file.
11263         * sysdeps/generic/unwind-pe.h: New file.
11264         * sysdeps/generic/unwind.h: New file.
11265         * sysdeps/hppa/gccframe.h: New file.
11266         * sysdeps/i386/gccframe.h: New file.
11267         * sysdeps/m68k/gccframe.h: New file.
11268         * sysdeps/mips/gccframe.h: New file.
11269         * sysdeps/powerpc/gccframe.h: New file.
11270         * sysdeps/s390/gccframe.h: New file.
11271         * sysdeps/sh/gccframe.h: New file.
11272         * sysdeps/sparc/gccframe.h: New file.
11273         * sysdeps/vax/gccframe.h: New file.
11274         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11275         Set on all architectures except ia64.
11276         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11277         for i386.
11278         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11279         __deregister_frame_info): Move to elf/Versions.
11280         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11281         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11282         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11283         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11284         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11285         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11286         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11287         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11288         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11289         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11290         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11291         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11292         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11293         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11294         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11295         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11296         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11297         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11299 2001-11-15  Jeff Law  <law@redhat.com>
11301         * posix/regex.c (uintptr_t): Do not provide a definition if the
11302         system provided one.
11304 2001-11-13  Roland McGrath  <roland@frob.com>
11306         * stdio-common/tmpfile.c: Moved to ...
11307         * sysdeps/generic/tmpfile.c: ... here.
11308         * sysdeps/mach/hurd/tmpfile.c: New file.
11310         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11311         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11312         (fopenport): Define as weak alias.
11314         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11315         * libio/libioP.h: ... to here.
11317 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11319         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11320         program header twice.  Construct list with the needed information.
11322 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11324         * po/ca.po: Update from translation team.
11326         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11327         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11328         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11329         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11331 2001-11-10  Andreas Jaeger  <aj@suse.de>
11333         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11334         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11335         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11337 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11339         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11340         correctly.
11341         * elf/dl-load.c (is_dst): New function.
11342         (_dl_dst_count): Use is_dst to check for DST variable.
11343         (_dl_dst_substitute): Likewise.
11345 2001-11-09  Roland McGrath  <roland@frob.com>
11347         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11348         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11349         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11350         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11351         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11352         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11353         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11354         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11355         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11356         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11357         * sysdeps/mach/hurd/powerpc/Dist: New file.
11359         * hurd/privports.c (__get_privileged_ports):
11360         Only contact the proc server if necessary for this call.
11361         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11362         Check error return for mach_port_mod_refs.
11364 2001-11-09  Andreas Schwab  <schwab@suse.de>
11366         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11368 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11370         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11371         object is always the last in the list.
11372         (_dl_map_object_from_fd): Delete code to remove from object list
11373         when DF_1_NOOPEN is seen.  This is done in lose.
11375 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11377         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11379 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11381         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11382         HWCAP_CHECK macro code.
11384         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11385         Now returns MAP_FAILED on error.
11386         * elf/rtld.c: Adjust caller.
11387         * sysdeps/generic/dl-cache.c: Likewise.
11388         * sysdeps/generic/ldsodefs.h: Adjust description.
11390         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11391         (_dl_check_map_versions): Likewise.
11393 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11395         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11396         _dl_signal_error directly, always use lose.  Set fd to -1 after
11397         file is closed.
11398         (lose): Don't call close if fd == -1.
11400 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11402         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11403          Also fix typo @code {mbsinit} to @code{mbsinit}.
11405 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11407         * elf/dl-profile.c: Replace state variable with simple flag named
11408         running.  Remove commented-out code.
11410         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11411         (_dl_init_paths): Likewise.
11412         (_dl_map_object_from_fd): Likewise.
11413         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11415 2001-11-06  Roland McGrath  <roland@frob.com>
11417         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11418         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11420         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11421         sysdeps/powerpc/elf/sysdep.h.
11422         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11424 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11426         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11427         speed.
11428         (process_envvars): Some more optimizations.
11429         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11431         * elf/elf.h: Add dynamic tag definitions for prelinking.
11433         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11434         Rewrite code to remove environment varables for SUID binaries.
11435         Small optimization in LD_PROFILE handling.
11436         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11437         changes.
11438         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11440         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11442         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11443         strings.  Change type of second parameter.
11444         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11445         for last change.
11447         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11449 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11451         * manual/string.texi: Fix typos.
11452         * manual/examples/argp-ex2.c: Likewise.
11454 2001-11-05  Roland McGrath  <roland@frob.com>
11456         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11457         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11458         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11459         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11460         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11461         here, put under [__ELF__].
11463 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11465         * manual/charset.texi: Extensive editing work.
11466         * manual/nss.texi: Likewise.
11467         Changes by Dennis Grace <dgrace@us.ibm.com>.
11469 2001-11-04  Roland McGrath  <roland@frob.com>
11471         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11472         parameter to dir_mkfile.
11474 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11476         * string/bits/string2.h (__strndup): If n is smaller than len, set
11477         len to n + 1.
11478         * string/tester.c (test_strndup): New function.
11479         (main): Call it.
11481 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11483         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11485         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11486         * scripts/cpp: New file.
11488         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11489         for rtld_search_dirs content.  Minor optimizations.
11491 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11493         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11494         avoiding unnecessary duplication.
11496 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11498         * elf/dl-load.c (_dl_map_object): If library was found using
11499         LD_LIBRARY_PATH, don't try RUNPATH list.
11501 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11503         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11504         Correct second argument of register_dump call.
11505         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11506         Likewise.
11508 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11510         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11511         modules.
11512         * iconvdata/TESTS: Likewise.
11513         * iconvdata/gconv-modules: Likewise.
11514         * iconvdata/ibm1132.c: New file.
11515         * iconvdata/ibm1132.h: New file.
11516         * iconvdata/ibm1133.c: New file.
11517         * iconvdata/ibm1133.h: New file.
11518         * iconvdata/ibm1162.c: New file.
11519         * iconvdata/ibm1162.h: New file.
11520         * iconvdata/testdata/IBM1132: New file.
11521         * iconvdata/testdata/IBM1132..UTF8: New file.
11522         * iconvdata/testdata/IBM1133: New file.
11523         * iconvdata/testdata/IBM1133..UTF8: New file.
11524         * iconvdata/testdata/IBM1162: New file.
11525         * iconvdata/testdata/IBM1162..UTF8: New file.
11526         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11528         * string/string.h: Fix typo in comment.
11529         * wcsmbs/wchar.h: Likewise.
11531 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11533         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11534         const in type of longopts parameter.
11536 2001-10-29  Andreas Jaeger  <aj@suse.de>
11538         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11540 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11542         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11543         output, clarify `#' behaviour on 0.
11544         (Floating-Point Conversions): Clarify that %g only uses %e when
11545         the exponent would be greater than 1.
11547 2001-10-28  Roland McGrath  <roland@frob.com>
11549         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11550         * sysdeps/mach/powerpc/machine-sp.h: New file.
11551         * sysdeps/mach/powerpc/sysdep.h: New file.
11552         * sysdeps/mach/powerpc/thread_state.h: New file.
11554         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11555         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11556         expect to need the same thing on every platform.
11558         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11559         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11561         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11562         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11563         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11564         Move all these assembly-related definitions to ...
11565         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11567         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11568         by Peter Bruin <pjbruin@dds.nl>.
11570         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11571         packing results for a `poll' call.
11573 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11575         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11576         correctly.
11577         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11578         bracket expression.
11580         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11581         nrules value.
11582         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11584 2001-10-24  H.J. Lu  <hjl@gnu.org>
11586         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11587         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11588         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11590 2001-10-21  Jim Meyering  <meyering@lucent.com>
11592         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11593         this code would end up calling gettext even in packages built
11594         with --disable-nls.
11595         * posix/getopt.c (_): Likewise.
11596         * posix/regex.c (_): Likewise.
11598 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11600         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11601         lookup not ip6.int.
11602         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11603         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11605 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11607         * misc/sys/cdefs.h (__attribute_used__): Define.
11608         * elf/rtld.c (_dl_start): Add __attribute_used__.
11609         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11611 2001-10-25  Andreas Schwab  <schwab@suse.de>
11613         * stdlib/a64l.c: Expect least significant digit first.
11614         * stdlib/l64a.c: Produce least significant digit first.
11615         * stdlib/Makefile (tests): Add test-a64l.
11616         * stdlib/test-a64l.c: New file.
11617         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11619 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11621         * po/sk.po: Update from translation team.
11623 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11625         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11627 2001-10-18  Andreas Schwab  <schwab@suse.de>
11629         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11630         next whole number.
11631         (print_function_ulps): Likewise.
11632         (print_complex_function_ulps): Likewise.
11633         (print_max_error): Likewise.
11634         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11636 2001-10-16  Andreas Schwab  <schwab@suse.de>
11638         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11639         implementation.
11641         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11642         BSD_SETJMP or BSD__SETJMP is defined, resp.
11643         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11644         a tail call to __sigsetjmp that would require extending the
11645         caller's frame.
11646         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11647         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11648         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11649         Reported by Jes Sorensen <jes@trained-monkey.org>.
11651 2001-10-16  Andreas Jaeger  <aj@suse.de>
11653         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11654         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11655         close PR libc/2589.
11657 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11659         * po/ca.po: New file.  Contributed by the translation team.
11661 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11663         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11664         a varargs prototype.  Remove dependency from kernel header files.
11666         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11667         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11669 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11671         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11672         to generate hexadecimal identifier.
11673         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11675 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11677         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11679 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11681         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11682         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11683         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11685         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11686         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11687         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11688         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11689         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11690         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11692         * timezone/africa: Update from tzdata2001d.
11693         * timezone/asia: Likewise.
11694         * timezone/australasia: Likewise.
11695         * timezone/backward: Likewise.
11696         * timezone/europe: Likewise.
11697         * timezone/leapseconds: Likewise.
11698         * timezone/northamerica: Likewise.
11699         * timezone/southamerica: Likewise.
11700         * timezone/zone.tab: Likewise.
11702 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11704         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11705         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11707 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11709         * elf/elf.h (PT_TLS): New definition.
11711 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11713         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11714         bits/errno.h
11716 2001-10-07  Roland McGrath  <roland@frob.com>
11718         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11720 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11722         * elf/elf.h: Add more ELFOSABI_* constants.
11724 2001-10-04  Ben Collins  <bcollins@debian.org>
11726         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11727         decleration of __need_wchar_t.
11729 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11731         * string/bits/string2.h (__strsep_g): Add prototype.
11732         (__strsep): Use it.
11733         * string/Versions (__strsep): Remove.
11734         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11736 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11738         * manua/llio.texi: Clarify file references added by mmap.
11739         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11741 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11743         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11744         Add sc_loadrs and sc_rbs_bas to match current kernel.
11746 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11748         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11750         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11752 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11754         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11755         object has been bumped because of relocation dependency, avoid
11756         duplicates in l_scope.
11757         (show_scope): Fix typos.
11758         * elf/Makefile: Add rules to build and run reldep6.
11759         * elf/reldep6.c: New file.
11760         * elf/reldep6mod0.c: New file.
11761         * elf/reldep6mod1.c: New file.
11762         * elf/reldep6mod2.c: New file.
11763         * elf/reldep6mod3.c: New file.
11764         * elf/reldep6mod4.c: New file.
11766 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11768         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11769         sparc64_fixup_plt.
11770         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11771         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11772         for non-lazy binding. Fix .plt[32768+] handling.
11773         (elf_machine_plt_value): Don't add addend.
11774         (elf_machine_rela): Call sparc64_fixup_plt instead of
11775         elf_machine_fixup_plt.
11776         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11777         dynamic linker at 0xfffff800XXXXXXXX.
11779         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11781 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11783         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11785 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11787         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11788         declare __cmsg_data field if its size would be bigger than 0.
11789         (CMSG_DATA): Adjust accordingly.
11790         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11791         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11792         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11793         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11794         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11795         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11796         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11798 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11800         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11801         * iconvdata/testdata/IBM1160: New file.
11802         * iconvdata/testdata/IBM1160..UTF8: New file.
11803         * iconvdata/testdata/IBM1161: New file.
11804         * iconvdata/testdata/IBM1161..UTF8: New file.
11805         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11807 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11809         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11810         UL_SETFSIZE computations better.
11812         * rt/Makefile: Remove use of filter for librt again.
11814         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11815         UL_SETFSIZE computations better.
11817         * string/Versions: Export __strsep for GLIBC_2.2.5.
11818         * string/bits/string2.h: Define all __STRING_INLINE functions if
11819         _FORCE_INLINES is defined.
11820         Use int instead of char of parameter types.
11821         (__strsep): Don't use __strsep_g.  Don't define it.
11822         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11823         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11824         __strcpy_small.
11825         (__stpcpy_a_small): Renamed from __stpcpy_small.
11826         (__strcspn_c1): Don't define if _FORCE_INLINES.
11827         (__strspn_c1): Likewise.
11829 2001-09-22  Ben Collins  <bcollins@debian.org>
11831         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11832         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11833         * sysdeps/ia64/bits/sigaction.h: Likewise.
11834         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11836 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11838         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11840 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11842         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11844 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11846         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11848 2001-09-20  H.J. Lu  <hjl@gnu.org>
11850         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11851         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11852         for __RTLD_SPROF.
11853         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11854         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11856 2001-09-20  H.J. Lu  <hjl@gnu.org>
11858         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11859         don't add 1.
11861 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11863         * nss/getent.c: Accept -s parameter to overwrite rules in
11864         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11866         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11867         with as many ".0" as necessary to form a complete address
11868         inet_network understands.
11870         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11871         calls.
11873 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11875         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11876         _JMPBUF_UNWINDS.
11877         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11879 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11881         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11882         IBM1161.
11883         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11884         * iconvdata/ibm1160.c: New file.
11885         * iconvdata/ibm1160.h: New file.
11886         * iconvdata/ibm1161.c: New file.
11887         * iconvdata/ibm1161.h: New file.
11888         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11890 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11892         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11893         difference between base address and first PT_LOAD's virtual address,
11894         not the base address.
11896 2001-09-11  Tom Rix  <trix@redhat.com>
11898         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11899         ifdef for __getopt_clean_environment.
11900         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11902 2001-09-22  Andreas Jaeger  <aj@suse.de>
11904         * elf/reldep4.c (main): Add proper prototype to fix warning.
11906         * elf/reldep5.c (main): Remove unused variable.
11908         * math/math_private.h: Add prototypes.
11910 2001-09-21  Andreas Jaeger  <aj@suse.de>
11912         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11913         * sysdeps/x86_64/Dist: New file.
11914         * sysdeps/x86_64/soft-fp/Dist: New file.
11916         * sysdeps/gnu/Dist: Remove eval.c.
11918 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11920         * malloc/memusage.c (realloc): Don't count already allocated
11921         memory in the sums.
11922         (me): Always use dlsym() to find the real implementations.
11924         * malloc/memusage.sh: Make -n option actually do something.
11926 2001-09-20  Andreas Jaeger  <aj@suse.de>
11928         * elf/elf.h (R_390_NUM): Correct value.
11930         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11931         libpthread.
11933         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11934         for x86-64, install x86-64 into */lib64.
11936         * shlib-versions: Add x86-64.
11938         * elf/elf.h: Add x86-64 relocations.
11940 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11942         * po/fr.po: Update from translation team.
11944 2001-09-19  Andreas Jaeger  <aj@suse.de>
11946         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11947         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11948         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11949         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11950         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11951         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11952         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11953         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11954         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11955         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11956         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11957         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11958         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11959         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11960         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11961         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11962         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11963         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11964         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11965         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11966         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11967         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11968         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11969         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11970         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11971         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11972         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11973         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11974         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11975         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11976         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11977         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11978         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11979         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11980         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11981         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11982         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11983         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11984         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11985         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11986         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11987         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11988         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11989         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11990         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11991         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11992         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11994         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11995         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11996         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11997         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11998         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11999         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12000         * sysdeps/unix/x86_64/sysdep.S: New file.
12001         * sysdeps/unix/x86_64/sysdep.h: New file.
12002         * sysdeps/x86_64/Implies: New file.
12003         * sysdeps/x86_64/Makefile: New file.
12004         * sysdeps/x86_64/Versions: New file.
12005         * sysdeps/x86_64/__longjmp.S: New file.
12006         * sysdeps/x86_64/abort-instr.h: New file.
12007         * sysdeps/x86_64/atomicity.h: New file.
12008         * sysdeps/x86_64/bits/endian.h: New file.
12009         * sysdeps/x86_64/bits/setjmp.h: New file.
12010         * sysdeps/x86_64/bits/string.h: New file.
12011         * sysdeps/x86_64/bp-asm.h: New file.
12012         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12013         * sysdeps/x86_64/bsd-setjmp.S: New file.
12014         * sysdeps/x86_64/dl-machine.h: New file.
12015         * sysdeps/x86_64/elf/initfini.c: New file.
12016         * sysdeps/x86_64/elf/start.S: New file.
12017         * sysdeps/x86_64/ffs.c: New file.
12018         * sysdeps/x86_64/ffsll.c: New file.
12019         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12020         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12021         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12022         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12023         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12024         * sysdeps/x86_64/fpu/e_expl.c: New file.
12025         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12026         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12027         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12028         * sysdeps/x86_64/fpu/e_logl.S: New file.
12029         * sysdeps/x86_64/fpu/e_powl.S: New file.
12030         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12031         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12032         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12033         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12034         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12035         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12036         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12037         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12038         * sysdeps/x86_64/fpu/fegetround.c: New file.
12039         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12040         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12041         * sysdeps/x86_64/fpu/fesetround.c: New file.
12042         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12043         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12044         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12045         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12046         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12047         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12048         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12049         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12050         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12051         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12052         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12053         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12054         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12055         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12056         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12057         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12058         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12059         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12060         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12061         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12062         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12063         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12064         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12065         * sysdeps/x86_64/gmp-mparam.h: New file.
12066         * sysdeps/x86_64/hp-timing.c: New file.
12067         * sysdeps/x86_64/hp-timing.h: New file.
12068         * sysdeps/x86_64/htonl.S: New file.
12069         * sysdeps/x86_64/memusage.h: New file.
12070         * sysdeps/x86_64/setjmp.S: New file.
12071         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12072         * sysdeps/x86_64/stackinfo.h: New file.
12073         * sysdeps/x86_64/sysdep.h: New file.
12074         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12076         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12077         L Moshier.
12079 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12081         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12082         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12084 2001-09-18  Andreas Schwab  <schwab@suse.de>
12086         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12087         list, now that l_scope is a pointer.
12089         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12090         scope list.
12092 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12094         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12095         (elf_machine_rela_relative): Add a missing declaration.
12097 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12099         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12100         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12101         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12102         ldd-rewrite scripts.
12104 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12106         * elf/ldd.bash.in: Update copyright message.
12108 2001-09-17  H.J. Lu  <hjl@gnu.org>
12110         * hurd/hurdmalloc.c (bcopy): Removed.
12111         (realloc): Replace bcopy with memcpy.
12112         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12113         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12114         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12116         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12117         (gethostbyaddr): Likewise.
12118         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12120 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12122         * sysdeps/gnu/eval.c: Removed.
12124 2001-09-18  Andreas Jaeger  <aj@suse.de>
12126         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12127         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12129         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12130         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12132         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12133         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12135 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12137         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12138         nrules value.
12140 2001-09-14  H.J. Lu  <hjl@gnu.org>
12142         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12144 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12146         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12147         Patch by Florian La Roche <laroche@redhat.com>.
12149         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12151         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12152         ETHER_CRC_LEN.
12154 2001-09-14  Andreas Schwab  <schwab@suse.de>
12156         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12157         Sumner <bls@sgi.com>.
12158         * posix/execlp.c: Likewise.
12160 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12162         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12163         is already found earlier in the search scope.
12165 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12167         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12168         filter.
12170 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12172         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12174 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12176         * config.h.in: Enforce optimization to be used.
12177         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12178         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12179         * posix/Makefile (annexc-CFLAGS): Define to -O.
12180         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12182 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12184         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12185         Patch by Stephan Kulow.
12187 2001-09-08  Ben Collins  <bcollins@debian.org>
12189         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12190         usage of RESOLVE() (r_type, not reloc->r_type).
12192 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12194         * elf/dl-object.c: Avoid allocating extra memory block for name.
12195         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12196         allocated separately.
12197         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12199 2001-09-08  H.J. Lu  <hjl@gnu.org>
12201         * po/zh_TW.po: Fix a typo.
12203 2001-09-07  Tom Rix  <trix@redhat.com>
12205         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12207 2001-08-26  Tom Rix  <trix@redhat.com>
12209         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12210         command line options.
12211         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12212         * sysdeps/unix/sysv/aix/start.c: Removed.
12213         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12214         * sysdeps/unix/sysv/aix/init-first.c: New file.
12215         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12217 2001-09-08  Ben Collins  <bcollins@debian.org>
12219         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12220         * sysdeps/generic/dl-machine.h: Likewise.
12221         * sysdeps/hppa/dl-fptr.c: Likewise.
12222         * sysdeps/ia64/dl-fptr.c: Likewise.
12223         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12224         * sysdeps/mips/dl-machine.h: Likewise.
12225         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12226         * sysdeps/powerpc/dl-machine.c: Likewise.
12228 2001-09-07  Ben Collins  <bcollins@debian.org>
12230         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12232         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12234 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12236         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12237         dependencies if necessary.
12239         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12240         loaded directly) determine length if l_initfini list by iterating
12241         over its elements.  Minor optimizations.
12242         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12243         for dependency objects.
12244         If object was already loaded check whether any of the dependencies
12245         is already on the relocation dependency list.  If yes, remove the
12246         latter.  Minor optimizations.
12247         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12248         maps here.  Search l_initfini list only if the object was loaded
12249         directly and not only as a dependency.
12250         (_dl_lookup_symbol): Add relocation dependency also if object
12251         is not in global scope.  Remove test for self-reference here.
12252         (_dl_lookup_versioned_symbol): Likewise.
12253         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12254         element of first name record.
12255         * elf/loadtest.c: Add some more test to recognize early if an object
12256         wasn't unloaded.
12257         * elf/Makefile: Add rules to build and run reldep5.
12258         * elf/reldep5.c: New file.
12259         * elf/reldepmod5.c: New file.
12260         * elf/reldepmod6.c: New file.
12262         * elf/reldep2.c: Fix typo.
12264 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12266         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12267         elements.  Change l_scope to be a pointer only.
12268         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12269         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12270         here add searchlist of newly open file to the dependency's scope.
12271         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12272         only searchlist from its scope.  Free own scope array if necessary.
12273         * elf/Makefile (tests): Add dblload and dblunload now.
12275 2001-09-06  Andreas Jaeger  <aj@suse.de>
12277         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12278         Stephen L Moshier.
12280 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12282         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12283         they both fail.
12284         * elf/dblload.c: New file.
12285         * elf/dblloadmod1.c: New file.
12286         * elf/dblloadmod2.c: New file.
12287         * elf/dblloadmod3.c: New file.
12288         * elf/dblunload.c: New file.
12290 2001-09-04  Richard Henderson  <rth@redhat.com>
12292         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12293         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12295 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12297         Correct very misleading message for error in failed runtime relocation.
12298         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12299         place of the error.
12300         (_dl_signal_cerror): Likewise.
12301         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12302         * elf/dl-close.c: Likewise.
12303         * elf/dl-deps.c: Likewise.
12304         * elf/dl-load.c: Likewise.
12305         * elf/dl-lookup.c: Likewise.
12306         * elf/dl-open.c: Likewise.
12307         * elf/dl-reloc.c: Likewise.
12308         * elf/dl-sym.c: Likewise.
12309         * elf/dl-version.c: Likewise.
12310         * sysdeps/generic/dl-sysdep.c: Likewise.
12312 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12314         * iconv/strtab.c (strtabinit): Initialize null Strent.
12315         (newstring): Move len == 0 handling...
12316         (strtabadd): ...here.
12317         If len == 1, return null Strent.
12318         When inserting a suffix of an existing string, check if
12319         it is not equal to some suffix already recorded.
12320         Copy left and right members over if adding longer string.
12322 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12324         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12326         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12327         (__syscall_gethostname): Add prototype.
12329 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12331         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12333 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12335         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12337 2001-08-27  Roland McGrath  <roland@frob.com>
12339         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12340         short, copy that much into NAME anyway before returning error.
12342 2001-09-01  Richard Henderson  <rth@redhat.com>
12344         * sysdeps/alpha/elf/Dist: Remove file.
12345         * sysdeps/alpha/elf/Makefile: Remove file.
12346         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12347         * sysdeps/alpha/elf/crtend.S: Remove file.
12348         * sysdeps/alpha/elf/initfini.c: New file.
12350 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12352         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12353         * iconv/tst-iconv3.c: Likewise.
12355 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12357         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12359 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12361         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12362         export it.
12363         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12364         * iconv/iconv_prog.c (insert_cache): New function.
12365         (print_known_names): If cache is used call insert_cache to use the
12366         information from the cache [PR libc/2509].
12368 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12370         * time/strptime.c (strptime_internal): Recognize 'l' format and
12371         handle it like 'I' for symmetry with strftime.
12373 2001-08-31  Richard Henderson  <rth@redhat.com>
12375         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12376         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12377         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12378         (print_statistics): Make scalar unsigned long long.
12379         * sysdeps/alpha/hp-timing.h: New file.
12381 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12383         * stdio-common/perror.c (perror): Save errno early, pass it
12384         down to perror_internal.
12385         (perror_internal): Add errnum argument.
12387 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12389         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12390         Don't add old memory content for R_ALPHA_REFQUAD.
12392 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12394         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12395         memory correctly.
12397         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12398         instead of open, __close instead of close, __getpagesize instead
12399         of getpagesize.
12401         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12402         instead of strnlen.
12403         * include/string.h (strndupa): Redefine here to use __strnlen
12404         instead of strnlen.
12405         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12407         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12408         connected).
12410 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12412         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12413         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12414         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12415         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12416         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12417         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12418         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12420 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12422         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12424 2001-08-30  Andreas Jaeger  <aj@suse.de>
12426         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12427         contributed Stephen L Moshier.
12429 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12431         * sunrpc/etc.rpc (sgi_fam): Add.
12433 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12435         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12437 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12439         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12440         first is from a previous call.
12441         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12443 2001-08-29  Andreas Schwab  <schwab@suse.de>
12445         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12447 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12449         * config.make.in (INSTALL_SCRIPT): Define.
12450         * Makeconfig (INSTALL_SCRIPT): Define.
12451         * Makerules (do-install-script): New macro to install scripts using
12452         INSTALL_SCRIPT.
12453         (install-bin-script): New rule to install scripts with
12454         do-install-script.
12455         (install-bin-script-nosubdir): New rule.
12456         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12457         (distinfo-vars): Add $(install-bin-script).
12458         * Rules (others): Likewise.
12459         * Makefile (glibcbug): Install with install-bin-script.
12460         * debug/Makefile (xtrace): Likewise.
12461         (catchsegv): Likewise.
12462         * elf/Makefile (ldd): Likewise.
12463         * malloc/Makefile (mtrace): Likewise.
12464         * timezone/Makefile (tzselect): Likewise.
12466 2001-08-29  H.J. Lu  <hjl@gnu.org>
12468         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12469         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12470         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12472 2001-08-29  Andreas Schwab  <schwab@suse.de>
12474         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12476 2001-08-28  H.J. Lu  <hjl@gnu.org>
12478         * Makeconfig (combreloc-LDFLAGS): New variable.
12479         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12480         * config.make.in (have-z-combreloc): New variable.
12481         * configure.in: Substitute libc_cv_z_combreloc.
12483 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12485         * po/sv.po: Update from translation team.
12486         * po/fr.po: Likewise.
12487         * po/da.po: Likewise.
12489 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12491         * Makerules: Fix a typo: MD% -> MD5.
12493 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12495         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12496         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12498 2001-08-28  Andreas Jaeger  <aj@suse.de>
12500         * manual/libc-texinfo.sh: Add entry about free manuals.
12502         * manual/contrib.texi (Contributors): Fix cross reference.
12504         * manual/libc.texinfo (Copying): Include freemanuals.
12506         * manual/Makefile (appendices): Add freemanuals.
12508         * manual/freemanuals.texi: New file.
12509         Patch by Brian Youmans <3diff@gnu.org>.
12511         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12512         smaller table.
12514         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12515         table on separate page.
12516         Patch by Brian Youmans <3diff@gnu.org>.
12518 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12520         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12521         the connection went down after we first used it try to connect
12522         again and resend the message before printing to the console.
12523         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12525 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12527         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12528         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12529         bit set.
12531 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12533         * iconv/strtab.c (searchstring): Use correct length for comparison.
12534         (strtabadd): Account total size correct if new string has old string as
12535         substring.
12537 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12539         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12541 2001-08-27  Andreas Jaeger  <aj@suse.de>
12543         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12545         * math/libm-test.inc (j0_test): Add extra tests.
12546         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12547         not x, in Hankel approximation.
12548         Patches by Stephen L Moshier.
12550 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12552         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12553         link_map.
12555         * configure.in: Fix test for .rela.dyn section.
12557         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12559 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12561         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12562         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12563         Pass type_class to _dl_lookup_*.
12564         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12565         Pass around just type_class instead of noexec, noplt pair.
12566         (_dl_lookup_versioned_symbol): Likewise.
12567         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12568         noexec, noplt pair.
12569         (_dl_lookup_versioned_symbol_skip): Likewise.
12570         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12571         * elf/do-lookup.h (do_lookup): Likewise.
12572         * include/link.h (struct link_map): Replace noexec and noplt fields
12573         in l_lookup_cache with type_class field.
12574         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12575         ELF_RTYPE_CLASS_COPY): Define.
12576         Adjust prototypes for _dl_lookup_symbol and
12577         _dl_lookup_versioned_symbol.
12578         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12579         elf_machine_lookup_noexec_p): Remove.
12580         (elf_machine_type_class): Define.
12581         * sysdeps/arm/dl-machine.h: Likewise.
12582         * sysdeps/hppa/dl-machine.h: Likewise.
12583         * sysdeps/cris/dl-machine.h: Likewise.
12584         * sysdeps/i386/dl-machine.h: Likewise.
12585         * sysdeps/ia64/dl-machine.h: Likewise.
12586         * sysdeps/m68k/dl-machine.h: Likewise.
12587         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12588         * sysdeps/mips/dl-machine.h: Likewise.
12589         * sysdeps/powerpc/dl-machine.h: Likewise.
12590         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12591         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12592         * sysdeps/sh/dl-machine.h: Likewise.
12593         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12594         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12596 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12598         * manual/message.texi (Advanced gettext functions): Change
12599         description of plural forms for Slovak.
12600         Reported by Marcel Telka <marcel@telka.sk>.
12602         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12603         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12605 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12607         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12608         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12610 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12612         * include/link.h (struct link_map): Add l_lookup_cache element.
12613         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12614         (RESOLVE_MAP): Likewise.
12615         (_dl_relocate_object): Remove cache initialization.
12616         * elf/dl-lookup.c: Rip out cache handling code.
12617         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12618         declarations.
12620         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12621         remove some __builtin_expect.
12622         (_dl_lookup_versioned_symbol): Likewise.
12624         * config.h.in: Add HAVE_Z_COMBRELOC.
12625         * configure.in: Add test for -z combreloc.
12627         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12628         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12629         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12630         case to almost no code.
12632 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12634         * po/tr.po: Update from translation team.
12636 2001-08-24  Andreas Jaeger  <aj@suse.de>
12638         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12639         make clean works.
12641 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12643         * elf/rtld.c (print_statistics): Printf % after percent values.
12644         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12646         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12647         don't have to compute the hash value and initialize current_value.
12648         Move reference_name variable to where it is needed.
12649         (_dl_lookup_versioned_symbol): Likewise.
12651 2001-08-24  Roland McGrath  <roland@frob.com>
12653         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12654         Just test that strerror returns non-null for a few errno codes.
12656 2001-08-23  Roland McGrath  <roland@frob.com>
12658         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12659         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12661         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12663         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12664         __mach_reply_port.
12666 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12668         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12669         returns NULL.
12671         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12672         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12673         doesn't do it.
12674         * elf/rtld.c: Include <sys/param.h>.
12675         * elf/dl-reloc.c: Likewise.
12677 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12679         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12680         empty to prevent junk from being generated.
12681         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12683 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12685         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12686         records.  Rename endrel to relative, initialize it to r, and use it
12687         in elf_machine_rel_relative calls.  Point r after relative relocs.
12689 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12691         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12692         of R_386_NONE.
12694 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12696         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12697         necessary.  Undefine newly defined macros at the end.
12698         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12699         Rename from elf_machine_rel_relative.
12700         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12701         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12702         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12703         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12704         Likewise.
12705         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12706         Likewise.
12707         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12708         Fix argument types.
12709         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12710         Fix argument types.
12711         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12712         Likewise.  Fix argument types.
12713         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12714         Likewise.  Fix argument types.
12715         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12716         Fix argument types.
12717         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12718         ElfW(Rel) in argument.
12719         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12720         function.
12722 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12724         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12726 2001-08-24  Andreas Jaeger  <aj@suse.de>
12728         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12729         Stephen L Moshier <moshier@mediaone.net>.
12731 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12733         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12734         first if RELCOUNT is set.
12736         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12737         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12738         elf_machine_rel_relative.
12739         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12740         Minor optimizations.
12741         * sysdeps/arm/dl-machine.h: Likewise.
12742         * sysdeps/cris/dl-machine.h: Likewise.
12743         * sysdeps/hppa/dl-machine.h: Likewise.
12744         * sysdeps/i386/dl-machine.h: Likewise.
12745         * sysdeps/ia64/dl-machine.h: Likewise.
12746         * sysdeps/m68k/dl-machine.h: Likewise.
12747         * sysdeps/mips/dl-machine.h: Likewise.
12748         * sysdeps/powerpc/dl-machine.h: Likewise.
12749         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12750         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12751         * sysdeps/sh/dl-machine.h: Likewise.
12752         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12753         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12755 2001-08-23  Roland McGrath  <roland@frob.com>
12757         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12759         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12760         sysdeps/mach version.  Implement counting ("recursive") mutexes
12761         on top of cthreads mutexes.
12762         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12764         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12765         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12766         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12767         __libc_clean_end): Define these to call the cleanup function after
12768         normal exit when they're supposed to.
12770         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12771         Take new first arg DOIT, a boolean saying whether to really install
12772         any cleanup handler.
12773         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12774         (__libc_cleanup_end): Likewise.
12775         * sysdeps/generic/bits/libc-lock.h: Same changes.
12776         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12777         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12778         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12779         Likewise.
12780         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12781         * sysdeps/generic/bits/stdio-lock.h
12782         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12784 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12786         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12788 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12790         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12791         functions.
12792         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12793         lookups in cache.
12794         (_dl_lookup_versioned_symbol): Likewise.
12795         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12796         relocation lookup.
12797         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12798         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12799         (lookup_cache, lookup_cache_versioned): Add declarations.
12801 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12803         * stdlib/tst-random.c (main): Swap parameters in fail call.
12804         Patch by Pete Bevin <pete@petebevin.com>.
12806 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12808         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12810 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12812         * malloc/obstack.c: Indent preprocessor directives.
12813         Patch by Jim Meyering <meyering@ascend.com>.
12815         * po/ja.po: Update from translation team.
12817 2001-08-23  Roland McGrath  <roland@frob.com>
12819         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12821         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12822         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12824 2001-08-22  Roland McGrath  <roland@frob.com>
12826         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12827         __libc_lock_define_recursive.
12828         * elf/dl-open.c: Don't declare it here any more.
12829         * elf/dl-close.c: Likewise.
12830         * elf/dl-lookup.c: Likewise.
12831         * elf/dl-iteratephdr.c: Likewise.
12832         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12833         __libc_lock_unlock_recursive.
12834         * elf/dl-close.c (_dl_close): Likewise
12835         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12836         * elf/dl-open.c (_dl_open): Likewise
12838         * sysdeps/generic/bits/libc-lock.h
12839         (__libc_lock_define_recursive): New macro.
12840         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12841         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12842         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12844         * conform/conformtest.pl (checknamespace): Sort the output list.
12846         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12847         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12848         definitions conditional on [__USE_XOPEN].
12850         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12851         these unconditionally, not only use [__USE_BSD], so as to match
12852         the sysdeps/unix/sysv/linux files.
12854 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12856         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12857         avoid warnings.
12859         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12860         DL_LOOKUP_ADDRESS.
12862 2001-08-22  Roland McGrath  <roland@frob.com>
12864         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12865         conditionalization of sa_handler/sa_sigaction member types to
12866         match the sysdeps/unix/sysv/linux file.
12868 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12870         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12871         symbol sizes a bit better.
12873         * sysdeps/ia64/strncpy.S: Complete rewrite.
12874         Contributed by Jakub Jelinek <jakub@redhat.com>.
12876         * string/stratcliff.c (main): Add strncpy test.
12878 2001-08-22  Roland McGrath  <roland@frob.com>
12880         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12881         and don't declare unsetenv or _environ directly.
12882         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12884 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12886         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12887         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12888         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12889         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12890         test for cmsg struct size.
12892 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12894         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12895         Rename __argc to ___argc in prototypes to avoid compatibility
12896         problems with systems that reserve the identifier "__argc".
12897         Similarly for __argv.
12899 2001-08-21  Roland McGrath  <roland@frob.com>
12901         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12903         * mach/Makefile (tests): Removed.
12904         * mach/hello.c: File removed.
12906 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12908         * po/sv.po: Update from translation team.
12910         * stdio-common/vfscanf.c: Fix handling of %l[].
12911         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12913         * libio/Makefile (tests): Add tst-sscanf.
12914         * libio/tst-sscanf.c: New file.
12916         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12917         * malloc/mtrace.c (tr_where): dli_sname always points to a
12918         non-empty string if != NULL.
12919         Reported by Tim Janik <timj@gtk.org>.
12921 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12923         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12924         buf.  Free resources on failure.
12925         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12926         (makefd_xprt): Likewise.
12927         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12928         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12929         * sunrpc/auth_unix.c (authunix_create): Likewise.
12931 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12933         * string/strnlen.c: Remove.
12934         * sysdeps/generic/strnlen.c: New file.
12935         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12937 2001-08-21  Roland McGrath  <roland@frob.com>
12939         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12940         as a macro, not an extern inline function.
12942         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12943         * Versions.def (libc): Add GLIBC_2.2.5 set.
12944         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12945         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12947 2001-08-20  Roland McGrath  <roland@frob.com>
12949         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12950         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12952 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12954         * string/bits/string2.h: Remove strnlen optimization here.
12955         * sysdeps/i386/i486/bits/string.h: Add it here.
12957 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12959         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12961 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12963         * po/gl.po: Update from translation team.
12965 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12967         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12968         * misc/err.c (convert_and_print): Likewise.
12970         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12971         function calls.
12973 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12975         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12976         change of the gregset_t type.
12977         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12979 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12981         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12983 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12985         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12987         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12989 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12991         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12992         before calling the cthreads initialization code.
12994 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12996         * argp/argp-help.c: Fix two problems introduced in last change.
12998         * include/dirent.h: Include <dirstream.h> first.
13000 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13002         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13004         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13005         * sunrpc/xdr_rec.c: Likewise.
13006         * sunrpc/xdr_mem.c: Likewise.
13007         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13008         * sunrpc/rpc_cmsg.c: Likewise.
13009         * sunrpc/getrpcport.c (getrpcport): Likewise.
13010         * sunrpc/clnt_simp.c (callrpc): Likewise.
13011         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13012         * string/envz.c: Likewise.
13014         * po/ko.po: Update from translation team.
13016         * argp/argp-help.c: Handle wide oriented stderr stream.
13018 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13020         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13021         __builtin_expect.
13023         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13025         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13026         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13027         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13029         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13031         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13033         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13035         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13036         wchar_t for function declarations and defintions.
13038         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13039         Define suseconds_t if it hasn't happened yet.
13041         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13043         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13045         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13046         <stddef.h>.
13048         * conform/data/stddef.h-data: Remove wint_t.
13050         * conform/conformtest.pl: Change namespace test to take #undef
13051         lines into account.
13053         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13055         * conform/data/sys/socket.h-data: Add sockatmark.
13057 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13059         * io/fts.c: Update from recent BSD source.
13061 2001-08-17  Roland McGrath  <roland@frob.com>
13063         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13064         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13065         Likewise.
13067 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13069         * locale/duplocale.c (__duplocale): Also initialize the special
13070         __ctype_* elements.
13072         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13074 2001-08-17  Andreas Jaeger  <aj@suse.de>
13076         * misc/getpass.c: Include wchar.h for prototypes.
13077         * malloc/obstack.c: Likewise.
13079 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13081         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13083         * wcsmbs/wcscoll.c: Also define __wcscoll.
13084         * include/wchar.h: Declare __wcscoll.
13086         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13087         * libio/vwprintf.c: Likewise.
13088         * libio/wprintf.c: Likewise.
13090         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13092 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13094         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13095         instead of mbrtowc.
13096         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13097         wcslen, and __wcscoll instead of wcscoll.
13099         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13101         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13102         __getuid instead of getuid.
13104         * stdio-common/perror.c (perror): Use __close instead of close.
13105         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13106         * libio/freopen.c (freopen): Likewise.
13107         * libio/freopen64.c (freopen64): Likewise.
13109         * libio/tst-ungetwc2.c (main): Define str const.
13111         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13112         * libio/fwprintf.c: Also define __fwprintf.
13113         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13114         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13115         * assert/assert-perr.c: Likewise.
13116         * assert/assert.c: Likewise.
13117         * gmon/gmon.c: Likewise.
13118         * inet/rcmd.c: Likewise.
13119         * malloc/obstack.c: Likewise.
13120         * misc/err.c: Likewise.
13121         * misc/error.c: Likewise.
13122         * misc/getpass.c: Likewise.
13123         * posix/getopt.c: Likewise.
13124         * resolv/res_hconf.c: Likewise.
13125         * stdio-common/perror.c: Likewise.
13126         * stdio-common/psignal.c: Likewise.
13127         * stdlib/fmtmsg.c: Likewise.
13128         * sunrpc/auth_unix.c: Likewise.
13129         * sunrpc/clnt_perr.c: Likewise.
13130         * sunrpc/clnt_tcp.c: Likewise.
13131         * sunrpc/clnt_udp.c: Likewise.
13132         * sunrpc/clnt_unix.c: Likewise.
13133         * sunrpc/svc_simple.c: Likewise.
13134         * sunrpc/svc_tcp.c: Likewise.
13135         * sunrpc/svc_udp.c: Likewise.
13136         * sunrpc/svc_unix.c: Likewise.
13137         * sunrpc/xdr.c: Likewise.
13138         * sunrpc/xdr_array.c: Likewise.
13139         * sunrpc/xdr_rec.c: Likewise.
13140         * sunrpc/xdr_ref.c: Likewise.
13141         * sysdeps/generic/wordexp.c: Likewise.
13143         * po/it.po: Update from translation team.
13145         * misc/err.c: Handle wide oriented stderr stream.
13147 2001-08-14  Tom Rix  <trix@redhat.com>
13149         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13150         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13152 2001-08-13  Tom Rix  <trix@redhat.com>
13154         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13155         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13156         and __intptr_t.
13158 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13160         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13161         Store the access registers to the ucontext structure.
13162         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13163         Likewise.
13165         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13166         Load the access registers from the ucontext structure.
13167         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13168         Likewise.
13170         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13171         offsets to the new ucontext layout.
13172         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13174         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13175         of the ucontext structure.
13176         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13178 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13180         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13181         (error_at_line): Likewise.
13183         * stdio-common/perror.c (perror): Implement according to standard.
13184         The stream orientation must not be changed if the stream was not
13185         oriented before the call.
13186         * stdio-common/Makefile (tests): Add tst-perror.
13187         * stdio-common/tst-perror.c: New file.
13190 See ChangeLog.12 for earlier changes.