Update.
[glibc.git] / ChangeLog
blob0977e70a4eccdca3dec12b6e0469bbc83d6c602a
1 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-init.c (_dl_init): Fix test of the size of the
4         preinit_array section.
5         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
6         Reported by Brian Cabral <cabral@ikuni.com>.
8 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
10         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
11         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
12         specific macros copied from sysdeps/powerpc/sysdep.h.
13         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
14         specific macros.
15         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
16         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
17         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
19 2002-09-19  Bruno Haible  <bruno@clisp.org>
21         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
22         returning.
24 2002-09-17  Bruno Haible  <bruno@clisp.org>
26         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
27         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
28         also on platforms with !HAVE_UT_TYPE.
29         (proc_utmp_eq): Remove function.
30         (internal_getut_r, pututline_file): Call __utmp_equal instead.
32 2002-09-20  Bruno Haible  <bruno@clisp.org>
34         * abi-tags: Add support for FreeBSD with ABI OS value 3.
35         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
37 2002-09-20  Roland McGrath  <roland@redhat.com>
39         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
40         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
41         terms of __WORDSIZE.
42         * sysdeps/x86_64/gmp-mparam.h: File removed.
43         * sysdeps/sparc/gmp-mparam.h: File removed.
44         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
45         * sysdeps/ia64/gmp-mparam.h: File removed.
46         * sysdeps/alpha/gmp-mparam.h: File removed.
48 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
50         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
51         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
52         casts.  Align __libc_stack_end to 8 bytes.
54 2002-09-20  Roland McGrath  <roland@redhat.com>
56         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
57         instead of asm for lrintf, __lrintf aliases.
59         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
60         int array for 32-/64-bit compatibility.
61         From Steven Munroe  <sjmunroe@us.ibm.com>.
63 2002-09-17  Bruno Haible  <bruno@clisp.org>
65         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
66         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
67         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
68         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
69         for iterating through the list of interfaces.
70         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
72 2002-09-20  Roland McGrath  <roland@redhat.com>
74         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
75         Reported by Bruno Haible <bruno@clisp.org>.
77         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
79         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
80         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
81         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
83 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
85         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
86         * sysdeps/powerpc/bits/wordsize.h: New file.
87         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
88         array to int array for 32-/64-bit compatibility.
90 2002-09-20  Roland McGrath  <roland@redhat.com>
92         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
94         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
95         Reported by Bruno Haible <bruno@clisp.org>.
97         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
98         before doubling RQ_LEN.
99         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
100         Reported by Bruno Haible <bruno@clisp.org>.
102 2002-09-18  Bruno Haible  <bruno@clisp.org>
104         * login/logout.c (logout): Don't assume ut_time has the same size as
105         a time_t.
106         * login/logwtmp.c (logwtmp): Likewise.
108         * sysdeps/pthread/configure: New file, moved here from
109         linuxthreads/sysdeps/unix/sysv/linux/configure.
111 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
113         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
114         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
115         Reported by Glen Nakamura <glen@imodulo.com>.
117 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
119         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
120         thread's sigstate data structure if it has been allocated.
122 2002-09-19  Roland McGrath  <roland@redhat.com>
124         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
125         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
127 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
129         * version.h (VERSION): Bump to 2.2.94.
131         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
132         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
133         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
136         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
138         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
140         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
144 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
146         * sysdeps/wordsize-32/Makefile: New file.
147         * sysdeps/arm/Makefile: Removed.
148         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
149         Don't add divdi3 here.
150         * sysdeps/m68k/Makefile: Likewise.
151         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
152         * sysdeps/sh/Makefile: Likewise.
153         * sysdeps/s390/s390-32/Makefile: Likewise.
155 2002-09-18  Roland McGrath  <roland@redhat.com>
157         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
158         the __ctype_* compat symbols, so the relocs generated bind to the
159         right versioned global symbol in the shared object.
161         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
162         from the value taken from the DT_VERSYM table.
163         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
164         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
165         (RESOLVE_GOTSYM): Likewise.
167         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
168         Add libc_hidden_def.
169         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
170         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
171         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
172         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
173         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
174         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
175         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
176         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
178 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
180         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
182         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
183         define sigaction and __sigaction as wrappers around
184         __libc_sigaction which rejects changing SIGCANCEL.
185         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
187         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
188         SETTID/CLEARTID.
190         * signal/allocrtsig.c: Move to...
191         * sysdeps/generic/allocrtsig.c: ...here.  New file.
193 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
195         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
197         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
198         R_386_TLS_LE): Define.
199         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
200         comments.
201         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
202         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
203         (elf_machine_rel): Handle R_386_TLS_TPOFF.
204         (elf_machine_rela): Likewise.
205         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
207 2002-09-17  Roland McGrath  <roland@redhat.com>
209         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
210         file-specific variable override so it compiles properly when using
211         --with-headers.
213 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
215         Ported to PowerPC64 running Linux.
216         * sysdeps/powerpc/powerpc64/Dist: New file.
217         * sysdeps/powerpc/powerpc64/Implies: New file.
218         * sysdeps/powerpc/powerpc64/Makefile: New file.
219         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
220         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
221         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
222         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
223         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
224         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
225         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
226         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
227         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
228         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
229         * sysdeps/powerpc/powerpc64/memset.S: New file.
230         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
231         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
232         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
233         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
234         * sysdeps/powerpc/powerpc64/strchr.S: New file.
235         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
236         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
237         * sysdeps/powerpc/powerpc64/strlen.S: New file.
238         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
239         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
240         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
241         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
250         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
251         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
252         various gcc versions.  Dot names required for powerpc64.
253         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
254         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
255         C_SYMBOL_DOT_NAME(alias).
256         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
257         original strong_alias macro.
258         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
259         C_SYMBOL_DOT_NAME(alias).
260         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
261         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
262         '.'ed name.
263         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
264         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
265         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
266         (hidden_def): Append hidden_dot_def1 macro to definition.
267         (hidden_ver): Append hidden_dot_def1 macro to definition.
268         (hidden_data_def): New macro.  Same as original hidden_def macro.
269         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
270         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
271         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
272         (hidden_weak): Append hidden_dot_weak1 macro to definition.
273         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
274         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
275         Otherwise defined as __GI_name.
276         (libc_hidden_data_def): New macro.  Use hidden_data_def.
277         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
278         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
279         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
280         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
281         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
282         (libm_hidden_data_def): New macro.  Use hidden_data_def.
283         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
284         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
285         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
287 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
289         * include/libc-symbols.h: Change *hidden_proto macros to accept
290         option parameters and pass those to the attribute definition.
291         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
293         * include/unistd.h: Declare __libc_pause.
295         * include/sys/socket.h: Declare __libc_send, __libc_recv,
296         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
298         * include/unistd.h: Declare __libc_fork.
300 2002-09-17  Roland McGrath  <roland@redhat.com>
302         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
303         (passwd2des): Define it as an alias.
304         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
306 2002-09-12  Bruno Haible  <bruno@clisp.org>
308         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
309         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
311         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
312         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
314 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
316         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
317         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
318         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
319         PowerPC64 does not have separate 64-bit syscalls.
321 2002-09-16  Roland McGrath  <roland@redhat.com>
323         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
326         New macro.
328         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
330         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
331         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
332         * sysdeps/generic/_exit.c: Likewise.
334 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
336         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
338         * elf/rtld.c (struct dl_start_final_info): New.
339         (_dl_start_final): Change second argument to struct
340         dl_start_final_info *.  Set start_time from info.
341         (_dl_start): Remove bootstrap_map variable, add info.
342         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
343         store HP_TIMING_NOW result into info.start_time.
345 2002-09-16  Andreas Jaeger  <aj@suse.de>
347         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
348         to _Exit.
349         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
351 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
353         * sysdeps/powerpc/abort-instr.h: New file.
355 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
357         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
358         comment.
360         * test-skeleton.c (main): Provide more information in case waitpid
361         fails.
363         * include/unistd.h: Declare __exit_thread.
364         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
365         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
366         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
367         * sysdeps/unix/sysv/linux/_exit.c: New file.
368         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
369         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
370         Add exit-thread.
372         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
374 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
376         * sysdeps/i386/dl-machine.h (elf_machine_rel)
377         (case R_386_TLS_DTPMOD32): Don't use addend.
378         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
379         (elf_machine_rela): Add support for TLS relocs.
381 2002-09-14  Roland McGrath  <roland@redhat.com>
383         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
385 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
387         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
388         specific asm macros for multiple percision integer math.
390 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
392         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
393         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
394         Remove per-machine conditionals for FLAG_* cases.
395         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
396         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
399 2002-09-10  Alan Modra <amodra@bigpond.net.au>
401         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
402         defined in entry.h.
403         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
404         lowest address for profiling in  __monstartup call.
405         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
407 2002-09-14  Roland McGrath  <roland@redhat.com>
409         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
410         instead of __NR_pread.
411         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
412         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
413         instead of __NR_pwrite.
414         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
416 2002-09-13  Roland McGrath  <roland@redhat.com>
418         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
420 2002-09-13  Andreas Jaeger  <aj@suse.de>
422         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
423         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
425 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
427         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
429 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
431         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
432         reading the headers.
434 2002-09-12  Roland McGrath  <roland@redhat.com>
436         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
437         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
438         find the ELF header.
440         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
441         executable if needed, in case it's actually a shared object.
443 2002-09-11  Roland McGrath  <roland@redhat.com>
445         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
446         l_map_start to adjust l_tls_initimage.
448         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
449         when using h_errno and it's not set to NETDB_INTERNAL.
450         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
452         * Makefile ($(common-objpfx)testrun.sh): New target.
453         (others): Depend on it.
454         (postclean-generated): Append it.
456         * nss/bug-erange.c: New file.
457         * nss/Makefile (tests): Add it.
459         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
460         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
462         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
463         strncmp, keeps the code smaller for a non-performance-critical case.
465         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
466         no longer wrongly matches arbitrary prefixes of NAME.
467         Reported by Jakub Jelinek <jakub@redhat.com>.
469 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
471         * posix/bug-regex11.c (tests): New array.
472         (main): Rewritten to run more different tests.
474 2002-09-10  Roland McGrath  <roland@redhat.com>
476         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
477         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
478         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
480         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
481         well so we don't get it declared by include/math.h's hidden_proto.
482         Then do hidden_proto for __isnanf locally so hidden_def works right.
484         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
485         a cast to turn nl_langinfo return value into an integer.
487 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
489         * posix/regexec.c (build_trtable): Fix the destination of
490         newline to prevent wrong states from overwriting.
491         Append break statements to optimization.
493 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
495         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
496         (build_range_exp): Add castings to strlen invocations.
497         (build_collating_symbol): Restore the type of characters from "char"
498         to "unsigned char", and supplement castings.
499         (build_collating_symbol): Likewise.
500         (build_equiv_class): Likewise.
501         (build_charclass): Likewise.
502         (seek_collating_symbol_entry): Likewise.
503         (parse_bracket_exp): Likewise.
504         (build_word_op): Supplement a casting.
505         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
506         (re_string_allocate): Fix castings.
507         (re_string_construct): Likewise.
508         (re_string_construct_common): Likewise.
509         (re_string_realloc_buffers): Likewise.
510         (build_wcs_buffer): Likewise.
511         (build_wcs_upper_buffer): Likewise.
512         (re_string_skip_chars): Likewise.
513         (re_string_reconstruct): Likewise.
514         * posix/regex_internal.h: Restore the type of characters in
515         re_string_t and bracket_elem_t from "char" to "unsigned char".
516         (re_string_elem_size_at): Fix castings.
517         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
518         (transit_state_bkref_loop): Restore the type of characters from
519         "char" to "unsigned char", and append a cast to "char*" pointer in
520         array subscript.
521         (check_node_accept_bytes): Likewise.
522         (find_collation_sequence_value): Likewise.
524 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
526         * sysdeps/mips/memcpy.S: New file.
527         * sysdeps/mips/memset.S: New file.
528         * sysdeps/mips/fpu/e_sqrt.c:  New file.
529         * sysdeps/mips/fpu/e_sqrtf.c: New file.
531         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
532         functional before. Also removed all SHLIB_COMPAT stuff.
533         * fpu/fegetenv.c: Likewise.
534         * fpu/fesetenv.c:: Likewise.
535         * fpu/feupdateenv.c: Likewise.
536         * fpu/fgetexcptflg.c: Likewise.
537         * fpu/fraiseexcpt.c: Likewise.
539         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
541 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
543         * include/math.h (__finite_internal, __finitef_internal,
544         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
545         (isfinite): Remove.
546         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
547         __isinfl, __isnanl): Add hidden_proto.
548         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
549         libm_hidden_proto.
550         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
551         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
552         __is{inf,nan} calls.
553         * stdio-common/printf_size.c (printf_size): Likewise.
554         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
555         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
556         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
557         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
558         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
559         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
560         (__finite): Add hidden_def.
561         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
562         (__finitef): Add hidden_def.
563         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
564         (__finitel): Add hidden_def.
565         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
566         hidden_def.
567         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
568         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
569         libm_hidden_def.
570         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
571         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
572         hidden_def.
573         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
574         (__isinfl): Remove INTDEF.
575         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
576         hidden_def.
577         (__isnanl): Remove INTDEF.
578         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
579         libm_hidden_def.
580         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
581         instead of sin and cos.
582         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
583         Add hidden_def.
584         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
585         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
586         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
587         libm_hidden_def.
588         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
589         Add hidden_def.
590         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
591         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
592         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
593         libm_hidden_def.
594         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
595         libm_hidden_def.
596         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
597         Add hidden_def.
598         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
599         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
600         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
601         libm_hidden_def.
602         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
603         __finitel_internal): Remove aliases.
604         (__finite, __finitef, __finitel): Add hidden_def.
605         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
606         __isnanl_internal): Remove aliases.
607         (__isnan, __isnanf, __isnanl): Add hidden_def.
608         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
609         __isinfl_internal): Remove aliases.
610         (__isinf, __isinff, __isinfl): Add hidden_def.
611         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
612         __fpclassifyl): Add libm_hidden_def.
613         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
614         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
615         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
616         (hidden_defx): Define and use.
617         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
618         libm_hidden_def.
619         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
620         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
621         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
622         Remove INTDEF.
623         (__isnan, __isnanf): Add hidden_def.
624         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
625         (__finitel): Add libm_hidden_def.
626         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
628         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
629         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
630         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
631         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
632         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
633         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
634         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
635         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
636         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
637         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
638         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
639         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
640         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
641         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
642         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
643         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
644         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
645         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
646         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
647         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
648         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
649         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
650         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
651         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
652         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
653         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
654         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
656 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
658         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
660 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
662         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
663         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
665 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
667         * string/stratcliff.c: Some more strncpy tests.
668         Patch by Daniel Jacobowitz <drow@mvista.com>.
670 2002-09-08  Roland McGrath  <roland@redhat.com>
672         * resolv/resolv.h: Include <sys/types.h> for u_long even in
673         the [__need_res_state] case.
674         Reported by Bruno Haible <bruno@clisp.org>.
676 2002-09-04  Bruno Haible  <bruno@clisp.org>
678         * sysdeps/generic/bits/ustat.h: Comment fix.
679         * io/sys/sendfile.h: Comment fix.
680         * sysdeps/posix/pread.c: Comment fix.
681         * sysdeps/posix/pread64.c: Comment fix.
682         * sysdeps/posix/pwrite.c: Comment fix.
683         * sysdeps/posix/pwrite64.c: Comment fix.
685 2002-09-06  Roland McGrath  <roland@redhat.com>
687         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
688         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
689         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
690         (_UTSNAME_MACHINE_LENGTH): Likewise.
691         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
693 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
695         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
696         test for filesystem type name of mount points.
698         * include/errno.h: Use errno definition with __thread for now only
699         in libc and ld.so.
701         * test-skeleton.c (main): Improve error message for unexpected
702         signal case.
704 2002-09-05  Roland McGrath  <roland@redhat.com>
706         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
707         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
709 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
711         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
712         case of failure.
714 2002-09-04  Bruno Haible  <bruno@clisp.org>
716         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
717         sigset_get_old_mask): Turn into inline functions.
718         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
719         sigset_get_old_mask): Likewise.
720         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
721         sigset_get_old_mask): Likewise.
722         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
723         syntax.
725         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
727         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
728         default definitions.
729         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
730         _sys_nerr_internal instead of _sys_nerr.
732         * nscd/connections.c (handle_request): Declare CALLER inside #if.
734 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
736         * sysdeps/powerpc/__longjmp.S: Moved to...
737         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
738         * sysdeps/powerpc/add_n.S: Moved to...
739         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
740         * sysdeps/powerpc/addmul_1.S: Moved to...
741         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
742         * sysdeps/powerpc/atomicity.h: Moved to...
743         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
744         * sysdeps/powerpc/backtrace.c: Moved to...
745         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
746         * sysdeps/powerpc/bp-asm.h: Moved to...
747         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
748         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
749         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
750         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
751         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
752         * sysdeps/powerpc/dl-machine.c: Moved to...
753         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
754         * sysdeps/powerpc/dl-machine.h: Moved to...
755         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
756         * sysdeps/powerpc/dl-start.S: Moved to...
757         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
758         * sysdeps/powerpc/gprrest0.S: Moved to...
759         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
760         * sysdeps/powerpc/gprrest1.S: Moved to...
761         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
762         * sysdeps/powerpc/gprsave0.S: Moved to...
763         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
764         * sysdeps/powerpc/gprsave1.S: Moved to...
765         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
766         * sysdeps/powerpc/lshift.S: Moved to...
767         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
768         * sysdeps/powerpc/memset.S: Moved to...
769         * sysdeps/powerpc/powerpc32/memset.S: ...here.
770         * sysdeps/powerpc/mul_1.S: Moved to...
771         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
772         * sysdeps/powerpc/ppc-mcount.S: Moved to...
773         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
774         * sysdeps/powerpc/register-dump.h: Moved to...
775         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
776         * sysdeps/powerpc/rshift.S: Moved to...
777         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
778         * sysdeps/powerpc/setjmp.S: Moved to...
779         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
780         * sysdeps/powerpc/stpcpy.S: Moved to...
781         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
782         * sysdeps/powerpc/strchr.S: Moved to...
783         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
784         * sysdeps/powerpc/strcmp.S: Moved to...
785         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
786         * sysdeps/powerpc/strcpy.S: Moved to...
787         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
788         * sysdeps/powerpc/strlen.S: Moved to...
789         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
790         * sysdeps/powerpc/sub_n.S: Moved to...
791         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
792         * sysdeps/powerpc/submul_1.S: Moved to...
793         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
794         * sysdeps/powerpc/elf/bzero.S: Moved to...
795         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
796         * sysdeps/powerpc/elf/start.S: Moved to...
797         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
798         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
799         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
800         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
801         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
802         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
803         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
804         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
805         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
806         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
807         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
808         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
809         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
810         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
812         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
814         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
816         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
818         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
820         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
822         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
824         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
825         powerpc/powerpc64.
827 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
829         * FAQ.in: Add powerpc64 to supported targets list. Also state the
830         minimum gcc version is 3.2
831         * README: Add powerpc64 to supported targets list.
832         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
833         Add powerpc64 and machine=powerpc/powerpc64.
834         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
835         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
836         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
837         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
838         * sysdeps/powerpc/powerpc32/Dist: New file.
839         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
840         * sysdeps/powerpc/powerpc32/Implies: New file.
841         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
842         ($(with-fp) = no): Move test to powerpc32/Makefile.
843         ($(subdir) = misc): Move to powerpc32/Makefile.
844         ($(build-shared) = yes): Move to powerpc32/Makefile.
845         ($(subdir) = csu): Move to powerpc32/Makefile.
846         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
847         * sysdeps/powerpc/powerpc32/Makefile: New file.
848         * sysdeps/powerpc/Versions: Remove libgcc functions.
849         * sysdeps/powerpc/powerpc32/Versions: New file.
850         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
851         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
852         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
853         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
854         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
855         ($machine): Add powerpc/powerpc64 to if ... | for
856         libc_cv_slibdir=/libc64.
857         (powerpc*): Set ldd_rewrite_script.
858         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
859         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
861         Add clone.S.
862         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
863         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
864         functions.  Remove GLIBC_2.2 functions except getrlimit and
865         setrlimit.  Moved them to ...
866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
868 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
870         * libio/tst-atime.c: Include <errno.h>.
871         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
873 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
875         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
876         warnings of some compilers.
877         (build_collating_symbol): Change the type of characters from
878         "unsigned char" to "char", and append a cast to "char*" pointer in
879         array subscript.
880         (build_collating_symbol): Likewise.
881         (build_equiv_class): Likewise.
882         (build_charclass): Likewise.
883         (re_compile_pattern): Remove incorrect cast.
884         (re_compile_fastmap_iter): Change the type of characters from
885         "unsigned char" to "char", and append a cast to "char*" pointer
886         in array subscript.
887         (parse_bracket_exp): Likewise.
888         * posix/regex_internal.c (re_string_construct_common): Likewise.
889         (re_string_allocate): Likewise.
890         (re_string_construct): Likewise.
891         (re_string_realloc_buffers): Likewise.
892         (build_wcs_buffer): Likewise.
893         (re_string_reconstruct): Likewise.
894         * posix/regex_internal.h: Change the type of characters in
895         re_string_t and bracket_elem_t from "unsigned char" to "char".
896         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
897         warnings of some compilers.
898         (transit_state_bkref_loop): Change the type of characters from
899         "unsigned char" to "char", and append a cast to "char*" pointer in
900         array subscript.
901         (check_node_accept_bytes): Likewise.
902         (find_collation_sequence_value): Likewise.
904 2002-09-04  Roland McGrath  <roland@redhat.com>
906         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
907         from 1024 to 65536, to avoid buffer overrun.
909 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
911         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
913 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
915         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
916         for filesystem.
918 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
920         * posix/bug-regex11.c: New test.
921         * posix/Makefile (tests): Add bug-regex11.
923 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
925         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
926         newlocale.
928 2002-09-02  Roland McGrath  <roland@redhat.com>
930         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
931         __pthread_initialize_minimal and __libc_check_standard_fds to
932         match the generic version.
934         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
935         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
937         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
938         warnings on platorms where char is unsigned.
940 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
942         * version.h (VERSION): Bump to 2.2.93.
944         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
946 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
948         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
949         as relocated.
951 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
953         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
955 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
957         * locale/localeinfo.h (struct locale_data): Add private.ctype.
958         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
959         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
960         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
961         (__wcsmbs_load_conv): Remove const from argument.
962         (_nl_cleanup_ctype): New proto.
963         (get_gconv_fcts): New function.
964         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
965         (__wcsmbs_to_wc): Rename back to...
966         (to_wc): ... this.
967         (__wcsmbs_gconv_fcts): Rename to...
968         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
969         (lock): Removed.
970         (__libc_setlocale_lock): New extern.
971         (__wcsmbs_load_conv): Remove const from argument.
972         Initialize new_category->private.ctype instead of a global
973         variable.
974         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
975         update_function_ptrs.  No locking is necessary.
976         (_nl_cleanup_ctype): New function.
977         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
978         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
979         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
980         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
981         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
982         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
983         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
984         * wcsmbs/wctob.c (wctob): Likewise.
985         * stdlib/mblen.c (mblen): Likewise.
986         * stdlib/mbtowc.c (mbtowc): Likewise.
987         * stdlib/wctomb.c (wctomb): Likewise.
988         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
989         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
990         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
991         Removed.
993 2002-09-02  Roland McGrath  <roland@frob.com>
995         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
997 2002-09-01  Roland McGrath  <roland@redhat.com>
999         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1000         Variable declarations removed.
1001         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1002         these functions to replace them.
1003         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1004         functions plus an indirection rather than the old global variables.
1005         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1006         Macros removed.
1007         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1008         inline functions.
1009         * ctype/ctype-info.c: Revert last reversion back the other way.
1010         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1011         Define real function versions of include/ctype.h inlines here.
1012         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1013         __ctype_tolower_loc, __ctype_toupper_loc.
1014         * locale/lc-ctype.c: Revert last reversion back the other way.
1015         (_nl_postload_ctype): If current thread uses the global locale,
1016         update its tsd vars.
1017         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1018         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1019         CTYPE_TOLOWER, CTYPE_TOUPPER.
1021         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1022         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1023         from __libc_tsd_threadvar_location.
1024         (__libc_tsd_set, __libc_tsd_get): Update uses.
1026 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1028         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1029         macro definitions for the standard functions to access the
1030         classification and mapping arrays.
1031         * include/ctype.h: Partly revert last patch.  Move the macro
1032         definitions for the exported functions back to the public header.
1033         #undef all the macros defined here before redefining.
1034         * ctype/ctype-info.c: Revert last patch.
1035         * locale/lc-ctype.c: Revert last patch.
1037         * ctype/Makefile (routines): Add isctype.
1038         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1039         * ctype/ctype.h: Add declaration of isctype.
1040         * include/ctype.h: Declare __isctype.
1041         * ctype/isctype.c: New file.
1043 2002-09-01  Roland McGrath  <roland@redhat.com>
1045         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1046         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1048         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1050         * locale/findlocale.c (_nl_remove_locale): Don't search in
1051         _nl_locale_file_list if DATA->alloc is ld_archive.
1052         Use _nl_unload_locale to do the rest of the work.
1054         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1055         of new structure to UNDELETABLE.
1057         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1058         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1059         towlower, towupper): Macros removed.
1060         * ctype/ctype.h (__tobody): Put parens around macro argument.
1061         (__isctype): Macro removed.
1062         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1063         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1064         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1065         tolower, toupper): Macros and inlines removed.
1066         * include/ctype.h [! NOT_IN_libc]
1067         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1068         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1069         tolower, toupper): Define here instead, using _NL_CURRENT.
1070         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1071         using _NL_CURRENT.
1072         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1073         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1074         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1075         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1076         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1077         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1078         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1079         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1080         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1081         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1082         (ISSORTMASK): Update use.
1083         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1084         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1085         (_nss_files_getENTNAME_r): Likewise.
1086         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1087         Likewise.
1089         * Makerules (all-nonlib): Renamed from all-tests.
1090         Include $(others) here too.
1091         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1092         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1093         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1094         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1095         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1096         the program modules via cppflags-iterator.mk.
1097         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1098         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1100 2002-08-31  Roland McGrath  <roland@redhat.com>
1102         * posix/tst-getconf.sh: If no third arg, work with static linking.
1104         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1106         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1107         [_NL_CURRENT_INDIRECT].
1109 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1111         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1113 2002-08-31  Roland McGrath  <roland@redhat.com>
1115         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1116         Instead, make the single allocation of the structure larger to hold
1117         the name strings.
1118         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1119         Instead, calculate size for a single allocation and copy into it.
1120         * locale/freelocale.c (__freelocale): Don't free names individually.
1122         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1124         * locale/xlocale.h (__locale_struct): Move __names member last,
1125         for binary compatibility.
1127         * locale/duplocale.c (__duplocale): Free names from the right array.
1129         * locale/uselocale.c (__uselocale): Return previous locale when
1130         setting a new one.
1132         * locale/newlocale.c: Commit changes from 2002-08-30
1133         batch where I failed to commit this file:
1134         (__newlocale): Fill in __names array.
1136 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1138         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1139         errlist-compat.c if versioning==yes.
1141 2002-08-31  Andreas Jaeger  <aj@suse.de>
1143         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1144         external functions with hidden attribute.
1145         (elf_machine_rela): Optimize.
1147         * sysdeps/x86_64/memset.S: New file.
1148         * sysdeps/x86_64/bzero.S: New file.
1149         * sysdeps/x86_64/stpcpy.S: New file.
1150         * sysdeps/x86_64/strcat.S: New file.
1151         * sysdeps/x86_64/strchr.S: New file.
1152         * sysdeps/x86_64/strcpy.S: New file.
1153         * sysdeps/x86_64/strcspn.S: New file.
1154         * sysdeps/x86_64/strlen.S: New file.
1155         * sysdeps/x86_64/strpbrk.S: New file.
1156         * sysdeps/x86_64/strspn.S: New file.
1157         * sysdeps/x86_64/strcmp.S: New file.
1158         * sysdeps/x86_64/strtok_r.S: New file.
1159         * sysdeps/x86_64/strtok.S: New file.
1160         * sysdeps/x86_64/memcpy.S: New file.
1161         * sysdeps/x86_64/mempcpy.S: New file.
1163         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1165         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1167 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1169         * stdio-common/Makefile (generated): Add errlist-compat.c.
1171         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1173         * locale/localeinfo.h: Pretty printing.
1175         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1176         form_number handling.
1178 2002-08-31  Andreas Jaeger  <aj@suse.de>
1180         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1181         double tests.
1183         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1184         __start_context.
1186         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1188         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1190         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1191         registers used for passing args.
1193         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1194         all needed registers.
1196         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1197         registers.
1199         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1200         registers.
1202 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1204         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1205         always_inline attribute.
1207 2002-08-30  Roland McGrath  <roland@redhat.com>
1209         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1210         presume it's the stub and bail without error.
1212         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1213         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1215         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1217         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1218         macros replace the i686 versions for 64-bit mode.
1220         * locale/duplocale.c: Include <string.h>.
1222         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1223         [_LIBC] (category_to_name): Don't define the function.  Instead
1224         define a macro using _nl_category_names.
1226         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1227         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1228         * locale/global-locale.c (_nl_global_locale): Likewise.
1229         * locale/duplocale.c (__duplocale): strdup __names elements.
1230         * locale/freelocale.c (__freelocale): Free __names elements.
1231         * locale/localename.c (_nl_current_names): Variable removed.
1232         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1233         * locale/localeinfo.h (_nl_current_names): Removed decl.
1234         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1235         _nl_current_names throughout.
1237         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1239         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1240         and sys_nerr in the output file.
1242         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1243         * scripts/cpp: Just use the environment variable.
1245         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1246         * libio/tst-mmap-offend.c (do_test): Likewise.
1247         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1248         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1249         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1251         * locale/localename.c: If the current locale is the global locale, use
1252         _nl_current_names; otherwise use the locale object.
1254 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1256         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1257         'm' to enable mmap I/O.
1258         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1259         former wasn't used (anymore?).
1260         (_IO_FLAGS2_MMAP): New define.
1261         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1262         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1263         _IO_FLAGS2_MMAP bit is set.
1264         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1265         Enable mmap-using mode only if 'm' was set.
1267 2002-08-29  Roland McGrath  <roland@frob.com>
1269         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1271         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1272         Change argument type from int to intptr_t.
1274         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1275         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1276         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1277         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1278         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1280         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1282         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1284         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1286         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1287         * assert/assert-perr.c: Add libc_hidden_def.
1288         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1290         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1291         found at all.
1292         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1293         sys_errlist stuff to ...
1294         * sysdeps/unix/sysv/linux/Versions: ... here.
1296         * mach/mach.h: Include <features.h>.
1298 2002-08-29  Roland McGrath  <roland@redhat.com>
1300         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1301         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1302         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1304         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1306         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1307         (norm_add_slashes): alloca -> __alloca
1309 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1311         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1312         string_malloced, it is unlikely to be set.
1313         Only call free with non-NULL workspace.
1314         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1315         -mcpu=ultrasparc, not only tune for it.
1316         (ASFLAGS*): Set unconditionally.
1318         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1319         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1320         p_vaddr/p_offset when computing LOADADDR.
1322 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1324         * version.h (VERSION): Bump to 2.2.92.
1326         * time/Makefile (tst-ftime_l-ENV): New variable.
1328         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1330         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1331         <U017A>, <U017D> and <U0179>. Add missing mappings.
1332         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1334         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1335         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1336         (struct tostruct): Use ACRINDEX as type for link field.
1337         (statuc gmonparam): Likewise for froms.
1338         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1339         kcount and froms.
1340         (write_call_graph): Use correct type for from_index and to_index.
1341         * gmon/mcount.c: Use correct types for frompcindex and toindex
1342         variables.
1343         Patches by Dan Kegel <dank@kegel.com>.
1345         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1346         canonical name.
1348         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1349         __isspace_l.  Replace calls to isspace.
1350         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1352 2002-08-29  Roland McGrath  <roland@redhat.com>
1354         * string/tst-strxfrm.c: Remove __ from function names.
1356 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1358         * include/wchar.h: Declare __mbsrtowcs_l.
1359         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1360         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1361         USE_IN_EXTENDED_LOCALE_MODEL.
1362         * wcsmbs/mbsrtowcs_l: New file.
1363         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1364         define as static.  Change all uses.
1365         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1366         Change all callers.
1367         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1368         * time/strftime.c: When translating for the extended locale model
1369         use the _l functions.
1370         * time/Makefile (tests): Add tst-ftime_l.
1371         * time/tst-ftime_l.c: New file.
1373 2002-08-28  Roland McGrath  <roland@redhat.com>
1375         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1376         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1377         from _nl_find_locale ok if for _nl_C_name.
1379         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1380         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1381         we know they are all linked in.
1383         * NEWS: Added 2.2.6 text from 2.2 branch version.
1385         * time/strptime.c (strptime_internal): Remove spurious const.
1387         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1388         _nl_select_era_entry): Moved to ...
1389         * time/era.c: ... here, new file.
1390         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1391         Add internal_function to definitions.  Take an additional argument
1392         giving the `struct locale_data *' to use.
1393         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1394         _nl_parse_alt_digit): Moved to ...
1395         * time/alt_digit.c: ... here, new file.
1396         * time/lc-time-cleanup.c: New file.
1397         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1398         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1399         (_nl_cleanup_time): Declare it.
1400         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1401         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1402         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1403         * time/strftime.c: Pass locale data to helper functions.
1404         * time/strptime.c: Likewise.
1406         * locale/localeinfo.h (struct locale_data): New member `private'
1407         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1408         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1409         * locale/C-collate.c: Update initializer.
1410         * locale/C-identification.c: Likewise.
1411         * locale/C-measurement.c: Likewise.
1412         * locale/C-telephone.c: Likewise.
1413         * locale/C-address.c: Likewise.
1414         * locale/C-name.c: Likewise.
1415         * locale/C-paper.c: Likewise.
1416         * locale/C-time.c: Likewise.
1417         * locale/C-numeric.c: Likewise.
1418         * locale/C-monetary.c: Likewise.
1419         * locale/C-messages.c : Likewise.
1420         * locale/C-ctype.c: Likewise.
1422         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1423         Redefine this too.
1425 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1427         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1428         (_rtld_global): Use it.
1430         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1431         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1432         object directory.  Pass all Versions files to the awk script.
1433         * sysdeps/gnu/errlist-compat.c: Removed.
1434         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1435         first Versions file in the search path which has them.
1436         Allow multiple errlist symbol versions to have the same count of
1437         errors.
1438         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1439         of "errlist-compat.c".
1440         * sysdeps/gnu/errlist.c: Regenerated.
1441         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1442         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1443         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1444         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1445         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1446         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1447         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1448         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1449         ECANCELLED if not defined by kernel headers.
1450         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1451         already defined by kernel headers.
1452         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1453         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1454         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1455         is a macro.
1456         * Versions.def (GLIBC_2.3) [librt]: Add.
1458         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1460 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1462         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1463         missing comma to .type directive.
1465 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1467         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1468         unconditionally.
1469         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1470         check.
1471         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1473 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1475         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1476         check to close_and_out close.  Replace return NULL statements where
1477         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1478         when it is no longer needed.
1480 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1482         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1483         string constants.
1484         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1485         * sysdeps/arm/dl-machine.h: Likewise.
1486         * sysdeps/cris/dl-machine.h: Likewise.
1487         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1488         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1490 2002-08-28  Roland McGrath  <roland@redhat.com>
1492         * Makeconfig (default_cflags): Revert unintended change.
1494 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1496         * version.h (VERSION): Bump to 2.2.91.
1498         * configure.in: Disable TLS support by default for now.
1500         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1502         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1503         warnings.
1505         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1507         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1508         fprintf/fwprintf calls.
1510 2002-08-28  Roland McGrath  <roland@redhat.com>
1512         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1513         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1515         * locale/setlocale.c: Declare postload functions weak.
1517         * elf/tst-tls1-static.c: New file.
1518         * elf/tst-tls2-static.c: New file.
1519         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1521         Make uselocale support static linking.
1522         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1523         This file again just defines _nl_C_locobj.
1524         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1525         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1526         using all weak references in the initializer.
1527         * locale/Makefile (aux): Add global-locale.
1528         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1529         these unconditional, along with the tsd decl.
1530         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1531         Define it under these conditions.
1532         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1533         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1534         `extern __thread struct locale_data *const *'.
1535         [NL_CURRENT_INDIRECT]
1536         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1537         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1538         the thread variable _nl_current_LC_FOO and also a special absolute
1539         symbol _nl_current_LC_FOO_used.
1540         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1541         Set each _nl_current_LC_FOO symbol to point into the new locale,
1542         using weak references to test if _nl_current_LC_FOO_used was linked in.
1543         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1544         [NL_CURRENT_INDIRECT]: ... with this one.
1545         (_nl_current, _nl_C): Variables removed.
1546         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1547         weak references to _nl_current_LC_FOO_used.
1548         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1549         (free_category): New function, broken out of ...
1550         (free_mem): ... here.  Call that.
1551         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1552         instead of a loop.
1554         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1555         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1556         it is already absolute.
1558         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1559         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1560         [$(build-static) = yes] (tests-static): New variable.
1561         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1563 2002-08-26  Christoph Hellwig  <hch@lst.de>
1565         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1566         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1568 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1570         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1572         * sysdeps/s390/Dist: Add bits/link.h.
1574         * sysdeps/sh/Dist: New file.
1576         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1578         * sysdeps/wordsize-32/Dist: New file.
1580         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1581         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1582         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1584         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1585         sys/personality.h.
1587         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1588         sparc/dl-brk.S.
1590         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1592         * sysdeps/unix/bsd/sun/Dist: New file.
1594         * sysdeps/unix/bsd/osf/Dist: New file.
1596         * sysdeps/unix/bsd/hp/Dist: New file.
1598         * sysdeps/unix/arm/Dist: New file.
1600         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1602         * sysdeps/mach/hurd/Dist: Add set-init.c.
1604         * sysdeps/i386/Dist: Add bits/link.h.
1606         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1608         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1610         * locale/Makefile (distribute): Add hashval.h.
1612         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1614         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1616         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1617         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1618         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1619         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1620         implementations.
1621         * libio/stdio.h: Likewise.
1622         * locale/locale.h: Likewise.
1623         * math/math.h: Likewise.
1624         * math/bits/mathcalls.h: Likewise.
1625         * setjmp/setjmp.h: Likewise.
1626         * signal/signal.h: Likewise.
1627         * stdlib/stdlib.h: Likewise.
1628         * string/string.h: Likewise.
1629         * time/time.h: Likewise.
1630         * wcsmbs/wchar.h: Likewise.
1631         * wctype/wctype.h: Likewise.
1633 2002-08-28  Roland McGrath  <roland@redhat.com>
1635         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1637 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1638             Roland McGrath <roland@redhat.com>
1640         * locale/hashval.h (compute_hashval): Use prototype defn.
1641         (hashval_t): New macro, defined to unsigned long int
1642         if not already defined.
1643         (compute_hashval): Return hashval_t instead of unsigned long int.
1644         * locale/loadarchive.c (hashval_t): New macro.
1645         * locale/programs/locarchive.c: Include hashval.h directly instead
1646         of simple-hash.h.
1647         (compute_hashval, hashval_t): Define these macros first.
1648         (insert_name): Use archive_hashval instead of compute_hashval.
1649         (add_locale, delete_locales_from_archive): Likewise.
1651 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1653         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1654         hash collisions if be_quiet.
1656 2002-08-27  Roland McGrath  <roland@redhat.com>
1658         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1659         __uselocale): Don't declare these any more.
1660         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1662         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1663         and treat it as an EOF return.
1664         * sysdeps/unix/readdir_r.c: Likewise.
1666         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1667         From Alexandre Oliva <aoliva@redhat.com>.
1668         * sysdeps/gnu/errlist-compat.c: Regenerated.
1670 2002-08-27  Brian Youmans  <3diff@gnu.org>
1672         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1673         wording at request of copyright holder Stephen Moshier.
1674         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1675         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1676         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1677         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1678         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1679         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1680         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1681         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1682         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1683         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1684         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1685         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1686         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1687         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1689 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1691         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1692         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1693         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1694         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1695         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1696         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1697         * wctype/iswctype_l.c (iswctype_l): Likewise.
1699 2002-08-27  Roland McGrath  <roland@redhat.com>
1701         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1703         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1704         * stdlib/stdlib.h: Don't declare __*_l names.
1705         * include/stdlib.h: Declare them here instead.
1706         * include/string.h: Don't declare __*_l names.
1707         * string/string.h: Declare them here instead.
1708         * time/time.h: Don't declare __*_l names.
1709         * include/time.h: Declare them here instead.
1710         * wcsmbs/wchar.h: Don't declare __*_l names.
1711         * include/wchar.h: Declare them here instead.
1712         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1713         Don't declare __*_l names.
1714         * include/wctype.h: Declare them here instead.
1715         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1716         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1717         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1718         * include/langinfo.h: Declare it here with __typeof.
1720         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1721         instead, taking an extra __locale_t argument.
1722         * time/Makefile (routines): Add strptime_l.
1723         * time/time.h (__strptime_l, strptime_l): Declare them.
1724         * time/strptime_l.c: New file.
1726         * time/time.h (__strftime_l, strftime_l): Declare them.
1727         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1728         * time/strftime_l.c: New file.
1729         * time/wcsftime_l.c: New file.
1730         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1731         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1732         strftime_l, wcsftime_l.
1733         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1734         or __wcsftime_l instead, taking an extra __locale_t argument.
1736         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1737         (libc: GLIBC_2.3): ... here.
1739 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1741         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1743         * Makefile (distribute): Add LICENSES.
1745         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1746         sys/debugreg.h.
1748         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1750         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1752         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1754         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1756         * sysdeps/mach/hurd/alpha/Dist: New file.
1758         * sysdeps/arm/Dist: Add bits/link.h.
1760         * sunrpc/Makefile: Distribute thrsvc.
1762         * stdio-common/Makefile: Remove more left-overs from old stdio.
1764         * include/linewrap.h: Removed.
1766         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1768         * intl/Makefile (distribute): Add plural-eval.c.
1770 2002-08-27  Roland McGrath  <roland@redhat.com>
1772         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1773         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1774         Say mtab is in either /var/run or /etc.
1776 2002-08-26  Roland McGrath  <roland@redhat.com>
1778         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1779         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1781         * sysdeps/gnu/Versions: New file.
1782         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1783         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1784         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1785         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1786         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1787         and _sys_nerr_internal instead of anything else.  Make it include
1788         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1789         Make it emit some asm magic if [EMIT_ERR_MAX].
1790         * sysdeps/gnu/errlist.c: Regenerated.
1791         * sysdeps/gnu/errlist-compat.awk: New file.
1792         * sysdeps/gnu/errlist-compat.c: New file (generated).
1793         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1794         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1795         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1796         (SYS_ERRLIST, SYS_NERR): Macros removed.
1797         (sys_nerr, _sys_nerr): Remove these weak aliases.
1798         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1799         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1800         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1802         * include/libc-symbols.h (declare_symbol): New macro.
1803         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1804         * configure.in: New check to define it.
1805         * configure: Regenerated.
1807 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1809         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1810         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1812         * Make-dist: Remove traces of old stdio.
1813         * Makeconfig: Likewise.
1815         * locale/Makefile (localedef-aux): New variable.  Only md5
1816         assigned to it.  These files are not ddistributed in this directory.
1818         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1819         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1820         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1822         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1824         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1825         set h_errno to NO_RECOVERY [PR libc/4360].
1827 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1829         * libio/Makefile (tests): Add bug-fopena+.
1830         * libio/bug-fopena+.c: New file.
1831         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1832         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1834         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1836         * locale/xlocale.c: Fix the last change.  The variable still has
1837         to end in _data.
1838         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1839         (__libc_tsd_set): Add _data prefix to variable name.
1841 2002-08-26  Roland McGrath  <roland@redhat.com>
1843         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1844         macro with inline function.
1845         (sigset_get_old_mask): Likewise.
1846         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1847         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1848         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1849         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1850         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1851         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1852         values.
1853         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1854         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1856 2002-07-06  Bruno Haible  <bruno@clisp.org>
1858         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1859         sigset_get_old_mask): Make it work with larger sigset_t.
1860         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1861         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1862         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1864 2002-08-26  Roland McGrath  <roland@redhat.com>
1866         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1867         * manual/filesys.texi (File Times): Document lutimes and futimes.
1868         * misc/Makefile (routines): Add them.
1869         * misc/Versions (libc: GLIBC_2.3): Likewise.
1870         * sysdeps/generic/lutimes.c: New file.
1871         * sysdeps/generic/futimes.c: New file.
1872         * sysdeps/mach/hurd/lutimes.c: New file.
1873         * sysdeps/mach/hurd/futimes.c: New file.
1875         * manual/filesys.texi (File Times): Add explicit note about null
1876         pointer argument to utimes.
1878 2002-08-26  Roland McGrath  <roland@frob.com>
1880         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1881         (__ifreq): Add a cast.  Remove an unused variable.
1883         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1884         _HURD_THREADVAR_LOCALE.
1886 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1888         * posix/regexec.c (re_search_stub): Return correct match length
1889         if start != 0.
1890         * posix/bug-regex10.c: New test.
1891         * posix/Makefile (tests): Add bug-regex10.
1893 2002-08-26  Brian Youmans  <3diff@gnu.org>
1895         * COPYING.LIB: Replaced with fresh copy from
1896         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1897         suggested copying permission notice now says version 2.1 instead
1898         of version 2.
1900         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1901         from Library GPL.
1902         * crypt/crypt_util.c: Likewise.
1903         * crypt/ufc.c: Likewise.
1904         * elf/dl-conflict.c: Likewise.
1905         * elf/dl-iteratephdr.c: Likewise.
1906         * iconv/iconvconfig.h: Likewise.
1907         * malloc/arena.c: Likewise.
1908         * malloc/hooks.c: Likewise.
1909         * malloc/malloc.c: Likewise.
1910         * posix/glob/Makefile.ami: Likewise.
1911         * posix/glob/Makefile.in: Likewise.
1912         * stdlib/gmp-impl.h: Likewise.
1913         * stdlib/gmp.h: Likewise.
1914         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1915         * sysdeps/generic/strnlen.c: Likewise.
1916         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1917         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1918         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1919         * sysdeps/mach/hurd/spawni.c: Likewise.
1920         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1921         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1922         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1923         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1924         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1925         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1927         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1928         Lesser GPL copying permission notice from 2 to 2.1.
1929         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1930         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1931         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1932         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1933         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1934         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1935         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1936         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1937         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1938         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1939         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1940         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1941         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1942         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1943         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1944         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1945         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1946         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1947         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1948         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1949         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1950         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1951         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1952         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1953         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1954         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1955         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1956         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1957         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1958         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1959         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1960         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1961         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1962         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1963         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1964         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1965         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1966         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1967         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1968         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1969         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1970         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1971         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1972         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1973         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1974         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1975         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1976         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1977         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1978         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1979         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1980         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1981         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1982         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1983         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1985         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1986         Moshier and Lesser GPL copying permission notice, per license from
1987         Moshier.
1988         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1989         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1990         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1991         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1992         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1993         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1994         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1995         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1996         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1997         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1998         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1999         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2000         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2001         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2003         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2004         notice, per license from copyright holder Stephen Moshier.
2005         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2006         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2007         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2008         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2009         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2010         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2011         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2012         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2013         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2015 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2017         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2018         (shared-only-routines): Likewise.
2020 2002-08-26  Roland McGrath  <roland@redhat.com>
2022         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2023         name of "", store a null pointer instead.
2025         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2026         * configure: Regenerated.
2028         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2029         Initialize this instead of __libc_tsd_LOCALE_data.
2031         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2032         ptsname_r to EINVAL.
2034         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2036         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2037         implementations depend on pthreads.
2038         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2039         * rt/tst-aio64.c (do_test): Likewise.
2040         * rt/tst-aio2.c (do_test): Likewise.
2041         * rt/tst-aio3.c (do_test): Likewise.
2042         * rt/tst-aio4.c (do_test): Likewise.
2043         * rt/tst-aio5.c (do_test): Likewise.
2044         * rt/tst-aio6.c (do_test): Likewise.
2045         * rt/tst-aio7.c (do_test): Likewise.
2047         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2048         void so as to avoid compiler warnings.
2050         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2051         _IO_wide_data_FD, which is never used here.
2053         * libio/iofread.c
2054         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2055         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2056         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2058         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2059         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2061         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2062         (closelog): Likewise.
2064 2002-07-06  Bruno Haible  <bruno@clisp.org>
2066         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2068         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2069         * sysdeps/unix/alpha/pipe.S: ... here.
2070         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2072         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2074         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2075         * sysdeps/unix/i386/fork.S: Likewise.
2076         * sysdeps/unix/i386/pipe.S: Likewise.
2077         * sysdeps/unix/i386/wait.S: Likewise.
2079         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2080         * sysdeps/unix/arm/fork.S: Likewise.
2082         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2083         arguments.
2084         (DO_CALL): Swap argument order.
2085         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2086         arguments.
2087         (DO_CALL): Swap argument order.
2088         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2089         arguments.
2090         (DO_CALL): Swap argument order.
2091         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2092         arguments.
2093         (DO_CALL): Swap argument order.
2094         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2095         arguments.
2096         (DO_CALL): Swap argument order.
2097         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2098         arguments.
2099         (DO_CALL): Swap argument order.
2100         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2101         arguments.
2102         (DO_CALL): Swap argument order.
2104         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2105         (L): Define right for ELF.
2106         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2107         Now defined in sysdeps/i386/sysdep.h.
2109         * sysdeps/posix/readv.c: Ansify function definition.
2110         * sysdeps/posix/writev.c: Likewise.
2112         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2113         have the same size. Avoid direct cast from size_t to off_t.
2115         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2116         nul byte in entry[n].ut_user.
2117         (simulate_logout): Likewise.
2119         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2120         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2121         existence of corresponding members of 'struct utmp'.
2122         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2123         !_HAVE_UT_TYPE.
2125         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2126         allocate a buffer of at least BUFSIZ bytes, not just of
2127         sizeof (struct dirent).
2129         * sysdeps/generic/glob.c: Include <limits.h>.
2130         (NAME_MAX): Define a fallback.
2131         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2132         stack.
2133         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2134         (main): Allocate enough room for a 'struct dirent64' on the stack.
2135         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2136         'struct dirent'.
2138         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2139         kernel-features.h.
2141         * inet/htontest.c: Include <sys/types.h>.
2143         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2145         * include/sys/sysctl.h: Comment fix.
2147         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2148         _dl_load_lock.
2149         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2151         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2153         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2154         (__getpeername): New alias.
2155         (__getsockname): New alias.
2156         (__socket): New alias.
2158         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2160         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2161         (__fcntl_internal): New alias.
2162         (__profil): New alias.
2164 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2166         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2167         entry was for getaddr* lookup or not.  Add only matching cache
2168         entry.  Change all callers [PR libc/4317].
2170         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2171         finding the read position [PR libc/4265].
2172         * libio/Makefile (tests): Add bug-rewind2.
2173         * libio/bug-rewind2.c: New file.
2175         * libio/bug-rewind.c: Fix creation of temp file.
2177 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2179         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2180         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2181         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2182         to ENOENT if no entry is found.
2183         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2184         failure.
2185         * nis/nss_compat/compat-initgroups.c: Likewise.
2186         * nis/nss_compat/compat-pwd.c: Likewise.
2187         * nis/nss_compat/compat-spwd.c: Likewise.
2188         * nis/nss_nis/nis-alias.c: Likewise.
2189         * nis/nss_nis/nis-ethers.c: Likewise.
2190         * nis/nss_nis/nis-grp.c: Likewise.
2191         * nis/nss_nis/nis-hosts.c: Likewise.
2192         * nis/nss_nis/nis-initgroups.c: Likewise.
2193         * nis/nss_nis/nis-netgrp.c: Likewise.
2194         * nis/nss_nis/nis-network.c: Likewise.
2195         * nis/nss_nis/nis-proto.c: Likewise.
2196         * nis/nss_nis/nis-publickey.c: Likewise.
2197         * nis/nss_nis/nis-pwd.c: Likewise.
2198         * nis/nss_nis/nis-rpc.c: Likewise.
2199         * nis/nss_nis/nis-service.c: Likewise.
2200         * nis/nss_nis/nis-spwd.c: Likewise.
2201         * resolv/nss_dns/dns-host.c: Likewise.
2202         * resolv/nss_dns/dns-network.c: Likewise.
2203         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2204         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2205         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2206         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2207         * nis/nss_nisplus/nisplus-network.c: Likewise.
2208         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2209         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2210         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2211         * nis/nss_nisplus/nisplus-service.c: Likewise.
2212         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2213         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2214         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2215         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2216         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2218         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2219         declaring __restore and __restore_rt as hidden (if possible).
2221 2002-08-25  Roland McGrath  <roland@redhat.com>
2223         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2225         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2226         (getutent_r_file, internal_getut_r): Updated all callers.
2227         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2229 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2231         * locale/programs/locale.c: Don't print aliases for non-existing
2232         locales for 'locale -a'.
2233         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2235 2002-07-19  H.J. Lu  <hjl@gnu.org>
2237         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2239 2002-07-16  H.J. Lu  <hjl@gnu.org>
2241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2242         sys/personality.h.
2243         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2245 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2247         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2248         not moved ahead of the fputs call.
2249         * elf/tst-tlsmod2.c (in_dso): Likewise.
2250         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2251         * elf/tst-tlsmod4.c (in_dso): Likewise.
2253 2002-08-25  Andreas Schwab  <schwab@suse.de>
2255         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2257 2002-08-25  Roland McGrath  <roland@redhat.com>
2259         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2260         resetting handler, to avoid the possibility of a spurious SIGALRM
2261         delivered to the user's handler.
2262         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2264         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2265         set -fkeep-inline-functions, which is not needed for the current file.
2267         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2268         (_dl_setup_hash): Add attribute_hidden.
2269         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2270         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2271         (_dl_new_object, _dl_map_object_deps): Likewise.
2272         (_dl_map_object_deps_internal): Remove decl.
2273         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2275         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2276         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2277         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2278         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2279         instead relying on the compiler to produce only GOTOFF variable refs.
2281 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2283         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2285         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2286         inline to avoid defining it in every file which includes this header.
2288         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2289         defining DONT_USE_BOOTSTRAP_MAP.
2291         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2292         * libio/tst-mmap-setvbuf.c (main): Likewise.
2293         * libio/tst-widetext.c (main): Likewise.
2295         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2296         message.
2297         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2298         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2300         * sysdeps/i386/elf/configure.in: Unconditionally define
2301         PI_STATIC_AND_HIDDEN.
2302         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2303         PI_STATIC_AND_HIDDEN is defined as well.
2304         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2306 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/ia64/bzero.S: Define __bzero as well.
2310         * locale/programs/charmap.c (charmap_new_char): Don't use
2311         ULONG_MAX as maximum UCS4 value.
2313         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2315         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2317         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2318         * malloc/malloc.c (mALLINFo): Likewise.
2320         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2322         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2323         examining result of _IO_do_flush call.
2325         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2326         Use prec not spec when sizing buffers.
2328         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2329         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2330         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2331         * stdio-common/vfscanf.c (inchar): Likewise.
2332         * misc/efgcvt_r.c (fcvt_r): Likewise.
2333         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2334         * elf/readlib.c (process_file): Likewise.
2335         * elf/sprof.c (load_profdata): Likewise.
2336         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2337         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2338         * locale/programs/charmap.c (charmap_read): Likewise.
2339         * libio/fileops.c: Likewise.
2340         * libio/fmemopen.c: Likewise.
2341         * stdlib/strtod.c: Likewise.
2342         * elf/dl-load.c: Likewise.
2343         * iconv/iconvconfig.c: Likewise.
2344         * iconv/iconv_prog.c (process_block): Likewise.
2345         * elf/rtld.c (dl_main): Likewise.
2347         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2348         macro to calm down the compiler.
2350         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2352         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2354         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2355         placement of errno definition.
2356         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2357         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2358         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2359         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2360         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2362         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2363         from 1024 to 65536, to avoid buffer overrun.
2365 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2367         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2368         from 1024 to 65536, to avoid buffer overrun.
2369         * resolv/res_query.c (MAXPACKET): Likewise.
2371 2002-08-24  Andreas Jaeger  <aj@suse.de>
2373         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2375 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2377         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2378         two52 locally.
2379         (log2): Likewise.
2380         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2381         Patch by Simon Gee <simong@agile.tv>.
2383         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2384         Prefer reading /proc/stat since it is more uniform across
2385         architectures.
2387         * manual/texinfo.tex: Update to latest official version.
2389         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2390         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2391         * sysdeps/gnu/bits/shm.h: Likewise.
2392         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2393         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2394         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2395         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2396         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2397         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2398         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2399         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2400         since this is what the kernel says.
2402         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2403         since ssize_t is needed as well.  Replace const with __const.
2405 2002-08-23  Roland McGrath  <roland@redhat.com>
2407         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2408         __malloc_hook, __realloc_hook, __memalign_hook,
2409         __after_morecore_hook): Variable definitions moved to ...
2410         * malloc/malloc.c: ... here, so as to be before all references.
2412         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2413         global variable reference in an unused asm parameter, to ensure the
2414         compiler has set up the GOT register before we use it.
2416         * malloc/hooks.c: Move variable definitions ahead of uses.
2417         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2418         initializers that make reference to variables they define.
2420 2002-08-23  Andreas Jaeger  <aj@suse.de>
2422         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2423         alloca, free, qsort.
2425         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2427         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2428         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2430         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2431         <hch@lst.de>.
2432         * sysdeps/generic/fgetxattr.c: New file.
2433         * sysdeps/generic/flistxattr.c: New file.
2434         * sysdeps/generic/fremovexattr.c: New file.
2435         * sysdeps/generic/fsetxattr.c: New file.
2436         * sysdeps/generic/getxattr.c: New file.
2437         * sysdeps/generic/listxattr.c: New file.
2438         * sysdeps/generic/lgetxattr.c: New file.
2439         * sysdeps/generic/llistxattr.c: New file.
2440         * sysdeps/generic/lremovexattr.c: New file.
2441         * sysdeps/generic/lsetxattr.c: New file.
2442         * sysdeps/generic/removexattr.c: New file.
2443         * sysdeps/generic/setxattr.c: New file.
2444         * misc/Makefile (headers): Add sys/xattr.h.
2445         (routines): Add *xattr calls.
2446         * misc/Versions: Add *xattr calls with version 2.3.
2447         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2448         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2449         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2450         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2451         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2452         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2453         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2454         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2456 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2458         * sysdeps/powerpc/elf/libc-start.c
2459         (__cache_line_size): Declare.
2460         (__aux_init_cache): New function.
2461         (__libc_start_main): Change type of `auxvec' parameter to
2462         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2463         __aux_init_cache.
2464         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2465         (__cache_line_size): Declare.
2466         (__aux_init_cache): New function.
2467         (DL_PLATFORM_INIT): Define.
2468         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2469         value to select the correct stride for dcbz.
2471 2002-08-22  Andreas Jaeger  <aj@suse.de>
2473         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2474         shmat.
2476 2002-08-22  Roland McGrath  <roland@redhat.com>
2478         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2479         position indicated by locrectab against file bounds before rounding to
2480         page size.  In mapping loop, always set TO before breaking out of
2481         contiguous range coalescing loop.
2483         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2484         (or MAP_COPY if available) instead of MAP_SHARED.
2486         * scripts/firstversions.awk: When encountering a version newer than
2487         the specified earliest version, be sure to emit the specified earliest
2488         version first if any renaming of an older version to that has been.
2490 2002-08-21  Roland McGrath  <roland@redhat.com>
2492         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2493         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2494         (Configuring and compiling): Don't mention older GCC versions any more.
2495         * INSTALL: Regenerated.
2497         * manual/install.texi (Configuring and compiling, Installation,
2498         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2500         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2501         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2502         and with noinline otherwise.  Remove hack alloca use to prevent
2503         inlining, we can ask for it explicitly nowadays.
2505         * dlfcn/bug-dlsym1.c: New file.
2506         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2507         * dlfcn/Makefile (distribute): Add them.
2508         (tests): Add bug-dlsym1 here.
2509         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2510         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2511         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2513 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2515         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2516         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2517         before relocation.
2518         (_dl_start): Don't use local bootstrap_map variable if
2519         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2520         pass bootstrap_map to _dl_start_final in this case either.  Don't
2521         pass start_time to _dl_start_final ever.
2522         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2524         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2525         This cripples the scope lists necessary to search for symbols in
2526         dependencies which are not in the global scope.
2528         * include/setjmp.h (__libc_longjmp): Add declaration.
2530 2002-08-21  Andreas Jaeger  <aj@suse.de>
2532         * sysdeps/x86_64/_mcount.S: Fix assembler.
2534         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2535         with biarch support.
2537 2002-08-21  Andreas Jaeger  <aj@suse.de>
2539         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2541         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2543         * sysdeps/x86_64/machine-gmon.h: New file.
2544         * sysdeps/x86_64/_mcount.S: New file.
2546 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2548         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2549         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2550         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2551         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2552         to TL_INIT_TP.  Otherwise pass 1.
2553         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2554         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2556 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2558         * locale/programs/localedef.c (add_to_readlist): Error about
2559         circular dependencies only if the locale in question hasn't
2560         been finished.
2561         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2562         CTYPE_LOCALE to load_locale.
2563         * locale/programs/locfile.c (locfile_read): Don't include
2564         unneeded but available locales in locale_mask.
2566         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2567         print any messages about enlarging archive.
2569 2002-08-20  Brian Youmans  <3diff@gnu.org>
2571         * manual/contrib.texi: Removed licenses, added acknowledgements
2572         for contributions by Intel, IBM, Craig Metz.
2573         * LICENSES: New file, contains the text of all non-FSF licenses in the
2574         distribution that require putting the notice in the accompanying
2575         documentation.
2576         * README.template, README: Mention LICENSES.
2578         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2579         new one modelled on the modern BSD license, per recent letter
2580         of permission from CMU.
2581         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2583         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2584         from IBM to FSF, per the recent Software Letter.  Changed the
2585         distribution terms from GPL to LGPL.
2587         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2588         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2589         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2590         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2591         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2592         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2593         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2594         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2595         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2596         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2598         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2599         from IBM to FSF, per the recent Software Letter.  Corrected the
2600         text of the copying permission notice to say Lesser GPL instead
2601         of GPL in warranty disclaimer paragraph.
2602         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2603         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2604         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2605         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2606         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2607         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2608         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2609         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2610         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2611         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2612         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2613         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2614         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2615         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2616         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2617         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2618         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2619         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2620         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2621         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2622         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2624         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2625         permission notice to say Lesser GPL instead of GPL in warranty
2626         disclaimer paragraph.
2627         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2629         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2630         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2631         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2632         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2633         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2634         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2635         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2636         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2637         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2638         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2639         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2640         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2641         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2642         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2643         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2644         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2645         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2646         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2647         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2648         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2649         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2651 2002-08-20  Roland McGrath  <roland@redhat.com>
2653         Fix ABI compatibility with libc compiled with old tools on powerpc.
2654         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2655         and Jack Howarth <howarth@bromo.med.uc.edu>.
2656         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2657         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2658         pass -DHAVE_DOT_HIDDEN for these files.
2659         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2660         __floatdisf.
2661         * sysdeps/powerpc/divdi3.c: New file.
2662         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2663         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2665 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2667         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2668         partially overlapping mappings.  Remove unneeded (char *) casts.
2669         Never allow duplication of ranges in mapped areas.
2671 2002-08-20  Roland McGrath  <roland@redhat.com>
2673         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2674         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2676 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2678         * include/unistd.h: Don't hide _exit.
2680         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2681         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2682         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2683         argument 1 to TLS_INIT_TP.
2684         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2686         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2688         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2689         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2690         memory allocation to...
2691         (allocate_dtv): ...here.  New function.
2692         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2693         call allocate_dtv instead of _dl_allocate_tls_storage.
2694         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2695         (_dl_get_tls_static_info): New function.
2696         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2697         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2699 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2701         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2702         immediately if result == NULL.
2704 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2706         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2708 2002-08-18  Roland McGrath  <roland@frob.com>
2710         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2711         instead of __file_name_split.
2712         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2714         * sysdeps/mach/hurd/dl-sysdep.c
2715         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2716         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2718 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2720         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2721         in change before last: MAX -> MIN.
2723 2002-08-15  Roland McGrath  <roland@redhat.com>
2725         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2726         if seek would go past it.
2727         (mmap_remap_check): If file position is at or past EOF after check,
2728         leave read pointers at EOF and don't seek.
2730         * libio/tst-mmap-offend.c: New file.
2731         * libio/Makefile (tests): Add it.
2733         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2734         the name as passed, rather than the name in the archive dictionary.
2736 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2738         * csu/Makefile: Define elide-routines.os not static-only-routines.
2740         * include/sched.h (__clone): Add varargs at the end.
2742         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2743         case.
2744         (TLS_INIT_HELPER): If defined, use it.
2745         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2747 2002-08-15  Roland McGrath  <roland@redhat.com>
2749         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2750         on L->l_prev; it can happen under rtld --verify too.
2752         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2753         header separately, just map an initial window of 2MB from the file
2754         and remap if that is not large enough to cover the whole header.
2756 2002-08-15  Andreas Jaeger  <aj@suse.de>
2758         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2759         version 2.3.
2760         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2761         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2762         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2763         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2764         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2765         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2766         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2767         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2768         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2769         Patch by Andreas Gruenbacher <agruen@suse.de>.
2771         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2773 2002-08-14  Roland McGrath  <roland@redhat.com>
2775         * locale/locarchive.h (struct locale_category_data): Give this name to
2776         the type of locale_data_t's elements.
2777         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2778         (add_locale): Use that to sort the categories by size and put all
2779         those that fit into two pages into the LC_ALL block, instead of
2780         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2781         (show_archive_content): Detect categories inside LC_ALL block
2782         directly, instead of hard-coding.
2783         (oldlocrecentcmp): Compare just on file locations used.
2785 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2787         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2788         (oldlocrecentcmp): New function.
2789         (enlarge_archive): Re-add locales in the order they were added
2790         to the archive.
2791         (add_locale): Put all the small locale files together, if the small
2792         locale file block would occupy less pages if page size aligned, align
2793         it.
2794         (show_archive_content): Adjust for locale archives optimized for speed.
2796 2002-08-14  Roland McGrath  <roland@frob.com>
2798         * configure.in: Use "MISSING" as not-found value for MIG.
2799         * sysdeps/mach/configure.in: Fatal if mig not found.
2800         * configure, sysdeps/mach/configure: Regenerated.
2802 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2804         * locale/loadarchive.c (archfname): Add missing slash.
2806         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2807         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2809 2002-08-12  Roland McGrath  <roland@redhat.com>
2811         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2812         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2813         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2814         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2815         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2816         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2817         * sysdeps/generic/waitpid.c: Likewise.
2819         * include/net/if.h: New file.  Use libc_hidden_proto
2820         for if_nametoindex and if_indextoname.
2821         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2822         * sysdeps/mach/hurd/if_index.c: Likewise.
2823         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2825         * include/grp.h (setgroups): Add libc_hidden_proto.
2826         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2827         * sysdeps/mach/hurd/setgroups.c: Likewise.
2828         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2829         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2831 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2833         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2834         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2835         * sysdeps/generic/setegid.c (setegid): Likewise.
2836         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2837         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2838         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2839         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2840         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2841         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2842         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2843         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2844         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2845         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2846         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2847         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2848         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2850         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2851         __lxstat_internal, __lxstat64_internal): Remove.
2852         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2853         Add hidden_proto.
2854         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2855         Remove INTDEF where present, remove #undef at the beginning.
2856         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2857         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2858         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2859         * sysdeps/generic/xstat.c (__xstat): Likewise.
2860         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2861         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2862         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2863         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2864         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2865         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2866         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2867         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2868         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2869         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2870         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2871         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2872         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2873         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2874         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2875         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2876         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2877         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2878         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2879         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2880         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2881         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2882         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2883         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2884         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2885         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2886         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2887         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2888         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2889         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2890         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2891         * sysdeps/unix/xstat.c (__xstat): Likewise.
2893         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2894         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2895         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2896         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2897         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2898         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2899         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2901         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2902         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2903         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2904         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2905         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2906         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2907         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2908         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2909         Likewise.
2910         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2911         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2912         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2913         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2914         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2915         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2916         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2917         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2919         * include/string.h (strcoll): Add libc_hidden_proto.
2920         * string/strcoll.c (strcoll): Add libc_hidden_def.
2922         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2924 2002-08-11  Philip Blundell  <philb@gnu.org>
2926         * sysdeps/arm/Makefile: New file.
2928 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2930         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2931         by another '|', end of regex or enclosing ')', clear branch.
2932         * posix/bug-regex9.c: New test.
2933         * posix/Makefile (tests): Add bug-regex9.
2935 2002-08-12  Roland McGrath  <roland@redhat.com>
2937         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2938         start count condition, use TOTAL instead of variable that was never
2939         set.  Fix outer loop termination condition to TOTAL >= after update.
2941         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2942         dl_tls_static_align and dl_tls_static_nelem.
2944 2002-08-11  Roland McGrath  <roland@redhat.com>
2946         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2947         of the TLS macros, otherwise the compiler might not have initialized
2948         the PIC register yet when we use the PLT via asm.
2949         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2950         * elf/tst-tlsmod2.c (in_dso): Likewise.
2952         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2954         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2955         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2957         * include/unistd.h: Use libc_hidden_proto for getdomainname
2958         and getlogin_r.
2959         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2960         * sysdeps/mach/hurd/getdomain.c: Likewise.
2961         * sysdeps/unix/getlogin_r.c: Likewise.
2962         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2963         * sysdeps/generic/getlogin_r.c: Likewise.
2965         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2966         * sunrpc/rtime.c: Add libc_hidden_def.
2968         * include/string.h: Use libc_hidden_proto for basename.
2969         * string/basename.c [_LIBC]: Add libc_hidden_def.
2971         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2973         * locale/loadarchive.c: munmap -> __munmap throughout.
2975         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2976         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2977         * sysdeps/generic/gai_strerror.c: Likewise.
2979         * include/sys/errno.h: New file.
2981         * include/signal.h: No libc_hidden_proto for raise,
2982         __libc_current_sigrtmin, __libc_current_sigrtmax.
2983         These need to be overridden by linuxthreads.
2984         * sysdeps/posix/raise.c: Reverted.
2985         * sysdeps/generic/raise.c: Reverted.
2986         * signal/allocrtsig.c: Reverted.
2988         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2990 2002-08-10  Roland McGrath  <roland@redhat.com>
2992         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2993         * locale/localeinfo.h: Declare it.
2994         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2995         current locale if it's not in the file list.
2996         Call _nl_archive_subfreeres.
2998 2002-08-10  Andreas Jaeger  <aj@suse.de>
3000         * sysdeps/i386/strchr.S: Add comment.
3002 2002-08-10  Roland McGrath  <roland@redhat.com>
3004         * include/wchar.h (putwc): Use libc_hidden_proto.
3005         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3006         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3007         * stdio-common/dprintf.c: Add libc_hidden_def.
3008         * stdio-common/fprintf.c: Likewise.
3009         * stdio-common/sprintf.c: Likewise.
3010         * stdio-common/sscanf.c: Likewise.
3011         * libio/iofwrite.c: Likewise.
3012         * libio/memstream.c: Likewise.
3013         * libio/putwc.c: Likewise.
3014         * stdio-common/perror.c: Likewise.
3015         * sysdeps/posix/remove.c: Likewise.
3016         * sysdeps/generic/remove.c: Likewise.
3017         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3018         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3020 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3022         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3023         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3024         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3025         towlower, towupper): Add libc_hidden_weak.
3027         * include/bits/dlfcn.h: New file.
3028         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3030         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3031         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3032         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3033         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3034         * include/shadow.h (_nss_files_parse_spent): Likewise.
3035         * include/netdb.h (_nss_files_parse_protoent,
3036         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3037         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3038         (LINE_PARSER): Use it.
3039         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3040         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3042         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3043         #endif.
3045         * manual/debug.texi (%MENU%): Remove trailing dot.
3046         Reported by <hayastan132@hotmail.com>.
3048         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3049         aliases.
3050         (lseek): Dummy.
3051         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3052         Likewise.
3054 2002-08-09  Roland McGrath  <roland@redhat.com>
3056         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3057         name to find codeset name (if any) and normalize it.  If the
3058         normalized name differs, look up only that in the archive.
3059         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3060         contains a codeset, normalize the codeset store only the normalized
3061         name in the archive.  If not, add an alias containing the locale's
3062         normalized codeset name.  Apply codeset name normalization when
3063         matching entries in the alias file.
3065         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3066         decrement HEAD->namehash_used here.
3067         (add_locale): Only need to insert name string when name_offset != 0.
3069         * locale/programs/localedef.c (options): Add -A/--alias-file.
3070         (alias_file): New variable.
3071         (parse_opt): Grok -A, set that.
3072         * locale/programs/localedef.h: Declare it.
3074         * locale/locarchive.h (struct locrecent): Add `refs' member.
3075         * locale/programs/locarchive.c (insert_name): New function, broken out
3076         of ...
3077         (add_locale_to_archive): ... here.  Call that.
3078         (add_alias): New function.
3079         (add_locale): New static function, add_locale_to_archive renamed.
3080         (add_locale_to_archive): Call that and use add_alias to add an alias
3081         for the name with codeset if the given name lacks it.
3082         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3084         * locale/Makefile (routines): Add loadarchive.
3085         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3086         (_nl_load_locale_from_archive): New function.
3087         * locale/localeinfo.h: Declare it.
3088         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3089         try _nl_load_locale_from_archive first.
3091         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3092         broken out of _nl_load_locale.
3093         (_nl_load_locale): Call that.
3094         * locale/localeinfo.h: Declare it.
3095         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3096         (struct locale_data): Remove unused member `options'.
3097         * locale/findlocale.c (_nl_remove_locale): Update uses.
3098         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3099         * locale/C-collate.c: Update initializer.
3100         * locale/C-identification.c: Likewise.
3101         * locale/C-measurement.c: Likewise.
3102         * locale/C-telephone.c: Likewise.
3103         * locale/C-address.c: Likewise.
3104         * locale/C-name.c: Likewise.
3105         * locale/C-paper.c: Likewise.
3106         * locale/C-time.c: Likewise.
3107         * locale/C-numeric.c: Likewise.
3108         * locale/C-monetary.c: Likewise.
3109         * locale/C-messages.c : Likewise.
3110         * locale/C-ctype.c: Likewise.
3112         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3113         use CHAR_BIT instead of BITSPERBYTE.
3115         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3116         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3117         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3118         (_nl_remove_locale): Likewise.
3119         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3121         * locale/findlocale.c (_nl_default_locale_path): New variable.
3122         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3123         * locale/localeinfo.h: Declare it.
3124         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3125         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3126         * locale/newlocale.c (__newlocale): Likewise.
3128         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3129         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3130         * sysdeps/generic/morecore.c: Likewise.
3131         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3132         (__libc_current_sigrtmax): Likewise.
3134 2002-08-08  Roland McGrath  <roland@redhat.com>
3136         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3137         * catgets/open_catalog.c (__open_catalog): Likewise.
3139         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3140         from typo INITIAL_NUM_NANES.
3141         (create_archive): Update use.
3143 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3145         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3147 2002-08-08  Roland McGrath  <roland@frob.com>
3149         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3151 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3153         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3154         else and undefine after including wcstol_l.c.
3155         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3157 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3159         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3161 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3163         * configure.in: Make the test for broken_alias_attribute stricter.
3165 2002-05-24  Robert Love  <rml@tech9.net>
3167         * posix/Makefile (routines): Add sched_getaffinity and
3168         sched_setaffinity.
3169         * posix/sched.h: Add declarations for sched_getaffinity and
3170         sched_setaffinity.
3171         * sysdeps/generic/sched_getaffinity.c: New file.
3172         * sysdeps/generic/sched_setaffinity.c: New file.
3173         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3174         sched_setaffinity.
3176 2002-08-06  Andreas Schwab  <schwab@suse.de>
3178         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3180 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3182         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3183         message.
3185         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3186         It is known to be defined.
3188         * include/string.h: Define index and rindex only if _ISOMAC is not
3189         defined.
3191         * elf/rtld.c: Include <errno.h>.
3192         * sysdeps/generic/libc-tls.c: Likewise.
3194 2002-08-07  Roland McGrath  <roland@redhat.com>
3196         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3197         it internally.
3198         (precsize_aton): Likewise.
3200         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3201         the static symbols added in the last change (doofus is me).
3203         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3204         loop to notice missing categories in a composite name.
3206         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3207         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3208         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3209         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3211 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3213         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3215 2002-08-07  Roland McGrath  <roland@redhat.com>
3217         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3218         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3219         Reported by Jakub Jelinek  <jakub@redhat.com>.
3221 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3223         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3224         division.
3226 2002-08-06  Roland McGrath  <roland@redhat.com>
3228         * include/getopt.h: Put private decls inside [_GETOPT_H].
3229         Use libc_hidden_proto for getopt_long, getopt_long_only.
3230         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3231         Add libc_hidden_def.
3233         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3234         Define as a macro for __dl_iterate_phdr.
3236         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3237         made static.  Add __ name as a strong alias.
3238         (internal_endnetgrent): Likewise.
3239         (internal_getnetgrent_r): Likewise.
3241         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3242         with no __ prefix.
3243         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3244         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3245         all *_l functions with no __ prefix.
3246         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3247         * ctype/ctype_l.c: Likewise.
3248         * locale/nl_langinfo.c: Likewise.
3249         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3250         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3251         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3252         * wctype/wctype.h [__USE_GNU]: Likewise.
3253         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3254         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3255         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3256         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3257         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3258         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3259         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3260         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3261         (__wcscasecmp_l): Add libc_hidden_def.
3262         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3263         (__wcsncasecmp_l): Add libc_hidden_def.
3264         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3265         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3266         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3267         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3268         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3269         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3270         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3271         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3272         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3273         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3274         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3275         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3276         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3277         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3279 2002-08-05  Roland McGrath  <roland@redhat.com>
3281         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3282         netname2user, host2netname, user2netname, key_gendes.
3283         * sunrpc/netname.c: Add libc_hidden_def.
3284         * sunrpc/key_call.c: Likewise.
3286         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3287         freeaddrinfo.
3288         * inet/getnameinfo.c: Add libc_hidden_def.
3289         * sysdeps/generic/getaddrinfo.c: Likewise.
3290         * sysdeps/posix/getaddrinfo.c: Likewise.
3292         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3293         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3294         * wcsmbs/wmemset.c: Add libc_hidden_def.
3296         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3297         (index, rindex): Define as macros for strchr, strrchr.
3299         * string/envz.c (envz_strip): index -> strchr
3301         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3302         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3304         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3305         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3307         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3308         * stdlib/wctomb.c: Add libc_hidden_def.
3310         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3311         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3312         * resolv/herror.c: Likewise.
3313         * inet/rcmd.c: Add libc_hidden_def.
3314         * inet/ruserpass.c: Likewise.
3315         * inet/getnetgrent_r.c: Likewise.
3317         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3318         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3319         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3320         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3321         libc_hidden_def.
3322         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3323         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3325         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3326         __libc_system.
3327         (__libc_system): Call it, putting just the line == NULL test here.
3329         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3330         variables work right.
3332         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3333         * elf/dl-close.c (_dl_close): Likewise.
3335         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3336         in6addr_any, in6addr_loopback.  Remove decls for
3337         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3338         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3339         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3340         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3341         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3342         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3344         in6addr_loopback.
3345         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3347         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3348         ether_aton_r.
3349         * inet/ether_aton_r.c: Add libc_hidden_def.
3350         * inet/ether_ntoa_r.c: Likewise.
3352         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3353         xprt_unregister.
3354         * sunrpc/svc.c: Add libc_hidden_def.
3355         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3356         pmap_set, pmap_unset.
3357         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3358         * sunrpc/pm_getport.c: Likewise.
3359         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3360         * sunrpc/publickey.c: Add libc_hidden_def.
3362 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3364         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3365         the other memset call in this function.
3367         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3368         at correct index.  Clear BSS region now that memalign is used.
3370 2002-08-05  Roland McGrath  <roland@redhat.com>
3372         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3373         * sysdeps/generic/uname.c: Add libc_hidden_def.
3374         * sysdeps/mach/hurd/uname.c: Likewise.
3376 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3378         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3379         wcspbrk): Add libc_hidden_proto.
3380         * time/strftime.c (my_strftime): Add libc_hidden_def.
3381         (strftime): Remove libc_hidden_def.
3382         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3383         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3384         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3385         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3386         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3387         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3389         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3390         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3391         __rpc_thread_createerr): Add libc_hidden_proto.
3392         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3393         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3394         __rpc_thread_createerr): Add libc_hidden_def.
3396         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3397         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3398         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3399         clnt_perror, clnt_sperror): Add libc_hidden_def.
3400         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3402         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3403         libc_hidden_proto.
3404         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3405         * sunrpc/des_soft.c (des_setparity): Likewise.
3407         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3408         Add libc_hidden_proto.
3409         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3410         Add libc_hidden_def.
3412 2002-08-05  Roland McGrath  <roland@redhat.com>
3414         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3415         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3416         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3417         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3418         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3419         old data, abandoning the original memory allocated by rtld at startup,
3420         instead of calling realloc normally.
3422 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3424         * po/fr.po: Update from translation team.
3426 2002-08-04  Roland McGrath  <roland@redhat.com>
3428         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3429         then generate a dummy module under the given name, obeying the
3430         normal rules for the "caller" field.
3432         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3433         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3435         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3436         weak here; we declare it weak or strong in the one place we use it.
3437         * sysdeps/generic/libc-start.c: ... which is here.
3438         Don't make the decl weak if [USE_TLS], since static programs need TLS
3439         setup even when single-threaded.
3441         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3443         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3444         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3445         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3446         all these variables.
3448 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3450         * include/stdio.h: Don't define macro magic to redirect function
3451         calls if _ISOMAC is defined.
3453         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3454         ldouble asin tests.
3456 2002-08-04  Roland McGrath  <roland@redhat.com>
3458         * stdlib/lrand48_r.c: Add libc_hidden_def.
3460         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3461         TCB with __libc_memalign instead of mmap.
3462         (_dl_deallocate_tls): Free it with free instead of munmap.
3464         * Makerules (cpp-srcs-left): When setting this to run
3465         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3466         words.  Combine the two loops into one on the concatenated list,
3467         including those as well as $(test-srcs).
3469         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3470         since we align here with optimally minimal waste anyway.
3471         (malloc): Just call that.
3473         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3474         the right variable.
3476         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3477         to compute memory location for l_tls_initimage.
3478         * elf/rtld.c (_dl_start): Likewise.
3479         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3481         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3482         because the .d file is generated in the non-shared case and
3483         so fails to catch them otherwise.
3485         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3486         split out of _dl_allocate_tls.
3487         (_dl_allocate_tls_init): Likewise.
3488         (_dl_allocate_tls): Call those.
3489         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3490         * elf/rtld.c (dl_main): Call them separately instead of calling
3491         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3492         is finished, so that the initializer data has been relocated before we
3493         copy it into the main thread's TLS block.
3495         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3496         loop conditions, prevented the last used module from being initialized.
3498 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3500         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3501         if glob resp. globfree are not macros.
3502         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3503         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3504         Add libc_hidden_ver.
3505         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3506         libc_hidden_def.
3507         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3508         instead of libc_hidden_weak.
3509         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3510         libc_hidden_ver instead of libc_hidden_def.
3511         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3512         libc_hidden_ver instead of libc_hidden_def.
3513         (wcstoll, wcstoq): Remove libc_hidden_weak.
3514         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3515         libc_hidden_ver.
3516         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3517         libc_hidden_ver.
3518         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3519         libc_hidden_ver.
3520         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3521         libc_hidden_ver.
3523 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3525         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3526         to access _sys_siglist.
3527         * string/strsignal.c: Likewise.
3528         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3529         * sysdeps/gnu/siglist.c: Likewise.
3530         * sysdeps/unix/siglist.c: Likewise.
3531         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3533         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3535         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3537         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3538         alias and use it.
3539         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3541         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3542         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3543         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3545         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3546         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3548         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3549         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3550         and __gconv_get_cache respectively.
3551         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3552         defined static.  Change all users.
3553         (__gconv_get_cache): New function.
3554         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3555         (__gconv_get_alias_db): New function.
3556         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3557         (__conv_modules_db): Likewise.
3558         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3559         and __gconv_get_alias_db.
3560         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3561         variables.
3563         * include/stdlib.h: Add prototype and libc_hidden_proto for
3564         __default_morecore.
3565         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3567         * malloc/obstack.c: Remove fputs macro.
3569         * malloc/mtrace.c: Remove fopen macro.
3571 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3573         * manual/debug.texi: Fix spelling to programmatically.
3574         Reported by <hayastan132@hotmail.com>.
3576 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3578         * include/libio.h: Add libc_hidden_proto for __uflow.
3579         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3580         fgetpos to _IO_* names.
3581         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3582         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3583         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3584         putwc_unlocked, vswscanf.
3585         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3586         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3587         * libio/fseek.c: Likewise.
3588         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3589         not fopencookie.
3590         * libio/genops.c (__uflow): Add libc_hidden_def.
3591         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3592         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3593         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3594         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3595         * libio/iofread_u.c (fread_unlocked): Likewise.
3596         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3597         * libio/iovswscanf.c (vswscanf): Likewise.
3598         * libio/putwc_u.c (putwc_unlocked): Likewise.
3599         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3600         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3601         * malloc/mtrace.c: Likewise.
3603         * sunrpc/clnt_perr.c: Remove fputs macro.
3604         * sunrpc/svc_simple.c: Likewise.
3605         * sunrpc/svc_tcp.c: Likewise.
3606         * sunrpc/svc_udp.c: Likewise.
3607         * sunrpc/xdr_rec.c: Likewise.
3608         * sunrpc/xdr_ref.c: Likewise.
3610         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3611         iconv_prog, linereader, and charmap-dir.
3612         * locale/Makefile: Likewise for locale and charmap-dir.
3613         * malloc/Makefile: Likewise for memusagestat.
3614         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3615         * sunrpc/Makefile: Likewise for rpc_main.
3616         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3617         * timezone/Makefile: Likewise for zic.
3619         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3621         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3622         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3623         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3624         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3625         _dl_close.
3627         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3628         __wunderflow.
3629         * libio/genops.c (__underflow): Add libc_hidden_def.
3630         * libio/wgenops.c (__wuflow): Likewise.
3631         (__wunderflow): Likewise.
3633         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3634         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3636         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3637         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3639         * include/string.h: Add libc_hidden_proto for __strverscmp.
3640         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3642         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3643         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3644         * sysdeps/posix/sysconf.c: Likewise.
3645         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3646         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3648         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3649         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3650         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3651         __iswxdigit_l, __towlower_l, __towupper_l.
3652         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3653         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3655         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3656         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3657         * sysdeps/mach/hurd/xmknod.c: Likewise.
3658         * sysdeps/unix/xmknod.c: Likewise.
3659         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3660         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3661         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3663         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3665 2002-08-03  Roland McGrath  <roland@redhat.com>
3667         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3668         setpriority.
3669         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3670         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3671         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3672         * sysdeps/mach/hurd/setpriority.c: Likewise.
3673         * sysdeps/mach/hurd/getpriority.c: Likewise.
3674         * sysdeps/generic/setpriority.c: Likewise.
3675         * sysdeps/generic/getpriority.c: Likewise.
3677         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3678         * malloc/mcheck.c: Add libc_hidden_def.
3680         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3681         * misc/hsearch_r.c: Add libc_hidden_def.
3683         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3684         * posix/fnmatch.c: Add libc_hidden_weak.
3686         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3687         execl, execle, execlp, execvp, getpid, getsid.
3688         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3689         * sysdeps/unix/alarm.c: Likewise.
3690         * posix/confstr.c: Likewise.
3691         * posix/execvp.c: Likewise.
3692         * posix/execlp.c: Likewise.
3693         * posix/execle.c: Likewise.
3694         * posix/execl.c: Likewise.
3695         * sysdeps/generic/getsid.c: Likewise.
3696         * sysdeps/mach/hurd/getsid.c: Likewise.
3697         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3698         * sysdeps/mach/hurd/getpid.c: Likewise.
3700         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3701         qecvt_r, qfcvt_r, lrand48_r.
3702         * misc/efgcvt_r.c: Add libc_hidden_def.
3704         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3705         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3707         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3708         * locale/nl_langinfo.c: Add libc_hidden_def.
3710         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3711         * sysdeps/generic/glob.c: Add libc_hidden_def.
3712         * sysdeps/generic/glob64.c: Likewise.
3713         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3715         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3717         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3719         * locale/setlocale.c (_nl_current_names): Variable moved ...
3720         * locale/localename.c (_nl_current_names): ... here, new file.
3721         Make it global, with attribute_hidden.
3722         * locale/localeinfo.h: Declare it.
3723         * locale/Makefile (aux): Add localename.
3724         * locale/localename.c (__current_locale_name): New function.
3725         * include/locale.h (__current_locale_name): Declare it.
3726         * intl/dcigettext.c (guess_category_value): Use that instead of
3727         calling setlocale.
3729         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3730         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3731         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3732         * locale/newlocale.c: Add alias to __ name.
3733         * locale/duplocale.c: Likewise.
3734         * locale/freelocale.c: Likewise.
3735         * locale/uselocale.c: New file.
3736         * locale/Makefile (routines): Add it.
3737         * locale/Versions (libc: GLIBC_2.3): New set.
3738         Add newlocale, duplocale, freelocale, uselocale.
3739         (libc: GLIBC_PRIVATE): Add __uselocale.
3741         * locale/localeinfo.h [SHARED]
3742         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3743         (_NL_CURRENT_DATA): Define using that.
3744         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3745         (_NL_CURRENT_DEFINE): Define to empty.
3746         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3747         conditionalized on this.
3748         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3749         taking initializer of _nl_C_locobj.
3750         [SHARED] (_nl_global_locale): New variable, using that initializer.
3751         (_nl_C_locobj): Use new macro for initialzier.
3752         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3753         [! SHARED] (CATEGORY_USED): New macro.
3754         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3755         (setdata, setlocale): Use that macro instead of examining _nl_current.
3756         (setdata): Set the slot in _nl_global_locale.
3757         Conditionalize setting of _nl_current on [! SHARED].
3758         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3759         declaration as an extern.
3760         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3762         * include/locale.h: Use libc_hidden_proto for setlocale.
3763         * locale/setlocale.c: Add libc_hidden_def.
3765         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3767         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3768         * misc/hsearch_r.c: Add libc_hidden_def.
3769         * misc/lsearch.c: Likewise.
3771         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3772         endttyent.
3773         * misc/getttyent.c: Add libc_hidden_def.
3775         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3776         * malloc/mcheck.c: Add libc_hidden_def.
3778         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3779         * include/argz.h: Use libc_hidden_proto for argz_delete.
3780         * string/argz-delete.c: Add libc_hidden_def.
3781         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3783         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3784         HIDDEN_JUMPTARGET for _exit.
3785         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3786         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3787         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3788         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3790         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3791         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3792         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3793         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3795         * include/stdlib.h: Use libc_hidden_proto for abort,
3796         __strtof_internal, __strtod_internal, __strtold_internal,
3797         __strtol_internal, __strtoll_internal, __strtoul_internal,
3798         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3799         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3800         __strtoul_l_internal, __strtoull_l_internal.
3801         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3802         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3803         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3804         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3805         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3806         __wcsncasecmp_l.
3807         * sysdeps/generic/abort.c: Add libc_hidden_def.
3808         * stdlib/strtod.c: Likewise.
3809         * sysdeps/generic/strtol.c: Likewise.
3810         * sysdeps/wordsize-64/strtol.c: Likewise.
3811         * sysdeps/wordsize-64/wcstol.c: Likewise.
3812         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3814         * include/stdlib.h: Use libc_hidden_proto for qsort.
3815         * stdlib/msort.c: Add libc_hidden_def.
3817         * include/utime.h: Use libc_hidden_proto for utime.
3818         * sysdeps/generic/utime.c: Add libc_hidden_def.
3819         * sysdeps/unix/utime.c: Likewise.
3821         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3822         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3823         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3824         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3825         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3827         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3828         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3829         and __libc_current_sigrtmax.
3830         * signal/sigismem.c: Add libc_hidden_def.
3831         * signal/sigfillset.c: Likewise.
3832         * signal/sigempty.c: Likewise.
3833         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3834         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3835         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3836         * sysdeps/posix/raise.c: Likewise.
3837         * sysdeps/generic/raise.c: Likewise.
3839 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3841         * include/string.h: Use libc_hidden_proto for __stpcpy.
3842         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3843         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3844         * sysdeps/generic/stpcpy.c: Likewise.
3845         * sysdeps/i386/stpcpy.S: Likewise.
3846         * sysdeps/i386/i586/stpcpy.S: Likewise.
3847         * sysdeps/powerpc/stpcpy.S: Likewise.
3848         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3849         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3851         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3852         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3853         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3854         libc_hidden_def.
3855         * string/strdup.c (__strdup): Likewise.
3856         * string/strndup.c (__strndup): Likewise.
3857         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3858         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3860 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3862         * include/libio.h: New file.
3863         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3864         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3865         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3866         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3867         * sysdeps/unix/common/syscalls.list: Likewise.
3868         * sysdeps/unix/inet/syscalls.list: Likewise.
3869         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3870         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3871         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3872         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3873         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3874         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3875         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3876         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3877         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3878         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3879         * sysdeps/unix/syscalls.list: Likewise.
3881 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3882             Ulrich Drepper  <drepper@redhat.com>
3884         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3885         the arguments is big enough to cause an overflow.
3887 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3889         * assert/assert.c: Use hidden_def not INTDEF.
3891 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3893         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3894         not defined.
3896 2002-08-03  Roland McGrath  <roland@redhat.com>
3898         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3899         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3900         verr, verrx.
3901         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3902         * misc/syslog.c: Add libc_hidden_def.
3903         * misc/err.c: Likewise.
3904         * stdlib/exit.c: Likewise.
3905         * stdlib/bsearch.c: Likewise.
3906         * sysdeps/generic/getenv.c: Likewise.
3908         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3910         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3911         libc_hidden_weak for every system call symbol defined.
3913         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3914         timelocal, localtime, strftime.
3915         * time/asctime.c: Add libc_hidden_def.
3916         * time/mktime.c: Likewise.
3917         * time/localtime.c: Likewise.
3918         * time/strftime.c: Likewise.
3919         * time/strptime.c: Likewise.
3920         * sysdeps/generic/time.c: Likewise.
3921         * sysdeps/unix/time.c: Likewise.
3922         * sysdeps/unix/sysv/i386/time.S: Likewise.
3923         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3925         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3926         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3927         * resolv/inet_ntop.c: Likewise.
3928         * resolv/inet_pton.c: Likewise.
3929         * inet/inet_mkadr.c: Add libc_hidden_def.
3930         * inet/inet_netof.c: Likewise.
3931         * resolv/inet_addr.c: Likewise.
3933         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3934         clauses from conditionals for now.  Will have to be fixed later
3935         for older compilers.
3937         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3939 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3941         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3942         broken alias attribute handling.
3943         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3945 2002-08-02  Roland McGrath  <roland@frob.com>
3947         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3948         since it sets the variables we use in a -D switch.
3950 2002-08-02  Roland McGrath  <roland@redhat.com>
3952         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3953         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3954         matches long int, not int.
3956         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3957         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3958         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3959         * wctype/wctrans.c (wctrans): Likewise.
3960         * wctype/wctype.c (__wctype): Likewise.
3961         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3963 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3965         * assert/assert.c (__assert_fail): Fix typo in comment.
3967         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3968         * sunrpc/rpc_thread.c: Define it without static.
3969         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3971 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3973         * assert/assert.c (__assert_fail): Remove undef.
3974         Replace INTDEF with libc_hidden_def.
3975         * assert/__assert.c (__assert): Remove INTUSE.
3976         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3977         libc_hidden_weak.
3978         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3979         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3980         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3981         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3982         libm_hiden_ver): Define.
3983         * include/assert.h (__assert_fail_internal): Remove.
3984         (__assert_fail): Add prototype.  Add hidden_proto.
3985         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3986         libc_hidden_proto.
3987         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3988         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3989         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3990         Add libc_hidden_proto.
3991         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3992         __fcntl): Add libc_hidden_proto.  Remove macros.
3993         (__open_internal, __fcntl_internal): Remove.
3994         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3995         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3996         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3997         libc_hiden_proto.
3998         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3999         libc_hidden_def.
4000         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4001         Add libc_hidden_def.
4002         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4003         * sysdeps/generic/open.c (__open): Remove undef.
4004         Add libc_hidden_def.  Remove INTDEF.
4005         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4006         Add libc_hidden_def.
4007         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4008         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4009         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4010         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4011         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4012         (__libc_fcntl): Add libc_hidden_def.
4013         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4014         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4015         (__libc_open): Add libc_hidden_def.
4016         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4017         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4018         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4019         Add libc_hidden_def.
4020         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4021         Add libc_hidden_def.
4022         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4023         undef.
4024         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4025         (__libc_fcntl): Add libc_hidden_def.
4026         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4027         __getpgid_internal, __chown_internal): Remove.
4028         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4029         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4030         __GI___chown): Add.
4031         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4032         __getpid_internal, __open_internal, __write_internal): Remove.
4033         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4034         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4035         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4036         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4037         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4038         Replace INTDEF with libc_hidden_def.
4039         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4040         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4041         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4042         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4043         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4044         Add libc_hidden_proto.
4045         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4046         * include/sys/select.h (__select): Likewise.
4047         * include/sys/socket.h (__send): Likewise.
4048         * include/sys/statfs.h (__statfs): Likewise.
4049         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4050         __getpid, __getpgid, __setpgid, __close, __read, __write,
4051         __getpagesize, __sbrk): Likewise.
4052         (__chown_internal, __dup2_internal, __getpid_internal,
4053         __getpgid_internal, __close_internal, __write_internal,
4054         __getpagesize_internal): Remove.
4055         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4056         Remove macros.
4057         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4058         * include/sched.h (__sched_setscheduler): Likewise.
4059         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4060         * include/stdlib.h (__secure_getenv): Likewise.
4061         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4062         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4063         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4064         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4065         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4066         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4067         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4068         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4069         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4070         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4071         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4072         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4073         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4074         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4075         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4076         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4077         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4078         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4079         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4080         * libio/genops.c (__overflow): Add libc_hidden_def.
4081         * libio/iovdprintf.c: Remove libio.h include.
4082         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4083         libc_hidden_weak): Define to nothing if not defined.
4084         (__overflow, __woverflow): Add libc_hidden_proto.
4085         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4086         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4087         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4088         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4089         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4090         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4091         and libc_hidden_def.
4092         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4093         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4094         (__getpgid): Add libc_hidden_proto.
4095         (__bsd_getpgrp): Remove INTUSE.
4096         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4097         libc_hidden_def.
4098         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4099         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4100         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4101         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4102         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4103         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4104         __rpc_thread_createerr): Add libc_hidden_def.
4105         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4106         libc_hidden_def.
4107         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4108         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4109         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4110         * sysdeps/generic/chown.c (__chown): Likewise.
4111         * sysdeps/generic/close.c (__close): Likewise.
4112         * sysdeps/generic/dup2.c (__dup2): Likewise.
4113         * sysdeps/generic/pipe.c (__pipe): Likewise.
4114         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4115         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4116         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4117         * sysdeps/generic/read.c (__libc_read): Likewise.
4118         (__read): Add libc_hidden_weak.
4119         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4120         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4121         * sysdeps/generic/select.c (__select): Likewise.
4122         * sysdeps/generic/send.c (__send): Likewise.
4123         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4124         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4125         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4126         * sysdeps/generic/statfs.c (__statfs): Likewise.
4127         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4128         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4129         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4130         Remove undef and INTDEF.
4131         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4132         * sysdeps/generic/getpid.c (__getpid): Likewise.
4133         * sysdeps/generic/write.c (__libc_write): Likewise.
4134         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4135         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4136         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4137         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4138         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4139         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4140         Remove undef and INTDEF.
4141         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4142         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4143         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4144         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4145         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4146         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4147         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4148         (__pipe): Add libc_hidden_def.
4149         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4150         libc_hidden_weak.
4151         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4152         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4153         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4154         (__read): Add libc_hidden_weak.
4155         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4156         (__libc_pwrite64): Add libc_hidden_def.
4157         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4158         * sysdeps/mach/hurd/select.c (__select): Likewise.
4159         * sysdeps/mach/hurd/send.c (__send): Likewise.
4160         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4161         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4162         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4163         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4164         * sysdeps/posix/dup2.c: Likewise.
4165         Remove undef and INTDEF.
4166         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4167         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4168         (__pwrite64): Add libc_hidden_weak.
4169         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4170         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4171         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4172         * sysdeps/standalone/close.c (__close): Likewise.
4173         * sysdeps/standalone/write.c (__libc_write): Likewise.
4174         (__write): Add libc_hidden_weak.
4175         * sysdeps/standalone/read.c (__read): Likewise.
4176         (__libc_read): Add libc_hidden_def.
4177         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4178         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4179         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4180         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4181         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4182         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4183         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4184         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4185         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4186         __GI___sigaction): Add.
4187         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4188         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4189         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4190         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4191         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4192         __GI___setpgid): Add.
4193         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4194         Remove undef and INTDEF.
4195         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4196         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4197         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4198         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4199         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4200         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4201         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4202         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4203         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4204         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4205         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4206         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4207         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4208         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4209         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4210         __GI___statfs, __GI___send): Add.
4211         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4212         libc_hidden_ver resp. libc_hidden_def.
4213         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4214         libc_hidden_def.
4215         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4216         Likewise.  Remove undef and INTDEF.
4217         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4218         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4219         __GI___statfs, __GI___send): Add.
4220         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4221         libc_hidden_def.
4222         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4223         Likewise.
4224         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4225         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4226         libc_hidden_ver resp. libc_hidden_def.
4227         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4228         __GI___send): Add.
4229         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4230         Add libc_hidden_weak.
4231         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4232         Add libc_hidden_def.
4233         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4234         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4235         libc_hidden_weak.
4236         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4237         resp. libc_hidden_def.
4238         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4239         libc_hidden_weak.
4240         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4241         INTDEF.
4242         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4243         Likewise.  Remove undef.
4244         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4245         libc_hidden_weak.
4246         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4247         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4248         libc_hidden_weak.
4249         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4250         libc_hidden_def.
4251         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4252         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4253         Likewise.  Remove undef and INTDEF.
4254         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4255         libc_hidden_def.
4256         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4257         libc_hidden_weak.
4258         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4259         libc_hidden_def.
4260         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4261         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4262         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4263         libc_hidden_weak.
4264         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4265         Add libc_hidden_def.
4266         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4267         __GI___statfs): Add.
4268         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4269         libc_hidden_weak.
4270         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4271         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4272         Remove undef and INTDEF.
4273         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4274         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4275         libc_hidden_def.
4276         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4277         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4278         libc_hidden_weak.
4279         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4280         libc_hidden_def.
4281         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4282         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4283         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4284         Add.
4285         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4286         libc_hidden_def.  Remove undef and INTDEF.
4287         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4288         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4289         libc_hidden_def.
4290         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4291         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4292         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4293         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4294         Remove undef and INTDEF.
4295         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4296         broken visibility attribute handling.
4297         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4299 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4301         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4302         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4304         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4305         previous patch.
4307 2002-06-29  Todd Fries  <todd@openbsd.org>
4309         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4311 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4313         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4315 2002-07-30  Roland McGrath  <roland@redhat.com>
4317         * resolv/resolv.h (_res): Define macro unconditionally.
4318         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4319         * include/resolv.h: ... here.
4320         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4321         as a __thread variable.
4322         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4323         a __thread variable instead of a global.
4324         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4326         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4327         time we test it.
4329         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4331         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4332         decls of memset and memcpy.
4334         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4335         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4337         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4339         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4340         (__libc_tsd_define): Define using __thread.
4342         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4343         (__rpc_thread_variables): Use __libc_tsd_get.
4344         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4345         __rpc_thread_variables, which might allocate what we're about to free.
4347         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4348         thread-local variable.
4349         * resolv/netdb.h (h_errno): Define macro unconditionally.
4350         [_LIBC] (__set_h_errno): Macro moved to ...
4351         * include/netdb.h: ... here.
4352         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4353         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4354         [! _LIBC_REENTRANT]: #undef h_errno here.
4356         * include/errno.h: Protect from multiple inclusion.
4358         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4359         before defining them, since Linux's <linux/posix_types.h> might have
4360         defined them.
4362 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4364         * malloc/malloc.c (public_cALLOc): Check for overflow on
4365         multiplication.
4366         * sunrpc/xdr_array.c (xdr_array): Likewise.
4367         * sunrpc/rpc/types.h (mem_free): Add comment.
4368         Patch by Solar Designer <solar@openwall.com>.
4370 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4372         * sysdeps/unix/sysv/linux/kernel-features.h
4373         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4375 2002-08-01  Roland McGrath  <roland@redhat.com>
4377         * libio/fileops.c (_IO_file_sync_mmap): New function.
4378         (_IO_file_jumps_mmap): Use it.
4379         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4380         repeat the stat check and resize the mapped buffer as necessary.
4382 2002-07-31  Roland McGrath  <roland@redhat.com>
4384         * libio/fileops.c (decide_maybe_mmap): New static function.
4385         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4386         mmap the file contents.  Then switch the jump tables to the mmap
4387         tables if it worked, or the vanilla file tables if not.
4388         (_IO_file_underflow_maybe_mmap): New function.
4389         (_IO_file_seekoff_maybe_mmap): New function.
4390         (_IO_file_xsgetn_maybe_mmap): New function.
4391         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4392         * libio/libioP.h: Declare those.
4393         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4394         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4395         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4396         If the stream is read-only, set its jump tables to those new ones.
4397         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4398         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4399         We need the tables set before _IO_file_attach.
4401         * libio/tst-mmap-eofsync.c: New file.
4402         * libio/tst-mmap-fflushsync.c: New file.
4403         * libio/bug-mmap-fflush.c: New file.
4404         * libio/tst-mmap2-eofsync.c: New file.
4405         * libio/Makefile (tests): Add them.
4407         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4408         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4410 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4412         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4413         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4414         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4415         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4416         declare sys_errlist and sys_nerr.
4417         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4418         provide declarations.
4420 2002-07-31  Roland McGrath  <roland@redhat.com>
4422         * elf/rtld.c (dl_main): Fix typo in error message.
4424 2002-07-31  Roland McGrath  <roland@frob.com>
4426         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4427         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4428         sysdeps/mach/hurd/dl-sysdep.c change.
4430 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4432         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4433         -r`/build/include for kernel headers.
4435         * po/fi.po: New file.
4437 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4439         * configure.in (static_nss): Set to `yes' if --disable-shared.
4441 2002-07-23  Bruno Haible  <bruno@clisp.org>
4443         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4444         is set.
4446 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4448         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4449         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4450         arguments.
4452 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4454         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4455         alias.
4457 2002-07-21  Bruno Haible  <bruno@clisp.org>
4459         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4460         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4461         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4462         trans_sysdep_tab_offset.
4463         (struct sysdep_segment): New type.
4464         (struct sysdep_string): New type.
4465         (SEGMENTS_END): New macro.
4466         * intl/gettextP.h (struct sysdep_string_desc): New type.
4467         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4468         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4469         orig_tab, trans_tab, hash_tab to const pointers because they point
4470         into read-only memory.
4471         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4472         (PRI*): Define fallback values.
4473         (get_sysdep_segment_value): New function.
4474         (_nl_load_domain): Distinguish major and minor revision parts. Add
4475         support for minor revision 1 with system dependent strings.
4476         (_nl_unload_domain): Also free the 'malloced' field.
4477         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4478         now done in loadmsgcat.c. Add support for system dependent strings.
4480 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4482         * posix/bug-regex7.c: New file.
4483         * posix/bug-regex8.c: New file.
4484         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4486 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4488         * posix/bug-regex4.c (main): Fix typos.
4489         * posix/bug-regex6.c (main): Likewise.
4491 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4493         * posix/bug-regex6.c (main): Fix warnings.
4495         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4497         * iconv/iconv_prog.c (main): Improve error message for the cases
4498         where -t and/or -f parameter are missing.
4500 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4502         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4503         (re_search): Likewise.
4504         (re_match_2): Likewise.
4505         (re_search_2): Likewise.
4506         (re_search_stub): New function.
4507         (re_search_2_stub): New function.
4508         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4510 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4512         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4513         (re_string_eoi): Use STOP instead of LEN.
4514         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4515         (re_string_construct): Likewise.
4516         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4517         * posix/regexec.c (re_search_internal): Add a new argument STOP
4518         so that it can handle the argument STOP of re_search_2 and re_match_2
4519         correctly.
4520         (regexec): Adapt to new I/F of re_search_internal.
4521         (re_search_stub): Likewise.
4523 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4525         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4527         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4529         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4530         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4531         of __divdi3.
4533         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4534         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4535         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4536         alias for adjtimex syscall.
4538         * elf/dl-minimal.c: Define __assert_fail_internal.
4539         * assert/assert.c: Likewise.
4540         * include/assert.h: Define __assert_file macro if !SHARED and not
4541         NOT_IN_libc.
4543         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4544         programs.
4545         * locale/Makefile: Likewise.
4546         * nscd/Makefile: Likewise.
4547         * catgets/Makefile: Likewise.
4549 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4551         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4552         compute current position.
4554         * stdio-common/tst-fseek.c (main): Improve error messages.
4556         * libio/tst-freopen.c (main): Remove unused variable.
4558         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4559         succesful seek call.  Simplify error checking.
4561 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4563         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4564         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4566 2002-07-19  Roland McGrath  <roland@frob.com>
4568         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4569         __libc_enable_secure is set.
4571 2002-07-24  Roland McGrath  <roland@frob.com>
4573         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4574         This implementation supports only IPv4.
4575         * inet/ifaddrs.h: New file.
4576         * sysdeps/generic/ifaddrs.c: New file.
4577         * sysdeps/gnu/ifaddrs.c: New file.
4578         * inet/test-ifaddrs.c: New file.
4579         * inet/Makefile (routines): Add ifaddrs.
4580         (headers): Add ifaddrs.h here.
4581         (tests): Add test-ifaddrs.
4582         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4584         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4585         socket call to get an AF_INET socket, instead of using __opensock.
4586         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4588         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4589         if not -1 use it instead of calling __opensock.
4590         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4591         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4592         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4594         * sysdeps/mach/hurd/ifreq.h: New file.
4595         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4596         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4597         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4599         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4600         which gets moved around.  Calculate size of mmap'd buffer instead.
4602 2002-07-24  Philip Blundell  <philb@gnu.org>
4604         * sysdeps/unix/arm/brk.S: Improve schedule.
4605         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4606         efficient instruction.
4607         (__socket): Optimize return sequence.
4609 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4611         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4612         sockets on old kernels.
4614 2002-07-22  Philip Blundell  <philb@gnu.org>
4616         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4617         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4618         alias.
4620 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4622         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4623         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4625         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4626         test to detect duplicate locales.
4628         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4629         position would be before beginning of file.
4630         (_IO_file_seekoff_mmap): Likewise.
4631         * libio/Makefile (tests): Add bug-fseek.
4632         * libio/bug-fseek.c: New file.
4634         * intl/explodename.c: Remove support for CEN-style locale variables.
4635         It was never used and shouldn't be since it's not portable.
4636         * intl/finddomain.c: Likewise.
4637         * intl/l10nflist.c: Likewise.
4638         * intl/loadinfo.h: Likewise.
4639         * locale/findlocale.c: Likewise.
4641 2002-07-24  Roland McGrath  <roland@frob.com>
4643         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4644         position, calculate it to take into account an active pushback buffer.
4646         * libio/Makefile (tests): Add bug-ungetc.
4647         * libio/bug-ungetc.c: New file.
4649 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4651         * sysdeps/generic/libc-tls.c: New file.
4652         * csu/Makefile (routines): Add libc-tls.
4653         (static-only-routines): Add libc-tls.
4654         * elf/dl-support.c (_dl_phdr): New variable.
4655         (_dl_phnum): New variable.
4656         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4657         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4658         for !SHARED.  First look through auxiliary vector.  If TLS always
4659         call __pthread_initialize_minimal.
4661         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4662         in mmap call is never zero.
4664 2002-07-23  Andreas Jaeger  <aj@suse.de>
4666         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4667         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4669 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4671         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4672         creation and removal of the temp file.
4674         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4675         file creation.
4676         * test-skeleton.c (create_temp_file): New function.
4678 2002-07-22  Andreas Jaeger  <aj@suse.de>
4680         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4681         local label.
4683 2002-07-21  Roland McGrath  <roland@frob.com>
4685         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4686         put -I../include before -I../stdlib so we get the right errno.h et al.
4687         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4688         (CFLAGS-wcstof.c): Likewise.
4689         (CFLAGS-wcstold.c): Likewise.
4690         (CFLAGS-wcstod_l.c): Likewise.
4691         (CFLAGS-wcstof_l.c): Likewise.
4692         (CFLAGS-wcstold_l.c): Likewise.
4694 2002-07-19  Roland McGrath  <roland@frob.com>
4696         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4698 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4700         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4701         __ASSUME_AT_XID is defined.
4702         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4703         for 2.4.1 and up.
4704         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4705         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4707         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4708         (CFLAGS-wcstof.c): Likewise.
4709         (CFLAGS-wcstold.c): Likewise.
4710         (CFLAGS-wcstod_l.c): Likewise.
4711         (CFLAGS-wcstof_l.c): Likewise.
4712         (CFLAGS-wcstold_l.c): Likewise.
4714 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4716         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4717         __priority_which_t): Always typedef to int for C++.
4719 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4721         * configure.in: Add test for __thread support in compiler.
4722         * config.h.in: Add HAVE___THREAD.
4723         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4724         * include/sys/errno.h: Moved to...
4725         * stdlib/sys/errno.h: ...here.  New file.
4726         * stdlib/errno.h: New file.  Moved from...
4727         * include/errno.h: ...here.  Changed into an internal header defining
4728         libc-local things like __set_errno.
4729         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4730         bits/errno.h.
4731         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4732         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4733         either.
4734         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4735         from...
4736         (_dl_start_final): ...here.  Add code to initialize tls elements from
4737         bootstrap_map.
4738         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4739         if USE_TLS && HAVE___THREAD.
4740         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4741         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4742         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4743         * sysdeps/standalone/bits/errno.h: Likewise.
4744         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4745         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4746         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4747         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4748         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4749         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4750         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4751         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4752         use GL(dl_rtld_map), use map parameter.
4753         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4754         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4755         USE_TLS && HAVE___THREAD.
4756         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4757         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4758         TLS code sequence.
4759         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4761         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4762         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4763         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4764         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4765         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4766         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4768 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4770         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4771         MS_INVALIDATE values.
4773 2002-07-17  Andreas Schwab  <schwab@suse.de>
4774             Ulrich Drepper  <drepper@redhat.com>
4776         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4777         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4778         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4779         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4781 2002-07-01  H.J. Lu  <hjl@gnu.org>
4783         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4784         return value.
4786         * elf/circlemod1.c (circlemod1): Return int.
4787         * elf/circlemod2.c (circlemod2): Likewise.
4788         * elf/circlemod2a.c (circlemod2): Likewise.
4789         * elf/circlemod3.c (circlemod3): Likewise.
4790         (circlemod3a): A new function.
4792 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4794         * catgets/tst-catgets.c (main): Don't expect results for
4795         untranslated messages.
4797         * glibcbug.in: Fix little typo.  Remove STDIO.
4799         * config.h.in: Fail if __FAST_MATH__ is defined.
4800         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4801         (CPPFLAGS-test-idouble.c): Likewise.
4802         (CPPFLAGS-test-ildouble.c): Likewise.
4804 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4806         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4807         * intl/tst-gettext.c: Correctly handle untranslated messages in
4808         positive tests.
4810         * po/de.po: Update from translation team.
4812 2002-07-02  H.J. Lu  <hjl@gnu.org>
4814         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4815         use ll/sc.
4816         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4818         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4819         to 2.4.0 for mips.
4821 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4823         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4824         TLS fail if USE_TLS is not defined.
4826         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4827         and adjust state for seek position.  [PR libc/4070]
4828         * libio/Makefile (tests): Add bug-rewind.
4829         * libio/bug-rewind.c: New file.
4831 2002-07-12  Philip Blundell  <philb@gnu.org>
4833         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4834         (__backtrace): Use it.
4835         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4837 2002-07-12  Philip Blundell  <philb@gnu.org>
4839         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4840         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4841         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4842         (elf_machine_rela): Remove unused variable.
4844         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4845         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4846         define.
4848 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4850         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4852 2002-07-14  Andreas Jaeger  <aj@suse.de>
4854         * sysdeps/x86_64/bits/link.h: Add biarch support.
4856 2002-07-13  Andreas Jaeger  <aj@suse.de>
4858         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4859         Use correct indices.
4860         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4862 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4864         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4865         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4866         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4867         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4868         * sysdeps/s390/s390-32/bits/link.h: Remove.
4869         * sysdeps/s390/s390-64/bits/link.h: Remove.
4870         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4871         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4872         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4873         * sysdeps/s390/bits/wordsize.h: New file.
4874         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4875         elfclass.h.
4876         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4877         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4878         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4879         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4880         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4881         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4882         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4883         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4884         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4885         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4886         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4887         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4888         resource.h.
4889         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4890         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4891         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4892         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4893         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4894         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4895         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4896         sigaction.h.
4897         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4898         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4899         siginfo.h.
4900         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4901         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4902         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4903         socket.h.
4904         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4905         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4906         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4907         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4908         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4909         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4910         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4911         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4912         procfs.h.
4913         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4914         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4915         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4916         ucontext.h.
4917         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4918         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4920 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4922         * Versions.def (libc): Add GLIBC_2.3.
4923         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4924         * stdlib/canonicalize.c: Add compatibility version for realpath
4925         and make new code available in GLIBC_2.3.
4927 2002-07-06  Bruno Haible  <bruno@clisp.org>
4929         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4931 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4933         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4934         function do_init.  Use __libc_once.
4935         (do_init): New function.
4937         * iconvdata/iso8859-11.h: Removed.
4938         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4939         (distribute): Remove iso8859-11.h.
4940         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4942         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4943         underflow operation if c == (W)EOF.
4945 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4947         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4948         non-zero, adjust exponent.
4949         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4950         Remove NO_LONG_DOUBLE aliases.
4951         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4952         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4953         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4954         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4955         1**y and -1**+-Inf.
4956         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4957         Fix BITS_PER_MP_LIMB 32 extraction.
4958         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4959         exceptions for qNaNs.
4960         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4961         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4962         Raise exceptions when needed.  Don't recurse unnecessarily.
4963         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4964         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4965         exceptions for qNaNs.
4966         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4967         to fix *quo return value sign.
4968         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4969         case -Inf argument.
4970         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4972 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4974         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4975         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4976         -DNDEBUG.
4978 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4980         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4981         the result.
4983         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4984         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4986         * Versions.def (libthread_db): Add GLIBC_2.3.
4988 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4990         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4991         new stream if possible.
4992         * libio/freopen64.c (freopen64): Likewise.
4993         * libio/Makefile (tests): Add tst-freopen.
4994         * libio/tst-freopen.c: New file.
4996 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4998         * libio/stdio.h (obstack_printf): Add format attribute.
4999         (obstack_vprintf): Likewise.
5001 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5003         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5004         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5005         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5006         architectures.
5008 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5010         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5011         (init_dfa): ...here.
5013 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5015         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5016         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5017         nodes in parse trees.
5018         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5019         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5020         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5021         nodes which can epsilon transit.
5022         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5023         to IS_EPSILON_NODE macro.
5024         * posix/regexec.c (update_regs): New function to update registers
5025         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5026         (proceed_next_node): Use the entities of the nodes to determine
5027         whether the node can transit to.
5028         (set_regs): Use update_regs function to update registers.
5030 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5032         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5033         * posix/bug-regex6.c: New file.
5034         * posix/Makefile (tests): Add bug-regex6.
5035         (bug-regex6-ENV): Set LOCPATH.
5037 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5039         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5040         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5042 2002-07-06  Bruno Haible  <bruno@clisp.org>
5044         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5046 2002-07-06  Bruno Haible  <bruno@clisp.org>
5048         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5049         declarations.
5051         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5053         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5055         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5056         not _UTSNAME_H.
5057         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5059         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5060         * sysdeps/generic/bits/ustat.h: Likewise.
5062         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5064 2002-07-08  Andreas Jaeger  <aj@suse.de>
5066         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5068 2002-07-08  Andreas Jaeger  <aj@suse.de>
5070         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5072 2002-07-06  Andreas Jaeger  <aj@suse.de>
5074         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5075         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5076         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5077         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5078         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5079         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5080         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5081         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5082         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5083         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5084         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5086 2002-06-05  Brian Youmans <3diff@gnu.org>
5088         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5089         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5090         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5091         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5092         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5093         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5094         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5095         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5096         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5097         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5098         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5099         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5100         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5101         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5102         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5103         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5104         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5105         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5106         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5107         * sysdeps/ia64/fpu/e_log.S: Likewise.
5108         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5109         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5110         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5111         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5112         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5113         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5114         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5115         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5116         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5117         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5118         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5119         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5120         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5121         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5122         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5123         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5124         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5125         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5126         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5127         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5128         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5129         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5130         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5131         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5132         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5133         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5134         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5135         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5136         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5137         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5138         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5139         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5140         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5141         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5142         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5143         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5144         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5145         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5146         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5147         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5148         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5149         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5150         * sysdeps/ia64/fpu/s_round.S: Likewise.
5151         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5152         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5153         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5154         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5155         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5156         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5157         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5158         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5159         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5160         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5161         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5162         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5163         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5164         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5165         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5166         reflect IBM donation of math library to FSF
5167         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5168         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5169         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5170         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5171         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5172         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5173         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5174         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5175         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5176         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5177         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5178         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5179         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5180         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5181         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5182         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5183         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5184         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5185         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5186         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5187         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5188         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5189         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5190         * sysdeps/vax/__longjmp.c: Likewise.
5191         * sysdeps/vax/setjmp.c: Likewise.
5192         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5193         remove advertising clause
5194         * sysdeps/vax/htonl.s: Likewise.
5195         * sysdeps/vax/htons.s: Likewise.
5196         * libio/wfiledoalloc.c: Likewise.
5197         * stdlib/random.c: Likewise.
5198         * stdlib/random_r.c: Likewise.
5199         * sysdeps/mach/sys/reboot.h: Likewise.
5200         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5201         * sysdeps/posix/getaddrinfo.c: Likewise.
5202         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5203         GPL and corrected pointer to point to the correct license.
5205 2002-07-04  Andreas Jaeger  <aj@suse.de>
5207         * scripts/config.guess: New upstream version.
5208         * scripts/config.sub: Likewise.
5210 2002-07-02  Andreas Schwab  <schwab@suse.de>
5212         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5213         in parallel to bumping up the buffer pointer.
5215 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5217         * math/libm-test.inc (acos_test): Add missing L suffix for
5218         expected result.
5219         (cpow_test): Likewise.
5220         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5221         error for acos (0.0625).
5223 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5225         * locale/iso-639.def: Add entry for Ganda.
5226         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5227         definition.
5228         (address_finish): Handle entries with two letter ISO 639 code.
5230         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5231         directory if it existed before.
5232         * iconv/iconvconfig.c: Implement --prefix option.
5234         * math/libm-test.inc (cexp_test): Add missing L suffix for
5235         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5236         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5237         1.25 i).
5239 2002-05-29  H.J. Lu  <hjl@gnu.org>
5241         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5242         is turned on.
5244 2002-05-28  H.J. Lu  <hjl@gnu.org>
5246         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5247         are not dlopened on the dependency list of a dlopened object.
5249 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5251         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5252         dependencies if they are created between objects which are created
5253         while processing RTLD_NOW for objects loaded as part of the same
5254         dlopen call.
5256 2002-06-14  H.J. Lu  <hjl@gnu.org>
5258         * elf/Makefile (tests): Add circleload1.
5259         (modules-names): Add circlemod1, circlemod2, circlemod3,
5260         circlemod1a, circlemod2a and circlemod3a.
5261         ($(objpfx)circleload1): New target.
5262         ($(objpfx)circleload1.out): Likewise.
5263         ($(objpfx)circlemod1.so): Likewise.
5264         ($(objpfx)circlemod2.so): Likewise.
5265         ($(objpfx)circlemod1a.so): Likewise.
5266         ($(objpfx)circlemod2a.so): Likewise.
5267         * elf/circleload1.c: New file.
5268         * elf/circlemod1.c: New file.
5269         * elf/circlemod1a.c: New file.
5270         * elf/circlemod2.c: New file.
5271         * elf/circlemod2a.c: New file.
5272         * elf/circlemod3.c: New file.
5273         * elf/circlemod3a.c: New file.
5275 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5277         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5278         file descriptor.
5279         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5280         add check for fd not open for writing.
5282         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5283         completed element(s) and do not suspend thread if so.  Patch
5284         heavily modified by drepper.
5286         * rt/tst-aio7.c: New file.  Regression test for problems which the
5287         above three changes fix.
5288         * rt/Makefile (tests): Add tst-aio7.
5290 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5292         * rt/tst-aio6.c: Fix comment.
5294         * catgets/gencat.c (read_input_file): Handle more than one slash
5295         at end of line correctly [PR libc/3926].
5296         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5298         * catgets/sample.SJIS: Add test case for above bug.
5299         * catgets/test-gencat.c: Adjust test code.
5300         * catgets/test-gencat.sh: Adjust expected results.
5302         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5303         to skip relative relocations.
5304         Patch by Geoff Keating <geoffk@redhat.com>.
5306 2002-05-26  Bruno Haible  <bruno@clisp.org>
5308         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5309         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5310         All callers changed.
5311         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5312         STANDARD_FROM_LOOP_ERR_HANDLER.
5313         (utf8_internal_loop): Likewise.
5314         (ucs2_internal_loop): Likewise.
5315         (internal_ucs2_loop): Perform error handling like in
5316         STANDARD_FROM_LOOP_ERR_HANDLER.
5317         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5318         in STANDARD_FROM_LOOP_ERR_HANDLER.
5319         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5320         handling.
5321         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5322         in STANDARD_FROM_LOOP_ERR_HANDLER.
5323         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5324         handling.
5325         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5326         in STANDARD_FROM_LOOP_ERR_HANDLER.
5327         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5328         handling.
5329         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5330         STANDARD_FROM_LOOP_ERR_HANDLER.
5331         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5332         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5333         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5334         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5335         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5336         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5337         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5338         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5339         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5340         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5341         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5342         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5343         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5344         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5345         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5346         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5347         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5348         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5349         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5350         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5351         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5352         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5353         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5354         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5355         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5356         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5357         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5358         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5359         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5360         an error, still set result = __GCONV_ILLEGAL_INPUT.
5361         (BODY for TO_LOOP): Likewise.
5362         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5363         STANDARD_FROM_LOOP_ERR_HANDLER.
5364         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5365         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5366         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5367         handling.
5368         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5369         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5370         STANDARD_FROM_LOOP_ERR_HANDLER.
5371         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5372         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5373         STANDARD_FROM_LOOP_ERR_HANDLER.
5374         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5375         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5376         STANDARD_FROM_LOOP_ERR_HANDLER.
5377         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5378         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5379         STANDARD_FROM_LOOP_ERR_HANDLER.
5380         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5381         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5382         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5383         handling.
5384         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5385         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5386         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5387         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5389 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5391         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5392         labels in assembler instructions.
5394 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5396         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5397         not enough content is available.
5398         * libio/tst-eof.c: New file.
5399         * libio/Makefile (tests): Add tst-eof.
5401         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5402         update atime.
5403         * libio/tst-atime.c: New file.
5404         * libio/Makefile (tests): Add tst-atime.
5406         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5407         handling of overly long words.
5409 2002-06-25  Andreas Jaeger  <aj@suse.de>
5411         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5412         to not use 32-bit pc relative relocations.
5413         (elf_machine_dynamic): Likewise.
5415 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5417         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5418         (__GETDENTS): Check for failed getdents64 syscall.
5419         * dirent/Makefile (tests): Add bug-readdir1.
5420         * dirent/bug-readdir1.c: New file.
5422 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5424         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5425         lookups.
5426         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5427         code.  Print TLS modid and offset for modules containing PT_TLS
5428         segments.
5430 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5432         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5433         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5434         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5435         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5437 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5439         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5440         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5441         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5442         * nss/getXXent_r.c (NEW, NEW1): Define.
5443         (NEW (REENTRANT_GETNAME)): Strong alias to
5444         INTERNAL (REENTRANT_GETNAME).
5445         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5447 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5449         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5450         (_IO_file_jumps_mmap): Use it.
5451         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5452         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5453         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5454         prototype.
5455         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5456         (_IO_wfile_jumps_mmap): Don't use it anymore.
5457         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5458         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5459         _IO_wdefault_setbuf.
5460         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5461         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5462         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5464 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5466         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5467         * libio/tst-mmap-setvbuf.c: New test.
5469 2002-06-21  Andreas Jaeger  <aj@suse.de>
5471         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5473 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5475         * include/unistd.h (__fork_internal): Remove.
5476         (__fork): Don't define to __fork_internal.
5477         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5478         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5479         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5480         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5481         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5483 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5485         * po/hr.po: New file.
5487 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5489         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5490         Reported by Michael Meissner <meissner@redhat.com>.
5492 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5494         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5495         Patch by Hans Boehm <hans_boehm@hp.com>.
5497 2002-06-20  Andreas Jaeger  <aj@suse.de>
5499         * math/libm-test.inc: Use exact values as input parameters,
5500         compute output parameters with 36 digits for 128-bit long doubles.
5501         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5502         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5503         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5505 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5507         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5508         argument or result is subnormal.
5510 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5512         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5513         quotient.
5514         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5515         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5517         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5519 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5521         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5522         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5523         Reported by Peter A. Buhr.
5525 2002-06-15  Roland McGrath  <roland@frob.com>
5527         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5528         warning.
5530         * sysdeps/mach/hurd/getcwd.c
5531         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5533         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5534         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5536         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5537         jump to local subroutine.
5539 2002-06-14  Roland McGrath  <roland@frob.com>
5541         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5542         * sysdeps/mach/hurd/Makeconfig: ... here.
5544 2002-06-13  Andreas Schwab  <schwab@suse.de>
5546         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5547         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5548         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5550 2002-06-13  Roland McGrath  <roland@frob.com>
5552         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5553         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5554         Use intptr_t instead of int for argc in stack layout.
5555         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5556         (_dl_init_first): Likewise.
5557         (_hurd_stack_setup): Likewise.
5558         (init1): Add a cast.
5559         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5561         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5562         argument to pfinet_siocgifconf RPC.
5564 2002-06-13  Andreas Schwab  <schwab@suse.de>
5566         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5567         expansion order.
5569 2002-06-12  Roland McGrath  <roland@frob.com>
5571         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5572         if already defined.
5573         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5574         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5576 2002-06-11  Roland McGrath  <roland@frob.com>
5578         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5579         file on [!RTLD_STAT64].
5580         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5582         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5583         (__fdopen): Use INTUSE.
5584         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5586         * stdio-common/tmpfile64.c: File removed.
5587         * sysdeps/generic/tmpfile64.c: New file.
5588         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5589         if not already defined.
5590         (tmpfile): Use it in place of __GT_FILE.
5592         * include/unistd.h: Declare __chown_internal.
5594         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5595         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5597 2002-06-09  Roland McGrath  <roland@frob.com>
5599         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5600         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5601         value of HURD_INTERFACE_VERSION >= 20020609.
5602         * sysdeps/mach/hurd/configure: Regenerated.
5603         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5604         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5605         convert a struct stat64 into a struct stat and return 0 or -1
5606         with errno set to EOVERFLOW.
5607         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5608         for struct statfs64 to struct statfs.
5609         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5610         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5611         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5612         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5613         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5614         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5615         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5616         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5617         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5618         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5619         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5620         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5621         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5622         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5623         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5624         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5625         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5626         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5627         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5628         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5629         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5630         Use struct stat64 for io_stat argument.
5631         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5632         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5633         to io_seek.
5634         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5635         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5636         * hurd/hurd/fd.h: Update decls.
5637         * sysdeps/mach/hurd/getcwd.c
5638         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5639         and struct dirent64.
5640         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5641         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5642         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5643         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5645 2002-06-08  Roland McGrath  <roland@frob.com>
5647         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5648         instead of unsigned long int for __allocation and __size members.
5650 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5652         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5653         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5654         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5655         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5657 2002-06-07  Roland McGrath  <roland@frob.com>
5659         * sysdeps/mach/hurd/bits/environments.h: File removed.
5661 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5663         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5664         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5665         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5666         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5667         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5668         (sendfile64): Likewise.
5669         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5670         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5671         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5672         Likewise.
5673         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5675         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5676         already defined.
5678 2002-06-04  Bruno Haible  <bruno@clisp.org>
5680         * sysdeps/cris/stackinfo.h: New file.
5682         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5683         to an integer type before performing bit operations on it.
5685 2002-06-05  Roland McGrath  <roland@frob.com>
5687         * sysdeps/generic/sendfile.c: Include <errno.h>.
5688         * sysdeps/generic/sendfile64.c: Likewise.
5690         * io/Makefile (routines): Add sendfile and sendfile64.
5691         (headers): Add sys/sendfile.h to the list.
5692         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5693         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5694         * io/sys/sendfile.h: ... here.
5695         * sysdeps/generic/sendfile.c: New file.
5696         * sysdeps/generic/sendfile64.c: New file.
5698         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5699         Move sendfile, sendfile64 to ...
5700         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5701         * sysdeps/mach/hurd/sendfile.c: New file.
5702         * sysdeps/mach/hurd/sendfile64.c: New file.
5704         * sysdeps/mach/nanosleep.c: New file.
5706 2002-06-04  Roland McGrath  <roland@frob.com>
5708         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5709         * sysdeps/alpha/elf/configure: New file (generated).
5711 2002-06-02  Roland McGrath  <roland@frob.com>
5713         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5715 2002-06-01  Roland McGrath  <roland@frob.com>
5717         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5718         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5720 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5722         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5723         Add nsmap.
5724         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5725         Remove nstimes setting.
5726         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5727         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5728         there is mix of IPv6 and IPv4 nameservers.
5729         Use nsmap array to find free slots and preserve nameserver ordering.
5730         Fix RES_ROTATE.
5732 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5734         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5735         use this header with LFS.
5737         * po/sk.po: Update from translation team.
5739 2002-05-28  Andreas Schwab  <schwab@suse.de>
5741         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5742         message when finding object of wrong class.
5744 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5746         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5747         Patch by <radu@netsoft.ro>.
5749 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5751         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5752         Add readahead.
5753         * sysdeps/unix/sysv/linux/readahead.c: New file.
5754         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5755         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5756         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5757         Add sendfile64 alias to sendfile syscall.
5758         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5759         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5760         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5761         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5762         syscall.
5764         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5765         special section for PIC register loading.
5766         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5768         * config.h.in: Define HAVE_HIDDEN.
5769         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5771         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5773 2002-05-28  Roland McGrath  <roland@frob.com>
5775         * sysdeps/mach/alpha/setfpucw.c: New file.
5777 2002-05-26  Roland McGrath  <roland@frob.com>
5779         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5780         Use integer_t instead of int for IOC_VOID case.
5782 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5784         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5786 2002-05-26  Bruno Haible  <bruno@clisp.org>
5788         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5789         end of the ISO-8859-7 from idx table.
5791 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5793         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5795 2002-05-24  David S. Miller  <davem@redhat.com>
5797         * string/bits/string2.h (memset): Do not try to optimize when
5798         not _STRING_ARCH_unaligned if GCC will do the right thing.
5800 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5802         * posix/regex.c: Define `inline' as a macro into nothing for the
5803         compilers which lack the keyword.
5804         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5805         for the compatibility of gawk.
5806         * posix/regcomp.c: Add fake implementation of isblank() for the
5807         environments which lack the function.
5808         Don't use free_charset() in case of non-i18n envs.
5809         (build_range_exp): Don't use i18n related code in case of non-i18n
5810         envs.
5811         (build_collating_symbol): Likewise.
5812         (build_equiv_class): Likewise.
5813         (build_charclass): Likewise.
5814         (re_compile_fastmap_iter): Likewise.
5815         (parse_bracket_exp): Likewise.
5816         (build_word_op): Likewise.
5817         (regfree): Don't use free_charset() in case of non-i18n envs.
5818         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5819         re_token_type_t in case of non-i18n envs.
5820         Don't define re_charset_t in case of non-i18n envs.
5821         Change the type of wcs of re_string_t from wchar_t to wint_t,
5822         since we store also WEOF.
5823         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5824         the type of wcs of re_string_t from wchar_t to wint_t.
5825         (re_string_reconstruct): Likewise.
5826         (create_ci_newstate): Don't use i18n related code in case of
5827         non-i18n envs.
5828         (create_cd_newstate): Likewise.
5830 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5832         * iconv/loop.c: Fix typo.
5834 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5836         * inet/ether_line.c (ether_line): Fix a typo causing only
5837         lower 4 bits of each ethernet address byte being assigned.
5838         Don't modify what line points to.
5839         * inet/tst-ether_aton.c (main): Add ether_line tests.
5841 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5843         * manual/filesys.texi: Don't make readlink example leak memory
5844         when readlink fails.
5846 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5848         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5849         some more security checks.
5851 2002-05-17  David S. Miller  <davem@redhat.com>
5853         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5855 2002-05-16  David S. Miller  <davem@redhat.com>
5857         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5858         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5859         (elf_machine_load_address): Likewise.
5860         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5862         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5863         is unaligned, do not forget to fully initialize %g1 magic value.
5865         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5866         register definitions and provide 32-bit variants of structures
5867         during 64-bit builds.
5869         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5870         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5871         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5872         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5873         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5874         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5875         Do not clear implicit one bit here, it must be done post-rounding.
5876         Only pad to the left using left shift if value uses less than the
5877         available fractional bits.
5879 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5881         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5882         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5883         (shared-only-routines): Likewise.
5884         * sysdeps/powerpc/libgcc-compat.c: New file.
5885         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5886         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5887         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5888         * sysdeps/wordsize-32/shdi3.c: Removed.
5890 2002-05-16  Bruno Haible  <bruno@clisp.org>
5892         * MakeTAGS (libc.pot): Don't sort the output.
5893         * po/header.pot: Update to match xgettext 0.11 output.
5895 2002-05-16  Bruno Haible  <bruno@clisp.org>
5897         * MakeTAGS (subdirs): Remove duplicates.
5899 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5901         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5902         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5903         alias.
5905 2002-05-19  Andreas Jaeger  <aj@suse.de>
5907         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5908         installation in /usr/local.
5910 2002-05-16  Bruno Haible  <bruno@clisp.org>
5912         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5913         string as argument of #error.
5915 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5917         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5918         don't define static.  Remove old __realpath function.  TC1 of
5919         POSIX 2001 will allow the second parameter to be NULL.
5920         * stdlib/test-canon.c: Comment out test for NULL as second
5921         parameter of realpath.
5923         * time/offtime.c (__offtime): Set errno if overflow is detected.
5925         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5926         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5927         dl-brk and dl-sbrk.
5929         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5930         (fdimf): Likewise.
5932 2002-05-15  Roland McGrath  <roland@frob.com>
5934         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5936 2002-05-12  Bruno Haible  <bruno@clisp.org>
5938         * iconvdata/testdata/EUC-JISX0213: New file.
5939         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5940         * iconvdata/testdata/SHIFT_JISX0213: New file.
5941         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5942         * iconvdata/testdata/ISO-2022-JP-3: New file.
5943         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5944         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5945         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5946         contains comments indicating precomposed characters.
5948 2002-04-21  Bruno Haible  <bruno@clisp.org>
5950         * iconvdata/iso-2022-jp-3.c: New file.
5951         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5952         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5953         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5954         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5955         (distribute): Add iso-2022-jp-3.c.
5957 2002-05-12  Bruno Haible  <bruno@clisp.org>
5959         * iconvdata/tst-table-to.c (main): Restore handling of
5960         transliterations, broken by last patch.
5962 2002-05-12  Bruno Haible  <bruno@clisp.org>
5964         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5966 2002-05-12  Bruno Haible  <bruno@clisp.org>
5968         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5969         when there is not enough room in the output buffer.
5970         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5972 2002-04-20  Bruno Haible  <bruno@clisp.org>
5974         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5975         macros.
5976         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5977         Also make this macro work if FROM_DIRECTION evaluates to 0.
5978         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5979         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5980         of consume_incomplete.
5981         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5982         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5983         4, not 8.
5984         * iconvdata/cp1258.c: Likewise.
5985         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5986         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5987         not 2.
5988         * iconvdata/ibm933.c: Likewise.
5989         * iconvdata/ibm935.c: Likewise.
5990         * iconvdata/ibm937.c: Likewise.
5991         * iconvdata/ibm939.c: Likewise.
5992         * iconvdata/iso-2022-cn.c: Define
5993         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5994         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5995         * iconvdata/iso-2022-cn-ext.c: Likewise.
5996         * iconvdata/iso-2022-jp.c: Define
5997         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5998         {MIN,MAX}_NEEDED_{FROM,TO}.
5999         * iconvdata/tcvn5712-1.c: Define
6000         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6001         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6002         * iconvdata/euc-jisx0213.c: Define
6003         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6004         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6005         * iconvdata/shift_jisx0213.c: Likewise.
6007 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6009         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6010         shdi3, fixdfdi, fixsfdi in csu dir.
6011         (shared-only-routines): Likewise.
6012         * sysdeps/wordsize-32/cmpdi2.c: New file.
6013         * sysdeps/wordsize-32/shdi3.c: New file.
6014         * sysdeps/wordsize-32/fixdfdi.c: New file.
6015         * sysdeps/wordsize-32/fixsfdi.c: New file.
6016         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6017         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6018         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6020         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6021         Only use va_arg if the argument will be used [PR libc/3259].
6023 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6025         * catgets/catgets.c (catopen): Free buffer if internal catalog
6026         open fails.
6028 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6030         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6031         non-buffering methods.
6032         * debug/pcprofiledump.c: Implement -u option.
6033         Patch by Roger Luethi <rl@hellgate.ch>.
6035 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6037         * include/netinet/in.h (bindresvport_internal): Add prototype.
6038         * include/rpc/auth.h  (authunix_create_internal,
6039         authunix_create_default_internal, authnone_create_internal,
6040         authdes_pk_create_internal): Add prototypes.
6041         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6042         clntudp_create_internal, clntudp_bufcreate_internal,
6043         clntunix_create_internal): Add prototypes.
6044         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6045         svc_getreq_internal, svc_getreq_common_internal,
6046         svc_getreqset_internal, svc_getreq_poll_internal,
6047         svc_register_internal, svc_unregister_internal,
6048         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6049         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6050         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6051         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6052         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6053         * inet/rcmd.c (rcmd_af): Use __listen.
6054         (rresvport_af): Use __bind.
6055         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6056         authunix_create, authunix_create_default, authnone_create,
6057         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6058         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6059         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6060         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6061         _authenticate, add INTDEF after such function definitions.
6062         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6063         __setsockopt, __getsockname instead of non-__ variants.
6064         * sunrpc/pmap_rmt.c: Likewise.
6065         * sunrpc/rtime.c: Likewise.
6066         * sunrpc/svc_udp.c: Likewise.
6067         * sunrpc/clnt_unix.c: Likewise.
6068         * sunrpc/svc_unix.c: Likewise.
6069         * sunrpc/bindrsvprt.c: Likewise.
6070         * sunrpc/svc_tcp.c: Likewise.
6071         * sunrpc/auth_none.c: Likewise.
6072         * sunrpc/clnt_raw.c: Likewise.
6073         * sunrpc/clnt_tcp.c: Likewise.
6074         * sunrpc/auth_unix.c: Likewise.
6075         * sunrpc/key_call.c: Likewise.
6076         * sunrpc/clnt_gen.c: Likewise.
6077         * sunrpc/pm_getmaps.c: Likewise.
6078         * sunrpc/clnt_simp.c: Likewise.
6079         * sunrpc/pmap_clnt.c: Likewise.
6080         * sunrpc/svc_run.c: Likewise.
6081         * sunrpc/svc.c: Likewise.
6082         * sunrpc/svc_simple.c: Likewise.
6083         * sunrpc/pm_getport.c: Likewise.
6084         * sunrpc/auth_des.c: Likewise.
6085         * sunrpc/svc_auth.c: Likewise.
6086         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6087         __register_frame_info_table_bases, __deregister_frame_info_bases):
6088         Add INTDEF.
6089         (__register_frame_info_bases_internal,
6090         __register_frame_info_table_bases_internal,
6091         __deregister_frame_info_bases_internal): Add prototypes.
6092         (__register_frame_info, __register_frame): Use INTUSE in call to
6093         __register_frame_info_bases.
6094         (__register_frame_info_table): Similarly.
6095         (__deregister_frame_info, __deregister_frame): Similarly.
6096         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6097         sendto as weak alias.
6098         * sysdeps/mach/hurd/sendto.c: Likewise.
6099         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6100         recvfrom as weak alias.
6101         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6102         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6103         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6104         recvmsg as weak alias.
6105         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6106         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6107         sendmsg as weak alias.
6108         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6109         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6110         setsockopt, add setsockopt as weak alias.
6111         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6112         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6113         weak alias.
6114         * sysdeps/mach/hurd/bind.c: Likewise.
6115         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6116         as weak alias.
6117         * sysdeps/mach/hurd/listen.c: Likewise.
6118         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6119         getsockname, add getsockname as weak alias.
6120         * sysdeps/mach/hurd/getsockname.c: Likewise.
6121         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6122         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6123         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6124         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6125         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6126         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6127         Add aliases.
6128         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6129         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6130         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6131         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6132         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6133         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6134         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6135         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6136         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6137         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6138         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6139         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6141 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6143         * locale/programs/localedef.h (show_archive_content): Add verbose
6144         argument.
6145         * locale/programs/localedef.c (main): Adjust caller.
6146         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6147         types.
6148         (nameentcmp, dataentcmp): New functions.
6149         (xstrcmp): Remove.
6150         (show_archive_content): Print verbose listing with --list-archive -v.
6152 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6154         * locale/programs/locarchive.c (open_archive): Take extra argument
6155         readonly.  If true open file with O_RDONLY and don't create the
6156         archive if it doesn't exist.
6157         Adapt all callers.
6158         (close_archive): Don't do anything if fd element is -1.
6159         * locale/programs/localedef.h (open_archive): Adjust prototype.
6160         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6161         call.
6163         * malloc/malloc.c (__posix_memalign): Correct check for size of
6164         alignment value [PR libc/3444].
6166         * include/stdio.h: Remove references to old stdio implementation.
6168         * libio/Makefile (bug-ungetwc2-ENV): Define.
6170 2002-05-13  Roland McGrath  <roland@frob.com>
6172         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6174         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6176 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6178         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6179         Allocate three, not two, more than LEN when appending '/.'.
6180         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6181         if NAME ends with '/.' if it is shorter than 2 chars.
6183 2002-05-12  Roland McGrath  <roland@frob.com>
6185         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6186         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6188         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6189         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6191 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6193         * sysdeps/ia64/Makefile: Remove extra endif.
6194         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6196 2002-05-10  Andreas Schwab  <schwab@suse.de>
6198         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6200 2002-05-09  Andreas Jaeger  <aj@suse.de>
6202         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6203         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6204         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6206         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6207         * sysdeps/wordsize-64/glob.c: ...here.
6208         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6209         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6210         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6212 2002-05-08  Roland McGrath  <roland@frob.com>
6214         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6215         O_NOTRANS flag in "." lookup.
6217 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6219         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6221 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6223         * locale/duplocale.c (__duplocale): Update special members only
6224         when allocation succeeded.
6226 2002-05-03  Roland McGrath  <roland@frob.com>
6228         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6229         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6231 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6233         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6234         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6235         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6236         * sysdeps/ia64/ia64libgcc.S: New file.
6238 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6240         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6242         * malloc/memusage.c: Distinguish anonymous mmap.
6244 2002-05-01  Roland McGrath  <roland@frob.com>
6246         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6247         and use INTDEF on it.
6248         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6250         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6252         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6254 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6256         * malloc/memusage.c: Add support for tracking mmap & friends.
6257         * malloc/memusage.sh: Implement -m/--mmap option.
6259 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6261         * locale/programs/locarchive.c (create_archive): Add archivefname
6262         argument, create fname from it.
6263         (enlarge_archive): Honour output_prefix.
6264         (open_archive): Likewise.
6266 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6268         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6269         too many stpcpy macros.
6271 2002-04-26  Bruno Haible  <bruno@clisp.org>
6273         * locale/programs/ld-collate.c (collate_read): Cast first argument
6274         for "%.*s" to int.
6276 2002-04-26  Bruno Haible  <bruno@clisp.org>
6278         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6279         __dcngettext_internal): New declarations.
6280         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6281         attribute declarations.
6283 2002-04-30  Roland McGrath  <roland@frob.com>
6285         Removed old GNU stdio implementation; GNU libio is now the only option.
6286         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6287         Define USE_IN_LIBIO unconditionally.
6288         * configure: Regenerated.
6289         * Makeconfig (stdio): Set to libio by default.
6290         * config.make.in (stdio): Variable removed.
6291         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6292         * sysdeps/unix/sysv/linux/configure: Regenerated.
6293         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6294         * sysdeps/mach/hurd/configure: Regenerated.
6295         * stdio/.cvsignore: File removed.
6296         * stdio/Makefile: File removed.
6297         * stdio/Versions: File removed.
6298         * stdio/__fbufsize.c: File removed.
6299         * stdio/__flbf.c: File removed.
6300         * stdio/__fpending.c: File removed.
6301         * stdio/__fpurge.c: File removed.
6302         * stdio/__freadable.c: File removed.
6303         * stdio/__freading.c: File removed.
6304         * stdio/__fsetlocking.c: File removed.
6305         * stdio/__fwritable.c: File removed.
6306         * stdio/__fwriting.c: File removed.
6307         * stdio/clearerr.c: File removed.
6308         * stdio/fclose.c: File removed.
6309         * stdio/fcloseall.c: File removed.
6310         * stdio/feof.c: File removed.
6311         * stdio/ferror.c: File removed.
6312         * stdio/fflush.c: File removed.
6313         * stdio/fgetc.c: File removed.
6314         * stdio/fgetpos.c: File removed.
6315         * stdio/fgets.c: File removed.
6316         * stdio/fileno.c: File removed.
6317         * stdio/fmemopen.c: File removed.
6318         * stdio/fopen.c: File removed.
6319         * stdio/fopncook.c: File removed.
6320         * stdio/fputc.c: File removed.
6321         * stdio/fputs.c: File removed.
6322         * stdio/fread.c: File removed.
6323         * stdio/freopen.c: File removed.
6324         * stdio/fseek.c: File removed.
6325         * stdio/fsetpos.c: File removed.
6326         * stdio/ftell.c: File removed.
6327         * stdio/fwrite.c: File removed.
6328         * stdio/getc.c: File removed.
6329         * stdio/getchar.c: File removed.
6330         * stdio/getdelim.c: File removed.
6331         * stdio/gets.c: File removed.
6332         * stdio/glue.c: File removed.
6333         * stdio/internals.c: File removed.
6334         * stdio/linewrap.c: File removed.
6335         * stdio/linewrap.h: File removed.
6336         * stdio/memstream.c: File removed.
6337         * stdio/newstream.c: File removed.
6338         * stdio/obstream.c: File removed.
6339         * stdio/putc.c: File removed.
6340         * stdio/putchar.c: File removed.
6341         * stdio/puts.c: File removed.
6342         * stdio/rewind.c: File removed.
6343         * stdio/setbuf.c: File removed.
6344         * stdio/setbuffer.c: File removed.
6345         * stdio/setlinebuf.c: File removed.
6346         * stdio/setvbuf.c: File removed.
6347         * stdio/stdio.h: File removed.
6348         * stdio/ungetc.c: File removed.
6349         * stdio/vasprintf.c: File removed.
6350         * stdio/vscanf.c: File removed.
6351         * stdio/vsnprintf.c: File removed.
6352         * stdio/vsprintf.c: File removed.
6353         * stdio/vsscanf.c: File removed.
6354         * sysdeps/generic/defs.c: File removed.
6355         * sysdeps/generic/fdopen.c: File removed.
6356         * sysdeps/generic/pipestream.c: File removed.
6357         * sysdeps/generic/stdio_init.c: File removed.
6358         * sysdeps/generic/sysd-stdio.c: File removed.
6359         * sysdeps/generic/vdprintf.c: File removed.
6360         * sysdeps/mach/hurd/defs.c: File removed.
6361         * sysdeps/mach/hurd/fdopen.c: File removed.
6362         * sysdeps/mach/hurd/pipestream.c: File removed.
6363         * sysdeps/mach/hurd/stdio_init.c: File removed.
6364         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6365         * sysdeps/mach/hurd/vdprintf.c: File removed.
6366         * sysdeps/posix/defs.c: File removed.
6367         * sysdeps/posix/fdopen.c: File removed.
6368         * sysdeps/posix/pipestream.c: File removed.
6369         * sysdeps/posix/stdio_init.c: File removed.
6370         * sysdeps/posix/vdprintf.c: File removed.
6371         * sysdeps/unix/pipestream.c: File removed.
6372         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6373         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6374         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6376 2002-04-29  Roland McGrath  <roland@frob.com>
6378         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6380 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6382         * sysdeps/generic/tls.h: Describe what must be defined.
6384         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6385         glob_in_dir [PR libc/3385].
6386         * posix/globtest.sh: Add test case.
6388         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6389         //TRANSLIT twice.
6391 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6393         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6394         _internal symbol handling.
6395         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6397 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6399         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6400         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6402 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6404         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6405         not _LIBC and RE_ENABLE_I18N.
6406         (build_range_exp): Implement for not _LIBC.
6407         (build_collating_symbol): Likewise.
6408         (parse_bracket_exp): Unify redundant error handlings.
6409         Don't erase mbcset for non matching list in multibyte envs.
6410         (build_word_op): Add '_' to matching list for \w operator.
6411         * posix/regex_internal.c (re_string_construct): Invoke
6412         build_upper_buffer in case of not RE_ENABLE_I18N.
6413         (re_string_reconstruct): Don't touch cur_state in case of not
6414         RE_ENABLE_I18N.
6415         * posix/regex_internal.h (attribute_hidden): New macro in case of
6416         not _LIBC.
6417         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6418         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6419         RE_ENABLE_I18N.
6420         (transit_state_mb): Likewise.
6421         (check_node_accept_bytes): Implement the code evaluating range
6422         expression in case of not _LIBC.
6423         (find_collation_sequence_value): Hide in case of not _LIBC.
6425 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6427         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6428         i386/semctl.c.
6429         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6430         be used.
6432 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6434         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6436         * sysdeps/ia64/strncpy.S: Fix recovery code.
6437         Patch by David Mosberger <davidm@hpl.hp.com>.
6439 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6441         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6442         GLIBC_2.2.6.
6444 2002-04-14  Bruno Haible  <bruno@clisp.org>
6446         * posix/regex.c (re_max_failures): Add back symbol for binary
6447         compatibility.
6449 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6451         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6452         of buffer building functions.
6453         * posix/regex_internal.c (re_string_allocate): New function.
6454         (re_string_realloc_buffers): New function.
6455         (re_string_skip_chars): New function.
6456         (re_string_reconstruct): New function.
6457         (re_string_construct): Adapt it to new interface of buffer building
6458         functions.
6459         (re_string_construct_common): Likewise.
6460         (build_wcs_buffer): Likewise.
6461         (build_wcs_upper_buffer): Likewise.
6462         (build_upper_buffer): Likewise.
6463         (re_string_translate_buffer): Likewise.
6464         (re_string_context_at): Adapt it to variable length buffers.
6465         * posix/regex_internal.h (re_string_t): Add new fields to handle
6466         variable length buffers.
6467         (re_match_context_t): Likewise.
6468         * posix/regexec.c (re_search_internal): Adapt it to new interface
6469         of re_string_t and re_match_context_t.
6470         (acquire_init_state_context): Likewise.
6471         (check_matching): Likewise.
6472         (check_halt_state_context): Likewise.
6473         (proceed_next_node): Likewise.
6474         (set_regs): Likewise.
6475         (sift_states_backward): Likewise.
6476         (clean_state_log_if_need): Likewise.
6477         (sift_states_iter_mb): Likewise.
6478         (sift_states_iter_bkref): Likewise.
6479         (add_epsilon_backreference): Likewise.
6480         (transit_state): Likewise.
6481         (transit_state_sb): Likewise.
6482         (transit_state_mb): Likewise.
6483         (transit_state_bkref): Likewise.
6484         (transit_state_bkref_loop): Likewise.
6485         (check_node_accept): Likewise.
6486         (match_ctx_init): Likewise.
6487         (extend_buffers): New function.
6489 2002-04-21  Bruno Haible  <bruno@clisp.org>
6491         * iconvdata/tst-table.sh: For the second check, use the truncated
6492         GB18030 charmap table, like for the first check.
6494 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6496         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6497         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6499 2002-04-23  H.J. Lu  <hjl@gnu.org>
6501         * include/math.h (isfinite): Fix a typo.
6503 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6505         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6506         which is created by the test suite.
6508 2002-04-20  Bruno Haible  <bruno@clisp.org>
6510         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6511         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6513 2002-04-20  Bruno Haible  <bruno@clisp.org>
6515         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6516         to avoid gcc warning.
6518 2002-04-20  Bruno Haible  <bruno@clisp.org>
6520         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6521         of data->__statep->__count.
6523 2002-04-20  Bruno Haible  <bruno@clisp.org>
6525         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6526         tag characters.
6527         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6529 2002-04-24  Roland McGrath  <roland@frob.com>
6531         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6532         use END macro instead of our own .end directive.
6533         Use `callsys' insn mnemonic instead of `call_pal'.
6535         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6537         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6538         macro; we need this for Hurd.
6540         Log entry was missing for 2002/03/24 commit of rev 1.8,
6541         goes with 2002-03-17 changes.
6542         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6543         (sysdep_routines): Append ioperm here.
6544         (sysdep_headers): Append sys/io.h here.
6546 2002-04-23  Roland McGrath  <roland@frob.com>
6548         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6549         * sysdeps/mach/hurd/sendto.c: Likewise.
6550         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6551         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6552         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6554 2002-04-22  Roland McGrath  <roland@frob.com>
6556         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6557         failure from i386_io_perm_* RPCs to ENOSYS.
6559 2002-04-22  Andreas Jaeger  <aj@suse.de>
6561         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6563         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6565         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6566         register instead of destroying %rbx.
6568 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6570         * string/string.h: Declare strerror_r also for XPG6.
6572 2002-04-19  Roland McGrath  <roland@frob.com>
6574         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6576 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6578         * Makefile: Add handling of xtests and xcheck targets.
6579         * MakeTAGS: Likewise.
6580         * Makeconfig: Likewise.
6581         * Makerules: Likewise.
6582         * Rules: Likewise.
6583         * manual/Makefile: Likewise.
6584         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6585         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6587 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6589         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6590         authnone_private_s.
6591         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6592         Delete #ifdef _RPC_THREAD_SAFE_ block.
6593         (authnone_private): Make a struct, not a pointer to struct.
6594         (authnone_private_guard): New once-control variable.
6595         (authnone_create_once): New function, split out of
6596         authnone_create.  No need to allocate memory.
6597         (authnone_create): Just call authnone_create_once via
6598         __libc_once, then return &authnone_private->no_client.
6599         (authnone_marshal): Access private data via CLIENT argument,
6600         not authnone_private pointer.
6601         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6602         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6603         authnone_private_s.
6605 2002-04-12  H.J. Lu  <hjl@gnu.org>
6607         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6609 2002-04-18  Bruno Haible  <bruno@clisp.org>
6611         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6612         FROM_DIRECTION): Make the FROM direction stateless.
6613         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6614         FROM_DIRECTION): Likewise.
6616 2002-04-15  Bruno Haible  <bruno@clisp.org>
6618         * iconvdata/JISX0213.TXT: New file.
6619         * iconvdata/jisx0213.h: New file.
6620         * iconvdata/jisx0213.c: New file.
6621         * iconvdata/euc-jisx0213.c: New file.
6622         * iconvdata/shift_jisx0213.c: New file.
6623         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6624         * iconvdata/EUC-JISX0213.precomposed: New file.
6625         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6626         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6627         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6628         which the "to" direction is stateful.
6629         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6630         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6631         SHIFT_JISX0213.
6632         (libJISX0213-routines): New variable.
6633         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6634         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6635         (LDFLAGS-libJISX0213.so): New variable.
6636         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6637         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6638         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6640 2002-04-15  Bruno Haible  <bruno@clisp.org>
6642         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6643         uint32_t.  Update to Unicode 3.2.
6644         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6645         (BODY for TO_LOOP): Handle the ASCII range specially.
6646         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6647         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6648         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6650 2002-04-15  Bruno Haible  <bruno@clisp.org>
6652         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6653         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6655 2002-04-15  Bruno Haible  <bruno@clisp.org>
6657         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6658         (ucs4_to_cns11643): Update.
6659         * iconvdata/cns11643.c: Update to Unicode 3.2.
6660         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6661         __cns11643_from_ucs4p2_tab): Regenerated.
6662         (__cns11643_from_ucs4p2c_tab): New array.
6663         * iconvdata/cvs11643l1.c: Update comments.
6664         * iconvdata/EUC-TW.irreversible: Remove two entries.
6666 2002-04-15  Bruno Haible  <bruno@clisp.org>
6668         * locale/C-translit.h.in: Update to Unicode 3.2.
6669         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6670         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6672 2002-04-15  Bruno Haible  <bruno@clisp.org>
6674         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6675         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6677 2002-04-15  Bruno Haible  <bruno@clisp.org>
6679         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6680         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6681         always one byte, not 0 bytes in some cases and 2 bytes in others.
6683         * iconvdata/tst-table-from.c (main): Correct the usage message.
6685 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6687         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6688         (parse_dup_op): Fix error handling like "a{}".
6689         (parse_bracket_exp): Add error handling.
6690         (fetch_number): Add error handling for "a{<very_large_number>}".
6692 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6694         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6695         in case that the symbol name is too long.
6696         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6697         in case of REG_ICASE.
6699 2002-04-19  Andreas Jaeger  <aj@suse.de>
6701         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6702         <hartvige@mips.com>.
6704 2002-04-15  H.J. Lu  <hjl@gnu.org>
6706         * include/math.h (__finitel_internal): Declare only if
6707         __NO_LONG_DOUBLE_MATH is not defined.
6708         (__isinfl_internal): Likewise.
6709         (__isnanl_internal): Likewise.
6711         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6712         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6713         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6714         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6715         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6716         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6717         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6719         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6720         __fcntl_internal.
6722         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6723         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6725 2002-04-15  Bruno Haible  <bruno@clisp.org>
6727         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6728         (BODY for TO_LOOP): Likewise.
6729         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6730         * iconvdata/tst-table.sh: Add support for encodings which contain
6731         precomposed Unicode characters, known to the iconv converter in both
6732         directions but not listed in the charmap.
6733         * iconvdata/IBM856.irreversible: New file.
6734         * iconvdata/IBM922.irreversible: New file.
6735         * iconvdata/IBM1132.irreversible: New file.
6736         * iconvdata/IBM1133.irreversible: New file.
6737         * iconvdata/IBM1160.irreversible: New file.
6738         * iconvdata/IBM1161.irreversible: New file.
6739         * iconvdata/IBM1163.irreversible: New file.
6740         * iconvdata/IBM1164.irreversible: New file.
6741         * iconvdata/ARMSCII-8.irreversible: New file.
6742         * iconvdata/TCVN5712-1.precomposed: New file.
6743         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6744         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6745         ARMSCII-8, TCVN5712-1.
6746         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6747         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6748         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6749         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6751 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6753         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6754         for EVENING69.  Include offsets in TZ environment variable.
6756 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6758         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6759         avoid compiler warnings.
6761         * locale/programs/localedef.c (main): Always call
6762         construct_output_path.
6764         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6766         * locale/programs/locfile.c (to_archive): New variable.  To collect
6767         data which has to be added to the locale archive.
6768         (write_all_categories): Take new third parameter with locale name.
6769         Unless no_archive flag set add new locale data to the archive
6770         (write_locale_data): Unless no-archive flag set store generated data
6771         in to_archive data structure instead of generation output file.
6772         Add new parameter with locale category index.
6773         * locale/programs/locfile.h: Add new parameters in declaractions of
6774         write_all_categories and write_locale_data.
6775         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6776         --add-to-archive, and --delete-from-archive options.  Pass extra
6777         parameter to write_all_categories.
6778         * locale/programs/localedef.h: Add prototypes for functions in
6779         locarchive.c.
6780         * locale/locarchive.h: New file.
6781         * locale/programs/locarchive.c: New file.
6782         * locale/Makefile (distribute): Add programs/locarchive.c and
6783         locarchive.h.
6784         (localedef-modules): Add md5 and locarchive.
6785         Add vpath to crypt subdir for md5.c.
6787         * locale/programs/ld-address.c: Pass locale category ID as new second
6788         parameter to write_locale_data.
6789         * locale/programs/ld-collate.c: Likewise.
6790         * locale/programs/ld-ctype.c: Likewise.
6791         * locale/programs/ld-identification.c: Likewise.
6792         * locale/programs/ld-measurement.c: Likewise.
6793         * locale/programs/ld-messages.c: Likewise.
6794         * locale/programs/ld-monetary.c: Likewise.
6795         * locale/programs/ld-name.c: Likewise.
6796         * locale/programs/ld-numeric.c: Likewise.
6797         * locale/programs/ld-paper.c: Likewise.
6798         * locale/programs/ld-telephone.c: Likewise.
6799         * locale/programs/ld-time.c: Likewise.
6801         * locale/simple-hash.c: Move compute_hashval function from here...
6802         * locale/hashval.h: ...to here.  New file.
6803         * locale/simple-hash.h: Add prototype for compute_hashval.
6805         * include/libintl.h: Minor cleanups.
6807 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6809         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6811 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6813         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6815 2002-04-14  Bruno Haible  <bruno@clisp.org>
6817         * locale/programs/charmap.c (charmap_read): Don't access result if
6818         result == NULL.
6820 2002-02-17  Andreas Schwab  <schwab@suse.de>
6822         * elf/reldep7.c: New file.
6823         * elf/reldep7mod1.c: New file.
6824         * elf/reldep7mod2.c: New file.
6825         * elf/Makefile: Add rules to build and run reldep7.
6827 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6829         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6830         the end of the function.  Pass original flags to recursive call if
6831         add_dependency failed.
6832         (_dl_lookup_versioned_symbol): Likewise.
6834 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6836         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6837         early, but check whether it overflowed afterwards.
6838         * time/tst-mktime.c (main): Add new tests.
6840 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6842         * debug/xtrace.sh: Fix program name in help message.
6843         Patch by Roger Luethi <rl@hellgate.ch>.
6845         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6846         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6847         NOT_IN_libc.
6848         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6849         * sysdeps/mach/hurd/lxstat.c: Likewise.
6850         * sysdeps/unix/common/lxstat.c: Likewise.
6851         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6852         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6853         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6854         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6855         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6856         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6857         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6858         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6859         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6861         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6862         prototypes.  Add __mbrlen and __mbrtowc macros.
6863         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6864         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6866         * include/unistd.h: Add prototype for __write_internal and add
6867         __libc_write macro is SHARED.
6868         * sysdeps/generic/write.c: Use INTDEF for __write.
6869         * sysdeps/mach/hurd/write.c: Likewise.
6870         * sysdeps/unix/sysv/aix/write.c: Likewise.
6871         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6873         * assert/assert.c: Replace STR_N_SIZE with something usable in
6874         macro arguments.
6875         * assert/assert-perr.c: Likewise.
6877         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6878         SA_LEN macro to use it if not NOT_IN_libc.
6879         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6881         * include/fcntl.h: Declare __open_internal and define __open and
6882         __libc_open macros if not NOT_IN_libc.
6883         * sysdeps/generic/open.c: Use INTDEF for __open.
6884         * sysdeps/mach/hurd/open.c: Likewise.
6885         * sysdeps/unix/sysv/aix/open.c: Likewise.
6886         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6888         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6889         has correct number.
6891         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6892         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6893         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6894         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6896         * include/wctype.h: Declare __iswalpha_l_internal,
6897         __iswdigit_l_internal, __iswspace_l_internal,
6898         __iswxdigit_l_internal, and __iswctype_internal.  Define
6899         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6900         __iswxdigit_l macros if not NOT_IN_libc.
6901         * wctype/iswctype.c: Use INTDEF for __iswctype.
6902         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6904         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6905         __isnan_internal, and __isnanl_internal.
6906         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6907         __isnan, and __isnanl.
6908         * stdio-common/printf_size.c: Likewise.
6909         * sysdeps/generic/printf_fphex.c: Likewise.
6910         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6911         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6912         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6913         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6914         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6915         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6916         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6917         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6918         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6919         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6920         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6921         * sysdeps/m68k/s_isinfl.c: Likewise.
6922         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6923         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6925         * include/sys/time.h: Declare __gettimeofday_internal and define
6926         __gettimeofday macro if not NOT_IN_libc.
6927         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6928         * sysdeps/mach/gettimeofday.c: Likewise.
6929         * sysdeps/posix/gettimeofday.c: Likewise.
6930         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6931         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6932         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6933         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6935         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6936         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6937         Remove __lstat and __fstat inline functions.
6938         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6939         * sysdeps/mach/hurd/fxstat.c: Likewise.
6940         * sysdeps/unix/fxstat.c: Likewise.
6941         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6942         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6943         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6944         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6945         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6946         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6947         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6948         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6949         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6951         * include/unistd.h: Declare __getpid_internal and define
6952         __getpid macro if not NOT_IN_libc.
6953         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6954         * sysdeps/generic/getpid.c: Likewise.
6955         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6956         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6958         * include/unistd.h: Declare __getpgid_internal and define
6959         __getpgid macro if not NOT_IN_libc.
6960         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6961         * sysdeps/mach/hurd/getpgid.c: Likewise.
6962         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6963         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6964         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6965         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6967         * include/unistd.h: Declare __getpagesize_internal and define
6968         __getpagesize macro if not NOT_IN_libc.
6969         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6970         __getpagesize.
6971         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6972         * sysdeps/mach/getpagesize.c: Likewise.
6973         * sysdeps/posix/getpagesize.c: Likewise.
6974         * sysdeps/unix/getpagesize.c: Likewise.
6975         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6976         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6977         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6978         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6980 2002-04-13  Andreas Jaeger  <aj@suse.de>
6982         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6983         as clobber to reduce register pressure.
6984         (__strpbrk_cg): Likewise.
6985         (__mempcpy_by4): Likewise.
6986         (__strstr_cg): Likewise.
6987         Add prototype for __memrchr.
6989 2002-04-13  Andreas Schwab  <schwab@suse.de>
6991         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6992         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6993         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6995 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6997         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6998         check whether the caller prefers getting the most recent version of
6999         a symbol of the earliest version.
7000         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7001         _dl_do_lookup to also take the new parameter and pass it on.
7002         Change 'explicit' parameter of _dl_lookup_symbol and
7003         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7004         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7005         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7006         _dl_lookup_versioned_symbol.
7007         * elf/dl-reloc.c: Likewise.
7008         * elf/dl-runtime.c: Likewise.
7009         * elf/dl-sym.c: Likewise.
7010         * sysdeps/mips/dl-machine.h: Likewise.
7012 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7014         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7015         in a token.
7016         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7018 2002-04-10  Andreas Jaeger  <aj@suse.de>
7020         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7022         * include/argz.h: Remove extra char from last patch.
7024 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7026         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7027         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7028         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7029         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7030         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7031         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7032         __chown_internal.
7033         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7035         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7036         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7037         * intl/ngettext.c: Likewise.
7039         * include/sys/socket.h: Declare __connect_internal and define
7040         __connect macro if not NOT_IN_libc.
7041         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7042         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7043         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7045         * include/unistd.h: Declare __close_internal and define __close macro
7046         if not NOT_IN_libc.
7047         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7048         WJUMP3): Add extra parenthesis to avoid expanding element names with
7049         macors like __close.
7050         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7052         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7053         if not NOT_IN_libc.
7054         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7055         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7056         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7058         * include/unistd.h: Declare __fork_internal and define __fork macro
7059         if not NOT_IN_libc.
7060         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7061         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7062         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7064         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7065         __fsetlocking macro to use it if not NOT_IN_libc.
7066         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7068         * libio/__fbufsize.c: Correct copyright.
7069         * libio/__flbf.c: Likewise.
7070         * libio/__fpending.c: Likewise.
7071         * libio/__fpurge.c: Likewise.
7072         * libio/__freadable.c: Likewise.
7073         * libio/__freading.c: Likewise.
7074         * libio/__fsetlocking.c: Likewise.
7075         * libio/__fwritable.c: Likewise.
7076         * libio/__fwriting.c: Likewise.
7078         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7079         macro to use it if not NOT_IN_libc.
7080         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7082         * include/mntent.h: Declare __setmntent_internal,
7083         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7084         __getmntent_r, and __endmntent macros to use these functions if not
7085         NOT_IN_libc.
7086         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7087         __endmntent.
7089         * include/math.h: Declare __finite_internal, __finitef_internal, and
7090         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7091         these functions.
7092         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7093         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7094         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7095         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7096         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7097         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7098         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7099         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7100         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7101         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7103         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7104         to use this function if not NOT_IN_libc.
7105         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7106         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7107         * sysdeps/mach/hurd/fcntl.c: Likewise.
7108         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7109         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7111         * include/argz.h: Declare __argz_count_internal and
7112         __argz_stringify_internal.
7113         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7114         __argz_stringify.
7115         * string/argz-count.c: Use INTDEF for __argz_count.
7116         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7118         * include/stdlib.h: Declare __cxa_atexit_internal and define
7119         __cxa_atexit macro if not NOT_IN_libc.
7120         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7121         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7123         * assert/assert.c: Use INTDEF for __assert_fail.
7124         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7125         * include/assert.h: Declare __assert_fail_internal.
7127         * extra-lib.mk: Mark assignment to lib with override.
7129 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7131         * Makerules: Use cppflags-iterator.mk to add defines for all test
7132         source files.
7134 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7136         * elf/elf.h: Define R_SH_TLS_xxx macros.
7137         * elf/rtld.c: Remove an extra parenthesis.
7138         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7139         TLS_GD macros.
7140         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7141         * sysdeps/sh/dl-lookupcfg.h: New file.
7142         * sysdeps/sh/dl-tls.h: New file.
7143         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7144         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7145         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7146         R_SH_TLS_TPOFF32 relocations.
7148 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7150         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7151         of NOT_IN_LIBC.
7152         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7153         * include/stdlib.h: Likewise.
7155 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7157         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7158         instead of _RTLD_LOCAL.
7159         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7160         * include/unistd.h: Likewise.
7161         * sysdeps/generic/ldsodefs.h: Likewise.
7163         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7164         if in libc or ld.so.
7166 2002-04-08  Andreas Jaeger  <aj@suse.de>
7168         * elf/cache.c (print_entry): Support x86-64.
7170 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7172         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7173         with one accessing the locale data structures directly.
7174         * stdio-common/printf-prs.c: Include localeinfo.h for new
7175         MB_CUR_MAX definition.
7177         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7178         is the name of the source file without extension.
7179         * Makefile (distribute): Add cppflags-iterator.mk.
7180         * cppflags-iterator.mk: New file.
7181         * extra-lib.mk: For the sources of the library run
7182         cppflags-iterator.mk.
7184         * include/libintl.h: Declare __dcgettext_internal and
7185         _libc_intl_domainname_internal.  Define __dcgettext using these
7186         two symbols if used in libc itself.
7187         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7188         _libc_intl_domainname_internal.
7189         * argp/argp-parse.c: Likewise.
7190         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7191         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7192         * intl/gettext.c: Likewise.
7193         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7194         alias.
7195         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7196         __dcgettext.
7197         * posix/regex_internal.c (gettext): Likewise.
7199 2002-04-08  Andreas Jaeger  <aj@suse.de>
7201         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7203         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7204         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7205         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7206         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7207         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7208         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7210 2002-04-08  Roland McGrath  <roland@frob.com>
7212         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7213         widening __hurd_fail value.
7215 2002-04-07  Roland McGrath  <roland@frob.com>
7217         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7218         <mach/machine/alpha_instruction.h>.
7219         (_hurd_setup_sighandler): Take proper arguments for current decls.
7220         Update code to use _hurdsig_catch_fault.
7221         Use `callsys' instruction instead of `call_pal'.
7222         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7224         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7225         (ALIGN, at, AT, fp): New macros.
7227 2002-04-06  Roland McGrath  <roland@frob.com>
7229         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7231         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7232         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7234         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7235         * sysdeps/mach/hurd/connect.c: Likewise.
7236         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7237         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7239         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7240         __msg_sig_post RPC.
7242         * hurd/catch-exc.c: Use integer_t instead of int.
7243         * hurd/hurdfault.c: Likewise.
7245         * sysdeps/mach/hurd/alpha/exc2signal.c
7246         (_hurd_exception2signal): Rewritten.
7247         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7248         (_hurd_longjmp_thread_state): Rewritten.
7250 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7252         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7253         DB_LOOKUP_FCT prototype.
7254         * nss/getXXent_r.c: Likewise.
7255         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7256         * inet/getaliasname_r.c: Likewise.
7257         * inet/getnetbyad_r.c: Likewise.
7258         * inet/getnetbynm_r.c: Likewise.
7259         * inet/getnetent_r.c: Likewise.
7260         * inet/getproto_r.c: Likewise.
7261         * inet/getprtent_r.c: Likewise.
7262         * inet/getprtname_r.c: Likewise.
7263         * inet/getrpcbyname_r.c: Likewise.
7264         * inet/getrpcbynumber_r.c: Likewise.
7265         * inet/getrpcent_r.c: Likewise.
7266         * inet/getservent_r.c: Likewise.
7267         * inet/getsrvbynm_r.c: Likewise.
7268         * inet/getsrvbypt_r.c: Likewise.
7269         * shadow/getspent_r.c: Likewise.
7270         * shadow/getspnam_r.c: Likewise.
7272         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7274         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7275         Use i686-friendly PIC code.
7276         * sysdeps/i386/elf/setjmp.S: Likewise.
7278         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7280         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7281         list.
7282         * elf/Versions: Remove it here.
7284 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7286         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7287         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7289 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7291         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7292         test just before the test runs.
7293         * intl/tst-translit.sh: Likewise.
7294         * intl/tst-codeset.sh: Likewise.
7296         * timezone/zic.c: Update from tzcode2002c.
7297         * timezone/asia: Update from tzdata2002c.
7298         * timezone/backward: Likewise.
7299         * timezone/europe: Likewise.
7300         * timezone/northamerica: Likewise.
7301         * timezone/northamerica: Likewise.
7302         * timezone/northamerica: Likewise.
7303         * timezone/southamerica: Likewise.
7304         * timezone/zone.tab: Likewise.
7306 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7308         * sysdeps/generic/brk.c (__curbrk): Declare.
7309         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7310         * sysdeps/generic/dl-sbrk.c: Likewise.
7311         * sysdeps/unix/arm/dl-brk.S: New file.
7312         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7313         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7314         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7315         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7316         * sysdeps/unix/i386/dl-brk.S: New file.
7317         * sysdeps/unix/mips/dl-brk.S: New file.
7318         * sysdeps/unix/sparc/dl-brk.S: New file.
7319         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7320         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7321         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7322         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7324 2002-04-03  Andreas Schwab  <schwab@suse.de>
7326         * Makefile (headers): Add gnu/lib-names.h here instead of
7327         install-others.
7328         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7329         installation rule.
7330         (install-headers): Add dependency on install-headers-nosubdir.
7331         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7332         instead of install-others.
7333         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7334         installation rule.
7336 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7338         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7339         Reported by Sam Roberts <sroberts@uniserve.com>.
7341 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7343         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7344         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7345         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7346         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7348 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7350         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7351         (RTLD_START): Ditto.
7352         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7353         dependency violation.
7355 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7357         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7358         all variable declarations.
7360 2002-04-04  Andreas Schwab  <schwab@suse.de>
7362         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7364 2002-04-04  Andreas Jaeger  <aj@suse.de>
7366         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7367         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7369         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7370         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7371         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7373         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7375         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7377         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7378         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7380         * configure.in: Handle all mips entries the same.
7382         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7383         * sysdeps/mips/mips3/*: Likewise.
7384         * sysdeps/mips/p40/bits/endian.h: Likewise.
7386 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7388         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7389         non-null result [PR libc/2600].
7391         * misc/tst-dirname.c: Add more tests.
7393 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7395         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7396         define a code_set_name provide one based on the filename.
7398         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7400 2001-12-28  Andreas Jaeger  <aj@suse.de>
7402         * time/mktime.c (__mktime_internal): Check for year < 70
7403         [PR libc/2738].
7405 2002-04-03  Andreas Jaeger  <aj@suse.de>
7407         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7408         shmat.
7409         Reported by Andi Kleen <ak@suse.de>.
7411 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7413         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7414         * sysdeps/generic/w_lgammaf.c: Likewise.
7415         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7417         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7418         Adjust for new output format of the backtrace functions.
7420         * misc/syslog.c (vsyslog): Only use cleanup handler if
7421         _LIBC_REENTRANT is defined [PR libc/2924].
7423         * libio/Makefile (tests): Add bug-ungetwc2.
7424         * libio/bug-ungetwc2.c: New file.
7426         * manual/install.texi: Typographical and grammatical cleanup.
7427         Patch by Dennis Grace <dgrace@us.ibm.com>.
7429         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7430         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7432         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7433         always "&".  Adjust callers.
7434         Add "_" prefix to several generated definitions.
7435         Patch by paul@serice.net [PR libc/3158].
7437 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7439         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7440         size of _dl_arm_cap_flags.
7441         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7443         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7444         Define as 8.
7446 2002-03-22  H.J. Lu  <hjl@gnu.org>
7448         * scripts/firstversions.awk: Check the first version.
7450 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7452         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7453         dependencies must be stable to work correctly.
7454         Reported by martin.lubich@datacon.at.
7456         * libio/bug-ungetwc1.c: New file.
7457         * libio/Makefile (tests): Add bug-ungetwc1.
7459         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7460         if stream was last used for writing.
7462         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7463         number [PR libc/3111].
7465         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7466         to ...
7467         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7469 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7471         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7472         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7473         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7474         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7475         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7477 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7479         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7480         dynamic tags.
7482 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7484         * sysdeps/i386/fpu/s_fabs.S: New file.
7485         * sysdeps/i386/fpu/s_fabsf.S: New file.
7486         * sysdeps/i386/fpu/s_fabsl.S: New file.
7487         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7488         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7489         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7491 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7493         * rt/tst-shm.c (do_test): Add one more test for size of shared
7494         memory object.
7496 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7498         * malloc/malloc.c: Add short description and prototypes for
7499         malloc_get_state, malloc_set_state and posix_memalign, for
7500         consistency and to avoid warnings with -Wstrict-prototypes.
7501         Reported by Andreas Jaeger <aj@suse.de>.
7503 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7505         * po/gl.po: Update from translation team.
7507 2002-03-31  Roland McGrath  <roland@frob.com>
7509         * hurd/hurdselect.c (_hurd_select): Fix
7510         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7511         Use a union rather than casts to compare mach_msg_type_t as int.
7513 2002-03-25  Roland McGrath  <roland@frob.com>
7515         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7516         check off the end of NAME when it's shorter than 2 chars.
7517         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7519 2002-03-17  Roland McGrath  <roland@frob.com>
7521         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7522         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7523         * sysdeps/mach/hurd/i386/Dist: Add them.
7524         * sysdeps/mach/hurd/i386/Versions
7525         (libc: GLIBC_2.2.6): New set, add ioperm.
7526         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7527         (mach_interface_list): Check for mach_i386.defs.
7528         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7529         * sysdeps/mach/configure: Regenerated.
7531 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7533         * po/fr.po: Update from translation team.
7535 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7537         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7538         getpriority from syscalls list.
7540 2002-03-28  Andreas Jaeger  <aj@suse.de>
7542         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7543         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7544         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7545         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7547 2002-03-27  Andreas Jaeger  <aj@suse.de>
7549         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7550         sigcontext): Follow further kernel change.
7552         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7553         kernel change.
7555         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7556         Change for struct sigcontext change.
7558         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7559         Follow changes in struct sigcontext.
7561         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7562         sysycall, use wrapper instead.
7564 2002-03-26  Andreas Jaeger  <aj@suse.de>
7566         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7567         read and write accesses as detailed as possible.
7568         (__memcpy_by2): Likewise.
7569         (__memcpy_g): Likewise.
7570         (memmove): Likewise.
7571         (memcmp): Likewise.
7572         (__memset_ccn_by4): Likewise.
7573         (__memset_ccn_by2): Likewise.
7574         (__memset_gcn_by4): Likewise.
7575         (__memset_gcn_by2): Likewise.
7576         (memchr): Likewise.
7577         (__memrchr): Likewise.
7578         (rawmemchr): Likewise.
7579         (__strlen_g): Likewise.
7580         (__strcpy_g): Likewise.
7581         (__mempcpy_by4): Likewise.
7582         (__mempcpy_by2): Likewise.
7583         (__mempcpy_byn): Likewise.
7584         (__stpcpy_g): Likewise.
7585         (__strncpy_by4): Likewise.
7586         (__strncpy_by2): Likewise.
7587         (__strncpy_byn): Likewise.
7588         (__strncpy_gg): Likewise.
7589         (__strcat_c): Likewise.
7590         (__strcat_g): Likewise.
7591         (__strncat_g): Likewise.
7592         (__strcmp_gg): Likewise.
7593         (__strncmp_g): Likewise.
7594         (__strchr_c): Likewise.
7595         (__strchr_g): Likewise.
7596         (__strchrnul_c): Likewise.
7597         (__strchrnul_g): Likewise.
7598         (__strrchr_c): Likewise.
7599         (__strrchr_g): Likewise.
7600         (__strrchr_c): Likewise.
7601         (__strrchr_g): Likewise.
7602         (__strcspn_c1): Likewise.
7603         (__strcspn_cg): Likewise.
7604         (__strcspn_g): Likewise.
7605         (__strcspn_g): Likewise.
7606         (__strspn_c1): Likewise.
7607         (__strspn_cg): Likewise.
7608         (__strspn_g): Likewise.
7609         (__strspn_g): Likewise.
7610         (__strpbrk_cg): Likewise.
7611         (__strpbrk_g): Likewise.
7612         (__strstr_cg): Likewise.
7613         (__strstr_g): Likewise.
7615         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7616         Michal Ludvig <mludvig@suse.cz>.
7618         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7619         compatibilty, adjust for kernel changes.
7621         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7622         sigcontext): Adjust for kernel changes.
7624 2002-03-25  Andreas Jaeger  <aj@suse.de>
7626         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7627         little endian.
7628         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7630 2002-03-24  Andreas Jaeger  <aj@suse.de>
7632         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7634         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7636         * iconv/tst-iconv3.c (main): Use correct printf strings.
7638 2002-03-18  Roland McGrath  <roland@frob.com>
7640         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7641         (CMGROUP_MAX): New macro.
7643 2002-03-23  Roland McGrath  <roland@frob.com>
7645         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7646         * sysdeps/posix/shm_unlink.c: Likewise.
7648 2002-03-22  Roland McGrath  <roland@frob.com>
7650         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7651         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7652         under --enable-libio.
7653         * sysdeps/mach/hurd/configure: Regenerated.
7655 2002-03-23  Roland McGrath  <roland@frob.com>
7657         * sysdeps/mach/hurd/i386/Makefile
7658         (sysdep_routines, shared-only-routines): Don't add framestate,
7659         reverting 2001-10-02 change.
7660         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7661         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7662         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7663         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7664         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7665         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7666         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7667         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7668         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7669         Do it here instead, only if [$(unwind-find-fde) = yes].
7671 2002-03-23  Andreas Jaeger  <aj@suse.de>
7673         * signal/signal.h: Fix typo. Patch by Steve Kemp
7674         <skx@tardis.ed.ac.uk>.
7676 2002-03-22  Andreas Jaeger  <aj@suse.de>
7678         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7679         getresuid.
7681         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7682         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7683         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7684         user_fpregs_struct): Rename fwd.
7686         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7687         Follow sigcontext changes.
7689 2002-03-22  Andreas Jaeger  <aj@suse.de>
7691         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7692         changes for NaNs on MIPS.
7693         Patch by Hartvig Ekner <hartvige@mips.com>.
7695 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7697         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7698         Use realloc if too large.
7699         (addgrbyid): Likewise.
7700         * nscd/hstcache.c (addhstbyname): Likewise.
7701         (addhstbyaddr): Likewise.
7702         (addhstbynamev6): Likewise.
7703         (addhstbyaddrv6): Likewise.
7704         * nscd/pwdcache.c (addpwbyname): Likewise.
7705         (addpwbyuid): Likewise.
7707 2002-03-21  Andreas Jaeger  <aj@suse.de>
7709         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7710         _fpstate): Add separate struct for x86-64.
7712         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7713         user_fpregs_struct): Change member names to follow kernel.
7715 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7717         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7718         Correctly close the UDP connection right away [PR libc/3120].
7720 2002-03-20  Andreas Jaeger  <aj@suse.de>
7722         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7723         user_fpregs_struct): Fix for changed kernel struct.
7724         (struct user_regs_struct): Likewise.
7725         (struct user): Likewise.
7726         Add 32-bit x86 compatibility.
7728         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7730 2002-03-19  Andreas Jaeger  <aj@suse.de>
7732         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7734 2002-03-18  Andreas Jaeger  <aj@suse.de>
7736         * iconvdata/Makefile: Only run tests when shared libs are
7737         available.
7739 2002-03-17  Andreas Jaeger  <aj@suse.de>
7741         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7743         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7745         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7746         bits.
7748         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7749         (CAUSE_SHIFT): New macro.
7750         Patch by Hartvig Ekner <hartvige@mips.com>.
7752         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7753         * sysdeps/generic/unwind-pe.h: Likewise.
7755         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7756         type to _IO_setb.
7758         * libio/stdio.c (AL2): Define variant when visibility attribute is
7759         not supported.
7761         * include/libc-symbols.h (_INTVARDEF): Define variant when
7762         visibility attribute is not supported.
7764 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7766         * po/fr.po: Update from translation team.
7768 2002-02-25  Bruno Haible  <bruno@clisp.org>
7770         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7772 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7774         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7775         buffers if _IO_file_attach failed.
7777         * libio/fileops.c (_IO_file_open): Close file descriptor if
7778         _IO_SEEKOFF call failed.
7780 2002-03-15  H.J. Lu  <hjl@gnu.org>
7781             Ulrich Drepper  <drepper@redhat.com>
7783         * configure.in: Check for availability of
7784         init_array/fini_array/preinit_array handling in binutils.
7785         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7786         * config.make.in (have-initfini-array): New variable.
7788 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7790         * stdio-common/tst-printf.c (main): Comment out one test which
7791         checked the compiler's ability to fold floating-point constants
7792         but not really printf.
7793         (rfg3): Make s const.
7794         * stdio-common/tst-printf.sh: Adjust for removed test.
7796         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7797         internal function.  Adjust for internal_function calling convention.
7798         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7799         as internal_function.
7801         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7802         hidden.
7804         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7805         declaration and definition.
7806         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7807         declaration.
7808         * nss/getXXent_r.c: Likewise.
7809         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7810         definition.
7812         * include/time.h: Declare __localtime_r as hidden.
7814         * include/aliases.h: Declare __getaliasent_r as hidden.
7815         * include/grp.h: Declare __getgrent_r as hidden.
7816         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7817         __getservent_r, and __getprotoent_r as hidden.
7818         * include/pwd.h: Declare __getpwent_r as hidden.
7819         * include/shadow.h: Declare __getspent_r as hidden.
7820         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7822         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7823         and __gconv_transliterate as hidden.
7824         Add internal_function to __gconv_get_path declaration.
7825         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7826         definition.  Add attribute_hidden to __gconv_read_conf definition.
7828 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7830         * elf/rtld.c: Declare _environ as hidden.
7831         * sysdeps/generic/dl-environ.c: Likewise.
7832         * sysdeps/generic/dl-sysdep.c: Likewise.
7834         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7835         _dl_mcount_internal as hidden.
7837         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7838         * sysdeps/generic/dl-brk.c: New file.
7839         * sysdeps/generic/dl-sbrk.c: New file.
7840         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7841         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7843         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7844         (__errno_location): New function.  Declare errno as hidden.
7845         * elf/rtld.c (_dl_argc): Define as hidden.
7846         (_dl_skip_args): Define as hidden.
7847         (_begin, _end): Declare as hidden.
7848         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7849         * sysdeps/generic/entry.h (_start): Declare as hidden.
7850         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7851         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7852         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7853         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7855 2002-03-14  Roland McGrath  <roland@frob.com>
7857         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7859         * Makeconfig (%.v.i, %.v): New implicit rules.
7860         (preprocess-versions): Variable removed.
7861         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7862         shlib-versions input files as dependencies.
7863         ($(common-objpfx)soversions.i): Depend on that instead of the input
7864         files.  Use it as input instead of using a pipeline.
7865         (postclean-generated): Append soversions.i, shlib-versions.v, and
7866         shlib-versions.v.i here.
7867         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7868         the Versions.def input files as dependencies.
7869         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7870         ($(common-objpfx)Versions.all): Depend on that instead of the input
7871         files.  Use it as input instead of using a pipeline.
7872         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7873         (postclean-generated): Append those .v and .v.i files here.
7875 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7877         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7878         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7879         Remove.
7881 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7883         * sysdeps/generic/mp_clz_tab.c: New file.
7884         * sysdeps/i386/mp_clz_tab.c: New file.
7885         * sysdeps/hppa/mp_clz_tab.c: New file.
7886         * sysdeps/powerpc/mp_clz_tab.c: New file.
7887         * stdlib/Makefile (aux): Revert last patch.
7888         * math/Makefile (gmp-objs): Likewise.
7890 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7892         * time/strftime.c: Comment fixes for references to obsolescent
7893         standards, In most cases the simplest fix is to remove the
7894         confusing comments.  Cross-referencing all the standards properly
7895         is a bit of a pain, and it should be enough to put that info in
7896         the documentation as I did in my recent time.texi patch.
7898 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7900         * manual/time.texi (Formatting Calendar Time):
7901         ISO C99 also specifies the E and O modifiers.
7902         %P is a GNU extension, and is not in ISO C99.
7903         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7904         %T is also in ISO C99.
7905         The RFC 822 example is not valid in arbitrary locales.
7906         Reword the POSIX.2 wording slightly, to make it a bit clearer
7907         that POSIX.2 formats are also supported by later POSIX versions.
7908         If a format was introduced in ISO C99 it is also required by
7909         POSIX.1-2001.
7911 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7913         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7914         _sys_nerr_internal with INTVARDEF2.
7915         * include/libc-symbols.h (INTVARDEF2): New macro.
7916         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7917         (_sys_nerr_internal): Library.
7919         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7920         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7922         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7924 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7926         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7928 2002-03-02  Andreas Schwab  <schwab@suse.de>
7930         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7931         'h' flag and positional arg.
7932         * stdio-common/tst-printf.c (rfg3): New function to test
7933         positional arguments.
7934         (main): Fix some warnings.
7936 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7938         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7939         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7941 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7943         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7945         * include/locale.h (_nl_C_locobj): Declare as hidden.
7947         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7948         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7950         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7952         * include/sys/gmon.h: Declare _gmonparam as hidden.
7954         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7955         (__ctype32_wctrans): Likewise.
7956         (__ctype32_width): Likewise.
7958         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7959         use of __ttyname.
7961         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7962         Define as hidden.
7963         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7964         hidden.  Change all users of these variables.
7966         * posix/regex_internal.h (__re_error_msgid): Renamed from
7967         re_error_msgid.  Declare as hidden.
7968         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7969         hidden.
7971         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7972         (__printf_function_table): Likewise.
7973         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7974         hidden.
7975         (__printf_function_table): Likewise.
7977         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7978         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7980         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7981         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7983         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7984         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7986 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7988         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7989         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7990         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7991         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7992         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7993         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7994         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7995         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7996         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7997         _nl_C_LC_CTYPE_width: Declare as hidden.
7998         * include/locale.h: Declare _nl_locale_file_list.
7999         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8000         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8001         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8002         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8003         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8004         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8005         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8006         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8007         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8008         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8009         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8010         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8011         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8012         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8013         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8014         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8015         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8016         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8017         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8018         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8019         _nl_C_LC_CTYPE_width, and as hidden.
8020         * locale/findlocale.c: Declare _nl_C as hidden.
8021         * locale/newlocale.c: Likewise.
8022         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8023         _nl_locale_file_list.
8024         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8025         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8026         Define _nl_C_locobj as hidden.
8028         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8029         (_mtrace_line): Likewise.
8031         * include/time.h: Declare __mon_yday as hidden.
8032         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8034         * libio/libioP.h: Declare __libio_codecvt as hidden.
8035         * libio/fileops.c: Declare __libio_translit as hidden.
8036         * libio/iofwide.c: Define __libio_translit as hidden.
8038         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8039         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8040         * login/getutline_r.c: Likewise.
8041         * login/utmpname.c: Likewise.
8043         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8044         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8045         __libc_utmp_file_name as hidden.
8047         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8048         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8049         * locale/freelocale.c: Likewise.
8050         * locale/lc-time.c: Likewise.
8052         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8053         (__libc_ptyname2): Likewise.
8054         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8055         hidden.
8056         (__libc_ptyname2): Likewise.
8058         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8059         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8060         * sysdeps/generic/init-first.c: Likewise.
8061         * sysdeps/i386/init-first.c: Likewise.
8062         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8063         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8064         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8065         * sysdeps/sh/init-first.c: Likewise.
8066         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8067         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8069         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8070         (_itowa_upper_digits): Likewise.
8072         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8073         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8074         as hidden.
8076         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8077         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8078         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8079         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8081         * gmon/gmon.c (__bb_head): Define as hidden.
8082         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8084         * argp/argp-parse.c (_argp_hang): Define as static.
8086         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8087         handling in latest compilers.
8089         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8090         define alias.
8091         * libio/fileops.c (_IO_file_jumps): Likewise.
8092         * libio/stdfiles.c (_IO_list_all): Likewise.
8093         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8095         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8096         include/malloc.h.
8097         * include/malloc.h: Add __libc_malloc_initialized declaration
8098         here.  Mark variable hidden.
8099         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8101         * elf/dl-open.c (__libc_argc): Declare as hidden.
8102         (__libc_argv): Likewise.
8103         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8104         (__libc_argv): Likewise.
8105         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8106         __libc_argv as hidden.
8107         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8108         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8109         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8110         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8112         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8113         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8114         * stdlib/erand48.c: Likewise.
8115         * stdlib/jrand48.c: Likewise.
8116         * stdlib/lcong48.c: Likewise.
8117         * stdlib/lrand48.c: Likewise.
8118         * stdlib/mrand48.c: Likewise.
8119         * stdlib/nrand48.c: Likewise.
8120         * stdlib/seed48.c: Likewise.
8121         * stdlib/srand48.c: Likewise.
8123         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8124         (_itoa_lower_digits_internal): New declaration.
8125         (_itoa_upper_digits_internal): New declaration.
8126         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8127         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8128         (_itoa_upper_digits_internal): New declaration.
8129         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8130         _itoa_lower_digits.
8131         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8132         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8134         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8135         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8137         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8138         (_itowa_lower_digits): Likewise.
8139         (_itowa_upper_digits): Likewise.
8140         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8141         (_itowa_upper_digits): Likewise.
8143         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8144         not already defined.
8145         (GERMANIC_PLURAL): Declare as hidden.
8147         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8148         (attribute_hidden): Define as empty macro if not already defined.
8150         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8151         (__gconv_max_path_elem_len): Likewise.
8152         (__gconv_path_envvar): Likewise.
8154         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8155         * stdlib/Makefile (aux): Remove mp_clz_tab.
8156         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8158         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8160         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8162         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8163         _nl_category_names, _nl_category_name_sizes, _nl_current,
8164         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8166         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8167         (_nl_current_default_domain): Likewise
8168         (_nl_state_lock): Likewise.
8169         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8170         (_nl_current_default_domain): Likewise
8171         (_nl_state_lock): Likewise.
8172         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8174         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8175         (_fpioconst_pow10): Likewise.
8177         * include/time.h (_tmbuf): Add attribute_hidden.
8179         * time/tzset.c (tzstring_list): Define as static.
8181         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8182         __use_tzfile declaration.
8184         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8185         and __wcsmbs_last_locale declaration.
8187 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8189         * timezone/Makefile (tzbases): Move systemv from here...
8190         (tzlinks): to here, since the entries in systemv were all changed
8191         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8192         tested) by Peter Breitenlohner.
8194 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8196         * time/tst-posixtz.c (tests): Add new tests.
8197         (main): Test whether tzset() sets daylight properly.
8199 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8201         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8202         __tzname_cur_max setting...
8203         (tzset_internal): ...here.
8205 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8207         * time/tzset.c (compute_change): Don't return any value.
8208         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8209         (__tz_convert): But here.
8211 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8213         * manual/examples/mkfsock.c: Include <string.h> as well.
8214         Patch by Alain De Carolis <alaind@wseurope.com>.
8216 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8218         * posix/regexec.c (re_match): Fix incorrect register sizes.
8219         (re_search): Likewise.
8221 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8223         * posix/regcomp.c (regfree): Remove a disused condition.
8224         * posix/regex_internal.c (re_acquire_state): Likewise.
8225         (re_acquire_state_context): Likewise.
8226         (register_state): Remove a redundant malloc invocation.
8227         * posix/regex_internal.h: (re_state_table_entry): Simplify
8228         the structure.
8230 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8232         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8233         handling conditions.
8234         (regerror): Likewise.
8235         (regfree): Likewise.
8236         (re_compile_internal): Likewise.
8237         (init_dfa): Likewise.
8238         (init_word_char): Likewise.
8239         (create_initial_state): Likewise.
8240         (analyze): Likewise.
8241         (analyze_tree): Likewise.
8242         (duplicate_node): Likewise.
8243         (calc_eclosure): Likewise.
8244         (calc_eclosure_iter): Likewise.
8245         (parse): Likewise.
8246         (parse_reg_exp): Likewise.
8247         (parse_branch): Likewise.
8248         (parse_expression): Likewise.
8249         (parse_subexp): Likewise.
8250         (parse_dup_op): Likewise.
8251         (parse_bracket_exp): Likewise.
8252         (build_equiv_class): Likewise.
8253         (build_charclass): Likewise.
8254         (build_word_op): Likewise.
8255         (fetch_number): Likewise.
8256         (create_tree): Likewise.
8257         (duplicate_tree): Likewise.
8258         * posix/regex.c (BE): New macro.
8259         * posix/regexec.c (re_match): Add __builtin_expect to error
8260         handling conditions.
8261         (re_match_2): Likewise.
8262         (re_search): Likewise.
8263         (re_search_internal): Likewise.
8264         (check_matching): Likewise.
8265         (proceed_next_node): Likewise.
8266         (set_regs): Likewise.
8267         (sift_states_backward): Likewise.
8268         (add_epsilon_backreference): Likewise.
8269         (transit_state): Likewise.
8270         (transit_state_sb): Likewise.
8271         (transit_state_mb): Likewise.
8272         (transit_state_bkref): Likewise.
8273         (transit_state_bkref_loop): Likewise.
8274         (build_trtable): Likewise.
8275         (group_nodes_into_DFAstates): Likewise.
8276         (match_ctx_init): Likewise.
8277         (match_ctx_add_entry): Likewise.
8278         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8279         to error handling conditions.
8280         (re_string_construct_toupper): Likewise.
8281         (build_wcs_buffer): Likewise.
8282         (build_wcs_upper_buffer): Likewise.
8283         (build_upper_buffer): Likewise.
8284         (re_string_translate_buffer): Likewise.
8285         (re_node_set_alloc): Likewise.
8286         (re_node_set_init_1): Likewise.
8287         (re_node_set_init_2): Likewise.
8288         (re_node_set_init_copy): Likewise.
8289         (re_node_set_intersect): Likewise.
8290         (re_node_set_init_union): Likewise.
8291         (re_node_set_merge): Likewise.
8292         (re_node_set_insert): Likewise.
8293         (re_dfa_add_node): Likewise.
8294         (re_acquire_state): Likewise.
8295         (re_acquire_state_context): Likewise.
8296         (create_new_state_common): Likewise.
8297         (register_state): Likewise.
8298         (create_ci_new_state): Likewise.
8299         (create_cd_new_state): Likewise.
8300         (re_string_context_at): Remove redundant condition.
8302 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8304         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8306         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8308 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8310         * sysdeps/i386/elf/configure.in: Fix comment.
8312         * sysdeps/sparc/sparc64/configure.in: New file.
8313         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8314         if .dynamic comes before .got.
8315         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8317         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8318         HP_TIMING_ACCUM): Fix typos.
8320 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8322         * string/strfry.c: Add some more randomness to the seed.
8323         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8325         * po/es.po: Update from translation team.
8326         * po/fr.po: Likewise.
8328         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8330         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8331         when determining type of format.
8332         Patch by James Antill <james@anqd.org> [PR libc/2787].
8334 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8336         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8338 2002-03-11  Roland McGrath  <roland@frob.com>
8340         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8342         * Versions.def (libc): Add GLIBC_2.2.6.
8343         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8344         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8345         __errno_location instead of __hurd_errno_location, and don't inline it.
8346         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8347         * hurd/errno.c: New file.
8348         * hurd/Makefile (routines): Add errno.
8350 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8352         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8353         ridiculously large widths and precisions [PR libc/3026].
8355 2002-03-11  Andreas Jaeger  <aj@suse.de>
8357         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8358         support.
8359         Patch by Susanne Oberhauser <froh@SuSE.de>.
8361 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8363         * inet/rexec.c (ahostbuf): Define as static.
8365         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8366         (__ctype32_wctrans): Likewise.
8367         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8368         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8369         (__ctype32_wctrans): Likewise.
8370         (__ctype32_width): Likewise.
8372         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8373         They were never exported anyway.
8375         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8376         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8377         exported.
8378         * include/sys/gmon.h: Declare _gmonparam.
8380         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8381         symbols for getdents64.  They were never exported.
8383 2002-03-09  Roland McGrath  <roland@frob.com>
8385         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8386         Reported by Jon Arney <jarney1@cox.net>.
8388 2002-02-23  Roland McGrath  <roland@frob.com>
8390         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8391         declaration.
8392         (__hurd_errno_location): Function removed.
8394 2002-03-06  Andreas Jaeger  <aj@suse.de>
8396         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8397         32-bit.
8399 2002-03-04  Andreas Jaeger  <aj@suse.de>
8401         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8403         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8404         x86-64.
8406         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8408         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8410         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8412         * sysdeps/x86_64/bits/setjmp.h: New file.
8414         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8416         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8418         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8419         for x86.
8420         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8421         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8423 2002-02-28  Bo Thorsen  <bo@suse.de>
8425         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8426         version.
8428 2002-03-03  Andreas Jaeger  <aj@suse.de>
8430         * sysdeps/x86_64/bits/wordsize.h: New file.
8432         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8433         * elf/tst-tlsmod1.c: Likewise.
8435         * posix/regcomp.c: Get regex.h from include dir for internal
8436         prototypes.
8438         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8439         to libc-internal.h and include it.
8440         * include/libc-internal.h: Add __init_misc.
8442         * misc/init-misc.c: Include libc-internal.h for prototypes.
8444         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8446         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8447         _IO_putc_internal.
8449 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8451         * posix/regcomp.c: Compatibility changes to allow using the code
8452         outside glibc.
8454 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8456         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8457         compiled non-PIC.
8459 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8461         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8462         of .str elements in the returned data structure.
8464         * elf/elf.h: Add Alpha TLS bits.
8466 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8468         * sysdeps/unix/sysv/linux/nice.c: New file.
8470 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8472         * elf/Makefile (dl-routines): Add dl-origin.
8473         (elide-routines.os): Add dl-origin.
8474         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8475         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8476         _dl_debug_state.
8477         * include/libc-symbols.c: Define attribute_hidden depending on
8478         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8480         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8481         * elf/dl-load.c: Likewise.
8482         * elf/rtld.c: Likewise.
8483         * include/unistd.h: Declare __libc_enable_secure_internal.
8484         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8485         Use INTUSE with __libc_enable_secure.
8486         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8488         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8489         * elf/dl-error.c: Likewise,
8490         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8492         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8493         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8494         function definition.  Use INTDEF with _dl_get_origin.
8495         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8497         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8498         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8500         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8501         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8502         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8504         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8505         * elf/dl-deps.c: Likewise.
8506         * elf/dl-error.c: Likewise.
8507         * elf/dl-fini.c: Likewise.
8508         * elf/dl-init.c: Likewise.
8509         * elf/dl-load.c: Likewise.
8510         * elf/dl-lookup.c: Likewise.
8511         * elf/dl-reloc.c: Likewise.
8512         * elf/dl-version.c: Likewise.
8513         * elf/do-lookup.h: Likewise.
8514         * sysdeps/arm/dl-machine.h: Likewise.
8515         * sysdeps/cris/dl-machine.h: Likewise.
8516         * sysdeps/hppa/dl-machine.h: Likewise.
8517         * sysdeps/i386/dl-machine.h: Likewise.
8518         * sysdeps/m68k/dl-machine.h: Likewise.
8519         * sysdeps/powerpc/dl-machine.h: Likewise.
8520         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8521         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8522         * sysdeps/sh/dl-machine.h: Likewise.
8523         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8524         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8525         * sysdeps/x86_64/dl-machine.h: Likewise.
8526         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8527         _dl_argv[0].  Use INTUSE with _dl_argv.
8528         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8529         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8531 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8533         * elf/rtld.c (_rtld_global): Remove .protected.
8534         (_rtld_local): Strong alias to _rtld_global.
8535         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8536         only .os object.
8537         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8538         _rtld_local instead of _rtld_global.
8539         (_rtld_local): Add hidden extern, possibly in .sdata section.
8540         * configure.in: Add tests for visibility attribute and .sdata.
8541         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8542         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8543         * sysdeps/arm/dl-machine.h: Likewise.
8544         * sysdeps/generic/ldsodefs.h: Likewise.
8545         * sysdeps/hppa/dl-machine.h: Likewise.
8546         * sysdeps/cris/dl-machine.h: Likewise.
8547         * sysdeps/i386/dl-machine.h: Likewise.
8548         * sysdeps/ia64/dl-machine.h: Likewise.
8549         * sysdeps/m68k/dl-machine.h: Likewise.
8550         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8551         * sysdeps/mips/dl-machine.h: Likewise.
8552         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8553         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8554         * sysdeps/sh/dl-machine.h: Likewise.
8555         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8556         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8557         * sysdeps/x86_64/dl-machine.h: Likewise.
8559 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8561         * login/login.c (login): Always initialize ut_line field
8562         [PR libc/2991].
8564 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8566         * sysdeps/i386/Makefile (sysdep_routines): Add
8567         divdi3 in csu dir.
8568         (shared-only-routines): Likewise.
8569         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8570         (shared-only-routines): Likewise.
8571         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8572         (shared-only-routines): Likewise.
8573         * sysdeps/wordsize-32/divdi3.c: New file.
8575 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8577         * locale/iso-4217.def: Remove obsolete currencies for countries
8578         with Euro.
8580 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8582         * posix/regcomp.c (regcomp): Remove a redundant condition.
8583         (init_word_char): Add a check on malloc failure.
8584         (create_initial_state): Likewise.
8585         (duplicate_node): Likewise.
8586         (calc_eclosure): Likewise.
8587         (calc_eclosure_iter): Likewise.
8588         (parse_expression): Likewise.
8589         (parse_bracket_exp): Remove unnecessary malloc invocations.
8590         (build_equiv_class): Likewise.
8591         (build_charclass): Likewise.
8592         * posix/regex_internal.c (re_node_set_intersect): Add a check
8593         on malloc failure.
8594         (re_node_set_add_intersect): Likewise.
8595         (re_node_set_merge): Likewise.
8596         (re_acquire_state): Likewise.
8597         (re_acquire_state_context): Likewise.
8598         (create_newstate_common): Likewise.
8599         (register_state): Likewise.
8600         (create_ci_newstate): Likewise.
8601         (create_cd_newstate): Likewise.
8602         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8603         and re_acquire_state_context.
8604         * posix/regexec.c (regexec): Suit it to the error handling of
8605         re_search_internal.
8606         (re_match): Likewise.
8607         (re_search): Likewise.
8608         (re_search_internal): Add a check on malloc failure.
8609         (acquire_init_state_context): Likewise.
8610         (check_matching): Likewise.
8611         (proceed_next_node): Likewise.
8612         (set_regs): Likewise.
8613         (sift_states_backward): Likewise.
8614         (sift_states_iter_bkref): Likewise.
8615         (add_epsilon_backreference): Likewise.
8616         (transit_state): Likewise.
8617         (transit_state_sb): Likewise.
8618         (transit_state_mb): Likewise.
8619         (transit_state_bkref_loop): Likewise.
8620         (build_trtable): Likewise.
8621         (group_nodes_into_DFAstates): Likewise.
8622         (match_ctx_init): Likewise.
8623         (match_ctx_add_entry): Likewise.
8625 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8627         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8628         l_libname if profiling is enabled [PR libc/2916].
8630         * sysdeps/ia64/dl-tls.h: New file.
8632 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8634         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8635         Work around an Alpha gas bug.
8637 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8639         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8640         uses read to load the catalog.
8641         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8643 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8645         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8646         regex_internal.c, and regex_internal.h.
8647         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8648         * posix/regex.c: Complete rewrite.
8649         * posix/regexec.c: New file.
8650         * posix/regcomp.c: New file.
8651         * posix/regex_internal.c: New file.
8652         * posix/regex_internal.h: New file.
8653         * posix/regex.h (RE_ICASE): New macro.
8654         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8656         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8657         ungetwc.  It's a macro.
8658         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8659         implementation.
8660         Reported by Jason Merrill <jason@redhat.com>.
8662 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8664         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8665         position to fp->_offset if it is set.
8666         * stdio-common/Makefile (tests): Add tst-fdopen.
8667         * stdio-common/tst-fdopen.c: New test.
8669 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8671         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8672         * stdio-common/tst-ungetc.c (main): Add another test.
8674 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8676         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8677         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8678         aliases.  Add prototypes for the new aliases.
8679         * assert/assert.c: Likewise.
8680         * include/libc-symbols.h: Likewise.
8681         * include/stdio.h: Likewise.
8682         * include/netinet/in.h: Likewise.
8683         * include/rpc/auth.h: Likewise.
8684         * include/rpc/auth_unix.h: Likewise.
8685         * include/rpc/key_prot.h: Likewise.
8686         * include/rpc/pmap_prot.h: Likewise.
8687         * include/rpc/pmap_rmt.h: Likewise.
8688         * include/rpc/rpc_msg.h: Likewise.
8689         * include/rpc/xdr.h: Likewise.
8690         * inet/gethstbyad_r.c: Likewise.
8691         * inet/gethstbynm2_r.c: Likewise.
8692         * inet/gethstbynm_r.c: Likewise.
8693         * inet/gethstent_r.c: Likewise.
8694         * inet/in6_addr.c: Likewise.
8695         * libio/__fpurge.c: Likewise.
8696         * libio/filedoalloc.c: Likewise.
8697         * libio/fileops.c: Likewise.
8698         * libio/ftello.c: Likewise.
8699         * libio/ftello64.c: Likewise.
8700         * libio/genops.c: Likewise.
8701         * libio/iofclose.c: Likewise.
8702         * libio/iofdopen.c: Likewise.
8703         * libio/iofflush.c: Likewise.
8704         * libio/iofflush_u.c: Likewise.
8705         * libio/iofgetpos.c: Likewise.
8706         * libio/iofgetpos64.c: Likewise.
8707         * libio/iofgets.c: Likewise.
8708         * libio/iofgets_u.c: Likewise.
8709         * libio/iofopen.c: Likewise.
8710         * libio/iofopncook.c: Likewise.
8711         * libio/iofputs.c: Likewise.
8712         * libio/iofread.c: Likewise.
8713         * libio/iofread_u.c: Likewise.
8714         * libio/iofsetpos.c: Likewise.
8715         * libio/iofsetpos64.c: Likewise.
8716         * libio/ioftell.c: Likewise.
8717         * libio/iofwrite.c: Likewise.
8718         * libio/iogetline.c: Likewise.
8719         * libio/iogets.c: Likewise.
8720         * libio/iogetwline.c: Likewise.
8721         * libio/iolibio.h: Likewise.
8722         * libio/iopadn.c: Likewise.
8723         * libio/iopopen.c: Likewise.
8724         * libio/ioseekoff.c: Likewise.
8725         * libio/ioseekpos.c: Likewise.
8726         * libio/iosetbuffer.c: Likewise.
8727         * libio/iosetvbuf.c: Likewise.
8728         * libio/ioungetc.c: Likewise.
8729         * libio/ioungetwc.c: Likewise.
8730         * libio/iovdprintf.c: Likewise.
8731         * libio/iovsprintf.c: Likewise.
8732         * libio/iovsscanf.c: Likewise.
8733         * libio/libioP.h: Likewise.
8734         * libio/memstream.c: Likewise.
8735         * libio/obprintf.c: Likewise.
8736         * libio/oldfileops.c: Likewise.
8737         * libio/oldiofclose.c: Likewise.
8738         * libio/oldiofdopen.c: Likewise.
8739         * libio/oldiofgetpos.c: Likewise.
8740         * libio/oldiofgetpos64.c: Likewise.
8741         * libio/oldiofopen.c: Likewise.
8742         * libio/oldiofsetpos.c: Likewise.
8743         * libio/oldiofsetpos64.c: Likewise.
8744         * libio/oldiopopen.c: Likewise.
8745         * libio/oldstdfiles.c: Likewise.
8746         * libio/putc.c: Likewise.
8747         * libio/setbuf.c: Likewise.
8748         * libio/setlinebuf.c: Likewise.
8749         * libio/stdfiles.c: Likewise.
8750         * libio/stdio.c: Likewise.
8751         * libio/strops.c: Likewise.
8752         * libio/vasprintf.c: Likewise.
8753         * libio/vscanf.c: Likewise.
8754         * libio/vsnprintf.c: Likewise.
8755         * libio/vswprintf.c: Likewise.
8756         * libio/wfiledoalloc.c: Likewise.
8757         * libio/wfileops.c: Likewise.
8758         * libio/wgenops.c: Likewise.
8759         * libio/wstrops.c: Likewise.
8760         * malloc/mtrace.c: Likewise.
8761         * misc/error.c: Likewise.
8762         * misc/syslog.c: Likewise.
8763         * nss/getXXbyYY_r.c: Likewise.
8764         * nss/getXXent_r.c: Likewise.
8765         * nss/hosts-lookup.c: Likewise.
8766         * stdio-common/getw.c
8767         * stdio-common/printf-prs.c: Likewise.
8768         * stdio-common/printf_fp.c: Likewise.
8769         * stdio-common/printf_size.c: Likewise.
8770         * stdio-common/putw.c: Likewise.
8771         * stdio-common/scanf.c: Likewise.
8772         * stdio-common/sprintf.c: Likewise.
8773         * stdio-common/tmpfile64.c: Likewise.
8774         * stdio-common/vfprintf.c: Likewise.
8775         * stdio-common/vfscanf.c: Likewise.
8776         * stdlib/strfmon.c: Likewise.
8777         * sunrpc/auth_des.c: Likewise.
8778         * sunrpc/auth_none.c: Likewise.
8779         * sunrpc/auth_unix.c: Likewise.
8780         * sunrpc/authdes_prot.c: Likewise.
8781         * sunrpc/authuxprot.c: Likewise.
8782         * sunrpc/clnt_perr.c: Likewise.
8783         * sunrpc/clnt_raw.c: Likewise.
8784         * sunrpc/clnt_tcp.c: Likewise.
8785         * sunrpc/clnt_udp.c: Likewise.
8786         * sunrpc/clnt_unix.c: Likewise.
8787         * sunrpc/key_call.c: Likewise.
8788         * sunrpc/key_prot.c: Likewise.
8789         * sunrpc/openchild.c: Likewise.
8790         * sunrpc/pm_getmaps.c: Likewise.
8791         * sunrpc/pm_getport.c: Likewise.
8792         * sunrpc/pmap_clnt.c: Likewise.
8793         * sunrpc/pmap_prot.c: Likewise.
8794         * sunrpc/pmap_prot2.c: Likewise.
8795         * sunrpc/pmap_rmt.c: Likewise.
8796         * sunrpc/rpc_cmsg.c: Likewise.
8797         * sunrpc/rpc_prot.c: Likewise.
8798         * sunrpc/svc_authux.c: Likewise.
8799         * sunrpc/svc_raw.c: Likewise.
8800         * sunrpc/svc_simple.c: Likewise.
8801         * sunrpc/svc_tcp.c: Likewise.
8802         * sunrpc/svc_udp.c: Likewise.
8803         * sunrpc/svc_unix.c: Likewise.
8804         * sunrpc/xdr.c: Likewise.
8805         * sunrpc/xdr_array.c: Likewise.
8806         * sunrpc/xdr_mem.c: Likewise.
8807         * sunrpc/xdr_rec.c: Likewise.
8808         * sunrpc/xdr_ref.c: Likewise.
8809         * sunrpc/xdr_stdio.c: Likewise.
8810         * sysdeps/generic/_strerror.c: Likewise.
8811         * sysdeps/generic/printf_fphex.c: Likewise.
8812         * sysdeps/generic/tmpfile.c: Likewise.
8813         * sysdeps/gnu/errlist.awk: Likewise.
8814         * sysdeps/gnu/errlist.c: Likewise.
8816         * libio/Makefile (routines): Remove iosprint.
8817         * libio/iosprintf.c: Removed
8820 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8822         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8823         non_dynamic_init and exported now.
8824         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8825         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8826         !SHARED.
8827         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8828         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8829         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8831 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8833         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8834         true in this case.
8836         * locale/iso-639.def: Add language codes for Walloon.
8838         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8839         total number of relocations performed.
8841         * elf/sprof.c (load_profdata): If do_test provide information as
8842         to why loading failed.
8843         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8844         hist_hdr.dimen.
8846         * csu/set-init.c: Moved to...
8847         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8848         * csu/Makefile: Don't compile set-init.
8849         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8850         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8851         to __libc_init.
8852         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8853         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8854         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8855         __libc_init.
8856         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8857         __libc_subinit.
8859 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8861         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8862         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8863         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8864         (_dl_deallocate_tls): New function.
8865         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8866         _dl_deallocate_tls.
8868 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8870         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8871         * stdio-common/tst-fseek.c (main): Add test for this.
8873 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8875         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8877 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8879         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8880         pointer before dereferencing.
8882 2002-02-18  Roland McGrath  <roland@frob.com>
8884         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8886         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8887         Use task_policy in place of task_priority.
8889         * sysdeps/generic/bits/mman.h
8890         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8891         * sysdeps/mach/msync.c: New file.
8893         * sysdeps/mach/powerpc/syscall.S: New file.
8895         * mach/msg.c [MACH_MSG_OVERWRITE]
8896         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8897         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8899         * sysdeps/mach/configure.in: Check for clock.defs to put into
8900         mach_interface_list.
8901         * sysdeps/mach/configure: Regenerated.
8903         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8904         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8905         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8906         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8907         (mach-shortcuts): Add device_read_overwrite_request,
8908         device_read_overwrite, vm_read_overwrite, thread_switch.
8910         * configure.in (base_machine): Set to $machine by default.
8911         * configure: Regenerated.
8913         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8914         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8915         * sysdeps/mach/configure: Regenerated.
8916         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8918         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8920         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8922         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8923         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8925 2002-02-17  Roland McGrath  <roland@frob.com>
8927         * sysdeps/mach/hurd/times.c
8928         [NO_CREATION_TIME] (startup_time): New static variable.
8929         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8930         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8931         creation_time from task_basic_info.
8932         (__times): Use __gettimeofday instead of __host_get_time.
8934         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8935         Use untyped Mach IPC message format.
8937         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8939         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8940         _S_catch_exception_raise_state_identity,
8941         _hurdsig_fault_catch_exception_raise_state,
8942         _hurdsig_fault_catch_exception_raise_state_identity.
8944         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8946         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8947         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8949         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8950         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8952         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8953         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8954         them as no-op macros.
8955         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8956         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8958         * sysdeps/powerpc/dl-machine.h
8959         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8961         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8962         Use untyped Mach IPC message format.
8964         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8965         Handle untyped Mach IPC message formats.
8967         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8968         Expect different argument conventions when this is defined.
8969         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8970         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8971         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8972         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8973         for OSF Mach variant.
8974         (faulted): Use mig_reply_error_t for REPLY.
8975         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8976         in __thread_set_exception_ports call.
8977         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8978         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8980         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8981         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8982         on Darwin, which includes bogons.
8984         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8985         variable LOADBASE so it's not declared when it's not used.
8987 2002-02-16  Roland McGrath  <roland@frob.com>
8989         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8990         to use BI.creation_time.
8992         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8994         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8995         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8996         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8997         host_page_size instead of vm_statistics.
8999         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9000         mach_interface.h here, since not all variants use that name.
9002         * sysdeps/mach/configure.in: Add some checks for Mach headers
9003         to ensure a sane installation.
9004         (mach_interface_list): Define this variable by checking for .defs
9005         files found in various variants.
9006         * configure.in (mach_interface_list): AC_SUBST this.
9007         * config.make.in (mach-interface-list): New substituted variable.
9008         * mach/Makefile (user-interfaces): Define this using the value
9009         of $(mach-interface-list) instead of mach, mach4.
9010         Updated other references to mach_interface to use it as well.
9012         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9014         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9015         mig_reply_error_t for OSF Mach variant.
9017         * mach/Makefile (routines): Remove bootprivport.
9018         * mach/bootprivport.c: File removed.  It has never been used.
9020         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9021         Grok the OSF flavor of message format.
9022         (mach_msg_destroy_port): For MAKE_SEND and
9023         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9024         no-senders notification.
9026 2002-02-06  Roland McGrath  <roland@frob.com>
9028         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9029         to here if 2.0 compatibility enabled ...
9030         (libc: GLIBC_2.1.3): ... from here.
9032 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9034         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9035         generation counter.
9036         * elf/dl-close.c (_dl_close): Likewise.
9038 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9040         * elf/Makefile: Add rules to build and run tst-tls8.
9041         * elf/tst-tls8.c: New file.
9042         * elf/tst-tlsmod4.c: New file.
9044         * stdlib/test-a64l.c (tests): Add more test cases.
9046         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9047         Reported by Walter Harms <WHarms@bfs.de>.
9049 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9051         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9052         definitions for struct sigcontext.
9053         Suggested by David Mosberger-Tang.
9055 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9057         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9058         for removing reference of module in slotinfo list.
9059         (_dl_close): Use remove_slotinfo.
9060         * sysdeps/generic/dl-tls.c: General pretty printing.
9061         (oom): Define only if SHARED.
9062         (_dl_next_tls_modid): Correct starting point for the case we assume
9063         there is a gap.  Add missing instruction grouping (doh!).  Correct
9064         tests for reaching maximum index.
9065         * elf/Makefile: Add rules to build and run tst-tls7.
9066         * elf/tst-tls7.c: New file.
9067         * elf/tst-tlsmod3.c: New file.
9069         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9070         USE_TLS.
9071         * elf/tst-tlsmod2.c: Likewise.
9073         * elf/dl-close.c (_dl_close): When closing an object using TLS
9074         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9075         true.  Increment dl_tls_generation only if we closed any TLS-using
9076         object.
9077         * elf/tst-tls6.c: New file.
9078         * elf/Makefile: Add rules to build and run tst-tls6.
9080         * po/da.po: Update from translation team.
9082         * locale/categories.def: Fix typo [PR libc/2948].
9083         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9084         [PR libc/2949].
9085         * locale/iso-4217.def: Update from official version [PR libc/2950].
9086         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9087         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9088         message if input is too confusion instead of using assert.
9089         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9090         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9092         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9093         * elf/tst-tls2.c: Likewise.
9094         * elf/tst-tls3.c: Likewise.
9096 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9098         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9100 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9102         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9103         if this is really necessary.
9105         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9106         slotinfo array.
9107         (free_mem): Free memory for the slotinfo array if possible.
9109 2002-02-12  Andreas Schwab  <schwab@suse.de>
9111         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9113 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9115         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9116         TLS_DTV_UNALLOCATE.
9117         (oom): New function.
9118         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9119         (_dl_determine_tlsoffset): Likewise.
9120         (_dl_allocate_tls): Likewise.
9121         (__TLS_GET_ADDR): Define if not already defined.
9122         (_dl_tls_symaddr): New function.
9123         (allocate_and_init): New function.
9124         (__tls_get_addr): Actually implement handling of generation counter
9125         and deferred allocation.
9126         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9127         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9128         _dl_tls_generation.
9129         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9130         Declare _dl_tls_symaddr.
9131         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9132         SHARED.
9133         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9134         l_tls_previmage.
9135         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9136         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9137         (_dl_vsym): Likewise.
9138         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9139         layout.
9140         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9141         nextimage list handling.  Instead add all modules using TLS to
9142         dl_tls_dtv_slotinfo_list.
9143         * elf/dl-open.c (dl_open_worker): After successfully loading all
9144         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9145         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9146         empty segment don't do anything.  Remove handling of initimage list.
9147         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9148         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9149         * elf/dl-minimal.c: Define __libc_memalign.
9150         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9151         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9152         _dl_tls_generation.
9153         * include/stdlib.h: Declare __libc_memalign.
9155         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9156         * elf/tst-tls4.c: New file.
9157         * elf/tst-tls5.c: New file.
9158         * elf/tst-tlsmod2.c: New file.
9160         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9162         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9164         * elf/tst-tls1.c: Use test-skeleton.c.
9165         * elf/tst-tls2.c: Likewise.
9166         * elf/tst-tls3.c: Likewise.
9168         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9170 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9172         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9174 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9176         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9178         * elf/tst-tls3.c: New file.
9179         * elf/tst-tlsmod1.c: New file.
9180         * elf/Makefile: Add rules to build and run tst-tls3.
9182         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9183         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9184         TLS relocations.
9186         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9188         * po/fr.po: Update from translation team.
9190         * elf/tls-macros.h: Add alternative macros for use in PIC.
9192         * elf/dl-lookup.c: Include <tls.h>.
9193         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9195         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9196         required by passing pointer to last element of the list.
9198         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9199         l_tls_initimage to a place where it actually is performed.
9201         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9202         after globfree() calls.
9204         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9205         (openaux): Pass open_mode as new last argument to _dl_map_object.
9206         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9207         open_mode element of args variable with it.
9208         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9209         _dl_map_object_deps.
9210         * elf/rtld.c (dl_main): Add zero as last parameter to
9211         _dl_map_object_deps call.
9212         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9213         * elf/nodlopen2.c: New file.
9214         * elf/nodlopenmod2.c: New file.
9215         * elf/Makefile: Add rules to build and run nodlopen2.
9217         * elf/tst-tls1.c: Move TLS helper macros to...
9218         * elf/tls-macros.h: ...here.  New file.
9219         * elf/tst-tls2.c: New file.
9220         * elf/Makefile (tests): Add tst-tls2.
9221         (distribute): Add tls-macros.h.
9223         * po/sv.po: Update from translation team.
9225         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9226         architecture specific definitions from the actual test code.
9228         * po/tr.po: Update from translation team.
9230 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9232         * elf/Makefile (tests): Add tst-tls1.
9233         * elf/tst-tls1.c: New file.
9235         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9236         alignment of TCB for now.
9238         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9239         initialization image for the application itself.
9241         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9242         loop to initialize TLS block.
9244 2002-02-08  Richard Henderson  <rth@redhat.com>
9246         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9247         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9249         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9251 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9253         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9255 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9257         * po/ca.po: Update from translation team.
9258         * po/sk.po: Likewise.
9260         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9261         (dl_main): Move dtv/static TLS handling before relocation.
9262         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9263         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9264         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9265         so far uses TLS initialize GL(dl_tls_static_size) and
9266         GL(dl_tls_static_align) to account for the TCB.
9267         (_dl_allocate_tls): New function.
9268         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9269         _dl_initial_dtv_malloced.
9271         * configure.in: Test for __builtin_memset more realistically.
9273         * csu/version.c (banner): If TLS support is available say so.
9275 2002-02-04  H.J. Lu  <hjl@gnu.org>
9277         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9278         __attribute_used__.
9279         (__dl_runtime_resolve): Likewise.
9281         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9282         declaration.
9284 2001-11-15  H.J. Lu  <hjl@gnu.org>
9286         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9287         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9289         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9291 2002-02-07  H.J. Lu  <hjl@gnu.org>
9293         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9294         ".set noreorder".
9295         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9296         Likewise.
9298 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9300         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9302         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9303         ___tls_get_addr_internal.
9304         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9306         * po/ko.po: Update from translation team.
9308 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9310         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9311         attribute, change __pad{1,2} type to unsigned int.
9312         (struct stat64): Remove packed attribute.
9314 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9316         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9318 2002-02-07  Andreas Schwab  <schwab@suse.de>
9320         * configure.in: Fix check for -zcombreloc.
9322 2002-02-06  H.J. Lu  <hjl@gnu.org>
9324         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9325         * configure.in: Check if __builtin_memset really works.
9326         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9327         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9329 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9331         * io/bug-ftw3.c (main): Don't try the test if root.
9333 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9335         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9336         constraints.
9337         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9338         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9339         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9340         Likewise.
9341         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9342         a weak alias for __clone.
9343         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9344         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9345         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9346         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9347         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9348         a weak alias for __mmap64.
9350 2002-02-05  H.J. Lu  <hjl@gnu.org>
9352         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9353         (atomic_add): Likewise.
9354         (compare_and_swap): Likewise.
9355         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9357 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9359         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9361         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9362         alignment of the TCB and store total size and alignment of static
9363         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9364         tls_index is a typedef.
9365         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9366         _dl_tls_static_align.
9367         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9368         * elf/dl-support.c: Define _dl_tls_static_size and
9369         _dl_tls_static_align.
9371 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9373         * configure.in: Add --without-tls option.
9374         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9375         --without-tls is given.
9377         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9379         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9381 2002-02-06  Roland McGrath  <roland@frob.com>
9383         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9384         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9386         * scripts/versions.awk: Improve error message for missing version.
9387         Each version inherits from the last one only if they have the same
9388         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9389         but not GLIBC_x and FOO_y.
9391         * scripts/firstversions.awk: Handle libraries that don't have each
9392         particular version named in the third column of shlib-versions.
9394         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9396 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9398         * Versions.def [ld]: Add GLIBC_2.3.
9399         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9400         * elf/Makefile (dl-routines): Add dl-tls.
9401         (distribute): Add dl-tls.h.
9402         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9403         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9404         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9405         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9406         along with the other info in the link map.  Change queueing of init
9407         images for double linked list.  Use _dl_next_tls_modid to compute
9408         l_tls_modid.
9409         * elf/rtld.c (_dl_start_final): Store alignment requirement
9410         along with the other info in rtld map and executable map.
9411         (dl_main): Add ld.so to the init image list if necessary.  Compute
9412         final module ID with _dl_next_tls_modid.
9413         * include/link.h (struct link_map): Add l_tls_previmage and
9414         l_tls_align.
9415         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9416         * sysdeps/i386/elf/Versions: New file.
9417         * sysdeps/generic/dl-tls.c: New file.
9418         * sysdeps/generic/dl-tls.h: New file.
9419         * sysdeps/i386/dl-tls.h: New file.
9421 2002-02-06  Roland McGrath  <roland@frob.com>
9423         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9424         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9426 2002-01-05  Roland McGrath  <roland@frob.com>
9428         * sysdeps/mach/configure.in: New file.
9429         * sysdeps/mach/configure: New generated file.
9431         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9432         It has never been used by anything.
9434 2002-02-06  H.J. Lu  <hjl@gnu.org>
9436         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9437         is included.
9439 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9441         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9442         attribute((packed)) to counter stupid people misusing gcc options.
9443         (struct stat64): Likewise.
9445 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9447         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9448         the variables which are used as booleans.
9450 2002-02-06  Andreas Jaeger  <aj@suse.de>
9452         * include/libc-symbols.h (INTUSE): Renamed from INT.
9453         * elf/dl-deps.c: Change users.
9454         * sysdeps/generic/dl-sysdep.c: Likewise.
9455         * sysdeps/generic/dl-cache.c: Likewise.
9456         * elf/dl-reloc.c: Likewise.
9457         * elf/rtld.c: Likewise.
9458         * elf/dl-version.c: Likewise.
9459         * elf/dl-load.c: Likewise.
9460         * elf/dl-dst.h: Likewise.
9461         * elf/dl-init.c: Likewise.
9462         * elf/dl-error.c: Likewise.
9463         * elf/dl-fini.c: Likewise.
9464         * elf/dl-runtime.c: Likewise.
9465         * elf/do-lookup.h: Likewise.
9467         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9468         definition.
9469         * stdio-common/_itowa.h: Likewise.
9471 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9473         * elf/dl-minimal.c: Define _itoa_lower_digits.
9475         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9476         DT_FLAGS set.
9478         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9479         loading modules with the DF_STATIC_TLS flag set.
9480         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9481         element.
9482         * include/link.h (struct link_map): Add l_flags field.
9483         * elf/elf.h (DF_STATIC_TLS): New definition.
9485         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9486         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9488         * elf/rtld.c (process_dl_debug): Correct printing help message.
9489         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9490         for %s.
9492         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9493         definition and pass &errno in use of this variable.
9494         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9496 2002-02-04  Andreas Schwab  <schwab@suse.de>
9498         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9499         * locale/programs/charmap-dir.c: Wrap calls that output messages
9500         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9501         * locale/programs/charmap.c: Likewise.
9502         * locale/programs/ld-address.c: Likewise.
9503         * locale/programs/ld-collate.c: Likewise.
9504         * locale/programs/ld-ctype.c: Likewise.
9505         * locale/programs/ld-identification.c: Likewise.
9506         * locale/programs/ld-measurement.c: Likewise.
9507         * locale/programs/ld-messages.c: Likewise.
9508         * locale/programs/ld-monetary.c: Likewise.
9509         * locale/programs/ld-name.c: Likewise.
9510         * locale/programs/ld-numeric.c: Likewise.
9511         * locale/programs/ld-paper.c: Likewise.
9512         * locale/programs/ld-telephone.c: Likewise.
9513         * locale/programs/ld-time.c: Likewise.
9514         * locale/programs/linereader.c: Likewise.
9515         * locale/programs/linereader.h: Likewise.
9516         * locale/programs/localedef.c: Likewise.
9517         * locale/programs/locfile.c: Likewise.
9518         * locale/programs/repertoire.c: Likewise.
9520 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9522         * elf/rtld.c (_dl_start_final): Determine load address to locate
9523         ehdr with GL(dl_rtld_map).l_map_start.
9525         * po/ca.po: Update from translation team.
9527         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9528         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9529         header entry.
9530         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9531         _dl_tls_module_cnt.
9532         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9534 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9536         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9537         * include/link.h (struct link_map): Add various members for TLS
9538         information.
9539         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9540         _rtld_tlsoffset, add _dl_initimage_list.
9541         * sysdeps/i386/dl-lookupcfg.h: New file.
9542         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9543         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9544         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9545         is used.
9547         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9548         unused.
9550         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9551         thread-pointer as soon as possible.
9552         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9553         elements in rtld_global.
9554         * sysdeps/generic/tls.h: New file.
9555         * elf/Makefile (distribute): Add tls.h.
9556         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9557         relocations.  Not complete yet.
9559         * resolv/resolv.h: Allow user to define __need_res_state and only
9560         define __res_start structure then.
9561         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9563         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9564         dl_cpuclock_offset initialization to _dl_start_final.
9565         (_dl_show_auxv): Avoid unnecessary sign extension.
9566         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9568 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9570         * config.h.in: Add HAVE_TLS_SUPPORT.
9571         * sysdeps/i386/elf/configure.in: New file.
9573 2002-02-03  Andreas Schwab  <schwab@suse.de>
9575         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9576         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9578 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9580         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9581         alloca if the memory reqirements are too high.
9583 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9585         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9586         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9587         the former is available anyway and speed isn't important here.
9588         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9589         * elf/dl-version.c (match_symbol): Likewise.
9590         (_dl_check_map_versions): Likewise.
9591         * elf/rtld.c (process_envvars): Likewise.
9592         (print_statistics): Likewise.
9593         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9594         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9595         bases.  Add assert to catch uses of unimplemented features.
9596         (__strsep): Add assert to catch uses of unimplemented features.
9597         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9598         and avoid inline optimization.
9599         * elf/rtld.c (process_envvars): Likewise.
9600         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9601         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9602         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9604 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9606         * stdio-common/_itoa.h: Minor simplifications of the code.
9607         * stdio-common/_itoa.c: Likewise.
9609         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9610         instead of _dl_printf for debugging info output.
9612         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9613         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9615 2002-02-01  H.J. Lu  <hjl@gnu.org>
9617         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9618         (atomic_add): Likewise.
9619         (compare_and_swap): Return 0 only when failed to compare. Use
9620         branch likely.
9622         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9623         branch likely.
9625 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9627         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9629 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9631         * elf/dl-minimal.c (__strsep): New minimal implementation.
9633 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9635         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9636         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9637         with tm_isdst > 0 when the requested time falls within a
9638         spring-forward gap [PR libc/2894].
9640 2002-02-03  Andreas Schwab  <schwab@suse.de>
9642         * stdio-common/tst-rndseek.c: Increase timeout.
9644 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9646         Change ld.so to not use functions which are exported.  One cannot
9647         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9648         definitions.
9649         * include/libc-symbols.h: Define INT and INTDEF.
9650         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9651         _dl_signal_error_internal, _dl_map_object_internal,
9652         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9653         _dl_lookup_versioned_symbol_internal,
9654         _dl_relocate_object_internal, _dl_debug_state_internal,
9655         _dl_start_profile_internal, and _dl_unload_cache_internal.
9656         * include/dlfcn.h: Declare _dl_catch_error_internal.
9657         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9658         above.  Add INTDEF to function definitions.
9659         * elf/dl-debug.c: Likewise.
9660         * elf/dl-deps.c: Likewise.
9661         * elf/dl-dst.h: Likewise.
9662         * elf/dl-error.c: Likewise.
9663         * elf/dl-fini.c: Likewise.
9664         * elf/dl-init.c: Likewise.
9665         * elf/dl-load.c: Likewise.
9666         * elf/dl-lookup.c: Likewise.
9667         * elf/dl-misc.c: Likewise.
9668         * elf/dl-open.c: Likewise.
9669         * elf/dl-profile.c: Likewise.
9670         * elf/dl-reloc.c: Likewise.
9671         * elf/dl-runtime.c: Likewise.
9672         * elf/dl-version.c: Likewise.
9673         * elf/do-lookup.h: Likewise.
9674         * sysdeps/generic/dl-cache.c: Likewise.
9675         * sysdeps/generic/dl-sysdep.c: Likewise.
9676         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9677         instead of _dl_init.
9678         * sysdeps/arm/dl-machine.h: Likewise.
9679         * sysdeps/cris/dl-machine.h: Likewise.
9680         * sysdeps/hppa/dl-machine.h: Likewise.
9681         * sysdeps/i386/dl-machine.h: Likewise.
9682         * sysdeps/ia64/dl-machine.h: Likewise.
9683         * sysdeps/m68k/dl-machine.h: Likewise.
9684         * sysdeps/mips/dl-machine.h: Likewise.
9685         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9686         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9687         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9688         * sysdeps/sh/dl-machine.h: Likewise.
9689         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9690         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9691         * sysdeps/x86_64/dl-machine.h: Likewise.
9692         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9694         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9695         and _dl_debug_initialize.
9697         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9698         more information.
9699         * elf/rtld.c (dl_main): Avoid strrchr.
9700         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9701         result of readlink.  Search from the back for '/'.
9703         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9704         strncpy if possible.
9706         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9707         strncmp.
9708         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9709         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9710         strspn, and strcspn.
9711         (process_envvars): Don't use strcspn.
9713         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9714         (_dl_dst_substitute): Likewise.
9716 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9718         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9719         code which is never used when relocating ld.so itself.
9721         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9722         starting ld.so itself.  Move l_addr variable initialization closer
9723         to use.
9724         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9726 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9728         * Versions.def (libc): Add GLIBC_PRIVATE.
9729         (libdb, libnss_db, libdb1): Remove.
9730         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9731         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9732         (libpthread): Add GLIBC_PRIVATE.
9733         (libresolv): Likewise, remove GLIBC_2.1.
9734         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9735         GLIBC_2.2.3, GLIBC_2.3.
9736         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9737         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9738         _dl_sym, _dl_vsym): Likewise.
9739         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9740         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9741         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9742         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9743         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9744         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9745         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9746         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9747         Likewise.
9748         (_dl_object_relocation_scope): Remove.
9749         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9750         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9751         __gconv_cache): Move to GLIBC_PRIVATE.
9752         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9753         __internal_setnetgrent): Likewise.
9754         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9755         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9756         * locale/Versions (__collate_element_hash, __collate_element_strings,
9757         __collate_symbol_classes, __collate_symbol_hash,
9758         __collate_symbol_strings, _nl_current_LC_COLLATE,
9759         _nl_current_LC_CTYPE): Likewise.
9760         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9761         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9762         (libnss_nis, libnss_nisplus): Likewise.
9763         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9764         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9765         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9766         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9767         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9768         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9769         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9770         __ns_get16, __ns_samename): Likewise.
9771         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9772         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9773         GLIBC_PRIVATE.
9774         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9775         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9776         __libc_connect): Likewise.
9777         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9778         Likewise.
9779         * stdlib/Versions (__libc_system): Likewise.
9780         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9781         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9782         * sysdeps/ia64/fpu/Versions: Likewise.
9783         * sysdeps/ia64/Versions: Likewise.
9784         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9785         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9786         to GLIBC_PRIVATE.
9787         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9788         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9789         __libc_sigaction): Likewise.
9790         * termios/Versions (__libc_tcdrain): Likewise.
9792         * misc/sys/cdefs (__attribute_noinline__): Define.
9793         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9794         __attribute_noinline__.
9796         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9797         * elf/dl-xstat64.c: New file.
9798         * elf/dl-fxstat64.c: New file.
9799         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9800         don't export __fxstat64 at multiple versions.
9801         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9802         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9804 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9806         * locale/program/ld-collate.c (collate_finish): Assign a wide
9807         char collation sequence value to multi character collating
9808         elements, and avoid over writing by non-character elements.
9810 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9812         * elf/Makefile (distribute): Add dl-procinfo.c.
9813         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9814         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9816 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9818         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9819         definition.
9820         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9821         _rtld_global struct.
9822         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9823         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9824         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9825         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9826         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9827         _dl_fpu_control_set): Remove unused externs.
9828         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9829         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9830         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9831         related variables in _rtld_global struct.
9832         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9833         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9834         unused extern.
9836 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9838         * sysdeps/generic/dl-procinfo.c: New file.
9840 2002-02-01  Andreas Schwab  <schwab@suse.de>
9842         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9844 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9846         * elf/rtld.c (_dl_start): Mark as internal_function.
9847         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9848         in register.
9849         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9850         General pretty printing.
9852 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9854         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9855         * elf/dl-reloc.c: Pretty printing.
9856         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9857         procinfo-related variables in rtld_global struct.
9858         * elf/dl-support.c: Likewise.
9859         * elf/rtld.c: Likewise.
9860         * sysdeps/i386/i686/Makefile: Likewise.
9861         * sysdeps/i386/i686/hp-timing.c: Likewise.
9862         * sysdeps/i386/i686/hp-timing.h: Likewise.
9863         * sysdeps/ia64/Makefile: Likewise.
9864         * sysdeps/ia64/hp-timing.c: Likewise.
9865         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9866         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9867         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9868         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9869         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9870         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9871         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9872         * sysdeps/x86_64/Makefile: Likewise.
9874         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9875         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9876         _dl_debug_fd to rtld_global.
9877         * elf/Versions: Likewise.
9878         * elf/dl-close.c: Likewise.
9879         * elf/dl-iteratephdr.c: Likewise.
9880         * elf/dl-lookup.c: Likewise.
9881         * elf/dl-misc.c: Likewise.
9882         * elf/dl-open.c: Likewise.
9883         * elf/dl-support.c: Likewise.
9884         * elf/do-lookup.h: Likewise.
9885         * elf/rtld.c: Likewise.
9886         * sysdeps/generic/dl-cache.c: Likewise.
9887         * sysdeps/generic/dl-sysdep.c: Likewise.
9888         * sysdeps/ia64/Versions: Likewise.
9889         * sysdeps/unix/clock_gettime.c: Likewise.
9890         * sysdeps/unix/clock_settime.c: Likewise.
9891         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9892         * sysdeps/sparc/Versions: Removed.
9893         * sysdeps/i386/i686/Versions : Removed.
9894         * sysdeps/x86_64/Versions: Removed.
9895         * configure.in: Define HAVE_PROTECTED if .protected is available.
9896         * config.h.in: Add entry for HAVE_PROTECTED.
9898 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9900         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9901         code in struct _rtld_global.  Export this struct, remove all
9902         exports for the signal variables.
9903         * sysdeps/arm/dl-machine: Likewise.
9904         * sysdeps/generic/dl-origin: Likewise.
9905         * sysdeps/generic/dl-sysdep: Likewise.
9906         * sysdeps/generic/dl-cache: Likewise.
9907         * sysdeps/hppa/dl-fptr: Likewise.
9908         * sysdeps/hppa/dl-machine: Likewise.
9909         * sysdeps/cris/dl-machine: Likewise.
9910         * sysdeps/i386/dl-machine: Likewise.
9911         * sysdeps/ia64/dl-machine: Likewise.
9912         * sysdeps/m68k/dl-machine: Likewise.
9913         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9914         * sysdeps/mips/mips64/dl-machine: Likewise.
9915         * sysdeps/mips/dl-machine: Likewise.
9916         * sysdeps/powerpc/elf/libc-start: Likewise.
9917         * sysdeps/powerpc/dl-machine: Likewise.
9918         * sysdeps/powerpc/dl-start: Likewise.
9919         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9920         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9921         * sysdeps/sh/dl-machine: Likewise.
9922         * sysdeps/s390/s390-32/dl-machine: Likewise.
9923         * sysdeps/s390/s390-64/dl-machine: Likewise.
9924         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9925         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9926         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9927         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9928         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9929         * sysdeps/x86_64/dl-machine: Likewise.
9931 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9933         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9934         are too high.
9936 2002-01-31  Andreas Schwab  <schwab@suse.de>
9938         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9940 2002-01-31  Andreas Schwab  <schwab@suse.de>
9942         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9943         reference to _dl_pagesize.
9945 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9947         * Versions.def [ld]: Add GLIBC_2.3.
9948         * elf/dl-addr.c: Move global variables for SHARED code in struct
9949         _rtld_global.  Export this struct, remove all exports for the
9950         signal variables.
9951         * elf/dl-close.c: Likewise.
9952         * elf/dl-conflict.c: Likewise.
9953         * elf/dl-debug.c: Likewise.
9954         * elf/dl-deps.c: Likewise.
9955         * elf/dl-dst.h: Likewise.
9956         * elf/dl-error.c: Likewise.
9957         * elf/dl-fini.c: Likewise.
9958         * elf/dl-init.c: Likewise.
9959         * elf/dl-iteratephdr.c: Likewise.
9960         * elf/dl-libc.c: Likewise.
9961         * elf/dl-load.c: Likewise.
9962         * elf/dl-lookup.c: Likewise.
9963         * elf/dl-minimal.c: Likewise.
9964         * elf/dl-object.c: Likewise.
9965         * elf/dl-open.c: Likewise.
9966         * elf/dl-profile.c: Likewise.
9967         * elf/dl-profstub.c: Likewise.
9968         * elf/dl-reloc.c: Likewise.
9969         * elf/dl-runtime.c: Likewise.
9970         * elf/dl-support.c: Likewise.
9971         * elf/dl-sym.c: Likewise.
9972         * elf/dl-version.c: Likewise.
9973         * elf/do-lookup.h: Likewise.
9974         * elf/do-rel.h: Likewise.
9975         * elf/dynamic-link.h: Likewise.
9976         * elf/rtld.c: Likewise.
9977         * sysdeps/generic/dl-cache.c: Likewise.
9978         * sysdeps/generic/dl-sysdep.c: Likewise.
9979         * sysdeps/generic/ldsodefs.h: Likewise.
9980         * sysdeps/generic/libc-start.c: Likewise.
9981         * sysdeps/i386/dl-machine.h: Likewise.
9982         * sysdeps/ia64/dl-fptr.c: Likewise.
9983         * sysdeps/ia64/dl-machine.h: Likewise.
9984         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9985         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9986         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9987         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9988         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9989         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9990         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9991         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9993 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9995         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9996         to avoid warning
9997         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9999         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10000         SHARED version.
10001         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10003         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10005 2002-01-29  Ben Collins  <bcollins@debian.org>
10007         * string/bits/string2.h (__mempcpy): Protect size arg for
10008         addition when using __builtin_memcpy.
10010 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10012         * stdlib/Makefile (tests): Add tst-qsort.
10013         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10015         * manual/signal.texi (Process Signal Mask): Document that
10016         pthread_sigmask, not sigprocmask, must be used in MT programs.
10017         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10019         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10020         found.
10021         * misc/Makefile (tests): Add tst-hsearch.
10022         * misc/tst-hsearch.c: New file.
10024 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10026         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10027         * malloc/malloc.h: Likewise.
10028         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10029         * malloc/arena.c: New file.
10030         * malloc/hooks.c: New file.
10031         * malloc/tst-mallocstate.c: New file.
10032         * malloc/Makefile: Add new testcase tst-mallocstate.
10033         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10035 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10037         * stdlib/msort.c: Remove last patch.  The optimization violates the
10038         same rule which qsort.c had problems with.
10040 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10042         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10043         to a pivot element that lies outside the array to be sorted, as
10044         ISO C99 requires that the comparison function be called only with
10045         addresses of array elements [PR libc/2880].
10047 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10049         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10050         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10052         * timezone/asia: Update from tzdata2002b.
10053         * timezone/australasia: Likewise.
10054         * timezone/backward: Likewise.
10055         * timezone/europe: Likewise.
10056         * timezone/leapseconds: Likewise.
10057         * timezone/iso3166.tab: Likewise.
10058         * timezone/zone.tab: Likewise.
10060 2002-01-23  Richard Henderson  <rth@redhat.com>
10062         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10064 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10066         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10067         this element [PR libc/2855].
10069         * string/strcoll.c: Handle zero-length arguments specially
10070         [PR libc/2856].
10072 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10074         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10075         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10076         short lengths and constant src.
10077         (strcpy): Don't optimize for gcc 3.0+.
10078         (__stpcpy): For gcc 3.0+, don't use
10079         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10080         for short string literal src.
10082 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10084         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10085         Set for arm, too.
10087 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10089         * manual/llio.texi (Linked Channels, Cleaning Streams):
10090         Make it clearer that a just-opened input stream might need cleaning.
10092 2002-01-21  H.J. Lu  <hjl@gnu.org>
10094         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10095         Don't use label at end of compound statement.
10097 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10099         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10100         Remove test for negative integer arg; sin_pi does it correctly.
10102 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10104         * nscd/Makefile (distribute): Filter out xmalloc.c.
10106 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10108         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10109         Set offset if read end wasn't the buffer end.
10110         (_IO_file_seekoff_mmap): New function.
10111         (_IO_file_xsgetn_mmap): New function.
10112         (_IO_file_jumps_mmap): Use the two new functions.
10113         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10114         != end buffer.
10115         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10116         _IO_file_underflow_mmap.
10117         * libio/iofopen.c: Don't position file descriptor at end of file.
10118         * libio/tst-widetext.c: Improve error messages.
10119         * stdio-common/tst-rndseek.c: Likewise.
10121 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10123         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10124         end of enum for !_GNU_SOURCE.
10125         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10126         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10127         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10128         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10129         values unless _GNU_SOURCE.
10131         * iconvdata/tcvn5712-1.c: Minor cleanups.
10133 2002-01-18  Andreas Schwab  <schwab@suse.de>
10135         * sysdeps/unix/sysv/linux/configure.in
10136         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10138 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10140         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10141         more efficient "Towers of Hanoi" mergesort.
10142         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10143         for generic, sizeof(int) and sizeof(long) variants respectively.
10145 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10147         * manual/syslog.texi (openlog): Describe possible problems with
10148         first parameter.
10149         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10151         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10152         * nscd/connections.c (begin_drop_privileges): New function.
10153         (finish_drop_privileges): New function.
10154         (nscd_init): Call the new functions which also install all groups
10155         for the server user.
10156         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10157         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10159 2002-01-17  H.J. Lu  <hjl@gnu.org>
10161         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10162         `const' from `got'.
10164 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10166         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10167         instructions for pointer operations.
10168         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10170 2002-01-17  Andreas Jaeger  <aj@suse.de>
10172         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10173         __uint128_t build-in.
10175         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10176         PowerPC, sync with 2.2 branch.
10178 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10180         * posix/getconf.c: Update copyright year.
10181         * nss/getent.c: Likewise.
10182         * nscd/nscd_nischeck.c: Likewise.
10183         * iconv/iconvconfig.c: Likewise.
10184         * iconv/iconv_prog.c: Likewise.
10185         * elf/ldconfig.c: Likewise.
10186         * catgets/gencat.c: Likewise.
10187         * csu/version.c: Likewise.
10188         * elf/ldd.bash.in: Likewise.
10189         * elf/sprof.c (print_version): Likewise.
10190         * locale/programs/locale.c: Likewise.
10191         * locale/programs/localedef.c: Likewise.
10192         * nscd/nscd.c (print_version): Likewise.
10193         * debug/xtrace.sh: Likewise.
10194         * malloc/memusage.sh: Likewise.
10195         * malloc/mtrace.pl: Likewise.
10197 2002-01-16  Andreas Schwab  <schwab@suse.de>
10199         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10200         reliably remove "-ia64" from rtld name.
10202 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10204         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10205         Patch by Yu Shao <yshao@redhat.com>.
10207 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10209         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10210         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10211         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10213 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10215         * sysdeps/s390/fpu/libm-test-ulps: Update.
10217 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10219         * elf/elf.h: Update x86 relocations.
10221 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10223         * locale/programs/charmap.c (new_width): Check whether byte
10224         sequences for both ends of range have the same length.
10226 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10228         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10230 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10232         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10233         string literals.
10234         (__full_ieee754_sqrt): Add __attribute_used__.
10236 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10238         * sysdeps/generic/group_member.c (__group_member): Also check
10239         groups[0] [PR libc/2781].
10241 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10243         * Makefile (distribute): Add scripts/cpp.
10244         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10245         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10246         unwind-dw2-fde.h, and dwarf2.h.
10247         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10248         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10249         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10250         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10252 2002-01-07  Roland McGrath  <roland@frob.com>
10254         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10255         volatile on type of ARGC so the compiler doesn't get clever.
10257 2002-01-07  Andreas Jaeger  <aj@suse.de>
10259         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10260         * sysdeps/i386/bits/byteswap.h: Likewise.
10261         * sysdeps/ia64/bits/byteswap.h: Likewise.
10262         * sysdeps/m68k/bits/byteswap.h: Likewise.
10263         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10264         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10266 2002-01-02  Bruno Haible  <bruno@clisp.org>
10268         * intl/plural.y: Fix %expect count.
10270 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10272         * elf/Makefile (routines, shared-only-routines): Add
10273         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10274         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10275         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10276         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10277         Optimize if .eh_frame section contains no FDEs.
10278         (__register_frame, __deregister_frame_info_bases,
10279         __deregister_frame): Likewise.
10280         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10281         DW_CFA_restore handling.
10283 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10285         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10287         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10288         for x < 0.25 and restore original range reduction method.
10289         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10291 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10293         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10294         (_IO_file_close_mmap): New function.
10295         (_IO_file_jumps_mmap): New variable.
10296         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10297         trying to convert rest of byte buffer.
10298         (_IO_wfile_underflow_mmap): New function.
10299         (_IO_wfile_jumps_mmap): New variable.
10300         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10301         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10302         (_IO_new_fopen): Call __fopen_internal.
10303         * libio/iofopen64.c: Just call __fopen_internal.
10304         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10305         successfully.
10306         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10307         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10308         _IO_file_close_mmap.
10310         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10311         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10313         * stdio-common/Makefile (tests): Add tst-rndseek.
10314         * stdio-common/tst-rndseek.c: New file.
10316 2002-01-05  Roland McGrath  <roland@frob.com>
10318         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10319         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10320         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10321         * sysdeps/mach/hurd/configure: Regenerated.
10323 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10325         * elf/elf.h: Add more TLS definitions.
10327 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10329         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10331 2002-01-02  Roland McGrath  <roland@frob.com>
10333         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10334         __sigisemptyset.  Don't use MASK uninitialized.
10336         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10337         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10338         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10339         __sigdelset, __sigaddset, __sigorset.
10341         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10342         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10344         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10345         _hurd_ports is null.
10347         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10348         for old CMU and new OSF Mach interface flavors.
10349         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10350         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10352         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10354         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10355         Pass extra arguments to task_create for OSF variant.
10356         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10358         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10359         conditional on [HAVE_AUX_VECTOR].
10361         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10362         mach_msg_timeout_t as type of final argument.
10364         * hurd/privports.c (__get_privileged_ports):
10365         Change host_priv_t to mach_port_t in argument type.
10366         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10367         Update decls.
10369         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10370         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10371         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10372         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10373         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10374         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10376 2002-01-01  Roland McGrath  <roland@frob.com>
10378         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10380 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10382         * include/stdlib.h: Define inlines for the _l variants of the strto*
10383         functions.
10385 2002-01-01  Roland McGrath  <roland@frob.com>
10387         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10389         * mach/Machrules (MIG): Set CPP as well as CC.
10391 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10393         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10394         locale to parse /proc/loadavg [PR libc/2760].
10396 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10398         * elf/dl-conflict.c: Include sys/param.h.
10399         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10400         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10401         warning.
10402         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10403         literals to avoid warnings.
10405 2001-12-31  Andreas Jaeger  <aj@suse.de>
10407         * configure.in: Don't check for gsed since we do not use it anywhere.
10409 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10411         * io/fts.c: Update from BSD to fix memory leaks.
10413 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10415         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10416         * elf/chroot_canon.c: Likewise.
10417         * elf/dl-object.c: Likewise.
10418         * iconv/iconv_charmap.c: Likewise.
10419         * iconv/iconv_prog.c: Likewise.
10420         * libio/iogetdelim.c: Likewise.
10421         * locale/lc-time.c: Likewise.
10422         * stdlib/canonicalize.c: Likewise.
10423         * sunrpc/svc.c: Likewise.
10424         * sysdeps/generic/glob.c: Likewise.
10426 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10428         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10429         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10430         remove high order bit from the program counter.
10431         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10433 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10435         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10436         unnecessary code and add missing reloc types.
10437         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10438         case for reloc type R_390_NONE.
10440 2001-12-28  Andreas Jaeger  <aj@suse.de>
10442         * io/bug-ftw3.c: Include string.h for prototypes.
10444         * crypt/md5test.c (main): Remove unused variable.
10446         * dlfcn/modstatic.c: Add prototype to avoid warning.
10448 2001-12-26  Roland McGrath  <roland@frob.com>
10450         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10451         check only (SS->pending & MASK) for the signal to return.
10452         From Jeroen Dekkers <jeroen@dekkers.cx>.
10454 2001-12-22  Roland McGrath  <roland@frob.com>
10456         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10457         Use preprocessor #if conditionals instead of `if' to avoid
10458         warnings about divide by zero in dead code.
10460         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10461         _hurd_port_init, and __hurd_self_sigstate.
10463         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10465 2001-12-21  Andreas Jaeger  <aj@suse.de>
10467         * elf/dblloadmod1.c: Add prototype to avoid warning.
10468         * elf/dblloadmod2.c: Likewise.
10469         * elf/dblloadmod3.c: Likewise.
10470         * elf/reldepmod5.c: Likewise.
10471         * elf/reldepmod6.c: Likewise.
10473         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10474         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10475         used on all architectures.
10477         * sunrpc/svc_tcp.c: Add noreturn attribute for
10478         svctcp_rendezvous_abort.
10479         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10481         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10482         to avoid warning.
10484 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10486         * manual/llio.texi (aio_fsync): Fix a typo.
10487         Patch by Tammy Fox <tfox@redhat.com>.
10489 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10491         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10492         stack bias from child stack pointer before passing it to clone syscall.
10494 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10496         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10497         _SC_TZNAME_MAX.
10498         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10499         Reported by Thorsten Kukuk <kukuk@suse.de>.
10501         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10502         add some casts.
10504         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10506 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10508         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10509         conforming: return EBADF if file descriptor is invalid and EINVAL
10510         if file descriptor is no valid tty.
10511         * login/tst-grantpt.c: New file.
10512         * login/Makefile (tests): Add tst-grantpt.
10514 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10516         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10517         different than implemented in last patch.
10518         * io/bug-ftw3.c: Adjust test for changed handling of
10519         inaccessibility of toplevel dir.
10521 2001-12-16  Roland McGrath  <roland@frob.com>
10523         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10524         * grp/initgroups.c (internal_getgrouplist): Likewise.
10526         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10527         `default:' to silence new GCC warning.
10528         Rewrite cast of lvalue to silence new GCC warning.
10530         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10532         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10533         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10535 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10537         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10538         Patch by Stephen R. van den Berg.
10540         * crypt/md5.h: Define md5_uintptr.
10542 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10544         * libio/tst_swprintf.c (main): Add test for string argument with
10545         zero precision.
10546         * stdio-common/Makefile (tests): Add tst-sprintf.
10547         * stdio-common/tst-sprintf.c: New file.
10549 2001-12-13  Andreas Schwab  <schwab@suse.de>
10551         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10552         zero precision with wide character string format.
10554 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10556         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10557         but have a user supplied buffer, return the empty buffer, not NULL.
10559 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10561         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10562         Patch by Eric Sharkey <sharkey@netrics.com>.
10564         * crypt/md5test.c (main): Add test for multiple calls to
10565         __md5_process_bytes to itererate over input string.
10567 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10569         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10570         from __nis_findfastest.  Take timeout value from parameter.
10571         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10572         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10573         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10575 2001-12-12  Andreas Jaeger  <aj@suse.de>
10577         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10578         combreloc test so that it works in this case.
10580         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10582 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10584         * sysdeps/sh/Makefile: New file.
10585         * sysdeps/sh/_mcount.S: New file.
10586         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10587         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10589 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10591         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10592         limitation [PR libc/2564].
10594 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10596         * elf/Makefile (dl-routines): Add conflict.
10597         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10598         (ld.so): Add _begin local symbol.
10599         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10600         Define.
10601         * elf/dl-deps.c (_dl_build_local_scope): New function.
10602         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10603         of all libraries.
10604         * elf/do-rel.h (VALIDX): Define.
10605         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10606         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10607         can be skipped.
10608         * elf/dl-conflict.c: New file.
10609         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10610         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10611         non-NULL.
10612         (_dl_lookup_symbol_skip): Likewise.
10613         (_dl_lookup_versioned_symbol): Likewise.
10614         (_dl_lookup_versioned_symbol_skip): Likewise.
10615         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10616         define to ElfW(Rel).
10617         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10618         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10619         ranges.
10620         Don't adjust address dynamic tags if l_addr is 0.
10621         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10622         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10623         (VALIDX, ADDRIDX): Define.
10624         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10625         (dl_main): Print library list for LD_TRACE_PRELINKING.
10626         If prelinking information can be used, skip relocating libraries and
10627         call _dl_resolve_conflicts instead.
10628         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10629         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10630         if LD_TRACE_PRELINKING.
10631         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10632         + DT_ADDRNUM.
10633         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10634         (DL_DEBUG_PRELINK): Define.
10635         (_dl_resolve_conflicts): Add prototype.
10637         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10638         .plt for prelinked libraries where prelinking info cannot be used.
10639         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10640         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10641         * sysdeps/arm/bits/link.h: New file.
10642         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10643         content of .got[1].
10644         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10645         (ELF_MACHINE_PLT_REL): Define.
10646         (elf_machine_rela, elf_machine_rela_relative): New functions.
10647         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10648         of adjusting it if prelinked and prelinking cannot be used.
10649         * sysdeps/i386/bits/link.h: New file.
10650         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10651         content of .got[1].
10652         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10653         (ELF_MACHINE_PLT_REL): Define.
10654         (elf_machine_rela, elf_machine_rela_relative): New functions.
10655         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10656         of adjusting it if prelinked and prelinking cannot be used.
10657         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10658         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10659         to find out map for R_PPC_JMP_SLOT relocs.
10660         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10661         (OPCODE_BA): Define.
10662         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10663         libraries where prelinking info cannot be used.
10664         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10665         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10666         (elf_machine_rela): Set value to 0 if relocating conflicts.
10667         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10668         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10669         (sparc64_fixup_plt): Fix a typo.
10670         (elf_machine_rela): Set value to 0 if relocating conflicts.
10671         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10672         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10673         libraries where prelinking info cannot be used.
10674         * sysdeps/sh/bits/link.h: New file.
10675         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10676         content of .got[1].
10677         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10678         of adjusting it if prelinked and prelinking cannot be used.
10679         * sysdeps/s390/s390-32/bits/link.h: New file.
10680         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10681         Save original content of .got[1].
10682         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10683         of adjusting it if prelinked and prelinking cannot be used.
10684         * sysdeps/s390/s390-64/bits/link.h: New file.
10685         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10686         Save original content of .got[1].
10687         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10688         of adjusting it if prelinked and prelinking cannot be used.
10689         * sysdeps/x86_64/bits/link.h: New file.
10690         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10691         Save original content of .got[1].
10692         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10693         of adjusting it if prelinked and prelinking cannot be used.
10695 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10697         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10698         where appropriate instead of numbers.  Little optimizations.
10700 2001-12-10  Roland McGrath  <roland@frob.com>
10702         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10703         set it.
10705         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10706         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10708         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10709         Fix conditionals so this is set by default for stdio and not for libio.
10710         * sysdeps/mach/hurd/configure: Regenerated.
10712 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10714         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10716 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10718         * io/Makefile (tests): Add bug-ftw3.
10719         * io/bug-ftw3.c: New file.
10721         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10722         matches and GLOB_NOCHECK is set.
10723         * posix/globtest.sh: Correct expected result for NOCHECK test.
10725         * po/ca.po: Update from translation team.
10727 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10729         Implement transliteration of characters in strings of the locale
10730         definitions.
10731         * locale/programs/linereader.c: Adjust for additional parameter to
10732         lr_token.
10733         (get_string): If character <Uxxxx> is not found try to transliterate
10734         it.
10735         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10736         lr_token.  Add const to charmap parameter of all functions.
10737         (find_translit, find_translit2): New functions.
10738         * locale/programs/charmap.c: Adjust for additional parameter to
10739         lr_token.
10740         * locale/programs/repertoire.c: Likewise.
10741         * locale/programs/linereader.h: Likewise.
10742         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10743         parameter of all functions.
10744         * locale/programs/ld-collate.c: Likewise.
10745         * locale/programs/ld-identification.c: Likewise.
10746         * locale/programs/ld-measurement.c: Likewise.
10747         * locale/programs/ld-messages.c: Likewise.
10748         * locale/programs/ld-monetary.c: Likewise.
10749         * locale/programs/ld-name.c: Likewise.
10750         * locale/programs/ld-numeric.c: Likewise.
10751         * locale/programs/ld-paper.c: Likewise.
10752         * locale/programs/ld-paper.c: Likewise.
10753         * locale/programs/ld-telephone.c: Likewise.
10754         * locale/programs/ld-time.c: Likewise.
10755         * locale/programs/locfile.c: Likewise.
10756         * locale/programs/localedef.c: Likewise.
10757         * locale/programs/localedef.h: Likewise.
10758         * locale/programs/locfile.h: Likewise.  Add declaration for
10759         find_translit.
10760         * locale/programs/simple-hash.c: Add const to first parameter of
10761         find_entry, iterate_table, and lookup.
10762         * locale/programs/simple-hash.h: Likewise.
10763         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10764         instead.
10765         * include/locale.h: Define __LC_LAST.
10766         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10768 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10770         * sysdeps/powerpc/Dist: Update for recent FP changes.
10771         * sysdeps/powerpc/fpu/Dist: Likewise.
10773 2001-12-07  Andreas Schwab  <schwab@suse.de>
10775         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10777 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10779         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10780         save/restore functions here.
10781         (libm-support): Don't define these functions here.
10782         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10783         functions here.
10784         * sysdeps/powerpc/fe_nomask.c: Move to...
10785         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10786         * sysdeps/powerpc/fprrest.S: Move to...
10787         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10788         * sysdeps/powerpc/fprsave.S: Move to...
10789         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10791 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10793         * sysdeps/unix/sysv/linux/opensock.c: New file.
10795 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10797         * config.make.in (with-fp): Define from configure.
10798         * configure.in: Substitute with_fp.
10799         * configure: Regenerate.
10800         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10801         specified, and don't change FPU environment.
10803 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10805         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10806         * assert/assert.c: Check result of __asprintf call and don't use
10807         string if it failed.
10808         * assert/assert-perr.c: Likewise.
10809         * inet/rcmd.c: Likewise.
10810         * locale/programs/localedef.c (main): Check result of
10811         construct_output_path and exit if it failed.
10812         (construct_output_path): Check result of asprintf and mkdir calls and
10813         fail if they failed.
10814         * posix/getopt.c: Check result of __asprintf calls and fail if
10815         they failed.
10816         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10818 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10820         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10821         patch.
10822         * sysdeps/generic/strncase.c: Likewise.
10823         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10825 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10827         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10829         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10830         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10831         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10832         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10833         * sysdeps/powerpc/fclrexcpt.c: Move to...
10834         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10835         * sysdeps/powerpc/fpu_control.h: Move to...
10836         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10838 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10840         * iconvdata/ibm1129.h: Remove duplicate mappings.
10841         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10842         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10843         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10845         * timezone/zic.c: Fix handling of turnaround times.
10846         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10848 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10850         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10851         overflow problem.
10853 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10855         * posix/regex.c: For use outside glibc defined bounded pointer
10856         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10858         * iconvdata/Makefile (modules): Add TCVN5712-1.
10859         * iconvdata/TESTS: Add TCVN5712-1.
10860         * iconvdata/gconv-modules: Likewise.
10861         * iconvdata/tcvn5712-1.c: New file.
10862         * iconvdata/testdata/TCVN-5712: New file.
10863         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10865 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10867         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10869 2001-12-02  Roland McGrath  <roland@frob.com>
10871         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10873         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10874         Reported by Jeff Bailey <jbailey@nisa.net>.
10876         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10877         Reported by Jeff Bailey <jbailey@nisa.net>.
10879         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10880         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10881         Reported by Jeff Bailey <jbailey@nisa.net>.
10883 2001-12-01  Roland McGrath  <roland@frob.com>
10885         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10886         missing backslash in test arguments.
10887         * sysdeps/mach/hurd/configure: Regenerated.
10889 2001-11-26  Roland McGrath  <roland@frob.com>
10891         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10892         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10894 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10896         * iconvdata/Makefile (modules): Add ARMSCII-8.
10897         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10898         * iconvdata/armscii-8.c: New file.
10900 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10902         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10903         don't match, fix {{a,b},c} globbing, clean up.
10904         Patch by Flavio Veloso <flaviovs@magnux.com>.
10905         * posix/globtest.sh: Add new tests.
10907 2001-11-29  Andreas Jaeger  <aj@suse.de>
10909         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10910         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10912         * sysdeps/generic/abort.c: Include libioP.h for
10913         _IO_flush_all_lockp prototype.
10915 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10917         * posix/regex.h: Define __restrict_arr correctly.
10919 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10921         * iconvdata/ibm1163.c: New file.
10922         * iconvdata/ibm1163.h: New file.
10923         * iconvdata/ibm1164.c: New file.
10924         * iconvdata/ibm1164.h: New file.
10925         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10926         * iconvdata/Makefile: Likewise.
10927         * iconvdata/testdata/IBM1163: New file.
10928         * iconvdata/testdata/IBM1163..UTF8: New file.
10929         * iconvdata/testdata/IBM1164: New file.
10930         * iconvdata/testdata/IBM1164..UTF8: New file.
10931         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10933         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10934         * iconvdata/ibm1124.h: Likewise.
10935         * iconvdata/ibm1132.h: Likewise.
10936         * iconvdata/ibm1133.h: Likewise.
10937         * iconvdata/ibm1160.h: Likewise.
10938         * iconvdata/ibm1161.h: Likewise.
10939         * iconvdata/ibm1162.h: Likewise.
10940         * iconvdata/ibm856.h: Likewise.
10941         * iconvdata/ibm922.h: Likewise.
10942         * iconvdata/ibm930.h: Likewise.
10943         * iconvdata/ibm932.h: Likewise.
10944         * iconvdata/ibm933.h: Likewise.
10945         * iconvdata/ibm935.h: Likewise.
10946         * iconvdata/ibm937.h: Likewise.
10947         * iconvdata/ibm939.h: Likewise.
10948         * iconvdata/ibm943.h: Likewise.
10949         * iconvdata/ibm930.c: Pretty printing.
10950         * iconvdata/ibm937.c: Avoid access accross array boundary.
10952         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10953         the current locale's codeset.
10954         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10955         empty input string.
10956         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10957         and from-charset.  Don't determine locale's charset here.
10959         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10960         as the old _IO_flush_all but lock only if parameter is nonzero.
10961         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10962         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10963         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10964         if libio is used [PR libc/2575].
10966 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10968         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10969         __signbitl): Only define for ISO C99.
10971 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10973         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10974         herrnop to NETDB_INTERNAL if we run out of buffer space.
10976 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10978         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10979         overflow test for platforms with signed char.
10980         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10982 2001-11-28  Bruno Haible  <bruno@clisp.org>
10984         * locale/programs/simple-hash.c (lookup_2): Remove function.
10985         (insert_entry_2): Call lookup instead of lookup_2.
10987 2001-03-04  Bruno Haible  <bruno@clisp.org>
10989         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10991 2001-10-31  Bruno Haible  <bruno@clisp.org>
10993         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10995 2001-03-21  Bruno Haible  <bruno@clisp.org>
10997         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10998         chokes on empty macro arguments.
10999         * intl/plural.y: Add #pragma for alloca on AIX 3.
11001 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11003         * intl/dcigettext.c (guess_category_value): Only implement for
11004         glibc.  Otherwise rely on function _nl_locale_name which isn't
11005         present in the glibc sources.
11007 2001-09-24  Bruno Haible  <bruno@clisp.org>
11009         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11010         transliteration when building on a glibc system but outside glibc.
11012 2001-09-22  Bruno Haible  <bruno@clisp.org>
11014         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11015         * intl/dcigettext.c (plural_eval): Remove function, moved to
11016         intl/plural-eval.c.
11017         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11018         Include plural-eval.c.
11020 2001-09-22  Bruno Haible  <bruno@clisp.org>
11022         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11023         don't start with a digit; nplurals must be positive.
11025 2001-09-02  Bruno Haible  <bruno@clisp.org>
11027         * intl/plural-exp.h: New file, extracted from gettextP.h.
11028         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11029         * intl/gettextP.h (struct expression, struct parse_args,
11030         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11031         * intl/loadmsgcat.c: Include plural-exp.h.
11032         (PLURAL_PARSE): Move macro to plural-exp.h.
11033         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11034         plural-exp.c.
11035         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11036         EXTRACT_PLURAL_EXPRESSION.
11037         (_nl_unload_domain): Update.
11038         * intl/dcigettext.c: Include plural-exp.h.
11039         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11040         (FREE_EXPRESSION): Move macro to plural-exp.h.
11041         * intl/Makefile (routines): Add plural-exp.
11042         (distribute): Add plural-exp.h.
11044 2001-07-28  Bruno Haible  <bruno@clisp.org>
11046         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11047         isdigit, tolower argument to 'unsigned char'.
11048         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11049         'unsigned char'.
11050         * intl/localealias.c (read_alias_file): Cast isspace argument to
11051         'unsigned char'.
11053 2001-10-20  Bruno Haible  <bruno@clisp.org>
11055         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11056         anyway.)
11057         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11058         with the variable 'index' in plural_lookup.
11059         * intl/l10nflist.c (strchr): Likewise.
11060         * intl/localealias.c (strchr): Likewise.
11062         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11063         * intl/bindtextdom.c: Likewise.
11064         * intl/dcigettext.c: Likewise.
11065         * intl/dgettext.c: Likewise.
11066         * intl/dngettext.c: Likewise.
11067         * intl/explodename.c: Likewise.
11068         * intl/finddomain.c: Likewise.
11069         * intl/gettext.c: Likewise.
11070         * intl/l10nflist.c: Likewise.
11071         * intl/loadmsgcat.c: Likewise.
11072         * intl/localealias.c: Likewise.
11073         * intl/ngettext.c: Likewise.
11074         * intl/textdomain.c: Likewise.
11075         * intl/gettext.h: Assume <limits.h> exists.
11077 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11079         * stdio-common/Makefile (tests): Add scanf11.
11080         * stdio-common/scanf11.c: New file.
11082 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11084         * version.h (RELEASE): Define as development.
11085         (VERSION): Set to 2.2.90.
11087 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11089         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11090         * nis/nss_nis/nis-grp.c: Likewise.
11091         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11093         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11094         * nis/nss_nis/nis-pwd.c: Likewise.
11095         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11097         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11098         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11099         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11101         * nscd/grpcache.c: Use strtoul instead of atol.
11102         * nscd/pwdcache.c: Likewise.
11103         * nss/getent.c: Likewise.
11105 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11107         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11108         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11110 2001-11-19  Bruno Haible  <bruno@clisp.org>
11112         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11113         90%.
11114         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11115         improves the quality of the hash function, especially for short
11116         strings.
11118 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11120         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11121         are found call conv_error and not input_error [PR libc/2669].
11123         * math/bits/mathcalls.h: Mark ceil and floor as const.
11124         Reported by David Mosberger.
11126 2001-11-21  Jim Meyering  <meyering@lucent.com>
11128         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11129         Define to be __-prefixed.
11130         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11132 2001-11-26  Andreas Jaeger  <aj@suse.de>
11134         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11135         avoid warning.
11137 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11139         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11140         initialization.
11142         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11143         unused variables.  Fix threshold for returning 1.0.
11145         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11146         argument.
11148         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11149         remove unused variables.
11151         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11153         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11154         include local math header files.
11156 2001-11-22  Andreas Jaeger  <aj@suse.de>
11158         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11159         avoid warning.
11161 2001-11-21  Andreas Jaeger  <aj@suse.de>
11163         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11165         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11166         sys/debugreg.h
11168 2001-11-15  Andreas Jaeger  <aj@suse.de>
11170         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11171         compilers that support it.
11173         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11174         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11175         * stdlib/stdlib.h: Likewise.
11177 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11179         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11180         statement with gotos.
11181         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11183 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11185         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11187 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11189         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11191 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11192             H.J. Lu  <hjl@gnu.org>
11194         * Versions.def (libc): Add GCC_3.0.
11195         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11196         if gcc supports this flag.
11197         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11198         (gcc3): Allow glibc to be compiled with gcc 3.x.
11199         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11200         * config.make.in (static-libgcc, unwind-find-fde): Add.
11201         * Makerules (build-shlib-helper, build-module-helper): Use it.
11202         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11203         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11204         necessary.
11205         (_fini): Call __deregister_frame_info_bases if
11206         __register_frame_info_bases was used to register.
11207         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11208         for GLIBC_2.0.
11209         (__register_frame_info_bases, __register_frame_info_table_bases,
11210         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11211         * elf/Makefile (routines): Add unwind-dw2-fde.
11212         (shared-only-routines): Add unwind-dw2-fde.
11213         * sysdeps/alpha/gccframe.h: New file.
11214         * sysdeps/arm/gccframe.h: New file.
11215         * sysdeps/generic/framestate.c: New file.
11216         * sysdeps/generic/dwarf2.h: New file.
11217         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11218         * sysdeps/generic/unwind-dw2-fde.c: New file.
11219         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11220         * sysdeps/generic/unwind-dw2-fde.h: New file.
11221         * sysdeps/generic/unwind-dw2.c: New file.
11222         * sysdeps/generic/unwind-pe.h: New file.
11223         * sysdeps/generic/unwind.h: New file.
11224         * sysdeps/hppa/gccframe.h: New file.
11225         * sysdeps/i386/gccframe.h: New file.
11226         * sysdeps/m68k/gccframe.h: New file.
11227         * sysdeps/mips/gccframe.h: New file.
11228         * sysdeps/powerpc/gccframe.h: New file.
11229         * sysdeps/s390/gccframe.h: New file.
11230         * sysdeps/sh/gccframe.h: New file.
11231         * sysdeps/sparc/gccframe.h: New file.
11232         * sysdeps/vax/gccframe.h: New file.
11233         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11234         Set on all architectures except ia64.
11235         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11236         for i386.
11237         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11238         __deregister_frame_info): Move to elf/Versions.
11239         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11240         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11241         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11242         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11243         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11244         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11245         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11246         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11247         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11248         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11249         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11250         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11251         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11252         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11253         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11254         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11255         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11256         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11258 2001-11-15  Jeff Law  <law@redhat.com>
11260         * posix/regex.c (uintptr_t): Do not provide a definition if the
11261         system provided one.
11263 2001-11-13  Roland McGrath  <roland@frob.com>
11265         * stdio-common/tmpfile.c: Moved to ...
11266         * sysdeps/generic/tmpfile.c: ... here.
11267         * sysdeps/mach/hurd/tmpfile.c: New file.
11269         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11270         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11271         (fopenport): Define as weak alias.
11273         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11274         * libio/libioP.h: ... to here.
11276 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11278         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11279         program header twice.  Construct list with the needed information.
11281 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11283         * po/ca.po: Update from translation team.
11285         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11286         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11287         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11288         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11290 2001-11-10  Andreas Jaeger  <aj@suse.de>
11292         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11293         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11294         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11296 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11298         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11299         correctly.
11300         * elf/dl-load.c (is_dst): New function.
11301         (_dl_dst_count): Use is_dst to check for DST variable.
11302         (_dl_dst_substitute): Likewise.
11304 2001-11-09  Roland McGrath  <roland@frob.com>
11306         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11307         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11308         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11309         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11310         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11311         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11312         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11313         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11314         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11315         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11316         * sysdeps/mach/hurd/powerpc/Dist: New file.
11318         * hurd/privports.c (__get_privileged_ports):
11319         Only contact the proc server if necessary for this call.
11320         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11321         Check error return for mach_port_mod_refs.
11323 2001-11-09  Andreas Schwab  <schwab@suse.de>
11325         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11327 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11329         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11330         object is always the last in the list.
11331         (_dl_map_object_from_fd): Delete code to remove from object list
11332         when DF_1_NOOPEN is seen.  This is done in lose.
11334 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11336         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11338 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11340         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11341         HWCAP_CHECK macro code.
11343         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11344         Now returns MAP_FAILED on error.
11345         * elf/rtld.c: Adjust caller.
11346         * sysdeps/generic/dl-cache.c: Likewise.
11347         * sysdeps/generic/ldsodefs.h: Adjust description.
11349         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11350         (_dl_check_map_versions): Likewise.
11352 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11354         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11355         _dl_signal_error directly, always use lose.  Set fd to -1 after
11356         file is closed.
11357         (lose): Don't call close if fd == -1.
11359 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11361         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11362          Also fix typo @code {mbsinit} to @code{mbsinit}.
11364 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11366         * elf/dl-profile.c: Replace state variable with simple flag named
11367         running.  Remove commented-out code.
11369         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11370         (_dl_init_paths): Likewise.
11371         (_dl_map_object_from_fd): Likewise.
11372         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11374 2001-11-06  Roland McGrath  <roland@frob.com>
11376         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11377         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11379         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11380         sysdeps/powerpc/elf/sysdep.h.
11381         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11383 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11385         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11386         speed.
11387         (process_envvars): Some more optimizations.
11388         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11390         * elf/elf.h: Add dynamic tag definitions for prelinking.
11392         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11393         Rewrite code to remove environment varables for SUID binaries.
11394         Small optimization in LD_PROFILE handling.
11395         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11396         changes.
11397         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11399         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11401         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11402         strings.  Change type of second parameter.
11403         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11404         for last change.
11406         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11408 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11410         * manual/string.texi: Fix typos.
11411         * manual/examples/argp-ex2.c: Likewise.
11413 2001-11-05  Roland McGrath  <roland@frob.com>
11415         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11416         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11417         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11418         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11419         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11420         here, put under [__ELF__].
11422 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11424         * manual/charset.texi: Extensive editing work.
11425         * manual/nss.texi: Likewise.
11426         Changes by Dennis Grace <dgrace@us.ibm.com>.
11428 2001-11-04  Roland McGrath  <roland@frob.com>
11430         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11431         parameter to dir_mkfile.
11433 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11435         * string/bits/string2.h (__strndup): If n is smaller than len, set
11436         len to n + 1.
11437         * string/tester.c (test_strndup): New function.
11438         (main): Call it.
11440 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11442         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11444         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11445         * scripts/cpp: New file.
11447         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11448         for rtld_search_dirs content.  Minor optimizations.
11450 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11452         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11453         avoiding unnecessary duplication.
11455 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11457         * elf/dl-load.c (_dl_map_object): If library was found using
11458         LD_LIBRARY_PATH, don't try RUNPATH list.
11460 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11462         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11463         Correct second argument of register_dump call.
11464         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11465         Likewise.
11467 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11469         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11470         modules.
11471         * iconvdata/TESTS: Likewise.
11472         * iconvdata/gconv-modules: Likewise.
11473         * iconvdata/ibm1132.c: New file.
11474         * iconvdata/ibm1132.h: New file.
11475         * iconvdata/ibm1133.c: New file.
11476         * iconvdata/ibm1133.h: New file.
11477         * iconvdata/ibm1162.c: New file.
11478         * iconvdata/ibm1162.h: New file.
11479         * iconvdata/testdata/IBM1132: New file.
11480         * iconvdata/testdata/IBM1132..UTF8: New file.
11481         * iconvdata/testdata/IBM1133: New file.
11482         * iconvdata/testdata/IBM1133..UTF8: New file.
11483         * iconvdata/testdata/IBM1162: New file.
11484         * iconvdata/testdata/IBM1162..UTF8: New file.
11485         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11487         * string/string.h: Fix typo in comment.
11488         * wcsmbs/wchar.h: Likewise.
11490 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11492         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11493         const in type of longopts parameter.
11495 2001-10-29  Andreas Jaeger  <aj@suse.de>
11497         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11499 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11501         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11502         output, clarify `#' behaviour on 0.
11503         (Floating-Point Conversions): Clarify that %g only uses %e when
11504         the exponent would be greater than 1.
11506 2001-10-28  Roland McGrath  <roland@frob.com>
11508         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11509         * sysdeps/mach/powerpc/machine-sp.h: New file.
11510         * sysdeps/mach/powerpc/sysdep.h: New file.
11511         * sysdeps/mach/powerpc/thread_state.h: New file.
11513         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11514         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11515         expect to need the same thing on every platform.
11517         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11518         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11520         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11521         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11522         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11523         Move all these assembly-related definitions to ...
11524         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11526         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11527         by Peter Bruin <pjbruin@dds.nl>.
11529         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11530         packing results for a `poll' call.
11532 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11534         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11535         correctly.
11536         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11537         bracket expression.
11539         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11540         nrules value.
11541         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11543 2001-10-24  H.J. Lu  <hjl@gnu.org>
11545         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11546         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11547         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11549 2001-10-21  Jim Meyering  <meyering@lucent.com>
11551         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11552         this code would end up calling gettext even in packages built
11553         with --disable-nls.
11554         * posix/getopt.c (_): Likewise.
11555         * posix/regex.c (_): Likewise.
11557 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11559         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11560         lookup not ip6.int.
11561         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11562         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11564 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11566         * misc/sys/cdefs.h (__attribute_used__): Define.
11567         * elf/rtld.c (_dl_start): Add __attribute_used__.
11568         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11570 2001-10-25  Andreas Schwab  <schwab@suse.de>
11572         * stdlib/a64l.c: Expect least significant digit first.
11573         * stdlib/l64a.c: Produce least significant digit first.
11574         * stdlib/Makefile (tests): Add test-a64l.
11575         * stdlib/test-a64l.c: New file.
11576         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11578 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11580         * po/sk.po: Update from translation team.
11582 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11584         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11586 2001-10-18  Andreas Schwab  <schwab@suse.de>
11588         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11589         next whole number.
11590         (print_function_ulps): Likewise.
11591         (print_complex_function_ulps): Likewise.
11592         (print_max_error): Likewise.
11593         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11595 2001-10-16  Andreas Schwab  <schwab@suse.de>
11597         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11598         implementation.
11600         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11601         BSD_SETJMP or BSD__SETJMP is defined, resp.
11602         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11603         a tail call to __sigsetjmp that would require extending the
11604         caller's frame.
11605         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11606         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11607         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11608         Reported by Jes Sorensen <jes@trained-monkey.org>.
11610 2001-10-16  Andreas Jaeger  <aj@suse.de>
11612         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11613         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11614         close PR libc/2589.
11616 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11618         * po/ca.po: New file.  Contributed by the translation team.
11620 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11622         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11623         a varargs prototype.  Remove dependency from kernel header files.
11625         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11626         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11628 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11630         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11631         to generate hexadecimal identifier.
11632         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11634 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11636         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11638 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11640         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11641         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11642         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11644         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11645         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11647         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11648         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11649         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11651         * timezone/africa: Update from tzdata2001d.
11652         * timezone/asia: Likewise.
11653         * timezone/australasia: Likewise.
11654         * timezone/backward: Likewise.
11655         * timezone/europe: Likewise.
11656         * timezone/leapseconds: Likewise.
11657         * timezone/northamerica: Likewise.
11658         * timezone/southamerica: Likewise.
11659         * timezone/zone.tab: Likewise.
11661 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11663         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11664         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11666 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11668         * elf/elf.h (PT_TLS): New definition.
11670 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11672         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11673         bits/errno.h
11675 2001-10-07  Roland McGrath  <roland@frob.com>
11677         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11679 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11681         * elf/elf.h: Add more ELFOSABI_* constants.
11683 2001-10-04  Ben Collins  <bcollins@debian.org>
11685         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11686         decleration of __need_wchar_t.
11688 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11690         * string/bits/string2.h (__strsep_g): Add prototype.
11691         (__strsep): Use it.
11692         * string/Versions (__strsep): Remove.
11693         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11695 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11697         * manua/llio.texi: Clarify file references added by mmap.
11698         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11700 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11702         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11703         Add sc_loadrs and sc_rbs_bas to match current kernel.
11705 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11707         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11709         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11711 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11713         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11714         object has been bumped because of relocation dependency, avoid
11715         duplicates in l_scope.
11716         (show_scope): Fix typos.
11717         * elf/Makefile: Add rules to build and run reldep6.
11718         * elf/reldep6.c: New file.
11719         * elf/reldep6mod0.c: New file.
11720         * elf/reldep6mod1.c: New file.
11721         * elf/reldep6mod2.c: New file.
11722         * elf/reldep6mod3.c: New file.
11723         * elf/reldep6mod4.c: New file.
11725 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11727         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11728         sparc64_fixup_plt.
11729         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11730         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11731         for non-lazy binding. Fix .plt[32768+] handling.
11732         (elf_machine_plt_value): Don't add addend.
11733         (elf_machine_rela): Call sparc64_fixup_plt instead of
11734         elf_machine_fixup_plt.
11735         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11736         dynamic linker at 0xfffff800XXXXXXXX.
11738         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11740 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11742         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11744 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11746         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11747         declare __cmsg_data field if its size would be bigger than 0.
11748         (CMSG_DATA): Adjust accordingly.
11749         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11750         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11751         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11752         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11753         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11754         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11755         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11757 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11759         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11760         * iconvdata/testdata/IBM1160: New file.
11761         * iconvdata/testdata/IBM1160..UTF8: New file.
11762         * iconvdata/testdata/IBM1161: New file.
11763         * iconvdata/testdata/IBM1161..UTF8: New file.
11764         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11766 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11768         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11769         UL_SETFSIZE computations better.
11771         * rt/Makefile: Remove use of filter for librt again.
11773         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11774         UL_SETFSIZE computations better.
11776         * string/Versions: Export __strsep for GLIBC_2.2.5.
11777         * string/bits/string2.h: Define all __STRING_INLINE functions if
11778         _FORCE_INLINES is defined.
11779         Use int instead of char of parameter types.
11780         (__strsep): Don't use __strsep_g.  Don't define it.
11781         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11782         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11783         __strcpy_small.
11784         (__stpcpy_a_small): Renamed from __stpcpy_small.
11785         (__strcspn_c1): Don't define if _FORCE_INLINES.
11786         (__strspn_c1): Likewise.
11788 2001-09-22  Ben Collins  <bcollins@debian.org>
11790         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11791         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11792         * sysdeps/ia64/bits/sigaction.h: Likewise.
11793         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11795 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11797         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11799 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11801         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11803 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11805         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11807 2001-09-20  H.J. Lu  <hjl@gnu.org>
11809         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11810         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11811         for __RTLD_SPROF.
11812         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11813         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11815 2001-09-20  H.J. Lu  <hjl@gnu.org>
11817         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11818         don't add 1.
11820 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11822         * nss/getent.c: Accept -s parameter to overwrite rules in
11823         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11825         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11826         with as many ".0" as necessary to form a complete address
11827         inet_network understands.
11829         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11830         calls.
11832 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11834         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11835         _JMPBUF_UNWINDS.
11836         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11838 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11840         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11841         IBM1161.
11842         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11843         * iconvdata/ibm1160.c: New file.
11844         * iconvdata/ibm1160.h: New file.
11845         * iconvdata/ibm1161.c: New file.
11846         * iconvdata/ibm1161.h: New file.
11847         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11849 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11851         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11852         difference between base address and first PT_LOAD's virtual address,
11853         not the base address.
11855 2001-09-11  Tom Rix  <trix@redhat.com>
11857         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11858         ifdef for __getopt_clean_environment.
11859         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11861 2001-09-22  Andreas Jaeger  <aj@suse.de>
11863         * elf/reldep4.c (main): Add proper prototype to fix warning.
11865         * elf/reldep5.c (main): Remove unused variable.
11867         * math/math_private.h: Add prototypes.
11869 2001-09-21  Andreas Jaeger  <aj@suse.de>
11871         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11872         * sysdeps/x86_64/Dist: New file.
11873         * sysdeps/x86_64/soft-fp/Dist: New file.
11875         * sysdeps/gnu/Dist: Remove eval.c.
11877 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11879         * malloc/memusage.c (realloc): Don't count already allocated
11880         memory in the sums.
11881         (me): Always use dlsym() to find the real implementations.
11883         * malloc/memusage.sh: Make -n option actually do something.
11885 2001-09-20  Andreas Jaeger  <aj@suse.de>
11887         * elf/elf.h (R_390_NUM): Correct value.
11889         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11890         libpthread.
11892         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11893         for x86-64, install x86-64 into */lib64.
11895         * shlib-versions: Add x86-64.
11897         * elf/elf.h: Add x86-64 relocations.
11899 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11901         * po/fr.po: Update from translation team.
11903 2001-09-19  Andreas Jaeger  <aj@suse.de>
11905         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11906         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11907         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11908         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11909         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11910         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11911         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11912         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11913         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11914         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11915         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11916         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11917         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11918         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11919         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11920         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11921         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11922         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11923         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11924         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11925         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11926         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11927         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11928         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11929         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11930         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11931         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11932         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11933         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11934         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11935         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11936         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11937         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11938         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11939         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11940         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11941         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11942         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11943         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11944         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11945         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11946         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11947         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11948         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11949         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11950         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11951         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11953         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11954         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11955         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11956         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11957         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11958         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11959         * sysdeps/unix/x86_64/sysdep.S: New file.
11960         * sysdeps/unix/x86_64/sysdep.h: New file.
11961         * sysdeps/x86_64/Implies: New file.
11962         * sysdeps/x86_64/Makefile: New file.
11963         * sysdeps/x86_64/Versions: New file.
11964         * sysdeps/x86_64/__longjmp.S: New file.
11965         * sysdeps/x86_64/abort-instr.h: New file.
11966         * sysdeps/x86_64/atomicity.h: New file.
11967         * sysdeps/x86_64/bits/endian.h: New file.
11968         * sysdeps/x86_64/bits/setjmp.h: New file.
11969         * sysdeps/x86_64/bits/string.h: New file.
11970         * sysdeps/x86_64/bp-asm.h: New file.
11971         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11972         * sysdeps/x86_64/bsd-setjmp.S: New file.
11973         * sysdeps/x86_64/dl-machine.h: New file.
11974         * sysdeps/x86_64/elf/initfini.c: New file.
11975         * sysdeps/x86_64/elf/start.S: New file.
11976         * sysdeps/x86_64/ffs.c: New file.
11977         * sysdeps/x86_64/ffsll.c: New file.
11978         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11979         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11980         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11981         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11982         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11983         * sysdeps/x86_64/fpu/e_expl.c: New file.
11984         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11985         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11986         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11987         * sysdeps/x86_64/fpu/e_logl.S: New file.
11988         * sysdeps/x86_64/fpu/e_powl.S: New file.
11989         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11990         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11991         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11992         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11993         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11994         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11995         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11996         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11997         * sysdeps/x86_64/fpu/fegetround.c: New file.
11998         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11999         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12000         * sysdeps/x86_64/fpu/fesetround.c: New file.
12001         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12002         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12003         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12004         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12005         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12006         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12007         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12008         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12009         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12010         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12011         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12012         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12013         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12014         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12015         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12016         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12017         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12018         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12019         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12020         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12021         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12022         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12023         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12024         * sysdeps/x86_64/gmp-mparam.h: New file.
12025         * sysdeps/x86_64/hp-timing.c: New file.
12026         * sysdeps/x86_64/hp-timing.h: New file.
12027         * sysdeps/x86_64/htonl.S: New file.
12028         * sysdeps/x86_64/memusage.h: New file.
12029         * sysdeps/x86_64/setjmp.S: New file.
12030         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12031         * sysdeps/x86_64/stackinfo.h: New file.
12032         * sysdeps/x86_64/sysdep.h: New file.
12033         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12035         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12036         L Moshier.
12038 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12040         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12041         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12043 2001-09-18  Andreas Schwab  <schwab@suse.de>
12045         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12046         list, now that l_scope is a pointer.
12048         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12049         scope list.
12051 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12053         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12054         (elf_machine_rela_relative): Add a missing declaration.
12056 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12058         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12059         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12060         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12061         ldd-rewrite scripts.
12063 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12065         * elf/ldd.bash.in: Update copyright message.
12067 2001-09-17  H.J. Lu  <hjl@gnu.org>
12069         * hurd/hurdmalloc.c (bcopy): Removed.
12070         (realloc): Replace bcopy with memcpy.
12071         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12072         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12073         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12075         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12076         (gethostbyaddr): Likewise.
12077         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12079 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12081         * sysdeps/gnu/eval.c: Removed.
12083 2001-09-18  Andreas Jaeger  <aj@suse.de>
12085         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12086         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12088         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12089         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12091         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12092         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12094 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12096         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12097         nrules value.
12099 2001-09-14  H.J. Lu  <hjl@gnu.org>
12101         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12103 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12105         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12106         Patch by Florian La Roche <laroche@redhat.com>.
12108         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12110         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12111         ETHER_CRC_LEN.
12113 2001-09-14  Andreas Schwab  <schwab@suse.de>
12115         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12116         Sumner <bls@sgi.com>.
12117         * posix/execlp.c: Likewise.
12119 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12121         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12122         is already found earlier in the search scope.
12124 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12126         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12127         filter.
12129 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12131         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12133 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12135         * config.h.in: Enforce optimization to be used.
12136         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12137         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12138         * posix/Makefile (annexc-CFLAGS): Define to -O.
12139         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12141 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12143         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12144         Patch by Stephan Kulow.
12146 2001-09-08  Ben Collins  <bcollins@debian.org>
12148         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12149         usage of RESOLVE() (r_type, not reloc->r_type).
12151 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12153         * elf/dl-object.c: Avoid allocating extra memory block for name.
12154         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12155         allocated separately.
12156         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12158 2001-09-08  H.J. Lu  <hjl@gnu.org>
12160         * po/zh_TW.po: Fix a typo.
12162 2001-09-07  Tom Rix  <trix@redhat.com>
12164         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12166 2001-08-26  Tom Rix  <trix@redhat.com>
12168         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12169         command line options.
12170         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12171         * sysdeps/unix/sysv/aix/start.c: Removed.
12172         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12173         * sysdeps/unix/sysv/aix/init-first.c: New file.
12174         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12176 2001-09-08  Ben Collins  <bcollins@debian.org>
12178         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12179         * sysdeps/generic/dl-machine.h: Likewise.
12180         * sysdeps/hppa/dl-fptr.c: Likewise.
12181         * sysdeps/ia64/dl-fptr.c: Likewise.
12182         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12183         * sysdeps/mips/dl-machine.h: Likewise.
12184         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12185         * sysdeps/powerpc/dl-machine.c: Likewise.
12187 2001-09-07  Ben Collins  <bcollins@debian.org>
12189         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12191         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12193 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12195         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12196         dependencies if necessary.
12198         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12199         loaded directly) determine length if l_initfini list by iterating
12200         over its elements.  Minor optimizations.
12201         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12202         for dependency objects.
12203         If object was already loaded check whether any of the dependencies
12204         is already on the relocation dependency list.  If yes, remove the
12205         latter.  Minor optimizations.
12206         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12207         maps here.  Search l_initfini list only if the object was loaded
12208         directly and not only as a dependency.
12209         (_dl_lookup_symbol): Add relocation dependency also if object
12210         is not in global scope.  Remove test for self-reference here.
12211         (_dl_lookup_versioned_symbol): Likewise.
12212         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12213         element of first name record.
12214         * elf/loadtest.c: Add some more test to recognize early if an object
12215         wasn't unloaded.
12216         * elf/Makefile: Add rules to build and run reldep5.
12217         * elf/reldep5.c: New file.
12218         * elf/reldepmod5.c: New file.
12219         * elf/reldepmod6.c: New file.
12221         * elf/reldep2.c: Fix typo.
12223 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12225         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12226         elements.  Change l_scope to be a pointer only.
12227         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12228         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12229         here add searchlist of newly open file to the dependency's scope.
12230         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12231         only searchlist from its scope.  Free own scope array if necessary.
12232         * elf/Makefile (tests): Add dblload and dblunload now.
12234 2001-09-06  Andreas Jaeger  <aj@suse.de>
12236         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12237         Stephen L Moshier.
12239 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12241         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12242         they both fail.
12243         * elf/dblload.c: New file.
12244         * elf/dblloadmod1.c: New file.
12245         * elf/dblloadmod2.c: New file.
12246         * elf/dblloadmod3.c: New file.
12247         * elf/dblunload.c: New file.
12249 2001-09-04  Richard Henderson  <rth@redhat.com>
12251         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12252         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12254 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12256         Correct very misleading message for error in failed runtime relocation.
12257         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12258         place of the error.
12259         (_dl_signal_cerror): Likewise.
12260         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12261         * elf/dl-close.c: Likewise.
12262         * elf/dl-deps.c: Likewise.
12263         * elf/dl-load.c: Likewise.
12264         * elf/dl-lookup.c: Likewise.
12265         * elf/dl-open.c: Likewise.
12266         * elf/dl-reloc.c: Likewise.
12267         * elf/dl-sym.c: Likewise.
12268         * elf/dl-version.c: Likewise.
12269         * sysdeps/generic/dl-sysdep.c: Likewise.
12271 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12273         * iconv/strtab.c (strtabinit): Initialize null Strent.
12274         (newstring): Move len == 0 handling...
12275         (strtabadd): ...here.
12276         If len == 1, return null Strent.
12277         When inserting a suffix of an existing string, check if
12278         it is not equal to some suffix already recorded.
12279         Copy left and right members over if adding longer string.
12281 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12283         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12285         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12286         (__syscall_gethostname): Add prototype.
12288 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12290         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12292 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12294         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12296 2001-08-27  Roland McGrath  <roland@frob.com>
12298         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12299         short, copy that much into NAME anyway before returning error.
12301 2001-09-01  Richard Henderson  <rth@redhat.com>
12303         * sysdeps/alpha/elf/Dist: Remove file.
12304         * sysdeps/alpha/elf/Makefile: Remove file.
12305         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12306         * sysdeps/alpha/elf/crtend.S: Remove file.
12307         * sysdeps/alpha/elf/initfini.c: New file.
12309 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12311         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12312         * iconv/tst-iconv3.c: Likewise.
12314 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12316         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12318 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12320         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12321         export it.
12322         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12323         * iconv/iconv_prog.c (insert_cache): New function.
12324         (print_known_names): If cache is used call insert_cache to use the
12325         information from the cache [PR libc/2509].
12327 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12329         * time/strptime.c (strptime_internal): Recognize 'l' format and
12330         handle it like 'I' for symmetry with strftime.
12332 2001-08-31  Richard Henderson  <rth@redhat.com>
12334         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12335         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12336         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12337         (print_statistics): Make scalar unsigned long long.
12338         * sysdeps/alpha/hp-timing.h: New file.
12340 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12342         * stdio-common/perror.c (perror): Save errno early, pass it
12343         down to perror_internal.
12344         (perror_internal): Add errnum argument.
12346 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12348         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12349         Don't add old memory content for R_ALPHA_REFQUAD.
12351 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12353         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12354         memory correctly.
12356         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12357         instead of open, __close instead of close, __getpagesize instead
12358         of getpagesize.
12360         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12361         instead of strnlen.
12362         * include/string.h (strndupa): Redefine here to use __strnlen
12363         instead of strnlen.
12364         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12366         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12367         connected).
12369 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12371         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12372         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12373         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12374         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12375         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12376         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12377         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12379 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12381         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12383 2001-08-30  Andreas Jaeger  <aj@suse.de>
12385         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12386         contributed Stephen L Moshier.
12388 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12390         * sunrpc/etc.rpc (sgi_fam): Add.
12392 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12394         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12396 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12398         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12399         first is from a previous call.
12400         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12402 2001-08-29  Andreas Schwab  <schwab@suse.de>
12404         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12406 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12408         * config.make.in (INSTALL_SCRIPT): Define.
12409         * Makeconfig (INSTALL_SCRIPT): Define.
12410         * Makerules (do-install-script): New macro to install scripts using
12411         INSTALL_SCRIPT.
12412         (install-bin-script): New rule to install scripts with
12413         do-install-script.
12414         (install-bin-script-nosubdir): New rule.
12415         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12416         (distinfo-vars): Add $(install-bin-script).
12417         * Rules (others): Likewise.
12418         * Makefile (glibcbug): Install with install-bin-script.
12419         * debug/Makefile (xtrace): Likewise.
12420         (catchsegv): Likewise.
12421         * elf/Makefile (ldd): Likewise.
12422         * malloc/Makefile (mtrace): Likewise.
12423         * timezone/Makefile (tzselect): Likewise.
12425 2001-08-29  H.J. Lu  <hjl@gnu.org>
12427         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12428         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12429         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12431 2001-08-29  Andreas Schwab  <schwab@suse.de>
12433         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12435 2001-08-28  H.J. Lu  <hjl@gnu.org>
12437         * Makeconfig (combreloc-LDFLAGS): New variable.
12438         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12439         * config.make.in (have-z-combreloc): New variable.
12440         * configure.in: Substitute libc_cv_z_combreloc.
12442 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12444         * po/sv.po: Update from translation team.
12445         * po/fr.po: Likewise.
12446         * po/da.po: Likewise.
12448 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12450         * Makerules: Fix a typo: MD% -> MD5.
12452 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12454         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12455         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12457 2001-08-28  Andreas Jaeger  <aj@suse.de>
12459         * manual/libc-texinfo.sh: Add entry about free manuals.
12461         * manual/contrib.texi (Contributors): Fix cross reference.
12463         * manual/libc.texinfo (Copying): Include freemanuals.
12465         * manual/Makefile (appendices): Add freemanuals.
12467         * manual/freemanuals.texi: New file.
12468         Patch by Brian Youmans <3diff@gnu.org>.
12470         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12471         smaller table.
12473         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12474         table on separate page.
12475         Patch by Brian Youmans <3diff@gnu.org>.
12477 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12479         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12480         the connection went down after we first used it try to connect
12481         again and resend the message before printing to the console.
12482         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12484 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12486         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12487         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12488         bit set.
12490 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12492         * iconv/strtab.c (searchstring): Use correct length for comparison.
12493         (strtabadd): Account total size correct if new string has old string as
12494         substring.
12496 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12498         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12500 2001-08-27  Andreas Jaeger  <aj@suse.de>
12502         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12504         * math/libm-test.inc (j0_test): Add extra tests.
12505         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12506         not x, in Hankel approximation.
12507         Patches by Stephen L Moshier.
12509 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12511         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12512         link_map.
12514         * configure.in: Fix test for .rela.dyn section.
12516         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12518 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12520         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12521         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12522         Pass type_class to _dl_lookup_*.
12523         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12524         Pass around just type_class instead of noexec, noplt pair.
12525         (_dl_lookup_versioned_symbol): Likewise.
12526         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12527         noexec, noplt pair.
12528         (_dl_lookup_versioned_symbol_skip): Likewise.
12529         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12530         * elf/do-lookup.h (do_lookup): Likewise.
12531         * include/link.h (struct link_map): Replace noexec and noplt fields
12532         in l_lookup_cache with type_class field.
12533         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12534         ELF_RTYPE_CLASS_COPY): Define.
12535         Adjust prototypes for _dl_lookup_symbol and
12536         _dl_lookup_versioned_symbol.
12537         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12538         elf_machine_lookup_noexec_p): Remove.
12539         (elf_machine_type_class): Define.
12540         * sysdeps/arm/dl-machine.h: Likewise.
12541         * sysdeps/hppa/dl-machine.h: Likewise.
12542         * sysdeps/cris/dl-machine.h: Likewise.
12543         * sysdeps/i386/dl-machine.h: Likewise.
12544         * sysdeps/ia64/dl-machine.h: Likewise.
12545         * sysdeps/m68k/dl-machine.h: Likewise.
12546         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12547         * sysdeps/mips/dl-machine.h: Likewise.
12548         * sysdeps/powerpc/dl-machine.h: Likewise.
12549         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12550         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12551         * sysdeps/sh/dl-machine.h: Likewise.
12552         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12553         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12555 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12557         * manual/message.texi (Advanced gettext functions): Change
12558         description of plural forms for Slovak.
12559         Reported by Marcel Telka <marcel@telka.sk>.
12561         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12562         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12564 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12566         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12567         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12569 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12571         * include/link.h (struct link_map): Add l_lookup_cache element.
12572         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12573         (RESOLVE_MAP): Likewise.
12574         (_dl_relocate_object): Remove cache initialization.
12575         * elf/dl-lookup.c: Rip out cache handling code.
12576         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12577         declarations.
12579         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12580         remove some __builtin_expect.
12581         (_dl_lookup_versioned_symbol): Likewise.
12583         * config.h.in: Add HAVE_Z_COMBRELOC.
12584         * configure.in: Add test for -z combreloc.
12586         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12587         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12588         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12589         case to almost no code.
12591 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12593         * po/tr.po: Update from translation team.
12595 2001-08-24  Andreas Jaeger  <aj@suse.de>
12597         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12598         make clean works.
12600 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12602         * elf/rtld.c (print_statistics): Printf % after percent values.
12603         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12605         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12606         don't have to compute the hash value and initialize current_value.
12607         Move reference_name variable to where it is needed.
12608         (_dl_lookup_versioned_symbol): Likewise.
12610 2001-08-24  Roland McGrath  <roland@frob.com>
12612         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12613         Just test that strerror returns non-null for a few errno codes.
12615 2001-08-23  Roland McGrath  <roland@frob.com>
12617         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12618         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12620         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12622         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12623         __mach_reply_port.
12625 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12627         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12628         returns NULL.
12630         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12631         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12632         doesn't do it.
12633         * elf/rtld.c: Include <sys/param.h>.
12634         * elf/dl-reloc.c: Likewise.
12636 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12638         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12639         empty to prevent junk from being generated.
12640         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12642 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12644         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12645         records.  Rename endrel to relative, initialize it to r, and use it
12646         in elf_machine_rel_relative calls.  Point r after relative relocs.
12648 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12650         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12651         of R_386_NONE.
12653 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12655         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12656         necessary.  Undefine newly defined macros at the end.
12657         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12658         Rename from elf_machine_rel_relative.
12659         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12660         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12661         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12663         Likewise.
12664         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12665         Likewise.
12666         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12667         Fix argument types.
12668         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12669         Fix argument types.
12670         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12671         Likewise.  Fix argument types.
12672         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12673         Likewise.  Fix argument types.
12674         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12675         Fix argument types.
12676         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12677         ElfW(Rel) in argument.
12678         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12679         function.
12681 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12683         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12685 2001-08-24  Andreas Jaeger  <aj@suse.de>
12687         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12688         Stephen L Moshier <moshier@mediaone.net>.
12690 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12692         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12693         first if RELCOUNT is set.
12695         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12696         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12697         elf_machine_rel_relative.
12698         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12699         Minor optimizations.
12700         * sysdeps/arm/dl-machine.h: Likewise.
12701         * sysdeps/cris/dl-machine.h: Likewise.
12702         * sysdeps/hppa/dl-machine.h: Likewise.
12703         * sysdeps/i386/dl-machine.h: Likewise.
12704         * sysdeps/ia64/dl-machine.h: Likewise.
12705         * sysdeps/m68k/dl-machine.h: Likewise.
12706         * sysdeps/mips/dl-machine.h: Likewise.
12707         * sysdeps/powerpc/dl-machine.h: Likewise.
12708         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12709         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12710         * sysdeps/sh/dl-machine.h: Likewise.
12711         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12712         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12714 2001-08-23  Roland McGrath  <roland@frob.com>
12716         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12718         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12719         sysdeps/mach version.  Implement counting ("recursive") mutexes
12720         on top of cthreads mutexes.
12721         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12723         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12724         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12725         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12726         __libc_clean_end): Define these to call the cleanup function after
12727         normal exit when they're supposed to.
12729         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12730         Take new first arg DOIT, a boolean saying whether to really install
12731         any cleanup handler.
12732         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12733         (__libc_cleanup_end): Likewise.
12734         * sysdeps/generic/bits/libc-lock.h: Same changes.
12735         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12736         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12737         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12738         Likewise.
12739         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12740         * sysdeps/generic/bits/stdio-lock.h
12741         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12743 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12745         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12747 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12749         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12750         functions.
12751         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12752         lookups in cache.
12753         (_dl_lookup_versioned_symbol): Likewise.
12754         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12755         relocation lookup.
12756         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12757         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12758         (lookup_cache, lookup_cache_versioned): Add declarations.
12760 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12762         * stdlib/tst-random.c (main): Swap parameters in fail call.
12763         Patch by Pete Bevin <pete@petebevin.com>.
12765 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12767         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12769 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12771         * malloc/obstack.c: Indent preprocessor directives.
12772         Patch by Jim Meyering <meyering@ascend.com>.
12774         * po/ja.po: Update from translation team.
12776 2001-08-23  Roland McGrath  <roland@frob.com>
12778         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12780         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12781         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12783 2001-08-22  Roland McGrath  <roland@frob.com>
12785         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12786         __libc_lock_define_recursive.
12787         * elf/dl-open.c: Don't declare it here any more.
12788         * elf/dl-close.c: Likewise.
12789         * elf/dl-lookup.c: Likewise.
12790         * elf/dl-iteratephdr.c: Likewise.
12791         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12792         __libc_lock_unlock_recursive.
12793         * elf/dl-close.c (_dl_close): Likewise
12794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12795         * elf/dl-open.c (_dl_open): Likewise
12797         * sysdeps/generic/bits/libc-lock.h
12798         (__libc_lock_define_recursive): New macro.
12799         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12800         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12801         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12803         * conform/conformtest.pl (checknamespace): Sort the output list.
12805         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12806         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12807         definitions conditional on [__USE_XOPEN].
12809         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12810         these unconditionally, not only use [__USE_BSD], so as to match
12811         the sysdeps/unix/sysv/linux files.
12813 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12815         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12816         avoid warnings.
12818         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12819         DL_LOOKUP_ADDRESS.
12821 2001-08-22  Roland McGrath  <roland@frob.com>
12823         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12824         conditionalization of sa_handler/sa_sigaction member types to
12825         match the sysdeps/unix/sysv/linux file.
12827 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12829         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12830         symbol sizes a bit better.
12832         * sysdeps/ia64/strncpy.S: Complete rewrite.
12833         Contributed by Jakub Jelinek <jakub@redhat.com>.
12835         * string/stratcliff.c (main): Add strncpy test.
12837 2001-08-22  Roland McGrath  <roland@frob.com>
12839         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12840         and don't declare unsetenv or _environ directly.
12841         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12843 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12845         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12846         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12847         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12848         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12849         test for cmsg struct size.
12851 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12853         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12854         Rename __argc to ___argc in prototypes to avoid compatibility
12855         problems with systems that reserve the identifier "__argc".
12856         Similarly for __argv.
12858 2001-08-21  Roland McGrath  <roland@frob.com>
12860         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12862         * mach/Makefile (tests): Removed.
12863         * mach/hello.c: File removed.
12865 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12867         * po/sv.po: Update from translation team.
12869         * stdio-common/vfscanf.c: Fix handling of %l[].
12870         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12872         * libio/Makefile (tests): Add tst-sscanf.
12873         * libio/tst-sscanf.c: New file.
12875         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12876         * malloc/mtrace.c (tr_where): dli_sname always points to a
12877         non-empty string if != NULL.
12878         Reported by Tim Janik <timj@gtk.org>.
12880 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12882         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12883         buf.  Free resources on failure.
12884         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12885         (makefd_xprt): Likewise.
12886         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12887         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12888         * sunrpc/auth_unix.c (authunix_create): Likewise.
12890 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12892         * string/strnlen.c: Remove.
12893         * sysdeps/generic/strnlen.c: New file.
12894         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12896 2001-08-21  Roland McGrath  <roland@frob.com>
12898         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12899         as a macro, not an extern inline function.
12901         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12902         * Versions.def (libc): Add GLIBC_2.2.5 set.
12903         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12904         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12906 2001-08-20  Roland McGrath  <roland@frob.com>
12908         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12909         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12911 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12913         * string/bits/string2.h: Remove strnlen optimization here.
12914         * sysdeps/i386/i486/bits/string.h: Add it here.
12916 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12918         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12920 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12922         * po/gl.po: Update from translation team.
12924 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12926         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12927         * misc/err.c (convert_and_print): Likewise.
12929         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12930         function calls.
12932 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12934         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12935         change of the gregset_t type.
12936         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12938 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12940         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12942 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12944         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12946         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12948 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12950         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12951         before calling the cthreads initialization code.
12953 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12955         * argp/argp-help.c: Fix two problems introduced in last change.
12957         * include/dirent.h: Include <dirstream.h> first.
12959 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12961         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12963         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12964         * sunrpc/xdr_rec.c: Likewise.
12965         * sunrpc/xdr_mem.c: Likewise.
12966         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12967         * sunrpc/rpc_cmsg.c: Likewise.
12968         * sunrpc/getrpcport.c (getrpcport): Likewise.
12969         * sunrpc/clnt_simp.c (callrpc): Likewise.
12970         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12971         * string/envz.c: Likewise.
12973         * po/ko.po: Update from translation team.
12975         * argp/argp-help.c: Handle wide oriented stderr stream.
12977 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12979         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12980         __builtin_expect.
12982         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12984         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12985         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12986         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12988         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12990         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12992         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12994         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12995         wchar_t for function declarations and defintions.
12997         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12998         Define suseconds_t if it hasn't happened yet.
13000         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13002         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13004         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13005         <stddef.h>.
13007         * conform/data/stddef.h-data: Remove wint_t.
13009         * conform/conformtest.pl: Change namespace test to take #undef
13010         lines into account.
13012         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13014         * conform/data/sys/socket.h-data: Add sockatmark.
13016 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13018         * io/fts.c: Update from recent BSD source.
13020 2001-08-17  Roland McGrath  <roland@frob.com>
13022         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13023         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13024         Likewise.
13026 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13028         * locale/duplocale.c (__duplocale): Also initialize the special
13029         __ctype_* elements.
13031         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13033 2001-08-17  Andreas Jaeger  <aj@suse.de>
13035         * misc/getpass.c: Include wchar.h for prototypes.
13036         * malloc/obstack.c: Likewise.
13038 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13040         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13042         * wcsmbs/wcscoll.c: Also define __wcscoll.
13043         * include/wchar.h: Declare __wcscoll.
13045         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13046         * libio/vwprintf.c: Likewise.
13047         * libio/wprintf.c: Likewise.
13049         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13051 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13053         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13054         instead of mbrtowc.
13055         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13056         wcslen, and __wcscoll instead of wcscoll.
13058         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13060         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13061         __getuid instead of getuid.
13063         * stdio-common/perror.c (perror): Use __close instead of close.
13064         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13065         * libio/freopen.c (freopen): Likewise.
13066         * libio/freopen64.c (freopen64): Likewise.
13068         * libio/tst-ungetwc2.c (main): Define str const.
13070         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13071         * libio/fwprintf.c: Also define __fwprintf.
13072         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13073         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13074         * assert/assert-perr.c: Likewise.
13075         * assert/assert.c: Likewise.
13076         * gmon/gmon.c: Likewise.
13077         * inet/rcmd.c: Likewise.
13078         * malloc/obstack.c: Likewise.
13079         * misc/err.c: Likewise.
13080         * misc/error.c: Likewise.
13081         * misc/getpass.c: Likewise.
13082         * posix/getopt.c: Likewise.
13083         * resolv/res_hconf.c: Likewise.
13084         * stdio-common/perror.c: Likewise.
13085         * stdio-common/psignal.c: Likewise.
13086         * stdlib/fmtmsg.c: Likewise.
13087         * sunrpc/auth_unix.c: Likewise.
13088         * sunrpc/clnt_perr.c: Likewise.
13089         * sunrpc/clnt_tcp.c: Likewise.
13090         * sunrpc/clnt_udp.c: Likewise.
13091         * sunrpc/clnt_unix.c: Likewise.
13092         * sunrpc/svc_simple.c: Likewise.
13093         * sunrpc/svc_tcp.c: Likewise.
13094         * sunrpc/svc_udp.c: Likewise.
13095         * sunrpc/svc_unix.c: Likewise.
13096         * sunrpc/xdr.c: Likewise.
13097         * sunrpc/xdr_array.c: Likewise.
13098         * sunrpc/xdr_rec.c: Likewise.
13099         * sunrpc/xdr_ref.c: Likewise.
13100         * sysdeps/generic/wordexp.c: Likewise.
13102         * po/it.po: Update from translation team.
13104         * misc/err.c: Handle wide oriented stderr stream.
13106 2001-08-14  Tom Rix  <trix@redhat.com>
13108         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13109         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13111 2001-08-13  Tom Rix  <trix@redhat.com>
13113         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13114         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13115         and __intptr_t.
13117 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13119         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13120         Store the access registers to the ucontext structure.
13121         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13122         Likewise.
13124         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13125         Load the access registers from the ucontext structure.
13126         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13127         Likewise.
13129         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13130         offsets to the new ucontext layout.
13131         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13133         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13134         of the ucontext structure.
13135         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13137 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13139         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13140         (error_at_line): Likewise.
13142         * stdio-common/perror.c (perror): Implement according to standard.
13143         The stream orientation must not be changed if the stream was not
13144         oriented before the call.
13145         * stdio-common/Makefile (tests): Add tst-perror.
13146         * stdio-common/tst-perror.c: New file.
13149 See ChangeLog.12 for earlier changes.