* sysdeps/generic/ifreq.h (__if_nextreq): New function.
[glibc.git] / ChangeLog
blobdac9eae635aaec660c2d1f418878609f3246a5b1
1 2002-09-17  Bruno Haible  <bruno@clisp.org>
3         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
4         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
5         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
6         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
7         for iterating through the list of interfaces.
8         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
10 2002-09-20  Roland McGrath  <roland@redhat.com>
12         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
13         Reported by Bruno Haible <bruno@clisp.org>.
15         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
17         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
18         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
19         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
21 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
23         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
24         * sysdeps/powerpc/bits/wordsize.h: New file.
25         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
26         array to int array for 32-/64-bit compatibility.
28 2002-09-20  Roland McGrath  <roland@redhat.com>
30         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
32         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
33         Reported by Bruno Haible <bruno@clisp.org>.
35         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
36         before doubling RQ_LEN.
37         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
38         Reported by Bruno Haible <bruno@clisp.org>.
40 2002-09-18  Bruno Haible  <bruno@clisp.org>
42         * login/logout.c (logout): Don't assume ut_time has the same size as
43         a time_t.
44         * login/logwtmp.c (logwtmp): Likewise.
46         * sysdeps/pthread/configure: New file, moved here from
47         linuxthreads/sysdeps/unix/sysv/linux/configure.
49 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
51         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
52         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
53         Reported by Glen Nakamura <glen@imodulo.com>.
55 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
57         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
58         thread's sigstate data structure if it has been allocated.
60 2002-09-19  Roland McGrath  <roland@redhat.com>
62         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
63         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
65 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
67         * version.h (VERSION): Bump to 2.2.94.
69         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
70         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
71         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
72         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
74         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
76         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
78         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
80         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
82 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
84         * sysdeps/wordsize-32/Makefile: New file.
85         * sysdeps/arm/Makefile: Removed.
86         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
87         Don't add divdi3 here.
88         * sysdeps/m68k/Makefile: Likewise.
89         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
90         * sysdeps/sh/Makefile: Likewise.
91         * sysdeps/s390/s390-32/Makefile: Likewise.
93 2002-09-18  Roland McGrath  <roland@redhat.com>
95         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
96         the __ctype_* compat symbols, so the relocs generated bind to the
97         right versioned global symbol in the shared object.
99         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
100         from the value taken from the DT_VERSYM table.
101         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
102         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
103         (RESOLVE_GOTSYM): Likewise.
105         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
106         Add libc_hidden_def.
107         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
108         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
109         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
110         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
111         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
112         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
113         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
114         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
116 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
118         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
120         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
121         define sigaction and __sigaction as wrappers around
122         __libc_sigaction which rejects changing SIGCANCEL.
123         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
125         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
126         SETTID/CLEARTID.
128         * signal/allocrtsig.c: Move to...
129         * sysdeps/generic/allocrtsig.c: ...here.  New file.
131 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
133         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
135         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
136         R_386_TLS_LE): Define.
137         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
138         comments.
139         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
140         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
141         (elf_machine_rel): Handle R_386_TLS_TPOFF.
142         (elf_machine_rela): Likewise.
143         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
145 2002-09-17  Roland McGrath  <roland@redhat.com>
147         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
148         file-specific variable override so it compiles properly when using
149         --with-headers.
151 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
153         Ported to PowerPC64 running Linux.
154         * sysdeps/powerpc/powerpc64/Dist: New file.
155         * sysdeps/powerpc/powerpc64/Implies: New file.
156         * sysdeps/powerpc/powerpc64/Makefile: New file.
157         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
158         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
159         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
160         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
161         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
162         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
163         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
164         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
165         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
166         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
167         * sysdeps/powerpc/powerpc64/memset.S: New file.
168         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
169         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
170         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
171         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
172         * sysdeps/powerpc/powerpc64/strchr.S: New file.
173         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
174         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
175         * sysdeps/powerpc/powerpc64/strlen.S: New file.
176         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
177         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
178         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
179         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
188         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
189         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
190         various gcc versions.  Dot names required for powerpc64.
191         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
192         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
193         C_SYMBOL_DOT_NAME(alias).
194         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
195         original strong_alias macro.
196         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
197         C_SYMBOL_DOT_NAME(alias).
198         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
199         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
200         '.'ed name.
201         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
202         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
203         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
204         (hidden_def): Append hidden_dot_def1 macro to definition.
205         (hidden_ver): Append hidden_dot_def1 macro to definition.
206         (hidden_data_def): New macro.  Same as original hidden_def macro.
207         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
208         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
209         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
210         (hidden_weak): Append hidden_dot_weak1 macro to definition.
211         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
212         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
213         Otherwise defined as __GI_name.
214         (libc_hidden_data_def): New macro.  Use hidden_data_def.
215         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
216         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
217         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
218         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
219         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
220         (libm_hidden_data_def): New macro.  Use hidden_data_def.
221         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
222         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
223         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
225 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
227         * include/libc-symbols.h: Change *hidden_proto macros to accept
228         option parameters and pass those to the attribute definition.
229         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
231         * include/unistd.h: Declare __libc_pause.
233         * include/sys/socket.h: Declare __libc_send, __libc_recv,
234         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
236         * include/unistd.h: Declare __libc_fork.
238 2002-09-17  Roland McGrath  <roland@redhat.com>
240         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
241         (passwd2des): Define it as an alias.
242         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
244 2002-09-12  Bruno Haible  <bruno@clisp.org>
246         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
247         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
249         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
250         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
252 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
254         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
255         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
256         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
257         PowerPC64 does not have separate 64-bit syscalls.
259 2002-09-16  Roland McGrath  <roland@redhat.com>
261         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
264         New macro.
266         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
268         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
269         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
270         * sysdeps/generic/_exit.c: Likewise.
272 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
274         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
276         * elf/rtld.c (struct dl_start_final_info): New.
277         (_dl_start_final): Change second argument to struct
278         dl_start_final_info *.  Set start_time from info.
279         (_dl_start): Remove bootstrap_map variable, add info.
280         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
281         store HP_TIMING_NOW result into info.start_time.
283 2002-09-16  Andreas Jaeger  <aj@suse.de>
285         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
286         to _Exit.
287         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
289 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
291         * sysdeps/powerpc/abort-instr.h: New file.
293 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
295         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
296         comment.
298         * test-skeleton.c (main): Provide more information in case waitpid
299         fails.
301         * include/unistd.h: Declare __exit_thread.
302         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
303         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
304         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
305         * sysdeps/unix/sysv/linux/_exit.c: New file.
306         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
307         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
308         Add exit-thread.
310         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
312 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
314         * sysdeps/i386/dl-machine.h (elf_machine_rel)
315         (case R_386_TLS_DTPMOD32): Don't use addend.
316         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
317         (elf_machine_rela): Add support for TLS relocs.
319 2002-09-14  Roland McGrath  <roland@redhat.com>
321         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
323 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
325         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
326         specific asm macros for multiple percision integer math.
328 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
330         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
331         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
332         Remove per-machine conditionals for FLAG_* cases.
333         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
334         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
337 2002-09-10  Alan Modra <amodra@bigpond.net.au>
339         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
340         defined in entry.h.
341         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
342         lowest address for profiling in  __monstartup call.
343         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
345 2002-09-14  Roland McGrath  <roland@redhat.com>
347         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
348         instead of __NR_pread.
349         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
350         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
351         instead of __NR_pwrite.
352         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
354 2002-09-13  Roland McGrath  <roland@redhat.com>
356         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
358 2002-09-13  Andreas Jaeger  <aj@suse.de>
360         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
361         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
363 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
365         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
367 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
369         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
370         reading the headers.
372 2002-09-12  Roland McGrath  <roland@redhat.com>
374         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
375         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
376         find the ELF header.
378         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
379         executable if needed, in case it's actually a shared object.
381 2002-09-11  Roland McGrath  <roland@redhat.com>
383         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
384         l_map_start to adjust l_tls_initimage.
386         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
387         when using h_errno and it's not set to NETDB_INTERNAL.
388         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
390         * Makefile ($(common-objpfx)testrun.sh): New target.
391         (others): Depend on it.
392         (postclean-generated): Append it.
394         * nss/bug-erange.c: New file.
395         * nss/Makefile (tests): Add it.
397         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
398         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
400         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
401         strncmp, keeps the code smaller for a non-performance-critical case.
403         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
404         no longer wrongly matches arbitrary prefixes of NAME.
405         Reported by Jakub Jelinek <jakub@redhat.com>.
407 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
409         * posix/bug-regex11.c (tests): New array.
410         (main): Rewritten to run more different tests.
412 2002-09-10  Roland McGrath  <roland@redhat.com>
414         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
415         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
416         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
418         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
419         well so we don't get it declared by include/math.h's hidden_proto.
420         Then do hidden_proto for __isnanf locally so hidden_def works right.
422         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
423         a cast to turn nl_langinfo return value into an integer.
425 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
427         * posix/regexec.c (build_trtable): Fix the destination of
428         newline to prevent wrong states from overwriting.
429         Append break statements to optimization.
431 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
433         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
434         (build_range_exp): Add castings to strlen invocations.
435         (build_collating_symbol): Restore the type of characters from "char"
436         to "unsigned char", and supplement castings.
437         (build_collating_symbol): Likewise.
438         (build_equiv_class): Likewise.
439         (build_charclass): Likewise.
440         (seek_collating_symbol_entry): Likewise.
441         (parse_bracket_exp): Likewise.
442         (build_word_op): Supplement a casting.
443         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
444         (re_string_allocate): Fix castings.
445         (re_string_construct): Likewise.
446         (re_string_construct_common): Likewise.
447         (re_string_realloc_buffers): Likewise.
448         (build_wcs_buffer): Likewise.
449         (build_wcs_upper_buffer): Likewise.
450         (re_string_skip_chars): Likewise.
451         (re_string_reconstruct): Likewise.
452         * posix/regex_internal.h: Restore the type of characters in
453         re_string_t and bracket_elem_t from "char" to "unsigned char".
454         (re_string_elem_size_at): Fix castings.
455         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
456         (transit_state_bkref_loop): Restore the type of characters from
457         "char" to "unsigned char", and append a cast to "char*" pointer in
458         array subscript.
459         (check_node_accept_bytes): Likewise.
460         (find_collation_sequence_value): Likewise.
462 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
464         * sysdeps/mips/memcpy.S: New file.
465         * sysdeps/mips/memset.S: New file.
466         * sysdeps/mips/fpu/e_sqrt.c:  New file.
467         * sysdeps/mips/fpu/e_sqrtf.c: New file.
469         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
470         functional before. Also removed all SHLIB_COMPAT stuff.
471         * fpu/fegetenv.c: Likewise.
472         * fpu/fesetenv.c:: Likewise.
473         * fpu/feupdateenv.c: Likewise.
474         * fpu/fgetexcptflg.c: Likewise.
475         * fpu/fraiseexcpt.c: Likewise.
477         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
479 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
481         * include/math.h (__finite_internal, __finitef_internal,
482         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
483         (isfinite): Remove.
484         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
485         __isinfl, __isnanl): Add hidden_proto.
486         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
487         libm_hidden_proto.
488         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
489         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
490         __is{inf,nan} calls.
491         * stdio-common/printf_size.c (printf_size): Likewise.
492         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
493         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
494         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
495         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
496         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
497         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
498         (__finite): Add hidden_def.
499         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
500         (__finitef): Add hidden_def.
501         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
502         (__finitel): Add hidden_def.
503         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
504         hidden_def.
505         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
506         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
507         libm_hidden_def.
508         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
509         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
510         hidden_def.
511         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
512         (__isinfl): Remove INTDEF.
513         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
514         hidden_def.
515         (__isnanl): Remove INTDEF.
516         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
517         libm_hidden_def.
518         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
519         instead of sin and cos.
520         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
521         Add hidden_def.
522         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
523         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
524         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
525         libm_hidden_def.
526         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
527         Add hidden_def.
528         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
529         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
530         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
531         libm_hidden_def.
532         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
533         libm_hidden_def.
534         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
535         Add hidden_def.
536         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
537         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
538         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
539         libm_hidden_def.
540         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
541         __finitel_internal): Remove aliases.
542         (__finite, __finitef, __finitel): Add hidden_def.
543         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
544         __isnanl_internal): Remove aliases.
545         (__isnan, __isnanf, __isnanl): Add hidden_def.
546         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
547         __isinfl_internal): Remove aliases.
548         (__isinf, __isinff, __isinfl): Add hidden_def.
549         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
550         __fpclassifyl): Add libm_hidden_def.
551         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
552         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
553         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
554         (hidden_defx): Define and use.
555         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
556         libm_hidden_def.
557         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
558         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
559         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
560         Remove INTDEF.
561         (__isnan, __isnanf): Add hidden_def.
562         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
563         (__finitel): Add libm_hidden_def.
564         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
566         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
567         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
568         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
569         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
570         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
571         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
572         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
573         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
574         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
575         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
576         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
577         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
578         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
579         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
580         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
581         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
582         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
583         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
584         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
585         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
586         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
587         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
588         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
589         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
590         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
591         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
592         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
594 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
596         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
598 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
600         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
601         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
603 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
605         * string/stratcliff.c: Some more strncpy tests.
606         Patch by Daniel Jacobowitz <drow@mvista.com>.
608 2002-09-08  Roland McGrath  <roland@redhat.com>
610         * resolv/resolv.h: Include <sys/types.h> for u_long even in
611         the [__need_res_state] case.
612         Reported by Bruno Haible <bruno@clisp.org>.
614 2002-09-04  Bruno Haible  <bruno@clisp.org>
616         * sysdeps/generic/bits/ustat.h: Comment fix.
617         * io/sys/sendfile.h: Comment fix.
618         * sysdeps/posix/pread.c: Comment fix.
619         * sysdeps/posix/pread64.c: Comment fix.
620         * sysdeps/posix/pwrite.c: Comment fix.
621         * sysdeps/posix/pwrite64.c: Comment fix.
623 2002-09-06  Roland McGrath  <roland@redhat.com>
625         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
626         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
627         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
628         (_UTSNAME_MACHINE_LENGTH): Likewise.
629         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
631 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
633         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
634         test for filesystem type name of mount points.
636         * include/errno.h: Use errno definition with __thread for now only
637         in libc and ld.so.
639         * test-skeleton.c (main): Improve error message for unexpected
640         signal case.
642 2002-09-05  Roland McGrath  <roland@redhat.com>
644         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
645         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
647 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
649         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
650         case of failure.
652 2002-09-04  Bruno Haible  <bruno@clisp.org>
654         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
655         sigset_get_old_mask): Turn into inline functions.
656         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
657         sigset_get_old_mask): Likewise.
658         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
659         sigset_get_old_mask): Likewise.
660         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
661         syntax.
663         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
665         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
666         default definitions.
667         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
668         _sys_nerr_internal instead of _sys_nerr.
670         * nscd/connections.c (handle_request): Declare CALLER inside #if.
672 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
674         * sysdeps/powerpc/__longjmp.S: Moved to...
675         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
676         * sysdeps/powerpc/add_n.S: Moved to...
677         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
678         * sysdeps/powerpc/addmul_1.S: Moved to...
679         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
680         * sysdeps/powerpc/atomicity.h: Moved to...
681         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
682         * sysdeps/powerpc/backtrace.c: Moved to...
683         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
684         * sysdeps/powerpc/bp-asm.h: Moved to...
685         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
686         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
687         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
688         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
689         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
690         * sysdeps/powerpc/dl-machine.c: Moved to...
691         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
692         * sysdeps/powerpc/dl-machine.h: Moved to...
693         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
694         * sysdeps/powerpc/dl-start.S: Moved to...
695         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
696         * sysdeps/powerpc/gprrest0.S: Moved to...
697         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
698         * sysdeps/powerpc/gprrest1.S: Moved to...
699         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
700         * sysdeps/powerpc/gprsave0.S: Moved to...
701         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
702         * sysdeps/powerpc/gprsave1.S: Moved to...
703         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
704         * sysdeps/powerpc/lshift.S: Moved to...
705         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
706         * sysdeps/powerpc/memset.S: Moved to...
707         * sysdeps/powerpc/powerpc32/memset.S: ...here.
708         * sysdeps/powerpc/mul_1.S: Moved to...
709         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
710         * sysdeps/powerpc/ppc-mcount.S: Moved to...
711         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
712         * sysdeps/powerpc/register-dump.h: Moved to...
713         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
714         * sysdeps/powerpc/rshift.S: Moved to...
715         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
716         * sysdeps/powerpc/setjmp.S: Moved to...
717         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
718         * sysdeps/powerpc/stpcpy.S: Moved to...
719         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
720         * sysdeps/powerpc/strchr.S: Moved to...
721         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
722         * sysdeps/powerpc/strcmp.S: Moved to...
723         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
724         * sysdeps/powerpc/strcpy.S: Moved to...
725         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
726         * sysdeps/powerpc/strlen.S: Moved to...
727         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
728         * sysdeps/powerpc/sub_n.S: Moved to...
729         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
730         * sysdeps/powerpc/submul_1.S: Moved to...
731         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
732         * sysdeps/powerpc/elf/bzero.S: Moved to...
733         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
734         * sysdeps/powerpc/elf/start.S: Moved to...
735         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
736         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
737         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
738         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
739         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
740         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
741         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
742         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
743         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
744         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
745         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
746         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
747         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
748         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
750         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
752         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
754         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
756         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
758         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
760         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
762         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
763         powerpc/powerpc64.
765 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
767         * FAQ.in: Add powerpc64 to supported targets list. Also state the
768         minimum gcc version is 3.2
769         * README: Add powerpc64 to supported targets list.
770         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
771         Add powerpc64 and machine=powerpc/powerpc64.
772         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
773         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
774         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
775         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
776         * sysdeps/powerpc/powerpc32/Dist: New file.
777         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
778         * sysdeps/powerpc/powerpc32/Implies: New file.
779         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
780         ($(with-fp) = no): Move test to powerpc32/Makefile.
781         ($(subdir) = misc): Move to powerpc32/Makefile.
782         ($(build-shared) = yes): Move to powerpc32/Makefile.
783         ($(subdir) = csu): Move to powerpc32/Makefile.
784         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
785         * sysdeps/powerpc/powerpc32/Makefile: New file.
786         * sysdeps/powerpc/Versions: Remove libgcc functions.
787         * sysdeps/powerpc/powerpc32/Versions: New file.
788         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
789         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
790         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
791         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
792         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
793         ($machine): Add powerpc/powerpc64 to if ... | for
794         libc_cv_slibdir=/libc64.
795         (powerpc*): Set ldd_rewrite_script.
796         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
797         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
799         Add clone.S.
800         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
801         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
802         functions.  Remove GLIBC_2.2 functions except getrlimit and
803         setrlimit.  Moved them to ...
804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
806 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
808         * libio/tst-atime.c: Include <errno.h>.
809         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
811 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
813         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
814         warnings of some compilers.
815         (build_collating_symbol): Change the type of characters from
816         "unsigned char" to "char", and append a cast to "char*" pointer in
817         array subscript.
818         (build_collating_symbol): Likewise.
819         (build_equiv_class): Likewise.
820         (build_charclass): Likewise.
821         (re_compile_pattern): Remove incorrect cast.
822         (re_compile_fastmap_iter): Change the type of characters from
823         "unsigned char" to "char", and append a cast to "char*" pointer
824         in array subscript.
825         (parse_bracket_exp): Likewise.
826         * posix/regex_internal.c (re_string_construct_common): Likewise.
827         (re_string_allocate): Likewise.
828         (re_string_construct): Likewise.
829         (re_string_realloc_buffers): Likewise.
830         (build_wcs_buffer): Likewise.
831         (re_string_reconstruct): Likewise.
832         * posix/regex_internal.h: Change the type of characters in
833         re_string_t and bracket_elem_t from "unsigned char" to "char".
834         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
835         warnings of some compilers.
836         (transit_state_bkref_loop): Change the type of characters from
837         "unsigned char" to "char", and append a cast to "char*" pointer in
838         array subscript.
839         (check_node_accept_bytes): Likewise.
840         (find_collation_sequence_value): Likewise.
842 2002-09-04  Roland McGrath  <roland@redhat.com>
844         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
845         from 1024 to 65536, to avoid buffer overrun.
847 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
849         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
851 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
853         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
854         for filesystem.
856 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
858         * posix/bug-regex11.c: New test.
859         * posix/Makefile (tests): Add bug-regex11.
861 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
863         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
864         newlocale.
866 2002-09-02  Roland McGrath  <roland@redhat.com>
868         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
869         __pthread_initialize_minimal and __libc_check_standard_fds to
870         match the generic version.
872         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
873         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
875         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
876         warnings on platorms where char is unsigned.
878 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
880         * version.h (VERSION): Bump to 2.2.93.
882         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
884 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
886         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
887         as relocated.
889 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
891         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
893 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
895         * locale/localeinfo.h (struct locale_data): Add private.ctype.
896         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
897         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
898         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
899         (__wcsmbs_load_conv): Remove const from argument.
900         (_nl_cleanup_ctype): New proto.
901         (get_gconv_fcts): New function.
902         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
903         (__wcsmbs_to_wc): Rename back to...
904         (to_wc): ... this.
905         (__wcsmbs_gconv_fcts): Rename to...
906         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
907         (lock): Removed.
908         (__libc_setlocale_lock): New extern.
909         (__wcsmbs_load_conv): Remove const from argument.
910         Initialize new_category->private.ctype instead of a global
911         variable.
912         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
913         update_function_ptrs.  No locking is necessary.
914         (_nl_cleanup_ctype): New function.
915         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
916         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
917         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
918         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
919         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
920         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
921         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
922         * wcsmbs/wctob.c (wctob): Likewise.
923         * stdlib/mblen.c (mblen): Likewise.
924         * stdlib/mbtowc.c (mbtowc): Likewise.
925         * stdlib/wctomb.c (wctomb): Likewise.
926         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
927         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
928         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
929         Removed.
931 2002-09-02  Roland McGrath  <roland@frob.com>
933         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
935 2002-09-01  Roland McGrath  <roland@redhat.com>
937         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
938         Variable declarations removed.
939         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
940         these functions to replace them.
941         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
942         functions plus an indirection rather than the old global variables.
943         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
944         Macros removed.
945         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
946         inline functions.
947         * ctype/ctype-info.c: Revert last reversion back the other way.
948         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
949         Define real function versions of include/ctype.h inlines here.
950         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
951         __ctype_tolower_loc, __ctype_toupper_loc.
952         * locale/lc-ctype.c: Revert last reversion back the other way.
953         (_nl_postload_ctype): If current thread uses the global locale,
954         update its tsd vars.
955         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
956         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
957         CTYPE_TOLOWER, CTYPE_TOUPPER.
959         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
960         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
961         from __libc_tsd_threadvar_location.
962         (__libc_tsd_set, __libc_tsd_get): Update uses.
964 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
966         * ctype/ctype.h: Undo the patch before the last one.  Put back the
967         macro definitions for the standard functions to access the
968         classification and mapping arrays.
969         * include/ctype.h: Partly revert last patch.  Move the macro
970         definitions for the exported functions back to the public header.
971         #undef all the macros defined here before redefining.
972         * ctype/ctype-info.c: Revert last patch.
973         * locale/lc-ctype.c: Revert last patch.
975         * ctype/Makefile (routines): Add isctype.
976         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
977         * ctype/ctype.h: Add declaration of isctype.
978         * include/ctype.h: Declare __isctype.
979         * ctype/isctype.c: New file.
981 2002-09-01  Roland McGrath  <roland@redhat.com>
983         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
984         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
986         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
988         * locale/findlocale.c (_nl_remove_locale): Don't search in
989         _nl_locale_file_list if DATA->alloc is ld_archive.
990         Use _nl_unload_locale to do the rest of the work.
992         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
993         of new structure to UNDELETABLE.
995         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
996         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
997         towlower, towupper): Macros removed.
998         * ctype/ctype.h (__tobody): Put parens around macro argument.
999         (__isctype): Macro removed.
1000         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1001         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1002         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1003         tolower, toupper): Macros and inlines removed.
1004         * include/ctype.h [! NOT_IN_libc]
1005         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1006         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1007         tolower, toupper): Define here instead, using _NL_CURRENT.
1008         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1009         using _NL_CURRENT.
1010         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1011         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1012         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1013         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1014         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1015         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1016         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1017         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1018         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1019         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1020         (ISSORTMASK): Update use.
1021         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1022         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1023         (_nss_files_getENTNAME_r): Likewise.
1024         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1025         Likewise.
1027         * Makerules (all-nonlib): Renamed from all-tests.
1028         Include $(others) here too.
1029         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1030         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1031         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1032         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1033         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1034         the program modules via cppflags-iterator.mk.
1035         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1036         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1038 2002-08-31  Roland McGrath  <roland@redhat.com>
1040         * posix/tst-getconf.sh: If no third arg, work with static linking.
1042         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1044         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1045         [_NL_CURRENT_INDIRECT].
1047 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1049         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1051 2002-08-31  Roland McGrath  <roland@redhat.com>
1053         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1054         Instead, make the single allocation of the structure larger to hold
1055         the name strings.
1056         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1057         Instead, calculate size for a single allocation and copy into it.
1058         * locale/freelocale.c (__freelocale): Don't free names individually.
1060         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1062         * locale/xlocale.h (__locale_struct): Move __names member last,
1063         for binary compatibility.
1065         * locale/duplocale.c (__duplocale): Free names from the right array.
1067         * locale/uselocale.c (__uselocale): Return previous locale when
1068         setting a new one.
1070         * locale/newlocale.c: Commit changes from 2002-08-30
1071         batch where I failed to commit this file:
1072         (__newlocale): Fill in __names array.
1074 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1076         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1077         errlist-compat.c if versioning==yes.
1079 2002-08-31  Andreas Jaeger  <aj@suse.de>
1081         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1082         external functions with hidden attribute.
1083         (elf_machine_rela): Optimize.
1085         * sysdeps/x86_64/memset.S: New file.
1086         * sysdeps/x86_64/bzero.S: New file.
1087         * sysdeps/x86_64/stpcpy.S: New file.
1088         * sysdeps/x86_64/strcat.S: New file.
1089         * sysdeps/x86_64/strchr.S: New file.
1090         * sysdeps/x86_64/strcpy.S: New file.
1091         * sysdeps/x86_64/strcspn.S: New file.
1092         * sysdeps/x86_64/strlen.S: New file.
1093         * sysdeps/x86_64/strpbrk.S: New file.
1094         * sysdeps/x86_64/strspn.S: New file.
1095         * sysdeps/x86_64/strcmp.S: New file.
1096         * sysdeps/x86_64/strtok_r.S: New file.
1097         * sysdeps/x86_64/strtok.S: New file.
1098         * sysdeps/x86_64/memcpy.S: New file.
1099         * sysdeps/x86_64/mempcpy.S: New file.
1101         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1103         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1105 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1107         * stdio-common/Makefile (generated): Add errlist-compat.c.
1109         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1111         * locale/localeinfo.h: Pretty printing.
1113         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1114         form_number handling.
1116 2002-08-31  Andreas Jaeger  <aj@suse.de>
1118         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1119         double tests.
1121         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1122         __start_context.
1124         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1126         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1128         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1129         registers used for passing args.
1131         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1132         all needed registers.
1134         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1135         registers.
1137         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1138         registers.
1140 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1142         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1143         always_inline attribute.
1145 2002-08-30  Roland McGrath  <roland@redhat.com>
1147         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1148         presume it's the stub and bail without error.
1150         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1151         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1153         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1155         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1156         macros replace the i686 versions for 64-bit mode.
1158         * locale/duplocale.c: Include <string.h>.
1160         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1161         [_LIBC] (category_to_name): Don't define the function.  Instead
1162         define a macro using _nl_category_names.
1164         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1165         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1166         * locale/global-locale.c (_nl_global_locale): Likewise.
1167         * locale/duplocale.c (__duplocale): strdup __names elements.
1168         * locale/freelocale.c (__freelocale): Free __names elements.
1169         * locale/localename.c (_nl_current_names): Variable removed.
1170         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1171         * locale/localeinfo.h (_nl_current_names): Removed decl.
1172         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1173         _nl_current_names throughout.
1175         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1177         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1178         and sys_nerr in the output file.
1180         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1181         * scripts/cpp: Just use the environment variable.
1183         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1184         * libio/tst-mmap-offend.c (do_test): Likewise.
1185         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1186         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1187         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1189         * locale/localename.c: If the current locale is the global locale, use
1190         _nl_current_names; otherwise use the locale object.
1192 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1194         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1195         'm' to enable mmap I/O.
1196         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1197         former wasn't used (anymore?).
1198         (_IO_FLAGS2_MMAP): New define.
1199         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1200         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1201         _IO_FLAGS2_MMAP bit is set.
1202         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1203         Enable mmap-using mode only if 'm' was set.
1205 2002-08-29  Roland McGrath  <roland@frob.com>
1207         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1209         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1210         Change argument type from int to intptr_t.
1212         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1213         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1214         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1215         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1216         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1218         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1220         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1222         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1224         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1225         * assert/assert-perr.c: Add libc_hidden_def.
1226         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1228         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1229         found at all.
1230         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1231         sys_errlist stuff to ...
1232         * sysdeps/unix/sysv/linux/Versions: ... here.
1234         * mach/mach.h: Include <features.h>.
1236 2002-08-29  Roland McGrath  <roland@redhat.com>
1238         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1239         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1240         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1242         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1244         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1245         (norm_add_slashes): alloca -> __alloca
1247 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1249         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1250         string_malloced, it is unlikely to be set.
1251         Only call free with non-NULL workspace.
1252         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1253         -mcpu=ultrasparc, not only tune for it.
1254         (ASFLAGS*): Set unconditionally.
1256         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1257         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1258         p_vaddr/p_offset when computing LOADADDR.
1260 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1262         * version.h (VERSION): Bump to 2.2.92.
1264         * time/Makefile (tst-ftime_l-ENV): New variable.
1266         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1268         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1269         <U017A>, <U017D> and <U0179>. Add missing mappings.
1270         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1272         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1273         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1274         (struct tostruct): Use ACRINDEX as type for link field.
1275         (statuc gmonparam): Likewise for froms.
1276         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1277         kcount and froms.
1278         (write_call_graph): Use correct type for from_index and to_index.
1279         * gmon/mcount.c: Use correct types for frompcindex and toindex
1280         variables.
1281         Patches by Dan Kegel <dank@kegel.com>.
1283         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1284         canonical name.
1286         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1287         __isspace_l.  Replace calls to isspace.
1288         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1290 2002-08-29  Roland McGrath  <roland@redhat.com>
1292         * string/tst-strxfrm.c: Remove __ from function names.
1294 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1296         * include/wchar.h: Declare __mbsrtowcs_l.
1297         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1298         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1299         USE_IN_EXTENDED_LOCALE_MODEL.
1300         * wcsmbs/mbsrtowcs_l: New file.
1301         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1302         define as static.  Change all uses.
1303         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1304         Change all callers.
1305         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1306         * time/strftime.c: When translating for the extended locale model
1307         use the _l functions.
1308         * time/Makefile (tests): Add tst-ftime_l.
1309         * time/tst-ftime_l.c: New file.
1311 2002-08-28  Roland McGrath  <roland@redhat.com>
1313         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1314         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1315         from _nl_find_locale ok if for _nl_C_name.
1317         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1318         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1319         we know they are all linked in.
1321         * NEWS: Added 2.2.6 text from 2.2 branch version.
1323         * time/strptime.c (strptime_internal): Remove spurious const.
1325         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1326         _nl_select_era_entry): Moved to ...
1327         * time/era.c: ... here, new file.
1328         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1329         Add internal_function to definitions.  Take an additional argument
1330         giving the `struct locale_data *' to use.
1331         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1332         _nl_parse_alt_digit): Moved to ...
1333         * time/alt_digit.c: ... here, new file.
1334         * time/lc-time-cleanup.c: New file.
1335         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1336         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1337         (_nl_cleanup_time): Declare it.
1338         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1339         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1340         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1341         * time/strftime.c: Pass locale data to helper functions.
1342         * time/strptime.c: Likewise.
1344         * locale/localeinfo.h (struct locale_data): New member `private'
1345         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1346         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1347         * locale/C-collate.c: Update initializer.
1348         * locale/C-identification.c: Likewise.
1349         * locale/C-measurement.c: Likewise.
1350         * locale/C-telephone.c: Likewise.
1351         * locale/C-address.c: Likewise.
1352         * locale/C-name.c: Likewise.
1353         * locale/C-paper.c: Likewise.
1354         * locale/C-time.c: Likewise.
1355         * locale/C-numeric.c: Likewise.
1356         * locale/C-monetary.c: Likewise.
1357         * locale/C-messages.c : Likewise.
1358         * locale/C-ctype.c: Likewise.
1360         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1361         Redefine this too.
1363 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1365         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1366         (_rtld_global): Use it.
1368         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1369         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1370         object directory.  Pass all Versions files to the awk script.
1371         * sysdeps/gnu/errlist-compat.c: Removed.
1372         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1373         first Versions file in the search path which has them.
1374         Allow multiple errlist symbol versions to have the same count of
1375         errors.
1376         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1377         of "errlist-compat.c".
1378         * sysdeps/gnu/errlist.c: Regenerated.
1379         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1380         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1381         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1382         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1383         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1384         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1385         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1386         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1387         ECANCELLED if not defined by kernel headers.
1388         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1389         already defined by kernel headers.
1390         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1391         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1392         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1393         is a macro.
1394         * Versions.def (GLIBC_2.3) [librt]: Add.
1396         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1398 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1400         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1401         missing comma to .type directive.
1403 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1405         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1406         unconditionally.
1407         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1408         check.
1409         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1411 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1413         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1414         check to close_and_out close.  Replace return NULL statements where
1415         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1416         when it is no longer needed.
1418 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1420         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1421         string constants.
1422         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1423         * sysdeps/arm/dl-machine.h: Likewise.
1424         * sysdeps/cris/dl-machine.h: Likewise.
1425         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1426         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1428 2002-08-28  Roland McGrath  <roland@redhat.com>
1430         * Makeconfig (default_cflags): Revert unintended change.
1432 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1434         * version.h (VERSION): Bump to 2.2.91.
1436         * configure.in: Disable TLS support by default for now.
1438         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1440         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1441         warnings.
1443         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1445         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1446         fprintf/fwprintf calls.
1448 2002-08-28  Roland McGrath  <roland@redhat.com>
1450         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1451         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1453         * locale/setlocale.c: Declare postload functions weak.
1455         * elf/tst-tls1-static.c: New file.
1456         * elf/tst-tls2-static.c: New file.
1457         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1459         Make uselocale support static linking.
1460         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1461         This file again just defines _nl_C_locobj.
1462         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1463         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1464         using all weak references in the initializer.
1465         * locale/Makefile (aux): Add global-locale.
1466         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1467         these unconditional, along with the tsd decl.
1468         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1469         Define it under these conditions.
1470         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1471         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1472         `extern __thread struct locale_data *const *'.
1473         [NL_CURRENT_INDIRECT]
1474         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1475         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1476         the thread variable _nl_current_LC_FOO and also a special absolute
1477         symbol _nl_current_LC_FOO_used.
1478         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1479         Set each _nl_current_LC_FOO symbol to point into the new locale,
1480         using weak references to test if _nl_current_LC_FOO_used was linked in.
1481         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1482         [NL_CURRENT_INDIRECT]: ... with this one.
1483         (_nl_current, _nl_C): Variables removed.
1484         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1485         weak references to _nl_current_LC_FOO_used.
1486         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1487         (free_category): New function, broken out of ...
1488         (free_mem): ... here.  Call that.
1489         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1490         instead of a loop.
1492         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1493         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1494         it is already absolute.
1496         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1497         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1498         [$(build-static) = yes] (tests-static): New variable.
1499         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1501 2002-08-26  Christoph Hellwig  <hch@lst.de>
1503         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1504         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1506 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1508         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1510         * sysdeps/s390/Dist: Add bits/link.h.
1512         * sysdeps/sh/Dist: New file.
1514         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1516         * sysdeps/wordsize-32/Dist: New file.
1518         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1519         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1520         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1522         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1523         sys/personality.h.
1525         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1526         sparc/dl-brk.S.
1528         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1530         * sysdeps/unix/bsd/sun/Dist: New file.
1532         * sysdeps/unix/bsd/osf/Dist: New file.
1534         * sysdeps/unix/bsd/hp/Dist: New file.
1536         * sysdeps/unix/arm/Dist: New file.
1538         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1540         * sysdeps/mach/hurd/Dist: Add set-init.c.
1542         * sysdeps/i386/Dist: Add bits/link.h.
1544         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1546         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1548         * locale/Makefile (distribute): Add hashval.h.
1550         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1552         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1554         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1555         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1556         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1557         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1558         implementations.
1559         * libio/stdio.h: Likewise.
1560         * locale/locale.h: Likewise.
1561         * math/math.h: Likewise.
1562         * math/bits/mathcalls.h: Likewise.
1563         * setjmp/setjmp.h: Likewise.
1564         * signal/signal.h: Likewise.
1565         * stdlib/stdlib.h: Likewise.
1566         * string/string.h: Likewise.
1567         * time/time.h: Likewise.
1568         * wcsmbs/wchar.h: Likewise.
1569         * wctype/wctype.h: Likewise.
1571 2002-08-28  Roland McGrath  <roland@redhat.com>
1573         * locale/tst-C-locale.c (run_test): Remove __ from function names.
1575 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1576             Roland McGrath <roland@redhat.com>
1578         * locale/hashval.h (compute_hashval): Use prototype defn.
1579         (hashval_t): New macro, defined to unsigned long int
1580         if not already defined.
1581         (compute_hashval): Return hashval_t instead of unsigned long int.
1582         * locale/loadarchive.c (hashval_t): New macro.
1583         * locale/programs/locarchive.c: Include hashval.h directly instead
1584         of simple-hash.h.
1585         (compute_hashval, hashval_t): Define these macros first.
1586         (insert_name): Use archive_hashval instead of compute_hashval.
1587         (add_locale, delete_locales_from_archive): Likewise.
1589 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1591         * locale/programs/locarchive.c (insert_name): Suppress warnings about
1592         hash collisions if be_quiet.
1594 2002-08-27  Roland McGrath  <roland@redhat.com>
1596         * locale/locale.h (__newlocale, __duplocale, __freelocale,
1597         __uselocale): Don't declare these any more.
1598         * include/locale.h (__uselocale): Declare here instead, using __typeof.
1600         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1601         and treat it as an EOF return.
1602         * sysdeps/unix/readdir_r.c: Likewise.
1604         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1605         From Alexandre Oliva <aoliva@redhat.com>.
1606         * sysdeps/gnu/errlist-compat.c: Regenerated.
1608 2002-08-27  Brian Youmans  <3diff@gnu.org>
1610         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1611         wording at request of copyright holder Stephen Moshier.
1612         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1613         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1614         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1615         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1616         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1617         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1618         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1619         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1620         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1621         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1622         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1623         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1624         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1625         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1627 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1629         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1630         * ctype/ctype-extn.c (isblank_l): Add weak alias.
1631         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1632         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1633         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1634         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1635         * wctype/iswctype_l.c (iswctype_l): Likewise.
1637 2002-08-27  Roland McGrath  <roland@redhat.com>
1639         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1641         * ctype/ctype.h (__exctype_l): Don't declare __ name.
1642         * stdlib/stdlib.h: Don't declare __*_l names.
1643         * include/stdlib.h: Declare them here instead.
1644         * include/string.h: Don't declare __*_l names.
1645         * string/string.h: Declare them here instead.
1646         * time/time.h: Don't declare __*_l names.
1647         * include/time.h: Declare them here instead.
1648         * wcsmbs/wchar.h: Don't declare __*_l names.
1649         * include/wchar.h: Declare them here instead.
1650         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1651         Don't declare __*_l names.
1652         * include/wctype.h: Declare them here instead.
1653         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1654         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1655         * locale/langinfo.h: Don't declare __nl_langinfo_l.
1656         * include/langinfo.h: Declare it here with __typeof.
1658         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1659         instead, taking an extra __locale_t argument.
1660         * time/Makefile (routines): Add strptime_l.
1661         * time/time.h (__strptime_l, strptime_l): Declare them.
1662         * time/strptime_l.c: New file.
1664         * time/time.h (__strftime_l, strftime_l): Declare them.
1665         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1666         * time/strftime_l.c: New file.
1667         * time/wcsftime_l.c: New file.
1668         * time/Makefile (routines): Add strftime_l, wcsftime_l.
1669         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1670         strftime_l, wcsftime_l.
1671         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1672         or __wcsftime_l instead, taking an extra __locale_t argument.
1674         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1675         (libc: GLIBC_2.3): ... here.
1677 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1679         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1681         * Makefile (distribute): Add LICENSES.
1683         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1684         sys/debugreg.h.
1686         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1688         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1690         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1692         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1694         * sysdeps/mach/hurd/alpha/Dist: New file.
1696         * sysdeps/arm/Dist: Add bits/link.h.
1698         * sunrpc/Makefile: Distribute thrsvc.
1700         * stdio-common/Makefile: Remove more left-overs from old stdio.
1702         * include/linewrap.h: Removed.
1704         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1706         * intl/Makefile (distribute): Add plural-eval.c.
1708 2002-08-27  Roland McGrath  <roland@redhat.com>
1710         * manual/sysinfo.texi (Mount Information): Correct file name to macro
1711         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1712         Say mtab is in either /var/run or /etc.
1714 2002-08-26  Roland McGrath  <roland@redhat.com>
1716         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1717         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1719         * sysdeps/gnu/Versions: New file.
1720         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1721         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1722         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1723         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1724         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1725         and _sys_nerr_internal instead of anything else.  Make it include
1726         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1727         Make it emit some asm magic if [EMIT_ERR_MAX].
1728         * sysdeps/gnu/errlist.c: Regenerated.
1729         * sysdeps/gnu/errlist-compat.awk: New file.
1730         * sysdeps/gnu/errlist-compat.c: New file (generated).
1731         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1732         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1733         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1734         (SYS_ERRLIST, SYS_NERR): Macros removed.
1735         (sys_nerr, _sys_nerr): Remove these weak aliases.
1736         * sysdeps/unix/sysv/linux/errlist.c: File removed.
1737         * sysdeps/unix/sysv/linux/errlist.h: File removed.
1738         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1740         * include/libc-symbols.h (declare_symbol): New macro.
1741         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1742         * configure.in: New check to define it.
1743         * configure: Regenerated.
1745 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
1747         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
1748         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
1750         * Make-dist: Remove traces of old stdio.
1751         * Makeconfig: Likewise.
1753         * locale/Makefile (localedef-aux): New variable.  Only md5
1754         assigned to it.  These files are not ddistributed in this directory.
1756         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1757         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1758         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1760         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1762         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1763         set h_errno to NO_RECOVERY [PR libc/4360].
1765 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
1767         * libio/Makefile (tests): Add bug-fopena+.
1768         * libio/bug-fopena+.c: New file.
1769         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1770         file for _IO_IS_APPENDING if file isn't opened for reading, too.
1772         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1774         * locale/xlocale.c: Fix the last change.  The variable still has
1775         to end in _data.
1776         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1777         (__libc_tsd_set): Add _data prefix to variable name.
1779 2002-08-26  Roland McGrath  <roland@redhat.com>
1781         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1782         macro with inline function.
1783         (sigset_get_old_mask): Likewise.
1784         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1785         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1786         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1787         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1788         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1789         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1790         values.
1791         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1792         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1794 2002-07-06  Bruno Haible  <bruno@clisp.org>
1796         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1797         sigset_get_old_mask): Make it work with larger sigset_t.
1798         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1799         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1800         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1802 2002-08-26  Roland McGrath  <roland@redhat.com>
1804         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1805         * manual/filesys.texi (File Times): Document lutimes and futimes.
1806         * misc/Makefile (routines): Add them.
1807         * misc/Versions (libc: GLIBC_2.3): Likewise.
1808         * sysdeps/generic/lutimes.c: New file.
1809         * sysdeps/generic/futimes.c: New file.
1810         * sysdeps/mach/hurd/lutimes.c: New file.
1811         * sysdeps/mach/hurd/futimes.c: New file.
1813         * manual/filesys.texi (File Times): Add explicit note about null
1814         pointer argument to utimes.
1816 2002-08-26  Roland McGrath  <roland@frob.com>
1818         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1819         (__ifreq): Add a cast.  Remove an unused variable.
1821         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1822         _HURD_THREADVAR_LOCALE.
1824 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
1826         * posix/regexec.c (re_search_stub): Return correct match length
1827         if start != 0.
1828         * posix/bug-regex10.c: New test.
1829         * posix/Makefile (tests): Add bug-regex10.
1831 2002-08-26  Brian Youmans  <3diff@gnu.org>
1833         * COPYING.LIB: Replaced with fresh copy from
1834         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1835         suggested copying permission notice now says version 2.1 instead
1836         of version 2.
1838         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1839         from Library GPL.
1840         * crypt/crypt_util.c: Likewise.
1841         * crypt/ufc.c: Likewise.
1842         * elf/dl-conflict.c: Likewise.
1843         * elf/dl-iteratephdr.c: Likewise.
1844         * iconv/iconvconfig.h: Likewise.
1845         * malloc/arena.c: Likewise.
1846         * malloc/hooks.c: Likewise.
1847         * malloc/malloc.c: Likewise.
1848         * posix/glob/Makefile.ami: Likewise.
1849         * posix/glob/Makefile.in: Likewise.
1850         * stdlib/gmp-impl.h: Likewise.
1851         * stdlib/gmp.h: Likewise.
1852         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1853         * sysdeps/generic/strnlen.c: Likewise.
1854         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1855         * sysdeps/mach/hurd/recvmsg.c: Likewise.
1856         * sysdeps/mach/hurd/sendmsg.c: Likewise.
1857         * sysdeps/mach/hurd/spawni.c: Likewise.
1858         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1859         * sysdeps/mach/powerpc/sysdep.h: Likewise.
1860         * sysdeps/mach/powerpc/thread_state.h: Likewise.
1861         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1862         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1863         * sysdeps/x86_64/gmp-mparam.h: Likewise.
1865         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1866         Lesser GPL copying permission notice from 2 to 2.1.
1867         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1868         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1869         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1870         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1871         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1872         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1873         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1874         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1875         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1876         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1877         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1878         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1879         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1880         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1881         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1882         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1883         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1884         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1885         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1886         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1887         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1888         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1889         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1890         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1891         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1892         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1893         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1894         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1895         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1896         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1897         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1898         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1899         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1900         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1901         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1902         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1903         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1904         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1905         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1906         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1907         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1908         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1909         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1910         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1911         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1912         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1913         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1914         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1915         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1916         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1917         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1918         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1919         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1920         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1921         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1923         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1924         Moshier and Lesser GPL copying permission notice, per license from
1925         Moshier.
1926         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1927         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1928         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1929         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1930         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1931         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1932         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1933         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1934         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1935         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1936         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1937         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1938         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1939         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1941         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1942         notice, per license from copyright holder Stephen Moshier.
1943         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1944         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1945         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1946         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1947         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1948         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1949         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1950         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1951         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1953 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1955         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1956         (shared-only-routines): Likewise.
1958 2002-08-26  Roland McGrath  <roland@redhat.com>
1960         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
1961         name of "", store a null pointer instead.
1963         * configure.in (elf): Set to yes for freebsd*, netbsd*.
1964         * configure: Regenerated.
1966         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
1967         Initialize this instead of __libc_tsd_LOCALE_data.
1969         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
1970         ptsname_r to EINVAL.
1972         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
1974         * rt/Makefile: Revert last change, it was inappropriate to presume aio
1975         implementations depend on pthreads.
1976         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
1977         * rt/tst-aio64.c (do_test): Likewise.
1978         * rt/tst-aio2.c (do_test): Likewise.
1979         * rt/tst-aio3.c (do_test): Likewise.
1980         * rt/tst-aio4.c (do_test): Likewise.
1981         * rt/tst-aio5.c (do_test): Likewise.
1982         * rt/tst-aio6.c (do_test): Likewise.
1983         * rt/tst-aio7.c (do_test): Likewise.
1985         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
1986         void so as to avoid compiler warnings.
1988         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
1989         _IO_wide_data_FD, which is never used here.
1991         * libio/iofread.c
1992         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
1993         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
1994         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
1996         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
1997         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
1999         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2000         (closelog): Likewise.
2002 2002-07-06  Bruno Haible  <bruno@clisp.org>
2004         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2006         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2007         * sysdeps/unix/alpha/pipe.S: ... here.
2008         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2010         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2012         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2013         * sysdeps/unix/i386/fork.S: Likewise.
2014         * sysdeps/unix/i386/pipe.S: Likewise.
2015         * sysdeps/unix/i386/wait.S: Likewise.
2017         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2018         * sysdeps/unix/arm/fork.S: Likewise.
2020         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2021         arguments.
2022         (DO_CALL): Swap argument order.
2023         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2024         arguments.
2025         (DO_CALL): Swap argument order.
2026         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2027         arguments.
2028         (DO_CALL): Swap argument order.
2029         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2030         arguments.
2031         (DO_CALL): Swap argument order.
2032         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2033         arguments.
2034         (DO_CALL): Swap argument order.
2035         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2036         arguments.
2037         (DO_CALL): Swap argument order.
2038         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2039         arguments.
2040         (DO_CALL): Swap argument order.
2042         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2043         (L): Define right for ELF.
2044         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2045         Now defined in sysdeps/i386/sysdep.h.
2047         * sysdeps/posix/readv.c: Ansify function definition.
2048         * sysdeps/posix/writev.c: Likewise.
2050         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2051         have the same size. Avoid direct cast from size_t to off_t.
2053         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2054         nul byte in entry[n].ut_user.
2055         (simulate_logout): Likewise.
2057         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2058         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2059         existence of corresponding members of 'struct utmp'.
2060         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2061         !_HAVE_UT_TYPE.
2063         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2064         allocate a buffer of at least BUFSIZ bytes, not just of
2065         sizeof (struct dirent).
2067         * sysdeps/generic/glob.c: Include <limits.h>.
2068         (NAME_MAX): Define a fallback.
2069         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2070         stack.
2071         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2072         (main): Allocate enough room for a 'struct dirent64' on the stack.
2073         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2074         'struct dirent'.
2076         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2077         kernel-features.h.
2079         * inet/htontest.c: Include <sys/types.h>.
2081         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2083         * include/sys/sysctl.h: Comment fix.
2085         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2086         _dl_load_lock.
2087         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2089         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2091         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2092         (__getpeername): New alias.
2093         (__getsockname): New alias.
2094         (__socket): New alias.
2096         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2098         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2099         (__fcntl_internal): New alias.
2100         (__profil): New alias.
2102 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2104         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2105         entry was for getaddr* lookup or not.  Add only matching cache
2106         entry.  Change all callers [PR libc/4317].
2108         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2109         finding the read position [PR libc/4265].
2110         * libio/Makefile (tests): Add bug-rewind2.
2111         * libio/bug-rewind2.c: New file.
2113         * libio/bug-rewind.c: Fix creation of temp file.
2115 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2117         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2118         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2119         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2120         to ENOENT if no entry is found.
2121         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2122         failure.
2123         * nis/nss_compat/compat-initgroups.c: Likewise.
2124         * nis/nss_compat/compat-pwd.c: Likewise.
2125         * nis/nss_compat/compat-spwd.c: Likewise.
2126         * nis/nss_nis/nis-alias.c: Likewise.
2127         * nis/nss_nis/nis-ethers.c: Likewise.
2128         * nis/nss_nis/nis-grp.c: Likewise.
2129         * nis/nss_nis/nis-hosts.c: Likewise.
2130         * nis/nss_nis/nis-initgroups.c: Likewise.
2131         * nis/nss_nis/nis-netgrp.c: Likewise.
2132         * nis/nss_nis/nis-network.c: Likewise.
2133         * nis/nss_nis/nis-proto.c: Likewise.
2134         * nis/nss_nis/nis-publickey.c: Likewise.
2135         * nis/nss_nis/nis-pwd.c: Likewise.
2136         * nis/nss_nis/nis-rpc.c: Likewise.
2137         * nis/nss_nis/nis-service.c: Likewise.
2138         * nis/nss_nis/nis-spwd.c: Likewise.
2139         * resolv/nss_dns/dns-host.c: Likewise.
2140         * resolv/nss_dns/dns-network.c: Likewise.
2141         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2142         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2143         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2144         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2145         * nis/nss_nisplus/nisplus-network.c: Likewise.
2146         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2147         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2148         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2149         * nis/nss_nisplus/nisplus-service.c: Likewise.
2150         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2151         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2152         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2153         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2154         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2156         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2157         declaring __restore and __restore_rt as hidden (if possible).
2159 2002-08-25  Roland McGrath  <roland@redhat.com>
2161         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2163         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2164         (getutent_r_file, internal_getut_r): Updated all callers.
2165         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2167 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2169         * locale/programs/locale.c: Don't print aliases for non-existing
2170         locales for 'locale -a'.
2171         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2173 2002-07-19  H.J. Lu  <hjl@gnu.org>
2175         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2177 2002-07-16  H.J. Lu  <hjl@gnu.org>
2179         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2180         sys/personality.h.
2181         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2183 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2185         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2186         not moved ahead of the fputs call.
2187         * elf/tst-tlsmod2.c (in_dso): Likewise.
2188         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2189         * elf/tst-tlsmod4.c (in_dso): Likewise.
2191 2002-08-25  Andreas Schwab  <schwab@suse.de>
2193         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2195 2002-08-25  Roland McGrath  <roland@redhat.com>
2197         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2198         resetting handler, to avoid the possibility of a spurious SIGALRM
2199         delivered to the user's handler.
2200         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2202         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2203         set -fkeep-inline-functions, which is not needed for the current file.
2205         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2206         (_dl_setup_hash): Add attribute_hidden.
2207         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2208         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2209         (_dl_new_object, _dl_map_object_deps): Likewise.
2210         (_dl_map_object_deps_internal): Remove decl.
2211         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2213         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2214         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2215         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2216         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2217         instead relying on the compiler to produce only GOTOFF variable refs.
2219 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2221         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2223         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2224         inline to avoid defining it in every file which includes this header.
2226         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2227         defining DONT_USE_BOOTSTRAP_MAP.
2229         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2230         * libio/tst-mmap-setvbuf.c (main): Likewise.
2231         * libio/tst-widetext.c (main): Likewise.
2233         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2234         message.
2235         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2236         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2238         * sysdeps/i386/elf/configure.in: Unconditionally define
2239         PI_STATIC_AND_HIDDEN.
2240         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2241         PI_STATIC_AND_HIDDEN is defined as well.
2242         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2244 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2246         * sysdeps/ia64/bzero.S: Define __bzero as well.
2248         * locale/programs/charmap.c (charmap_new_char): Don't use
2249         ULONG_MAX as maximum UCS4 value.
2251         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2253         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2255         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2256         * malloc/malloc.c (mALLINFo): Likewise.
2258         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2260         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2261         examining result of _IO_do_flush call.
2263         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2264         Use prec not spec when sizing buffers.
2266         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2267         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2268         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2269         * stdio-common/vfscanf.c (inchar): Likewise.
2270         * misc/efgcvt_r.c (fcvt_r): Likewise.
2271         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2272         * elf/readlib.c (process_file): Likewise.
2273         * elf/sprof.c (load_profdata): Likewise.
2274         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2275         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2276         * locale/programs/charmap.c (charmap_read): Likewise.
2277         * libio/fileops.c: Likewise.
2278         * libio/fmemopen.c: Likewise.
2279         * stdlib/strtod.c: Likewise.
2280         * elf/dl-load.c: Likewise.
2281         * iconv/iconvconfig.c: Likewise.
2282         * iconv/iconv_prog.c (process_block): Likewise.
2283         * elf/rtld.c (dl_main): Likewise.
2285         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2286         macro to calm down the compiler.
2288         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2290         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2292         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2293         placement of errno definition.
2294         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2295         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2296         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2298         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2300         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2301         from 1024 to 65536, to avoid buffer overrun.
2303 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2305         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2306         from 1024 to 65536, to avoid buffer overrun.
2307         * resolv/res_query.c (MAXPACKET): Likewise.
2309 2002-08-24  Andreas Jaeger  <aj@suse.de>
2311         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2313 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2315         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2316         two52 locally.
2317         (log2): Likewise.
2318         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2319         Patch by Simon Gee <simong@agile.tv>.
2321         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2322         Prefer reading /proc/stat since it is more uniform across
2323         architectures.
2325         * manual/texinfo.tex: Update to latest official version.
2327         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2328         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2329         * sysdeps/gnu/bits/shm.h: Likewise.
2330         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2331         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2332         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2333         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2334         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2335         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2336         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2337         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2338         since this is what the kernel says.
2340         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2341         since ssize_t is needed as well.  Replace const with __const.
2343 2002-08-23  Roland McGrath  <roland@redhat.com>
2345         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2346         __malloc_hook, __realloc_hook, __memalign_hook,
2347         __after_morecore_hook): Variable definitions moved to ...
2348         * malloc/malloc.c: ... here, so as to be before all references.
2350         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2351         global variable reference in an unused asm parameter, to ensure the
2352         compiler has set up the GOT register before we use it.
2354         * malloc/hooks.c: Move variable definitions ahead of uses.
2355         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2356         initializers that make reference to variables they define.
2358 2002-08-23  Andreas Jaeger  <aj@suse.de>
2360         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2361         alloca, free, qsort.
2363         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2365         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2366         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2368         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2369         <hch@lst.de>.
2370         * sysdeps/generic/fgetxattr.c: New file.
2371         * sysdeps/generic/flistxattr.c: New file.
2372         * sysdeps/generic/fremovexattr.c: New file.
2373         * sysdeps/generic/fsetxattr.c: New file.
2374         * sysdeps/generic/getxattr.c: New file.
2375         * sysdeps/generic/listxattr.c: New file.
2376         * sysdeps/generic/lgetxattr.c: New file.
2377         * sysdeps/generic/llistxattr.c: New file.
2378         * sysdeps/generic/lremovexattr.c: New file.
2379         * sysdeps/generic/lsetxattr.c: New file.
2380         * sysdeps/generic/removexattr.c: New file.
2381         * sysdeps/generic/setxattr.c: New file.
2382         * misc/Makefile (headers): Add sys/xattr.h.
2383         (routines): Add *xattr calls.
2384         * misc/Versions: Add *xattr calls with version 2.3.
2385         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2386         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2387         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2388         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2389         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2390         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2391         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2392         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2394 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2396         * sysdeps/powerpc/elf/libc-start.c
2397         (__cache_line_size): Declare.
2398         (__aux_init_cache): New function.
2399         (__libc_start_main): Change type of `auxvec' parameter to
2400         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2401         __aux_init_cache.
2402         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2403         (__cache_line_size): Declare.
2404         (__aux_init_cache): New function.
2405         (DL_PLATFORM_INIT): Define.
2406         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2407         value to select the correct stride for dcbz.
2409 2002-08-22  Andreas Jaeger  <aj@suse.de>
2411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2412         shmat.
2414 2002-08-22  Roland McGrath  <roland@redhat.com>
2416         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2417         position indicated by locrectab against file bounds before rounding to
2418         page size.  In mapping loop, always set TO before breaking out of
2419         contiguous range coalescing loop.
2421         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2422         (or MAP_COPY if available) instead of MAP_SHARED.
2424         * scripts/firstversions.awk: When encountering a version newer than
2425         the specified earliest version, be sure to emit the specified earliest
2426         version first if any renaming of an older version to that has been.
2428 2002-08-21  Roland McGrath  <roland@redhat.com>
2430         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2431         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2432         (Configuring and compiling): Don't mention older GCC versions any more.
2433         * INSTALL: Regenerated.
2435         * manual/install.texi (Configuring and compiling, Installation,
2436         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2438         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2439         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2440         and with noinline otherwise.  Remove hack alloca use to prevent
2441         inlining, we can ask for it explicitly nowadays.
2443         * dlfcn/bug-dlsym1.c: New file.
2444         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2445         * dlfcn/Makefile (distribute): Add them.
2446         (tests): Add bug-dlsym1 here.
2447         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2448         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2449         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2451 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2453         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2454         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2455         before relocation.
2456         (_dl_start): Don't use local bootstrap_map variable if
2457         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2458         pass bootstrap_map to _dl_start_final in this case either.  Don't
2459         pass start_time to _dl_start_final ever.
2460         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2462         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2463         This cripples the scope lists necessary to search for symbols in
2464         dependencies which are not in the global scope.
2466         * include/setjmp.h (__libc_longjmp): Add declaration.
2468 2002-08-21  Andreas Jaeger  <aj@suse.de>
2470         * sysdeps/x86_64/_mcount.S: Fix assembler.
2472         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2473         with biarch support.
2475 2002-08-21  Andreas Jaeger  <aj@suse.de>
2477         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2479         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2481         * sysdeps/x86_64/machine-gmon.h: New file.
2482         * sysdeps/x86_64/_mcount.S: New file.
2484 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2486         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2487         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2488         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2489         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2490         to TL_INIT_TP.  Otherwise pass 1.
2491         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2492         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2494 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2496         * locale/programs/localedef.c (add_to_readlist): Error about
2497         circular dependencies only if the locale in question hasn't
2498         been finished.
2499         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2500         CTYPE_LOCALE to load_locale.
2501         * locale/programs/locfile.c (locfile_read): Don't include
2502         unneeded but available locales in locale_mask.
2504         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2505         print any messages about enlarging archive.
2507 2002-08-20  Brian Youmans  <3diff@gnu.org>
2509         * manual/contrib.texi: Removed licenses, added acknowledgements
2510         for contributions by Intel, IBM, Craig Metz.
2511         * LICENSES: New file, contains the text of all non-FSF licenses in the
2512         distribution that require putting the notice in the accompanying
2513         documentation.
2514         * README.template, README: Mention LICENSES.
2516         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2517         new one modelled on the modern BSD license, per recent letter
2518         of permission from CMU.
2519         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2521         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2522         from IBM to FSF, per the recent Software Letter.  Changed the
2523         distribution terms from GPL to LGPL.
2525         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2526         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2527         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2528         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2529         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2530         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2531         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2532         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2533         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2534         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2536         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2537         from IBM to FSF, per the recent Software Letter.  Corrected the
2538         text of the copying permission notice to say Lesser GPL instead
2539         of GPL in warranty disclaimer paragraph.
2540         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2541         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2542         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2543         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2544         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2545         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2546         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2547         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2548         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2549         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2550         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2551         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2552         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2553         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2554         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2555         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2556         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2557         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2558         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2559         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2560         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2562         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2563         permission notice to say Lesser GPL instead of GPL in warranty
2564         disclaimer paragraph.
2565         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2566         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2567         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2568         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2569         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2570         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2571         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2572         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2573         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2574         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2575         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2576         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2577         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2578         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2579         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2580         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2581         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2582         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2583         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2584         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2585         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2586         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2587         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
2589 2002-08-20  Roland McGrath  <roland@redhat.com>
2591         Fix ABI compatibility with libc compiled with old tools on powerpc.
2592         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2593         and Jack Howarth <howarth@bromo.med.uc.edu>.
2594         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2595         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2596         pass -DHAVE_DOT_HIDDEN for these files.
2597         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2598         __floatdisf.
2599         * sysdeps/powerpc/divdi3.c: New file.
2600         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2601         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2603 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
2605         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2606         partially overlapping mappings.  Remove unneeded (char *) casts.
2607         Never allow duplication of ranges in mapped areas.
2609 2002-08-20  Roland McGrath  <roland@redhat.com>
2611         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2612         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
2614 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2616         * include/unistd.h: Don't hide _exit.
2618         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2619         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2620         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2621         argument 1 to TLS_INIT_TP.
2622         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2624         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2626         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2627         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2628         memory allocation to...
2629         (allocate_dtv): ...here.  New function.
2630         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
2631         call allocate_dtv instead of _dl_allocate_tls_storage.
2632         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
2633         (_dl_get_tls_static_info): New function.
2634         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2635         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
2637 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
2639         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2640         immediately if result == NULL.
2642 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2644         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2646 2002-08-18  Roland McGrath  <roland@frob.com>
2648         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2649         instead of __file_name_split.
2650         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2652         * sysdeps/mach/hurd/dl-sysdep.c
2653         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2654         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2656 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
2658         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2659         in change before last: MAX -> MIN.
2661 2002-08-15  Roland McGrath  <roland@redhat.com>
2663         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2664         if seek would go past it.
2665         (mmap_remap_check): If file position is at or past EOF after check,
2666         leave read pointers at EOF and don't seek.
2668         * libio/tst-mmap-offend.c: New file.
2669         * libio/Makefile (tests): Add it.
2671         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2672         the name as passed, rather than the name in the archive dictionary.
2674 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
2676         * csu/Makefile: Define elide-routines.os not static-only-routines.
2678         * include/sched.h (__clone): Add varargs at the end.
2680         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2681         case.
2682         (TLS_INIT_HELPER): If defined, use it.
2683         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2685 2002-08-15  Roland McGrath  <roland@redhat.com>
2687         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2688         on L->l_prev; it can happen under rtld --verify too.
2690         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2691         header separately, just map an initial window of 2MB from the file
2692         and remap if that is not large enough to cover the whole header.
2694 2002-08-15  Andreas Jaeger  <aj@suse.de>
2696         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2697         version 2.3.
2698         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2699         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2700         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2701         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2702         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2703         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2704         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2705         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2706         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2707         Patch by Andreas Gruenbacher <agruen@suse.de>.
2709         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2711 2002-08-14  Roland McGrath  <roland@redhat.com>
2713         * locale/locarchive.h (struct locale_category_data): Give this name to
2714         the type of locale_data_t's elements.
2715         * locale/programs/locarchive.c (cmpcategorysize): New static function.
2716         (add_locale): Use that to sort the categories by size and put all
2717         those that fit into two pages into the LC_ALL block, instead of
2718         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2719         (show_archive_content): Detect categories inside LC_ALL block
2720         directly, instead of hard-coding.
2721         (oldlocrecentcmp): Compare just on file locations used.
2723 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
2725         * locale/programs/locarchive.c (struct oldlocrecent): New type.
2726         (oldlocrecentcmp): New function.
2727         (enlarge_archive): Re-add locales in the order they were added
2728         to the archive.
2729         (add_locale): Put all the small locale files together, if the small
2730         locale file block would occupy less pages if page size aligned, align
2731         it.
2732         (show_archive_content): Adjust for locale archives optimized for speed.
2734 2002-08-14  Roland McGrath  <roland@frob.com>
2736         * configure.in: Use "MISSING" as not-found value for MIG.
2737         * sysdeps/mach/configure.in: Fatal if mig not found.
2738         * configure, sysdeps/mach/configure: Regenerated.
2740 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2742         * locale/loadarchive.c (archfname): Add missing slash.
2744         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2745         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2747 2002-08-12  Roland McGrath  <roland@redhat.com>
2749         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2750         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2751         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2752         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2753         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2754         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2755         * sysdeps/generic/waitpid.c: Likewise.
2757         * include/net/if.h: New file.  Use libc_hidden_proto
2758         for if_nametoindex and if_indextoname.
2759         * sysdeps/generic/if_index.c: Add libc_hidden_def.
2760         * sysdeps/mach/hurd/if_index.c: Likewise.
2761         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2763         * include/grp.h (setgroups): Add libc_hidden_proto.
2764         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2765         * sysdeps/mach/hurd/setgroups.c: Likewise.
2766         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2767         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2769 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
2771         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2772         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2773         * sysdeps/generic/setegid.c (setegid): Likewise.
2774         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2775         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2776         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2777         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2778         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2779         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2780         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2781         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2782         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2783         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2784         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2785         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2786         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2788         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2789         __lxstat_internal, __lxstat64_internal): Remove.
2790         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2791         Add hidden_proto.
2792         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2793         Remove INTDEF where present, remove #undef at the beginning.
2794         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2795         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2796         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2797         * sysdeps/generic/xstat.c (__xstat): Likewise.
2798         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2799         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2800         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2801         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2802         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2803         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2804         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2805         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2806         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2807         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2808         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2809         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2810         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2811         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2812         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2813         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2814         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2815         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2816         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2817         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2818         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2819         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2820         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2821         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2822         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2823         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2824         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2825         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2826         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2827         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2828         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2829         * sysdeps/unix/xstat.c (__xstat): Likewise.
2831         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2832         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2833         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2834         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2835         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2836         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2837         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2839         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2840         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2841         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2842         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2843         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2844         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2845         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2846         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2847         Likewise.
2848         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2849         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2850         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2851         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2852         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2853         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2854         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2855         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2857         * include/string.h (strcoll): Add libc_hidden_proto.
2858         * string/strcoll.c (strcoll): Add libc_hidden_def.
2860         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2862 2002-08-11  Philip Blundell  <philb@gnu.org>
2864         * sysdeps/arm/Makefile: New file.
2866 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2868         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2869         by another '|', end of regex or enclosing ')', clear branch.
2870         * posix/bug-regex9.c: New test.
2871         * posix/Makefile (tests): Add bug-regex9.
2873 2002-08-12  Roland McGrath  <roland@redhat.com>
2875         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2876         start count condition, use TOTAL instead of variable that was never
2877         set.  Fix outer loop termination condition to TOTAL >= after update.
2879         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2880         dl_tls_static_align and dl_tls_static_nelem.
2882 2002-08-11  Roland McGrath  <roland@redhat.com>
2884         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2885         of the TLS macros, otherwise the compiler might not have initialized
2886         the PIC register yet when we use the PLT via asm.
2887         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2888         * elf/tst-tlsmod2.c (in_dso): Likewise.
2890         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2892         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2893         Evaluate argument exactly once.  Remove __volatile__ from asm's.
2895         * include/unistd.h: Use libc_hidden_proto for getdomainname
2896         and getlogin_r.
2897         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2898         * sysdeps/mach/hurd/getdomain.c: Likewise.
2899         * sysdeps/unix/getlogin_r.c: Likewise.
2900         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2901         * sysdeps/generic/getlogin_r.c: Likewise.
2903         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2904         * sunrpc/rtime.c: Add libc_hidden_def.
2906         * include/string.h: Use libc_hidden_proto for basename.
2907         * string/basename.c [_LIBC]: Add libc_hidden_def.
2909         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2911         * locale/loadarchive.c: munmap -> __munmap throughout.
2913         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2914         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2915         * sysdeps/generic/gai_strerror.c: Likewise.
2917         * include/sys/errno.h: New file.
2919         * include/signal.h: No libc_hidden_proto for raise,
2920         __libc_current_sigrtmin, __libc_current_sigrtmax.
2921         These need to be overridden by linuxthreads.
2922         * sysdeps/posix/raise.c: Reverted.
2923         * sysdeps/generic/raise.c: Reverted.
2924         * signal/allocrtsig.c: Reverted.
2926         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
2928 2002-08-10  Roland McGrath  <roland@redhat.com>
2930         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2931         * locale/localeinfo.h: Declare it.
2932         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2933         current locale if it's not in the file list.
2934         Call _nl_archive_subfreeres.
2936 2002-08-10  Andreas Jaeger  <aj@suse.de>
2938         * sysdeps/i386/strchr.S: Add comment.
2940 2002-08-10  Roland McGrath  <roland@redhat.com>
2942         * include/wchar.h (putwc): Use libc_hidden_proto.
2943         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2944         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2945         * stdio-common/dprintf.c: Add libc_hidden_def.
2946         * stdio-common/fprintf.c: Likewise.
2947         * stdio-common/sprintf.c: Likewise.
2948         * stdio-common/sscanf.c: Likewise.
2949         * libio/iofwrite.c: Likewise.
2950         * libio/memstream.c: Likewise.
2951         * libio/putwc.c: Likewise.
2952         * stdio-common/perror.c: Likewise.
2953         * sysdeps/posix/remove.c: Likewise.
2954         * sysdeps/generic/remove.c: Likewise.
2955         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
2956         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
2958 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2960         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2961         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
2962         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
2963         towlower, towupper): Add libc_hidden_weak.
2965         * include/bits/dlfcn.h: New file.
2966         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
2968         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
2969         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
2970         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
2971         * include/pwd.h (_nss_files_parse_pwent): Likewise.
2972         * include/shadow.h (_nss_files_parse_spent): Likewise.
2973         * include/netdb.h (_nss_files_parse_protoent,
2974         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
2975         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
2976         (LINE_PARSER): Use it.
2977         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
2978         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
2980         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
2981         #endif.
2983         * manual/debug.texi (%MENU%): Remove trailing dot.
2984         Reported by <hayastan132@hotmail.com>.
2986         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
2987         aliases.
2988         (lseek): Dummy.
2989         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
2990         Likewise.
2992 2002-08-09  Roland McGrath  <roland@redhat.com>
2994         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
2995         name to find codeset name (if any) and normalize it.  If the
2996         normalized name differs, look up only that in the archive.
2997         * locale/programs/locarchive.c (add_locale_to_archive): If the name
2998         contains a codeset, normalize the codeset store only the normalized
2999         name in the archive.  If not, add an alias containing the locale's
3000         normalized codeset name.  Apply codeset name normalization when
3001         matching entries in the alias file.
3003         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3004         decrement HEAD->namehash_used here.
3005         (add_locale): Only need to insert name string when name_offset != 0.
3007         * locale/programs/localedef.c (options): Add -A/--alias-file.
3008         (alias_file): New variable.
3009         (parse_opt): Grok -A, set that.
3010         * locale/programs/localedef.h: Declare it.
3012         * locale/locarchive.h (struct locrecent): Add `refs' member.
3013         * locale/programs/locarchive.c (insert_name): New function, broken out
3014         of ...
3015         (add_locale_to_archive): ... here.  Call that.
3016         (add_alias): New function.
3017         (add_locale): New static function, add_locale_to_archive renamed.
3018         (add_locale_to_archive): Call that and use add_alias to add an alias
3019         for the name with codeset if the given name lacks it.
3020         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3022         * locale/Makefile (routines): Add loadarchive.
3023         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3024         (_nl_load_locale_from_archive): New function.
3025         * locale/localeinfo.h: Declare it.
3026         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3027         try _nl_load_locale_from_archive first.
3029         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3030         broken out of _nl_load_locale.
3031         (_nl_load_locale): Call that.
3032         * locale/localeinfo.h: Declare it.
3033         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3034         (struct locale_data): Remove unused member `options'.
3035         * locale/findlocale.c (_nl_remove_locale): Update uses.
3036         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3037         * locale/C-collate.c: Update initializer.
3038         * locale/C-identification.c: Likewise.
3039         * locale/C-measurement.c: Likewise.
3040         * locale/C-telephone.c: Likewise.
3041         * locale/C-address.c: Likewise.
3042         * locale/C-name.c: Likewise.
3043         * locale/C-paper.c: Likewise.
3044         * locale/C-time.c: Likewise.
3045         * locale/C-numeric.c: Likewise.
3046         * locale/C-monetary.c: Likewise.
3047         * locale/C-messages.c : Likewise.
3048         * locale/C-ctype.c: Likewise.
3050         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3051         use CHAR_BIT instead of BITSPERBYTE.
3053         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3054         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3055         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3056         (_nl_remove_locale): Likewise.
3057         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3059         * locale/findlocale.c (_nl_default_locale_path): New variable.
3060         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3061         * locale/localeinfo.h: Declare it.
3062         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3063         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3064         * locale/newlocale.c (__newlocale): Likewise.
3066         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3067         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3068         * sysdeps/generic/morecore.c: Likewise.
3069         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3070         (__libc_current_sigrtmax): Likewise.
3072 2002-08-08  Roland McGrath  <roland@redhat.com>
3074         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3075         * catgets/open_catalog.c (__open_catalog): Likewise.
3077         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3078         from typo INITIAL_NUM_NANES.
3079         (create_archive): Update use.
3081 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3083         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3085 2002-08-08  Roland McGrath  <roland@frob.com>
3087         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3089 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3091         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3092         else and undefine after including wcstol_l.c.
3093         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3095 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3097         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3099 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3101         * configure.in: Make the test for broken_alias_attribute stricter.
3103 2002-05-24  Robert Love  <rml@tech9.net>
3105         * posix/Makefile (routines): Add sched_getaffinity and
3106         sched_setaffinity.
3107         * posix/sched.h: Add declarations for sched_getaffinity and
3108         sched_setaffinity.
3109         * sysdeps/generic/sched_getaffinity.c: New file.
3110         * sysdeps/generic/sched_setaffinity.c: New file.
3111         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3112         sched_setaffinity.
3114 2002-08-06  Andreas Schwab  <schwab@suse.de>
3116         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3118 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3120         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3121         message.
3123         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3124         It is known to be defined.
3126         * include/string.h: Define index and rindex only if _ISOMAC is not
3127         defined.
3129         * elf/rtld.c: Include <errno.h>.
3130         * sysdeps/generic/libc-tls.c: Likewise.
3132 2002-08-07  Roland McGrath  <roland@redhat.com>
3134         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3135         it internally.
3136         (precsize_aton): Likewise.
3138         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3139         the static symbols added in the last change (doofus is me).
3141         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3142         loop to notice missing categories in a composite name.
3144         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3145         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3146         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3147         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3149 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3151         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3153 2002-08-07  Roland McGrath  <roland@redhat.com>
3155         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3156         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3157         Reported by Jakub Jelinek  <jakub@redhat.com>.
3159 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3161         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3162         division.
3164 2002-08-06  Roland McGrath  <roland@redhat.com>
3166         * include/getopt.h: Put private decls inside [_GETOPT_H].
3167         Use libc_hidden_proto for getopt_long, getopt_long_only.
3168         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3169         Add libc_hidden_def.
3171         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3172         Define as a macro for __dl_iterate_phdr.
3174         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3175         made static.  Add __ name as a strong alias.
3176         (internal_endnetgrent): Likewise.
3177         (internal_getnetgrent_r): Likewise.
3179         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3180         with no __ prefix.
3181         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3182         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3183         all *_l functions with no __ prefix.
3184         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3185         * ctype/ctype_l.c: Likewise.
3186         * locale/nl_langinfo.c: Likewise.
3187         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3188         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3189         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3190         * wctype/wctype.h [__USE_GNU]: Likewise.
3191         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3192         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3193         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3194         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3195         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3196         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3197         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3198         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3199         (__wcscasecmp_l): Add libc_hidden_def.
3200         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3201         (__wcsncasecmp_l): Add libc_hidden_def.
3202         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3203         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3204         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3205         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3206         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3207         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3208         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3209         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3210         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3211         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3212         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3213         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3214         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3215         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3217 2002-08-05  Roland McGrath  <roland@redhat.com>
3219         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3220         netname2user, host2netname, user2netname, key_gendes.
3221         * sunrpc/netname.c: Add libc_hidden_def.
3222         * sunrpc/key_call.c: Likewise.
3224         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3225         freeaddrinfo.
3226         * inet/getnameinfo.c: Add libc_hidden_def.
3227         * sysdeps/generic/getaddrinfo.c: Likewise.
3228         * sysdeps/posix/getaddrinfo.c: Likewise.
3230         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3231         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3232         * wcsmbs/wmemset.c: Add libc_hidden_def.
3234         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3235         (index, rindex): Define as macros for strchr, strrchr.
3237         * string/envz.c (envz_strip): index -> strchr
3239         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3240         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3242         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3243         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3245         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3246         * stdlib/wctomb.c: Add libc_hidden_def.
3248         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3249         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3250         * resolv/herror.c: Likewise.
3251         * inet/rcmd.c: Add libc_hidden_def.
3252         * inet/ruserpass.c: Likewise.
3253         * inet/getnetgrent_r.c: Likewise.
3255         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3256         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3257         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3258         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3259         libc_hidden_def.
3260         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3261         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3263         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3264         __libc_system.
3265         (__libc_system): Call it, putting just the line == NULL test here.
3267         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3268         variables work right.
3270         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3271         * elf/dl-close.c (_dl_close): Likewise.
3273         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3274         in6addr_any, in6addr_loopback.  Remove decls for
3275         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3276         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3277         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3278         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3279         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3280         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3281         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3282         in6addr_loopback.
3283         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3285         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3286         ether_aton_r.
3287         * inet/ether_aton_r.c: Add libc_hidden_def.
3288         * inet/ether_ntoa_r.c: Likewise.
3290         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3291         xprt_unregister.
3292         * sunrpc/svc.c: Add libc_hidden_def.
3293         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3294         pmap_set, pmap_unset.
3295         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3296         * sunrpc/pm_getport.c: Likewise.
3297         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3298         * sunrpc/publickey.c: Add libc_hidden_def.
3300 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3302         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3303         the other memset call in this function.
3305         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3306         at correct index.  Clear BSS region now that memalign is used.
3308 2002-08-05  Roland McGrath  <roland@redhat.com>
3310         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3311         * sysdeps/generic/uname.c: Add libc_hidden_def.
3312         * sysdeps/mach/hurd/uname.c: Likewise.
3314 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3316         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3317         wcspbrk): Add libc_hidden_proto.
3318         * time/strftime.c (my_strftime): Add libc_hidden_def.
3319         (strftime): Remove libc_hidden_def.
3320         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3321         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3322         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3323         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3324         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3325         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3327         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3328         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3329         __rpc_thread_createerr): Add libc_hidden_proto.
3330         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3331         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3332         __rpc_thread_createerr): Add libc_hidden_def.
3334         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3335         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3336         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3337         clnt_perror, clnt_sperror): Add libc_hidden_def.
3338         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3340         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3341         libc_hidden_proto.
3342         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3343         * sunrpc/des_soft.c (des_setparity): Likewise.
3345         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3346         Add libc_hidden_proto.
3347         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3348         Add libc_hidden_def.
3350 2002-08-05  Roland McGrath  <roland@redhat.com>
3352         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3353         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3354         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3355         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3356         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3357         old data, abandoning the original memory allocated by rtld at startup,
3358         instead of calling realloc normally.
3360 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3362         * po/fr.po: Update from translation team.
3364 2002-08-04  Roland McGrath  <roland@redhat.com>
3366         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3367         then generate a dummy module under the given name, obeying the
3368         normal rules for the "caller" field.
3370         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3371         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3373         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3374         weak here; we declare it weak or strong in the one place we use it.
3375         * sysdeps/generic/libc-start.c: ... which is here.
3376         Don't make the decl weak if [USE_TLS], since static programs need TLS
3377         setup even when single-threaded.
3379         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3381         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3382         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3383         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3384         all these variables.
3386 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3388         * include/stdio.h: Don't define macro magic to redirect function
3389         calls if _ISOMAC is defined.
3391         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3392         ldouble asin tests.
3394 2002-08-04  Roland McGrath  <roland@redhat.com>
3396         * stdlib/lrand48_r.c: Add libc_hidden_def.
3398         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3399         TCB with __libc_memalign instead of mmap.
3400         (_dl_deallocate_tls): Free it with free instead of munmap.
3402         * Makerules (cpp-srcs-left): When setting this to run
3403         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3404         words.  Combine the two loops into one on the concatenated list,
3405         including those as well as $(test-srcs).
3407         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3408         since we align here with optimally minimal waste anyway.
3409         (malloc): Just call that.
3411         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3412         the right variable.
3414         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3415         to compute memory location for l_tls_initimage.
3416         * elf/rtld.c (_dl_start): Likewise.
3417         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3419         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3420         because the .d file is generated in the non-shared case and
3421         so fails to catch them otherwise.
3423         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3424         split out of _dl_allocate_tls.
3425         (_dl_allocate_tls_init): Likewise.
3426         (_dl_allocate_tls): Call those.
3427         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3428         * elf/rtld.c (dl_main): Call them separately instead of calling
3429         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3430         is finished, so that the initializer data has been relocated before we
3431         copy it into the main thread's TLS block.
3433         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3434         loop conditions, prevented the last used module from being initialized.
3436 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3438         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3439         if glob resp. globfree are not macros.
3440         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3441         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3442         Add libc_hidden_ver.
3443         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3444         libc_hidden_def.
3445         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3446         instead of libc_hidden_weak.
3447         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3448         libc_hidden_ver instead of libc_hidden_def.
3449         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3450         libc_hidden_ver instead of libc_hidden_def.
3451         (wcstoll, wcstoq): Remove libc_hidden_weak.
3452         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3453         libc_hidden_ver.
3454         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3455         libc_hidden_ver.
3456         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3457         libc_hidden_ver.
3458         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3459         libc_hidden_ver.
3461 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3463         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3464         to access _sys_siglist.
3465         * string/strsignal.c: Likewise.
3466         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3467         * sysdeps/gnu/siglist.c: Likewise.
3468         * sysdeps/unix/siglist.c: Likewise.
3469         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3471         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3473         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3475         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3476         alias and use it.
3477         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3479         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3480         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3481         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3483         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3484         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3486         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3487         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3488         and __gconv_get_cache respectively.
3489         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3490         defined static.  Change all users.
3491         (__gconv_get_cache): New function.
3492         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3493         (__gconv_get_alias_db): New function.
3494         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3495         (__conv_modules_db): Likewise.
3496         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3497         and __gconv_get_alias_db.
3498         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3499         variables.
3501         * include/stdlib.h: Add prototype and libc_hidden_proto for
3502         __default_morecore.
3503         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3505         * malloc/obstack.c: Remove fputs macro.
3507         * malloc/mtrace.c: Remove fopen macro.
3509 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3511         * manual/debug.texi: Fix spelling to programmatically.
3512         Reported by <hayastan132@hotmail.com>.
3514 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3516         * include/libio.h: Add libc_hidden_proto for __uflow.
3517         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3518         fgetpos to _IO_* names.
3519         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3520         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3521         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3522         putwc_unlocked, vswscanf.
3523         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3524         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3525         * libio/fseek.c: Likewise.
3526         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3527         not fopencookie.
3528         * libio/genops.c (__uflow): Add libc_hidden_def.
3529         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3530         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3531         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3532         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3533         * libio/iofread_u.c (fread_unlocked): Likewise.
3534         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3535         * libio/iovswscanf.c (vswscanf): Likewise.
3536         * libio/putwc_u.c (putwc_unlocked): Likewise.
3537         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3538         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3539         * malloc/mtrace.c: Likewise.
3541         * sunrpc/clnt_perr.c: Remove fputs macro.
3542         * sunrpc/svc_simple.c: Likewise.
3543         * sunrpc/svc_tcp.c: Likewise.
3544         * sunrpc/svc_udp.c: Likewise.
3545         * sunrpc/xdr_rec.c: Likewise.
3546         * sunrpc/xdr_ref.c: Likewise.
3548         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3549         iconv_prog, linereader, and charmap-dir.
3550         * locale/Makefile: Likewise for locale and charmap-dir.
3551         * malloc/Makefile: Likewise for memusagestat.
3552         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3553         * sunrpc/Makefile: Likewise for rpc_main.
3554         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3555         * timezone/Makefile: Likewise for zic.
3557         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3559         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3560         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3561         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3562         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3563         _dl_close.
3565         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3566         __wunderflow.
3567         * libio/genops.c (__underflow): Add libc_hidden_def.
3568         * libio/wgenops.c (__wuflow): Likewise.
3569         (__wunderflow): Likewise.
3571         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3572         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3574         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3575         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3577         * include/string.h: Add libc_hidden_proto for __strverscmp.
3578         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3580         * include/unistd.h: Add libc_hidden_proto for __sysconf.
3581         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3582         * sysdeps/posix/sysconf.c: Likewise.
3583         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3584         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3586         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3587         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3588         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3589         __iswxdigit_l, __towlower_l, __towupper_l.
3590         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3591         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3593         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3594         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3595         * sysdeps/mach/hurd/xmknod.c: Likewise.
3596         * sysdeps/unix/xmknod.c: Likewise.
3597         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3598         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3599         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3601         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3603 2002-08-03  Roland McGrath  <roland@redhat.com>
3605         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3606         setpriority.
3607         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3608         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3609         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3610         * sysdeps/mach/hurd/setpriority.c: Likewise.
3611         * sysdeps/mach/hurd/getpriority.c: Likewise.
3612         * sysdeps/generic/setpriority.c: Likewise.
3613         * sysdeps/generic/getpriority.c: Likewise.
3615         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3616         * malloc/mcheck.c: Add libc_hidden_def.
3618         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3619         * misc/hsearch_r.c: Add libc_hidden_def.
3621         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3622         * posix/fnmatch.c: Add libc_hidden_weak.
3624         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3625         execl, execle, execlp, execvp, getpid, getsid.
3626         * sysdeps/generic/alarm.c: Add libc_hidden_def.
3627         * sysdeps/unix/alarm.c: Likewise.
3628         * posix/confstr.c: Likewise.
3629         * posix/execvp.c: Likewise.
3630         * posix/execlp.c: Likewise.
3631         * posix/execle.c: Likewise.
3632         * posix/execl.c: Likewise.
3633         * sysdeps/generic/getsid.c: Likewise.
3634         * sysdeps/mach/hurd/getsid.c: Likewise.
3635         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3636         * sysdeps/mach/hurd/getpid.c: Likewise.
3638         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3639         qecvt_r, qfcvt_r, lrand48_r.
3640         * misc/efgcvt_r.c: Add libc_hidden_def.
3642         * include/wordexp.h: Use libc_hidden_proto for wordfree.
3643         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3645         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3646         * locale/nl_langinfo.c: Add libc_hidden_def.
3648         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3649         * sysdeps/generic/glob.c: Add libc_hidden_def.
3650         * sysdeps/generic/glob64.c: Likewise.
3651         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3653         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3655         * elf/Makefile (CFLAGS-vismod2.c): New variable.
3657         * locale/setlocale.c (_nl_current_names): Variable moved ...
3658         * locale/localename.c (_nl_current_names): ... here, new file.
3659         Make it global, with attribute_hidden.
3660         * locale/localeinfo.h: Declare it.
3661         * locale/Makefile (aux): Add localename.
3662         * locale/localename.c (__current_locale_name): New function.
3663         * include/locale.h (__current_locale_name): Declare it.
3664         * intl/dcigettext.c (guess_category_value): Use that instead of
3665         calling setlocale.
3667         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3668         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3669         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3670         * locale/newlocale.c: Add alias to __ name.
3671         * locale/duplocale.c: Likewise.
3672         * locale/freelocale.c: Likewise.
3673         * locale/uselocale.c: New file.
3674         * locale/Makefile (routines): Add it.
3675         * locale/Versions (libc: GLIBC_2.3): New set.
3676         Add newlocale, duplocale, freelocale, uselocale.
3677         (libc: GLIBC_PRIVATE): Add __uselocale.
3679         * locale/localeinfo.h [SHARED]
3680         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3681         (_NL_CURRENT_DATA): Define using that.
3682         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3683         (_NL_CURRENT_DEFINE): Define to empty.
3684         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3685         conditionalized on this.
3686         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3687         taking initializer of _nl_C_locobj.
3688         [SHARED] (_nl_global_locale): New variable, using that initializer.
3689         (_nl_C_locobj): Use new macro for initialzier.
3690         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3691         [! SHARED] (CATEGORY_USED): New macro.
3692         [SHARED] (CATEGORY_USED, _nl_C): New macros.
3693         (setdata, setlocale): Use that macro instead of examining _nl_current.
3694         (setdata): Set the slot in _nl_global_locale.
3695         Conditionalize setting of _nl_current on [! SHARED].
3696         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3697         declaration as an extern.
3698         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3700         * include/locale.h: Use libc_hidden_proto for setlocale.
3701         * locale/setlocale.c: Add libc_hidden_def.
3703         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3705         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3706         * misc/hsearch_r.c: Add libc_hidden_def.
3707         * misc/lsearch.c: Likewise.
3709         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3710         endttyent.
3711         * misc/getttyent.c: Add libc_hidden_def.
3713         * include/mcheck.h: Use libc_hidden_proto for mcheck.
3714         * malloc/mcheck.c: Add libc_hidden_def.
3716         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3717         * include/argz.h: Use libc_hidden_proto for argz_delete.
3718         * string/argz-delete.c: Add libc_hidden_def.
3719         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
3721         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3722         HIDDEN_JUMPTARGET for _exit.
3723         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3724         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3725         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3726         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3728         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3729         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3730         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3731         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3733         * include/stdlib.h: Use libc_hidden_proto for abort,
3734         __strtof_internal, __strtod_internal, __strtold_internal,
3735         __strtol_internal, __strtoll_internal, __strtoul_internal,
3736         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3737         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3738         __strtoul_l_internal, __strtoull_l_internal.
3739         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3740         __wcstod_internal, __wcstold_internal, __wcstol_internal,
3741         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3742         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3743         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3744         __wcsncasecmp_l.
3745         * sysdeps/generic/abort.c: Add libc_hidden_def.
3746         * stdlib/strtod.c: Likewise.
3747         * sysdeps/generic/strtol.c: Likewise.
3748         * sysdeps/wordsize-64/strtol.c: Likewise.
3749         * sysdeps/wordsize-64/wcstol.c: Likewise.
3750         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3752         * include/stdlib.h: Use libc_hidden_proto for qsort.
3753         * stdlib/msort.c: Add libc_hidden_def.
3755         * include/utime.h: Use libc_hidden_proto for utime.
3756         * sysdeps/generic/utime.c: Add libc_hidden_def.
3757         * sysdeps/unix/utime.c: Likewise.
3759         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3760         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3761         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3762         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3763         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3765         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3766         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3767         and __libc_current_sigrtmax.
3768         * signal/sigismem.c: Add libc_hidden_def.
3769         * signal/sigfillset.c: Likewise.
3770         * signal/sigempty.c: Likewise.
3771         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3772         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3773         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3774         * sysdeps/posix/raise.c: Likewise.
3775         * sysdeps/generic/raise.c: Likewise.
3777 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3779         * include/string.h: Use libc_hidden_proto for __stpcpy.
3780         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3781         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3782         * sysdeps/generic/stpcpy.c: Likewise.
3783         * sysdeps/i386/stpcpy.S: Likewise.
3784         * sysdeps/i386/i586/stpcpy.S: Likewise.
3785         * sysdeps/powerpc/stpcpy.S: Likewise.
3786         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3787         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3789         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3790         __strncasecmp_l, __strdup, __strndup, __strerror_r.
3791         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3792         libc_hidden_def.
3793         * string/strdup.c (__strdup): Likewise.
3794         * string/strndup.c (__strndup): Likewise.
3795         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3796         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3798 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3800         * include/libio.h: New file.
3801         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3802         * libio/iolibio.h: #include <libio.h>, not "libio.h".
3803         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3804         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3805         * sysdeps/unix/common/syscalls.list: Likewise.
3806         * sysdeps/unix/inet/syscalls.list: Likewise.
3807         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3808         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3809         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3810         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3811         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3812         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3813         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3814         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3815         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3816         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3817         * sysdeps/unix/syscalls.list: Likewise.
3819 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3820             Ulrich Drepper  <drepper@redhat.com>
3822         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3823         the arguments is big enough to cause an overflow.
3825 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
3827         * assert/assert.c: Use hidden_def not INTDEF.
3829 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
3831         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3832         not defined.
3834 2002-08-03  Roland McGrath  <roland@redhat.com>
3836         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3837         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3838         verr, verrx.
3839         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3840         * misc/syslog.c: Add libc_hidden_def.
3841         * misc/err.c: Likewise.
3842         * stdlib/exit.c: Likewise.
3843         * stdlib/bsearch.c: Likewise.
3844         * sysdeps/generic/getenv.c: Likewise.
3846         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3848         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3849         libc_hidden_weak for every system call symbol defined.
3851         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3852         timelocal, localtime, strftime.
3853         * time/asctime.c: Add libc_hidden_def.
3854         * time/mktime.c: Likewise.
3855         * time/localtime.c: Likewise.
3856         * time/strftime.c: Likewise.
3857         * time/strptime.c: Likewise.
3858         * sysdeps/generic/time.c: Likewise.
3859         * sysdeps/unix/time.c: Likewise.
3860         * sysdeps/unix/sysv/i386/time.S: Likewise.
3861         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3863         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3864         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3865         * resolv/inet_ntop.c: Likewise.
3866         * resolv/inet_pton.c: Likewise.
3867         * inet/inet_mkadr.c: Add libc_hidden_def.
3868         * inet/inet_netof.c: Likewise.
3869         * resolv/inet_addr.c: Likewise.
3871         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3872         clauses from conditionals for now.  Will have to be fixed later
3873         for older compilers.
3875         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3877 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3879         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3880         broken alias attribute handling.
3881         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3883 2002-08-02  Roland McGrath  <roland@frob.com>
3885         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3886         since it sets the variables we use in a -D switch.
3888 2002-08-02  Roland McGrath  <roland@redhat.com>
3890         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3891         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3892         matches long int, not int.
3894         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3895         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3896         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3897         * wctype/wctrans.c (wctrans): Likewise.
3898         * wctype/wctype.c (__wctype): Likewise.
3899         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3901 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
3903         * assert/assert.c (__assert_fail): Fix typo in comment.
3905         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3906         * sunrpc/rpc_thread.c: Define it without static.
3907         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3909 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
3911         * assert/assert.c (__assert_fail): Remove undef.
3912         Replace INTDEF with libc_hidden_def.
3913         * assert/__assert.c (__assert): Remove INTUSE.
3914         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3915         libc_hidden_weak.
3916         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3917         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3918         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3919         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3920         libm_hiden_ver): Define.
3921         * include/assert.h (__assert_fail_internal): Remove.
3922         (__assert_fail): Add prototype.  Add hidden_proto.
3923         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3924         libc_hidden_proto.
3925         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3926         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
3927         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3928         Add libc_hidden_proto.
3929         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3930         __fcntl): Add libc_hidden_proto.  Remove macros.
3931         (__open_internal, __fcntl_internal): Remove.
3932         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3933         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3934         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3935         libc_hiden_proto.
3936         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3937         libc_hidden_def.
3938         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3939         Add libc_hidden_def.
3940         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3941         * sysdeps/generic/open.c (__open): Remove undef.
3942         Add libc_hidden_def.  Remove INTDEF.
3943         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3944         Add libc_hidden_def.
3945         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3946         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3947         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3948         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3949         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3950         (__libc_fcntl): Add libc_hidden_def.
3951         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3952         (__open): Remove INTDEF2.  Add libc_hidden_weak.
3953         (__libc_open): Add libc_hidden_def.
3954         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3955         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3956         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3957         Add libc_hidden_def.
3958         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3959         Add libc_hidden_def.
3960         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
3961         undef.
3962         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
3963         (__libc_fcntl): Add libc_hidden_def.
3964         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
3965         __getpgid_internal, __chown_internal): Remove.
3966         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
3967         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
3968         __GI___chown): Add.
3969         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
3970         __getpid_internal, __open_internal, __write_internal): Remove.
3971         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
3972         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
3973         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
3974         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
3975         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
3976         Replace INTDEF with libc_hidden_def.
3977         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3978         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
3979         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
3980         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
3981         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
3982         Add libc_hidden_proto.
3983         * include/sys/poll.h (__poll): Add libc_hidden_proto.
3984         * include/sys/select.h (__select): Likewise.
3985         * include/sys/socket.h (__send): Likewise.
3986         * include/sys/statfs.h (__statfs): Likewise.
3987         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
3988         __getpid, __getpgid, __setpgid, __close, __read, __write,
3989         __getpagesize, __sbrk): Likewise.
3990         (__chown_internal, __dup2_internal, __getpid_internal,
3991         __getpgid_internal, __close_internal, __write_internal,
3992         __getpagesize_internal): Remove.
3993         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
3994         Remove macros.
3995         * include/printf.h (__printf_fp): Add libc_hidden_proto.
3996         * include/sched.h (__sched_setscheduler): Likewise.
3997         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
3998         * include/stdlib.h (__secure_getenv): Likewise.
3999         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4000         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4001         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4002         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4003         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4004         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4005         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4006         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4007         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4008         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4009         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4010         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4011         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4012         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4013         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4014         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4015         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4016         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4017         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4018         * libio/genops.c (__overflow): Add libc_hidden_def.
4019         * libio/iovdprintf.c: Remove libio.h include.
4020         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4021         libc_hidden_weak): Define to nothing if not defined.
4022         (__overflow, __woverflow): Add libc_hidden_proto.
4023         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4024         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4025         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4026         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4027         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4028         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4029         and libc_hidden_def.
4030         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4031         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4032         (__getpgid): Add libc_hidden_proto.
4033         (__bsd_getpgrp): Remove INTUSE.
4034         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4035         libc_hidden_def.
4036         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4037         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4038         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4039         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4040         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4041         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4042         __rpc_thread_createerr): Add libc_hidden_def.
4043         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4044         libc_hidden_def.
4045         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4046         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4047         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4048         * sysdeps/generic/chown.c (__chown): Likewise.
4049         * sysdeps/generic/close.c (__close): Likewise.
4050         * sysdeps/generic/dup2.c (__dup2): Likewise.
4051         * sysdeps/generic/pipe.c (__pipe): Likewise.
4052         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4053         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4054         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4055         * sysdeps/generic/read.c (__libc_read): Likewise.
4056         (__read): Add libc_hidden_weak.
4057         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4058         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4059         * sysdeps/generic/select.c (__select): Likewise.
4060         * sysdeps/generic/send.c (__send): Likewise.
4061         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4062         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4063         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4064         * sysdeps/generic/statfs.c (__statfs): Likewise.
4065         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4066         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4067         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4068         Remove undef and INTDEF.
4069         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4070         * sysdeps/generic/getpid.c (__getpid): Likewise.
4071         * sysdeps/generic/write.c (__libc_write): Likewise.
4072         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4073         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4074         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4075         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4076         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4077         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4078         Remove undef and INTDEF.
4079         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4080         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4081         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4082         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4083         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4084         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4085         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4086         (__pipe): Add libc_hidden_def.
4087         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4088         libc_hidden_weak.
4089         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4090         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4091         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4092         (__read): Add libc_hidden_weak.
4093         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4094         (__libc_pwrite64): Add libc_hidden_def.
4095         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4096         * sysdeps/mach/hurd/select.c (__select): Likewise.
4097         * sysdeps/mach/hurd/send.c (__send): Likewise.
4098         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4099         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4100         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4101         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4102         * sysdeps/posix/dup2.c: Likewise.
4103         Remove undef and INTDEF.
4104         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4105         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4106         (__pwrite64): Add libc_hidden_weak.
4107         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4108         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4109         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4110         * sysdeps/standalone/close.c (__close): Likewise.
4111         * sysdeps/standalone/write.c (__libc_write): Likewise.
4112         (__write): Add libc_hidden_weak.
4113         * sysdeps/standalone/read.c (__read): Likewise.
4114         (__libc_read): Add libc_hidden_def.
4115         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4116         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4117         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4118         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4119         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4120         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4121         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4122         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4123         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4124         __GI___sigaction): Add.
4125         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4126         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4127         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4128         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4129         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4130         __GI___setpgid): Add.
4131         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4132         Remove undef and INTDEF.
4133         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4134         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4135         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4136         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4137         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4138         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4139         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4140         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4141         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4142         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4143         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4144         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4145         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4146         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4147         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4148         __GI___statfs, __GI___send): Add.
4149         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4150         libc_hidden_ver resp. libc_hidden_def.
4151         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4152         libc_hidden_def.
4153         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4154         Likewise.  Remove undef and INTDEF.
4155         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4156         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4157         __GI___statfs, __GI___send): Add.
4158         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4159         libc_hidden_def.
4160         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4161         Likewise.
4162         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4163         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4164         libc_hidden_ver resp. libc_hidden_def.
4165         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4166         __GI___send): Add.
4167         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4168         Add libc_hidden_weak.
4169         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4170         Add libc_hidden_def.
4171         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4172         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4173         libc_hidden_weak.
4174         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4175         resp. libc_hidden_def.
4176         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4177         libc_hidden_weak.
4178         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4179         INTDEF.
4180         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4181         Likewise.  Remove undef.
4182         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4183         libc_hidden_weak.
4184         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4185         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4186         libc_hidden_weak.
4187         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4188         libc_hidden_def.
4189         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4190         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4191         Likewise.  Remove undef and INTDEF.
4192         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4193         libc_hidden_def.
4194         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4195         libc_hidden_weak.
4196         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4197         libc_hidden_def.
4198         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4199         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4200         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4201         libc_hidden_weak.
4202         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4203         Add libc_hidden_def.
4204         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4205         __GI___statfs): Add.
4206         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4207         libc_hidden_weak.
4208         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4209         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4210         Remove undef and INTDEF.
4211         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4212         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4213         libc_hidden_def.
4214         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4215         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4216         libc_hidden_weak.
4217         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4218         libc_hidden_def.
4219         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4220         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4221         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4222         Add.
4223         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4224         libc_hidden_def.  Remove undef and INTDEF.
4225         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4226         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4227         libc_hidden_def.
4228         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4229         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4230         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4231         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4232         Remove undef and INTDEF.
4233         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4234         broken visibility attribute handling.
4235         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4237 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4239         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4240         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4242         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4243         previous patch.
4245 2002-06-29  Todd Fries  <todd@openbsd.org>
4247         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4249 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4251         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4253 2002-07-30  Roland McGrath  <roland@redhat.com>
4255         * resolv/resolv.h (_res): Define macro unconditionally.
4256         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4257         * include/resolv.h: ... here.
4258         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4259         as a __thread variable.
4260         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4261         a __thread variable instead of a global.
4262         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4264         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4265         time we test it.
4267         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4269         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4270         decls of memset and memcpy.
4272         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4273         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4275         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4277         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4278         (__libc_tsd_define): Define using __thread.
4280         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4281         (__rpc_thread_variables): Use __libc_tsd_get.
4282         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4283         __rpc_thread_variables, which might allocate what we're about to free.
4285         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4286         thread-local variable.
4287         * resolv/netdb.h (h_errno): Define macro unconditionally.
4288         [_LIBC] (__set_h_errno): Macro moved to ...
4289         * include/netdb.h: ... here.
4290         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4291         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4292         [! _LIBC_REENTRANT]: #undef h_errno here.
4294         * include/errno.h: Protect from multiple inclusion.
4296         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4297         before defining them, since Linux's <linux/posix_types.h> might have
4298         defined them.
4300 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4302         * malloc/malloc.c (public_cALLOc): Check for overflow on
4303         multiplication.
4304         * sunrpc/xdr_array.c (xdr_array): Likewise.
4305         * sunrpc/rpc/types.h (mem_free): Add comment.
4306         Patch by Solar Designer <solar@openwall.com>.
4308 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4310         * sysdeps/unix/sysv/linux/kernel-features.h
4311         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4313 2002-08-01  Roland McGrath  <roland@redhat.com>
4315         * libio/fileops.c (_IO_file_sync_mmap): New function.
4316         (_IO_file_jumps_mmap): Use it.
4317         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4318         repeat the stat check and resize the mapped buffer as necessary.
4320 2002-07-31  Roland McGrath  <roland@redhat.com>
4322         * libio/fileops.c (decide_maybe_mmap): New static function.
4323         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4324         mmap the file contents.  Then switch the jump tables to the mmap
4325         tables if it worked, or the vanilla file tables if not.
4326         (_IO_file_underflow_maybe_mmap): New function.
4327         (_IO_file_seekoff_maybe_mmap): New function.
4328         (_IO_file_xsgetn_maybe_mmap): New function.
4329         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4330         * libio/libioP.h: Declare those.
4331         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4332         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4333         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4334         If the stream is read-only, set its jump tables to those new ones.
4335         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4336         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4337         We need the tables set before _IO_file_attach.
4339         * libio/tst-mmap-eofsync.c: New file.
4340         * libio/tst-mmap-fflushsync.c: New file.
4341         * libio/bug-mmap-fflush.c: New file.
4342         * libio/tst-mmap2-eofsync.c: New file.
4343         * libio/Makefile (tests): Add them.
4345         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4346         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4348 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4350         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4351         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4352         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4353         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4354         declare sys_errlist and sys_nerr.
4355         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4356         provide declarations.
4358 2002-07-31  Roland McGrath  <roland@redhat.com>
4360         * elf/rtld.c (dl_main): Fix typo in error message.
4362 2002-07-31  Roland McGrath  <roland@frob.com>
4364         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4365         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4366         sysdeps/mach/hurd/dl-sysdep.c change.
4368 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4370         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4371         -r`/build/include for kernel headers.
4373         * po/fi.po: New file.
4375 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4377         * configure.in (static_nss): Set to `yes' if --disable-shared.
4379 2002-07-23  Bruno Haible  <bruno@clisp.org>
4381         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4382         is set.
4384 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4386         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4387         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4388         arguments.
4390 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4392         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4393         alias.
4395 2002-07-21  Bruno Haible  <bruno@clisp.org>
4397         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4398         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4399         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4400         trans_sysdep_tab_offset.
4401         (struct sysdep_segment): New type.
4402         (struct sysdep_string): New type.
4403         (SEGMENTS_END): New macro.
4404         * intl/gettextP.h (struct sysdep_string_desc): New type.
4405         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4406         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4407         orig_tab, trans_tab, hash_tab to const pointers because they point
4408         into read-only memory.
4409         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4410         (PRI*): Define fallback values.
4411         (get_sysdep_segment_value): New function.
4412         (_nl_load_domain): Distinguish major and minor revision parts. Add
4413         support for minor revision 1 with system dependent strings.
4414         (_nl_unload_domain): Also free the 'malloced' field.
4415         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4416         now done in loadmsgcat.c. Add support for system dependent strings.
4418 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4420         * posix/bug-regex7.c: New file.
4421         * posix/bug-regex8.c: New file.
4422         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4424 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4426         * posix/bug-regex4.c (main): Fix typos.
4427         * posix/bug-regex6.c (main): Likewise.
4429 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4431         * posix/bug-regex6.c (main): Fix warnings.
4433         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4435         * iconv/iconv_prog.c (main): Improve error message for the cases
4436         where -t and/or -f parameter are missing.
4438 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4440         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4441         (re_search): Likewise.
4442         (re_match_2): Likewise.
4443         (re_search_2): Likewise.
4444         (re_search_stub): New function.
4445         (re_search_2_stub): New function.
4446         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4448 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4450         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4451         (re_string_eoi): Use STOP instead of LEN.
4452         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4453         (re_string_construct): Likewise.
4454         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4455         * posix/regexec.c (re_search_internal): Add a new argument STOP
4456         so that it can handle the argument STOP of re_search_2 and re_match_2
4457         correctly.
4458         (regexec): Adapt to new I/F of re_search_internal.
4459         (re_search_stub): Likewise.
4461 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4463         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4465         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4467         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4468         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4469         of __divdi3.
4471         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4472         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4473         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4474         alias for adjtimex syscall.
4476         * elf/dl-minimal.c: Define __assert_fail_internal.
4477         * assert/assert.c: Likewise.
4478         * include/assert.h: Define __assert_file macro if !SHARED and not
4479         NOT_IN_libc.
4481         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4482         programs.
4483         * locale/Makefile: Likewise.
4484         * nscd/Makefile: Likewise.
4485         * catgets/Makefile: Likewise.
4487 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4489         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4490         compute current position.
4492         * stdio-common/tst-fseek.c (main): Improve error messages.
4494         * libio/tst-freopen.c (main): Remove unused variable.
4496         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4497         succesful seek call.  Simplify error checking.
4499 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4501         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4502         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4504 2002-07-19  Roland McGrath  <roland@frob.com>
4506         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4507         __libc_enable_secure is set.
4509 2002-07-24  Roland McGrath  <roland@frob.com>
4511         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4512         This implementation supports only IPv4.
4513         * inet/ifaddrs.h: New file.
4514         * sysdeps/generic/ifaddrs.c: New file.
4515         * sysdeps/gnu/ifaddrs.c: New file.
4516         * inet/test-ifaddrs.c: New file.
4517         * inet/Makefile (routines): Add ifaddrs.
4518         (headers): Add ifaddrs.h here.
4519         (tests): Add test-ifaddrs.
4520         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4522         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4523         socket call to get an AF_INET socket, instead of using __opensock.
4524         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4526         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4527         if not -1 use it instead of calling __opensock.
4528         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4529         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4530         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4532         * sysdeps/mach/hurd/ifreq.h: New file.
4533         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4534         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4535         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4537         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4538         which gets moved around.  Calculate size of mmap'd buffer instead.
4540 2002-07-24  Philip Blundell  <philb@gnu.org>
4542         * sysdeps/unix/arm/brk.S: Improve schedule.
4543         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4544         efficient instruction.
4545         (__socket): Optimize return sequence.
4547 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4549         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4550         sockets on old kernels.
4552 2002-07-22  Philip Blundell  <philb@gnu.org>
4554         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4555         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
4556         alias.
4558 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4560         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4561         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4563         * locale/programs/locarchive.c (add_locale_to_archive): Correct
4564         test to detect duplicate locales.
4566         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4567         position would be before beginning of file.
4568         (_IO_file_seekoff_mmap): Likewise.
4569         * libio/Makefile (tests): Add bug-fseek.
4570         * libio/bug-fseek.c: New file.
4572         * intl/explodename.c: Remove support for CEN-style locale variables.
4573         It was never used and shouldn't be since it's not portable.
4574         * intl/finddomain.c: Likewise.
4575         * intl/l10nflist.c: Likewise.
4576         * intl/loadinfo.h: Likewise.
4577         * locale/findlocale.c: Likewise.
4579 2002-07-24  Roland McGrath  <roland@frob.com>
4581         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4582         position, calculate it to take into account an active pushback buffer.
4584         * libio/Makefile (tests): Add bug-ungetc.
4585         * libio/bug-ungetc.c: New file.
4587 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
4589         * sysdeps/generic/libc-tls.c: New file.
4590         * csu/Makefile (routines): Add libc-tls.
4591         (static-only-routines): Add libc-tls.
4592         * elf/dl-support.c (_dl_phdr): New variable.
4593         (_dl_phnum): New variable.
4594         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4595         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4596         for !SHARED.  First look through auxiliary vector.  If TLS always
4597         call __pthread_initialize_minimal.
4599         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4600         in mmap call is never zero.
4602 2002-07-23  Andreas Jaeger  <aj@suse.de>
4604         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4605         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4607 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
4609         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4610         creation and removal of the temp file.
4612         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
4613         file creation.
4614         * test-skeleton.c (create_temp_file): New function.
4616 2002-07-22  Andreas Jaeger  <aj@suse.de>
4618         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4619         local label.
4621 2002-07-21  Roland McGrath  <roland@frob.com>
4623         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4624         put -I../include before -I../stdlib so we get the right errno.h et al.
4625         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4626         (CFLAGS-wcstof.c): Likewise.
4627         (CFLAGS-wcstold.c): Likewise.
4628         (CFLAGS-wcstod_l.c): Likewise.
4629         (CFLAGS-wcstof_l.c): Likewise.
4630         (CFLAGS-wcstold_l.c): Likewise.
4632 2002-07-19  Roland McGrath  <roland@frob.com>
4634         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4636 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
4638         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4639         __ASSUME_AT_XID is defined.
4640         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4641         for 2.4.1 and up.
4642         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4643         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4645         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4646         (CFLAGS-wcstof.c): Likewise.
4647         (CFLAGS-wcstold.c): Likewise.
4648         (CFLAGS-wcstod_l.c): Likewise.
4649         (CFLAGS-wcstof_l.c): Likewise.
4650         (CFLAGS-wcstold_l.c): Likewise.
4652 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
4654         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4655         __priority_which_t): Always typedef to int for C++.
4657 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
4659         * configure.in: Add test for __thread support in compiler.
4660         * config.h.in: Add HAVE___THREAD.
4661         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4662         * include/sys/errno.h: Moved to...
4663         * stdlib/sys/errno.h: ...here.  New file.
4664         * stdlib/errno.h: New file.  Moved from...
4665         * include/errno.h: ...here.  Changed into an internal header defining
4666         libc-local things like __set_errno.
4667         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4668         bits/errno.h.
4669         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
4670         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
4671         either.
4672         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4673         from...
4674         (_dl_start_final): ...here.  Add code to initialize tls elements from
4675         bootstrap_map.
4676         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4677         if USE_TLS && HAVE___THREAD.
4678         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4679         * sysdeps/mach/hurd/bits/errno.h: Likewise.
4680         * sysdeps/standalone/arm/bits/errno.h: Likewise.
4681         * sysdeps/standalone/bits/errno.h: Likewise.
4682         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4683         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4684         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4685         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4686         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4687         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4688         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4689         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4690         use GL(dl_rtld_map), use map parameter.
4691         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4692         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4693         USE_TLS && HAVE___THREAD.
4694         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4695         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
4696         TLS code sequence.
4697         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4699         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4700         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4701         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4702         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4703         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4704         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4706 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
4708         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4709         MS_INVALIDATE values.
4711 2002-07-17  Andreas Schwab  <schwab@suse.de>
4712             Ulrich Drepper  <drepper@redhat.com>
4714         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4715         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4716         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4717         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4719 2002-07-01  H.J. Lu  <hjl@gnu.org>
4721         * elf/circleload1.c (load_dso): Call "circlemod1" and check
4722         return value.
4724         * elf/circlemod1.c (circlemod1): Return int.
4725         * elf/circlemod2.c (circlemod2): Likewise.
4726         * elf/circlemod2a.c (circlemod2): Likewise.
4727         * elf/circlemod3.c (circlemod3): Likewise.
4728         (circlemod3a): A new function.
4730 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
4732         * catgets/tst-catgets.c (main): Don't expect results for
4733         untranslated messages.
4735         * glibcbug.in: Fix little typo.  Remove STDIO.
4737         * config.h.in: Fail if __FAST_MATH__ is defined.
4738         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4739         (CPPFLAGS-test-idouble.c): Likewise.
4740         (CPPFLAGS-test-ildouble.c): Likewise.
4742 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4744         * intl/tst-gettext.sh: Pass -f option to msgfmt.
4745         * intl/tst-gettext.c: Correctly handle untranslated messages in
4746         positive tests.
4748         * po/de.po: Update from translation team.
4750 2002-07-02  H.J. Lu  <hjl@gnu.org>
4752         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
4753         use ll/sc.
4754         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4756         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4757         to 2.4.0 for mips.
4759 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
4761         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4762         TLS fail if USE_TLS is not defined.
4764         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4765         and adjust state for seek position.  [PR libc/4070]
4766         * libio/Makefile (tests): Add bug-rewind.
4767         * libio/bug-rewind.c: New file.
4769 2002-07-12  Philip Blundell  <philb@gnu.org>
4771         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4772         (__backtrace): Use it.
4773         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
4775 2002-07-12  Philip Blundell  <philb@gnu.org>
4777         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4778         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
4779         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4780         (elf_machine_rela): Remove unused variable.
4782         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4783         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4784         define.
4786 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
4788         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4790 2002-07-14  Andreas Jaeger  <aj@suse.de>
4792         * sysdeps/x86_64/bits/link.h: Add biarch support.
4794 2002-07-13  Andreas Jaeger  <aj@suse.de>
4796         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4797         Use correct indices.
4798         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4800 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4802         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4803         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4804         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4805         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4806         * sysdeps/s390/s390-32/bits/link.h: Remove.
4807         * sysdeps/s390/s390-64/bits/link.h: Remove.
4808         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4809         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4810         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4811         * sysdeps/s390/bits/wordsize.h: New file.
4812         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4813         elfclass.h.
4814         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4815         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4816         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4817         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4818         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4819         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4820         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4821         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4822         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4823         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4824         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4825         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4826         resource.h.
4827         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4828         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4829         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4830         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4831         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4832         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4833         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4834         sigaction.h.
4835         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4836         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4837         siginfo.h.
4838         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4839         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4840         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4841         socket.h.
4842         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4843         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4844         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4845         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4846         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4847         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4848         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4849         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4850         procfs.h.
4851         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4852         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4853         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4854         ucontext.h.
4855         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4856         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4858 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4860         * Versions.def (libc): Add GLIBC_2.3.
4861         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4862         * stdlib/canonicalize.c: Add compatibility version for realpath
4863         and make new code available in GLIBC_2.3.
4865 2002-07-06  Bruno Haible  <bruno@clisp.org>
4867         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4869 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
4871         * resolv/res_hconf.c (_res_hconf_init): Move code into new
4872         function do_init.  Use __libc_once.
4873         (do_init): New function.
4875         * iconvdata/iso8859-11.h: Removed.
4876         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4877         (distribute): Remove iso8859-11.h.
4878         * iconvdata/tst-tables.sh: Add ISO-8859-11.
4880         * stdio-common/vfscanf.c (inchar): Restore errno from previous
4881         underflow operation if c == (W)EOF.
4883 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4885         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4886         non-zero, adjust exponent.
4887         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4888         Remove NO_LONG_DOUBLE aliases.
4889         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4890         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4891         (__log1pl): Raise divide by zero and invalid exceptions when needed.
4892         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4893         1**y and -1**+-Inf.
4894         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4895         Fix BITS_PER_MP_LIMB 32 extraction.
4896         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4897         exceptions for qNaNs.
4898         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4899         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4900         Raise exceptions when needed.  Don't recurse unnecessarily.
4901         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4902         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4903         exceptions for qNaNs.
4904         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4905         to fix *quo return value sign.
4906         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4907         case -Inf argument.
4908         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4910 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
4912         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4913         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4914         -DNDEBUG.
4916 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4918         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4919         the result.
4921         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4922         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
4924         * Versions.def (libthread_db): Add GLIBC_2.3.
4926 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
4928         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4929         new stream if possible.
4930         * libio/freopen64.c (freopen64): Likewise.
4931         * libio/Makefile (tests): Add tst-freopen.
4932         * libio/tst-freopen.c: New file.
4934 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4936         * libio/stdio.h (obstack_printf): Add format attribute.
4937         (obstack_vprintf): Likewise.
4939 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4941         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4942         resp. 16 bytes on 32-bit resp. 64-bit platforms.
4943         (re_charset_t, re_string_t): Reorder structure members for 64-bit
4944         architectures.
4946 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
4948         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4949         (init_dfa): ...here.
4951 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
4953         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4954         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4955         nodes in parse trees.
4956         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4957         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4958         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4959         nodes which can epsilon transit.
4960         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
4961         to IS_EPSILON_NODE macro.
4962         * posix/regexec.c (update_regs): New function to update registers
4963         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
4964         (proceed_next_node): Use the entities of the nodes to determine
4965         whether the node can transit to.
4966         (set_regs): Use update_regs function to update registers.
4968 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
4970         * posix/bug-regex4.c (main): Remove duplicate setlocale.
4971         * posix/bug-regex6.c: New file.
4972         * posix/Makefile (tests): Add bug-regex6.
4973         (bug-regex6-ENV): Set LOCPATH.
4975 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
4977         * Versions.def [libpthread]: Add GLIBC_2.2.6.
4978         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
4980 2002-07-06  Bruno Haible  <bruno@clisp.org>
4982         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
4984 2002-07-06  Bruno Haible  <bruno@clisp.org>
4986         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
4987         declarations.
4989         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
4991         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
4993         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
4994         not _UTSNAME_H.
4995         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
4997         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
4998         * sysdeps/generic/bits/ustat.h: Likewise.
5000         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5002 2002-07-08  Andreas Jaeger  <aj@suse.de>
5004         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5006 2002-07-08  Andreas Jaeger  <aj@suse.de>
5008         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5010 2002-07-06  Andreas Jaeger  <aj@suse.de>
5012         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5013         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5014         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5015         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5016         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5017         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5018         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5019         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5020         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5021         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5022         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5024 2002-06-05  Brian Youmans <3diff@gnu.org>
5026         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5027         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5028         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5029         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5030         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5031         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5032         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5033         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5034         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5035         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5036         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5037         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5038         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5039         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5040         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5041         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5042         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5043         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5044         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5045         * sysdeps/ia64/fpu/e_log.S: Likewise.
5046         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5047         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5048         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5049         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5050         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5051         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5052         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5053         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5054         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5055         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5056         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5057         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5058         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5059         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5060         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5061         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5062         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5063         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5064         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5065         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5066         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5067         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5068         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5069         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5070         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5071         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5072         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5073         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5074         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5075         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5076         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5077         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5078         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5079         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5080         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5081         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5082         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5083         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5084         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5085         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5086         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5087         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5088         * sysdeps/ia64/fpu/s_round.S: Likewise.
5089         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5090         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5091         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5092         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5093         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5094         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5095         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5096         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5097         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5098         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5099         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5100         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5101         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5102         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5103         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5104         reflect IBM donation of math library to FSF
5105         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5106         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5107         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5108         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5109         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5110         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5111         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5112         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5113         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5114         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5115         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5116         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5117         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5118         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5119         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5120         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5121         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5122         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5123         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5124         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5125         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5126         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5127         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5128         * sysdeps/vax/__longjmp.c: Likewise.
5129         * sysdeps/vax/setjmp.c: Likewise.
5130         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5131         remove advertising clause
5132         * sysdeps/vax/htonl.s: Likewise.
5133         * sysdeps/vax/htons.s: Likewise.
5134         * libio/wfiledoalloc.c: Likewise.
5135         * stdlib/random.c: Likewise.
5136         * stdlib/random_r.c: Likewise.
5137         * sysdeps/mach/sys/reboot.h: Likewise.
5138         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5139         * sysdeps/posix/getaddrinfo.c: Likewise.
5140         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5141         GPL and corrected pointer to point to the correct license.
5143 2002-07-04  Andreas Jaeger  <aj@suse.de>
5145         * scripts/config.guess: New upstream version.
5146         * scripts/config.sub: Likewise.
5148 2002-07-02  Andreas Schwab  <schwab@suse.de>
5150         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5151         in parallel to bumping up the buffer pointer.
5153 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5155         * math/libm-test.inc (acos_test): Add missing L suffix for
5156         expected result.
5157         (cpow_test): Likewise.
5158         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5159         error for acos (0.0625).
5161 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5163         * locale/iso-639.def: Add entry for Ganda.
5164         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5165         definition.
5166         (address_finish): Handle entries with two letter ISO 639 code.
5168         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5169         directory if it existed before.
5170         * iconv/iconvconfig.c: Implement --prefix option.
5172         * math/libm-test.inc (cexp_test): Add missing L suffix for
5173         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5174         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5175         1.25 i).
5177 2002-05-29  H.J. Lu  <hjl@gnu.org>
5179         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5180         is turned on.
5182 2002-05-28  H.J. Lu  <hjl@gnu.org>
5184         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5185         are not dlopened on the dependency list of a dlopened object.
5187 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5189         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5190         dependencies if they are created between objects which are created
5191         while processing RTLD_NOW for objects loaded as part of the same
5192         dlopen call.
5194 2002-06-14  H.J. Lu  <hjl@gnu.org>
5196         * elf/Makefile (tests): Add circleload1.
5197         (modules-names): Add circlemod1, circlemod2, circlemod3,
5198         circlemod1a, circlemod2a and circlemod3a.
5199         ($(objpfx)circleload1): New target.
5200         ($(objpfx)circleload1.out): Likewise.
5201         ($(objpfx)circlemod1.so): Likewise.
5202         ($(objpfx)circlemod2.so): Likewise.
5203         ($(objpfx)circlemod1a.so): Likewise.
5204         ($(objpfx)circlemod2a.so): Likewise.
5205         * elf/circleload1.c: New file.
5206         * elf/circlemod1.c: New file.
5207         * elf/circlemod1a.c: New file.
5208         * elf/circlemod2.c: New file.
5209         * elf/circlemod2a.c: New file.
5210         * elf/circlemod3.c: New file.
5211         * elf/circlemod3a.c: New file.
5213 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5215         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5216         file descriptor.
5217         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5218         add check for fd not open for writing.
5220         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5221         completed element(s) and do not suspend thread if so.  Patch
5222         heavily modified by drepper.
5224         * rt/tst-aio7.c: New file.  Regression test for problems which the
5225         above three changes fix.
5226         * rt/Makefile (tests): Add tst-aio7.
5228 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5230         * rt/tst-aio6.c: Fix comment.
5232         * catgets/gencat.c (read_input_file): Handle more than one slash
5233         at end of line correctly [PR libc/3926].
5234         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5236         * catgets/sample.SJIS: Add test case for above bug.
5237         * catgets/test-gencat.c: Adjust test code.
5238         * catgets/test-gencat.sh: Adjust expected results.
5240         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5241         to skip relative relocations.
5242         Patch by Geoff Keating <geoffk@redhat.com>.
5244 2002-05-26  Bruno Haible  <bruno@clisp.org>
5246         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5247         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5248         All callers changed.
5249         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5250         STANDARD_FROM_LOOP_ERR_HANDLER.
5251         (utf8_internal_loop): Likewise.
5252         (ucs2_internal_loop): Likewise.
5253         (internal_ucs2_loop): Perform error handling like in
5254         STANDARD_FROM_LOOP_ERR_HANDLER.
5255         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5256         in STANDARD_FROM_LOOP_ERR_HANDLER.
5257         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5258         handling.
5259         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5260         in STANDARD_FROM_LOOP_ERR_HANDLER.
5261         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5262         handling.
5263         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5264         in STANDARD_FROM_LOOP_ERR_HANDLER.
5265         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5266         handling.
5267         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5268         STANDARD_FROM_LOOP_ERR_HANDLER.
5269         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5270         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5271         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5272         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5273         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5274         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5275         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5276         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5277         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5278         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5279         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5280         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5281         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5282         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5283         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5284         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5285         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5286         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5287         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5288         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5289         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5290         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5291         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5292         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5293         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5294         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5295         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5296         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5297         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5298         an error, still set result = __GCONV_ILLEGAL_INPUT.
5299         (BODY for TO_LOOP): Likewise.
5300         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5301         STANDARD_FROM_LOOP_ERR_HANDLER.
5302         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5303         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5304         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5305         handling.
5306         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5307         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5308         STANDARD_FROM_LOOP_ERR_HANDLER.
5309         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5310         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5311         STANDARD_FROM_LOOP_ERR_HANDLER.
5312         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5313         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5314         STANDARD_FROM_LOOP_ERR_HANDLER.
5315         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5316         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5317         STANDARD_FROM_LOOP_ERR_HANDLER.
5318         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5319         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5320         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5321         handling.
5322         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5323         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5324         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5325         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5327 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5329         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5330         labels in assembler instructions.
5332 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5334         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5335         not enough content is available.
5336         * libio/tst-eof.c: New file.
5337         * libio/Makefile (tests): Add tst-eof.
5339         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5340         update atime.
5341         * libio/tst-atime.c: New file.
5342         * libio/Makefile (tests): Add tst-atime.
5344         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5345         handling of overly long words.
5347 2002-06-25  Andreas Jaeger  <aj@suse.de>
5349         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5350         to not use 32-bit pc relative relocations.
5351         (elf_machine_dynamic): Likewise.
5353 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5355         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5356         (__GETDENTS): Check for failed getdents64 syscall.
5357         * dirent/Makefile (tests): Add bug-readdir1.
5358         * dirent/bug-readdir1.c: New file.
5360 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5362         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5363         lookups.
5364         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5365         code.  Print TLS modid and offset for modules containing PT_TLS
5366         segments.
5368 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5370         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5371         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5372         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5373         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5375 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5377         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5378         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5379         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5380         * nss/getXXent_r.c (NEW, NEW1): Define.
5381         (NEW (REENTRANT_GETNAME)): Strong alias to
5382         INTERNAL (REENTRANT_GETNAME).
5383         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5385 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5387         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5388         (_IO_file_jumps_mmap): Use it.
5389         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5390         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5391         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5392         prototype.
5393         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5394         (_IO_wfile_jumps_mmap): Don't use it anymore.
5395         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5396         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5397         _IO_wdefault_setbuf.
5398         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5399         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5400         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5402 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5404         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5405         * libio/tst-mmap-setvbuf.c: New test.
5407 2002-06-21  Andreas Jaeger  <aj@suse.de>
5409         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5411 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5413         * include/unistd.h (__fork_internal): Remove.
5414         (__fork): Don't define to __fork_internal.
5415         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5416         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5417         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5418         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5419         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5421 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5423         * po/hr.po: New file.
5425 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5427         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5428         Reported by Michael Meissner <meissner@redhat.com>.
5430 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5432         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5433         Patch by Hans Boehm <hans_boehm@hp.com>.
5435 2002-06-20  Andreas Jaeger  <aj@suse.de>
5437         * math/libm-test.inc: Use exact values as input parameters,
5438         compute output parameters with 36 digits for 128-bit long doubles.
5439         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5440         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5441         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5443 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5445         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5446         argument or result is subnormal.
5448 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5450         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5451         quotient.
5452         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5453         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5455         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5457 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5459         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5460         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5461         Reported by Peter A. Buhr.
5463 2002-06-15  Roland McGrath  <roland@frob.com>
5465         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5466         warning.
5468         * sysdeps/mach/hurd/getcwd.c
5469         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5471         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5472         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5474         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5475         jump to local subroutine.
5477 2002-06-14  Roland McGrath  <roland@frob.com>
5479         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5480         * sysdeps/mach/hurd/Makeconfig: ... here.
5482 2002-06-13  Andreas Schwab  <schwab@suse.de>
5484         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5485         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5486         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5488 2002-06-13  Roland McGrath  <roland@frob.com>
5490         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5491         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5492         Use intptr_t instead of int for argc in stack layout.
5493         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5494         (_dl_init_first): Likewise.
5495         (_hurd_stack_setup): Likewise.
5496         (init1): Add a cast.
5497         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5499         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5500         argument to pfinet_siocgifconf RPC.
5502 2002-06-13  Andreas Schwab  <schwab@suse.de>
5504         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5505         expansion order.
5507 2002-06-12  Roland McGrath  <roland@frob.com>
5509         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5510         if already defined.
5511         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5512         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5514 2002-06-11  Roland McGrath  <roland@frob.com>
5516         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5517         file on [!RTLD_STAT64].
5518         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5520         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5521         (__fdopen): Use INTUSE.
5522         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5524         * stdio-common/tmpfile64.c: File removed.
5525         * sysdeps/generic/tmpfile64.c: New file.
5526         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5527         if not already defined.
5528         (tmpfile): Use it in place of __GT_FILE.
5530         * include/unistd.h: Declare __chown_internal.
5532         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5533         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5535 2002-06-09  Roland McGrath  <roland@frob.com>
5537         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5538         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5539         value of HURD_INTERFACE_VERSION >= 20020609.
5540         * sysdeps/mach/hurd/configure: Regenerated.
5541         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5542         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5543         convert a struct stat64 into a struct stat and return 0 or -1
5544         with errno set to EOVERFLOW.
5545         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5546         for struct statfs64 to struct statfs.
5547         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5548         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5549         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5550         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5551         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5552         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5553         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5554         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5555         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5556         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5557         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5558         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5559         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5560         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5561         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5562         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5563         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5564         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5565         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5566         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5567         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5568         Use struct stat64 for io_stat argument.
5569         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5570         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5571         to io_seek.
5572         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5573         * hurd/fd-write.c (_hurd_fd_write): Likewise.
5574         * hurd/hurd/fd.h: Update decls.
5575         * sysdeps/mach/hurd/getcwd.c
5576         (_hurd_canonicalize_directory_name_internal): Use ino64_t
5577         and struct dirent64.
5578         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5579         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5580         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5581         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5583 2002-06-08  Roland McGrath  <roland@frob.com>
5585         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5586         instead of unsigned long int for __allocation and __size members.
5588 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5590         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5591         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5592         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5593         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5595 2002-06-07  Roland McGrath  <roland@frob.com>
5597         * sysdeps/mach/hurd/bits/environments.h: File removed.
5599 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5601         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5602         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5603         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5604         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5605         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5606         (sendfile64): Likewise.
5607         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5608         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5609         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5610         Likewise.
5611         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5613         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5614         already defined.
5616 2002-06-04  Bruno Haible  <bruno@clisp.org>
5618         * sysdeps/cris/stackinfo.h: New file.
5620         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5621         to an integer type before performing bit operations on it.
5623 2002-06-05  Roland McGrath  <roland@frob.com>
5625         * sysdeps/generic/sendfile.c: Include <errno.h>.
5626         * sysdeps/generic/sendfile64.c: Likewise.
5628         * io/Makefile (routines): Add sendfile and sendfile64.
5629         (headers): Add sys/sendfile.h to the list.
5630         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5631         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5632         * io/sys/sendfile.h: ... here.
5633         * sysdeps/generic/sendfile.c: New file.
5634         * sysdeps/generic/sendfile64.c: New file.
5636         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5637         Move sendfile, sendfile64 to ...
5638         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5639         * sysdeps/mach/hurd/sendfile.c: New file.
5640         * sysdeps/mach/hurd/sendfile64.c: New file.
5642         * sysdeps/mach/nanosleep.c: New file.
5644 2002-06-04  Roland McGrath  <roland@frob.com>
5646         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
5647         * sysdeps/alpha/elf/configure: New file (generated).
5649 2002-06-02  Roland McGrath  <roland@frob.com>
5651         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5653 2002-06-01  Roland McGrath  <roland@frob.com>
5655         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5656         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5658 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5660         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5661         Add nsmap.
5662         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5663         Remove nstimes setting.
5664         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5665         * resolv/res_send.c (res_nsend): Don't close unconditionally if
5666         there is mix of IPv6 and IPv4 nameservers.
5667         Use nsmap array to find free slots and preserve nameserver ordering.
5668         Fix RES_ROTATE.
5670 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5672         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5673         use this header with LFS.
5675         * po/sk.po: Update from translation team.
5677 2002-05-28  Andreas Schwab  <schwab@suse.de>
5679         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5680         message when finding object of wrong class.
5682 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
5684         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5685         Patch by <radu@netsoft.ro>.
5687 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
5689         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5690         Add readahead.
5691         * sysdeps/unix/sysv/linux/readahead.c: New file.
5692         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5693         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5694         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5695         Add sendfile64 alias to sendfile syscall.
5696         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5697         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5698         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5699         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5700         syscall.
5702         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5703         special section for PIC register loading.
5704         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5706         * config.h.in: Define HAVE_HIDDEN.
5707         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5709         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5711 2002-05-28  Roland McGrath  <roland@frob.com>
5713         * sysdeps/mach/alpha/setfpucw.c: New file.
5715 2002-05-26  Roland McGrath  <roland@frob.com>
5717         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5718         Use integer_t instead of int for IOC_VOID case.
5720 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
5722         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5724 2002-05-26  Bruno Haible  <bruno@clisp.org>
5726         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5727         end of the ISO-8859-7 from idx table.
5729 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
5731         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5733 2002-05-24  David S. Miller  <davem@redhat.com>
5735         * string/bits/string2.h (memset): Do not try to optimize when
5736         not _STRING_ARCH_unaligned if GCC will do the right thing.
5738 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
5740         * posix/regex.c: Define `inline' as a macro into nothing for the
5741         compilers which lack the keyword.
5742         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5743         for the compatibility of gawk.
5744         * posix/regcomp.c: Add fake implementation of isblank() for the
5745         environments which lack the function.
5746         Don't use free_charset() in case of non-i18n envs.
5747         (build_range_exp): Don't use i18n related code in case of non-i18n
5748         envs.
5749         (build_collating_symbol): Likewise.
5750         (build_equiv_class): Likewise.
5751         (build_charclass): Likewise.
5752         (re_compile_fastmap_iter): Likewise.
5753         (parse_bracket_exp): Likewise.
5754         (build_word_op): Likewise.
5755         (regfree): Don't use free_charset() in case of non-i18n envs.
5756         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5757         re_token_type_t in case of non-i18n envs.
5758         Don't define re_charset_t in case of non-i18n envs.
5759         Change the type of wcs of re_string_t from wchar_t to wint_t,
5760         since we store also WEOF.
5761         * posix/regex_internal.c: (re_string_realloc_buffers): Change
5762         the type of wcs of re_string_t from wchar_t to wint_t.
5763         (re_string_reconstruct): Likewise.
5764         (create_ci_newstate): Don't use i18n related code in case of
5765         non-i18n envs.
5766         (create_cd_newstate): Likewise.
5768 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
5770         * iconv/loop.c: Fix typo.
5772 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5774         * inet/ether_line.c (ether_line): Fix a typo causing only
5775         lower 4 bits of each ethernet address byte being assigned.
5776         Don't modify what line points to.
5777         * inet/tst-ether_aton.c (main): Add ether_line tests.
5779 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
5781         * manual/filesys.texi: Don't make readlink example leak memory
5782         when readlink fails.
5784 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
5786         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
5787         some more security checks.
5789 2002-05-17  David S. Miller  <davem@redhat.com>
5791         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5793 2002-05-16  David S. Miller  <davem@redhat.com>
5795         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5796         (elf_machine_dynamic): Use it to force PIC register to be loaded.
5797         (elf_machine_load_address): Likewise.
5798         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5800         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5801         is unaligned, do not forget to fully initialize %g1 magic value.
5803         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5804         register definitions and provide 32-bit variants of structures
5805         during 64-bit builds.
5807         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5808         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5809         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5810         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5811         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5812         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5813         Do not clear implicit one bit here, it must be done post-rounding.
5814         Only pad to the left using left shift if value uses less than the
5815         available fractional bits.
5817 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5819         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5820         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5821         (shared-only-routines): Likewise.
5822         * sysdeps/powerpc/libgcc-compat.c: New file.
5823         * sysdeps/wordsize-32/cmpdi2.c: Removed.
5824         * sysdeps/wordsize-32/fixdfdi.c: Removed.
5825         * sysdeps/wordsize-32/fixsfdi.c: Removed.
5826         * sysdeps/wordsize-32/shdi3.c: Removed.
5828 2002-05-16  Bruno Haible  <bruno@clisp.org>
5830         * MakeTAGS (libc.pot): Don't sort the output.
5831         * po/header.pot: Update to match xgettext 0.11 output.
5833 2002-05-16  Bruno Haible  <bruno@clisp.org>
5835         * MakeTAGS (subdirs): Remove duplicates.
5837 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
5839         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5840         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5841         alias.
5843 2002-05-19  Andreas Jaeger  <aj@suse.de>
5845         * sysdeps/unix/sysv/linux/configure.in: Warn against an
5846         installation in /usr/local.
5848 2002-05-16  Bruno Haible  <bruno@clisp.org>
5850         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5851         string as argument of #error.
5853 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
5855         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5856         don't define static.  Remove old __realpath function.  TC1 of
5857         POSIX 2001 will allow the second parameter to be NULL.
5858         * stdlib/test-canon.c: Comment out test for NULL as second
5859         parameter of realpath.
5861         * time/offtime.c (__offtime): Set errno if overflow is detected.
5863         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5864         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5865         dl-brk and dl-sbrk.
5867         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5868         (fdimf): Likewise.
5870 2002-05-15  Roland McGrath  <roland@frob.com>
5872         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5874 2002-05-12  Bruno Haible  <bruno@clisp.org>
5876         * iconvdata/testdata/EUC-JISX0213: New file.
5877         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5878         * iconvdata/testdata/SHIFT_JISX0213: New file.
5879         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5880         * iconvdata/testdata/ISO-2022-JP-3: New file.
5881         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5882         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5883         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5884         contains comments indicating precomposed characters.
5886 2002-04-21  Bruno Haible  <bruno@clisp.org>
5888         * iconvdata/iso-2022-jp-3.c: New file.
5889         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5890         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5891         (LDFLAGS-ISO-2022-JP-3.so): New variable.
5892         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5893         (distribute): Add iso-2022-jp-3.c.
5895 2002-05-12  Bruno Haible  <bruno@clisp.org>
5897         * iconvdata/tst-table-to.c (main): Restore handling of
5898         transliterations, broken by last patch.
5900 2002-05-12  Bruno Haible  <bruno@clisp.org>
5902         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5904 2002-05-12  Bruno Haible  <bruno@clisp.org>
5906         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5907         when there is not enough room in the output buffer.
5908         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5910 2002-04-20  Bruno Haible  <bruno@clisp.org>
5912         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5913         macros.
5914         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5915         Also make this macro work if FROM_DIRECTION evaluates to 0.
5916         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5917         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5918         of consume_incomplete.
5919         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5920         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5921         4, not 8.
5922         * iconvdata/cp1258.c: Likewise.
5923         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5924         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5925         not 2.
5926         * iconvdata/ibm933.c: Likewise.
5927         * iconvdata/ibm935.c: Likewise.
5928         * iconvdata/ibm937.c: Likewise.
5929         * iconvdata/ibm939.c: Likewise.
5930         * iconvdata/iso-2022-cn.c: Define
5931         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5932         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5933         * iconvdata/iso-2022-cn-ext.c: Likewise.
5934         * iconvdata/iso-2022-jp.c: Define
5935         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5936         {MIN,MAX}_NEEDED_{FROM,TO}.
5937         * iconvdata/tcvn5712-1.c: Define
5938         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5939         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5940         * iconvdata/euc-jisx0213.c: Define
5941         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5942         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5943         * iconvdata/shift_jisx0213.c: Likewise.
5945 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5947         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5948         shdi3, fixdfdi, fixsfdi in csu dir.
5949         (shared-only-routines): Likewise.
5950         * sysdeps/wordsize-32/cmpdi2.c: New file.
5951         * sysdeps/wordsize-32/shdi3.c: New file.
5952         * sysdeps/wordsize-32/fixdfdi.c: New file.
5953         * sysdeps/wordsize-32/fixsfdi.c: New file.
5954         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5955         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5956         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5958         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5959         Only use va_arg if the argument will be used [PR libc/3259].
5961 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
5963         * catgets/catgets.c (catopen): Free buffer if internal catalog
5964         open fails.
5966 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
5968         * debug/xtrace.sh: Make more robust.  For realtime tracking use
5969         non-buffering methods.
5970         * debug/pcprofiledump.c: Implement -u option.
5971         Patch by Roger Luethi <rl@hellgate.ch>.
5973 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
5975         * include/netinet/in.h (bindresvport_internal): Add prototype.
5976         * include/rpc/auth.h  (authunix_create_internal,
5977         authunix_create_default_internal, authnone_create_internal,
5978         authdes_pk_create_internal): Add prototypes.
5979         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
5980         clntudp_create_internal, clntudp_bufcreate_internal,
5981         clntunix_create_internal): Add prototypes.
5982         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
5983         svc_getreq_internal, svc_getreq_common_internal,
5984         svc_getreqset_internal, svc_getreq_poll_internal,
5985         svc_register_internal, svc_unregister_internal,
5986         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
5987         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
5988         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
5989         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
5990         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
5991         * inet/rcmd.c (rcmd_af): Use __listen.
5992         (rresvport_af): Use __bind.
5993         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
5994         authunix_create, authunix_create_default, authnone_create,
5995         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
5996         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
5997         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
5998         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
5999         _authenticate, add INTDEF after such function definitions.
6000         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6001         __setsockopt, __getsockname instead of non-__ variants.
6002         * sunrpc/pmap_rmt.c: Likewise.
6003         * sunrpc/rtime.c: Likewise.
6004         * sunrpc/svc_udp.c: Likewise.
6005         * sunrpc/clnt_unix.c: Likewise.
6006         * sunrpc/svc_unix.c: Likewise.
6007         * sunrpc/bindrsvprt.c: Likewise.
6008         * sunrpc/svc_tcp.c: Likewise.
6009         * sunrpc/auth_none.c: Likewise.
6010         * sunrpc/clnt_raw.c: Likewise.
6011         * sunrpc/clnt_tcp.c: Likewise.
6012         * sunrpc/auth_unix.c: Likewise.
6013         * sunrpc/key_call.c: Likewise.
6014         * sunrpc/clnt_gen.c: Likewise.
6015         * sunrpc/pm_getmaps.c: Likewise.
6016         * sunrpc/clnt_simp.c: Likewise.
6017         * sunrpc/pmap_clnt.c: Likewise.
6018         * sunrpc/svc_run.c: Likewise.
6019         * sunrpc/svc.c: Likewise.
6020         * sunrpc/svc_simple.c: Likewise.
6021         * sunrpc/pm_getport.c: Likewise.
6022         * sunrpc/auth_des.c: Likewise.
6023         * sunrpc/svc_auth.c: Likewise.
6024         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6025         __register_frame_info_table_bases, __deregister_frame_info_bases):
6026         Add INTDEF.
6027         (__register_frame_info_bases_internal,
6028         __register_frame_info_table_bases_internal,
6029         __deregister_frame_info_bases_internal): Add prototypes.
6030         (__register_frame_info, __register_frame): Use INTUSE in call to
6031         __register_frame_info_bases.
6032         (__register_frame_info_table): Similarly.
6033         (__deregister_frame_info, __deregister_frame): Similarly.
6034         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6035         sendto as weak alias.
6036         * sysdeps/mach/hurd/sendto.c: Likewise.
6037         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6038         recvfrom as weak alias.
6039         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6040         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6041         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6042         recvmsg as weak alias.
6043         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6044         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6045         sendmsg as weak alias.
6046         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6047         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6048         setsockopt, add setsockopt as weak alias.
6049         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6050         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6051         weak alias.
6052         * sysdeps/mach/hurd/bind.c: Likewise.
6053         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6054         as weak alias.
6055         * sysdeps/mach/hurd/listen.c: Likewise.
6056         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6057         getsockname, add getsockname as weak alias.
6058         * sysdeps/mach/hurd/getsockname.c: Likewise.
6059         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6060         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6061         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6062         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6063         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6064         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6065         Add aliases.
6066         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6067         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6068         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6069         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6070         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6071         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6072         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6073         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6074         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6075         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6076         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6077         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6079 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6081         * locale/programs/localedef.h (show_archive_content): Add verbose
6082         argument.
6083         * locale/programs/localedef.c (main): Adjust caller.
6084         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6085         types.
6086         (nameentcmp, dataentcmp): New functions.
6087         (xstrcmp): Remove.
6088         (show_archive_content): Print verbose listing with --list-archive -v.
6090 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6092         * locale/programs/locarchive.c (open_archive): Take extra argument
6093         readonly.  If true open file with O_RDONLY and don't create the
6094         archive if it doesn't exist.
6095         Adapt all callers.
6096         (close_archive): Don't do anything if fd element is -1.
6097         * locale/programs/localedef.h (open_archive): Adjust prototype.
6098         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6099         call.
6101         * malloc/malloc.c (__posix_memalign): Correct check for size of
6102         alignment value [PR libc/3444].
6104         * include/stdio.h: Remove references to old stdio implementation.
6106         * libio/Makefile (bug-ungetwc2-ENV): Define.
6108 2002-05-13  Roland McGrath  <roland@frob.com>
6110         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6112         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6114 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6116         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6117         Allocate three, not two, more than LEN when appending '/.'.
6118         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6119         if NAME ends with '/.' if it is shorter than 2 chars.
6121 2002-05-12  Roland McGrath  <roland@frob.com>
6123         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6124         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6126         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6127         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6129 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6131         * sysdeps/ia64/Makefile: Remove extra endif.
6132         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6134 2002-05-10  Andreas Schwab  <schwab@suse.de>
6136         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6138 2002-05-09  Andreas Jaeger  <aj@suse.de>
6140         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6141         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6142         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6144         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6145         * sysdeps/wordsize-64/glob.c: ...here.
6146         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6147         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6148         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6150 2002-05-08  Roland McGrath  <roland@frob.com>
6152         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6153         O_NOTRANS flag in "." lookup.
6155 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6157         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6159 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6161         * locale/duplocale.c (__duplocale): Update special members only
6162         when allocation succeeded.
6164 2002-05-03  Roland McGrath  <roland@frob.com>
6166         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6167         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6169 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6171         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6172         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6173         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6174         * sysdeps/ia64/ia64libgcc.S: New file.
6176 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6178         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6180         * malloc/memusage.c: Distinguish anonymous mmap.
6182 2002-05-01  Roland McGrath  <roland@frob.com>
6184         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6185         and use INTDEF on it.
6186         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6188         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6190         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6192 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6194         * malloc/memusage.c: Add support for tracking mmap & friends.
6195         * malloc/memusage.sh: Implement -m/--mmap option.
6197 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6199         * locale/programs/locarchive.c (create_archive): Add archivefname
6200         argument, create fname from it.
6201         (enlarge_archive): Honour output_prefix.
6202         (open_archive): Likewise.
6204 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6206         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6207         too many stpcpy macros.
6209 2002-04-26  Bruno Haible  <bruno@clisp.org>
6211         * locale/programs/ld-collate.c (collate_read): Cast first argument
6212         for "%.*s" to int.
6214 2002-04-26  Bruno Haible  <bruno@clisp.org>
6216         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6217         __dcngettext_internal): New declarations.
6218         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6219         attribute declarations.
6221 2002-04-30  Roland McGrath  <roland@frob.com>
6223         Removed old GNU stdio implementation; GNU libio is now the only option.
6224         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6225         Define USE_IN_LIBIO unconditionally.
6226         * configure: Regenerated.
6227         * Makeconfig (stdio): Set to libio by default.
6228         * config.make.in (stdio): Variable removed.
6229         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6230         * sysdeps/unix/sysv/linux/configure: Regenerated.
6231         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6232         * sysdeps/mach/hurd/configure: Regenerated.
6233         * stdio/.cvsignore: File removed.
6234         * stdio/Makefile: File removed.
6235         * stdio/Versions: File removed.
6236         * stdio/__fbufsize.c: File removed.
6237         * stdio/__flbf.c: File removed.
6238         * stdio/__fpending.c: File removed.
6239         * stdio/__fpurge.c: File removed.
6240         * stdio/__freadable.c: File removed.
6241         * stdio/__freading.c: File removed.
6242         * stdio/__fsetlocking.c: File removed.
6243         * stdio/__fwritable.c: File removed.
6244         * stdio/__fwriting.c: File removed.
6245         * stdio/clearerr.c: File removed.
6246         * stdio/fclose.c: File removed.
6247         * stdio/fcloseall.c: File removed.
6248         * stdio/feof.c: File removed.
6249         * stdio/ferror.c: File removed.
6250         * stdio/fflush.c: File removed.
6251         * stdio/fgetc.c: File removed.
6252         * stdio/fgetpos.c: File removed.
6253         * stdio/fgets.c: File removed.
6254         * stdio/fileno.c: File removed.
6255         * stdio/fmemopen.c: File removed.
6256         * stdio/fopen.c: File removed.
6257         * stdio/fopncook.c: File removed.
6258         * stdio/fputc.c: File removed.
6259         * stdio/fputs.c: File removed.
6260         * stdio/fread.c: File removed.
6261         * stdio/freopen.c: File removed.
6262         * stdio/fseek.c: File removed.
6263         * stdio/fsetpos.c: File removed.
6264         * stdio/ftell.c: File removed.
6265         * stdio/fwrite.c: File removed.
6266         * stdio/getc.c: File removed.
6267         * stdio/getchar.c: File removed.
6268         * stdio/getdelim.c: File removed.
6269         * stdio/gets.c: File removed.
6270         * stdio/glue.c: File removed.
6271         * stdio/internals.c: File removed.
6272         * stdio/linewrap.c: File removed.
6273         * stdio/linewrap.h: File removed.
6274         * stdio/memstream.c: File removed.
6275         * stdio/newstream.c: File removed.
6276         * stdio/obstream.c: File removed.
6277         * stdio/putc.c: File removed.
6278         * stdio/putchar.c: File removed.
6279         * stdio/puts.c: File removed.
6280         * stdio/rewind.c: File removed.
6281         * stdio/setbuf.c: File removed.
6282         * stdio/setbuffer.c: File removed.
6283         * stdio/setlinebuf.c: File removed.
6284         * stdio/setvbuf.c: File removed.
6285         * stdio/stdio.h: File removed.
6286         * stdio/ungetc.c: File removed.
6287         * stdio/vasprintf.c: File removed.
6288         * stdio/vscanf.c: File removed.
6289         * stdio/vsnprintf.c: File removed.
6290         * stdio/vsprintf.c: File removed.
6291         * stdio/vsscanf.c: File removed.
6292         * sysdeps/generic/defs.c: File removed.
6293         * sysdeps/generic/fdopen.c: File removed.
6294         * sysdeps/generic/pipestream.c: File removed.
6295         * sysdeps/generic/stdio_init.c: File removed.
6296         * sysdeps/generic/sysd-stdio.c: File removed.
6297         * sysdeps/generic/vdprintf.c: File removed.
6298         * sysdeps/mach/hurd/defs.c: File removed.
6299         * sysdeps/mach/hurd/fdopen.c: File removed.
6300         * sysdeps/mach/hurd/pipestream.c: File removed.
6301         * sysdeps/mach/hurd/stdio_init.c: File removed.
6302         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6303         * sysdeps/mach/hurd/vdprintf.c: File removed.
6304         * sysdeps/posix/defs.c: File removed.
6305         * sysdeps/posix/fdopen.c: File removed.
6306         * sysdeps/posix/pipestream.c: File removed.
6307         * sysdeps/posix/stdio_init.c: File removed.
6308         * sysdeps/posix/vdprintf.c: File removed.
6309         * sysdeps/unix/pipestream.c: File removed.
6310         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6311         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6312         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6314 2002-04-29  Roland McGrath  <roland@frob.com>
6316         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6318 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6320         * sysdeps/generic/tls.h: Describe what must be defined.
6322         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6323         glob_in_dir [PR libc/3385].
6324         * posix/globtest.sh: Add test case.
6326         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6327         //TRANSLIT twice.
6329 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6331         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6332         _internal symbol handling.
6333         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6335 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6337         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6338         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6340 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6342         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6343         not _LIBC and RE_ENABLE_I18N.
6344         (build_range_exp): Implement for not _LIBC.
6345         (build_collating_symbol): Likewise.
6346         (parse_bracket_exp): Unify redundant error handlings.
6347         Don't erase mbcset for non matching list in multibyte envs.
6348         (build_word_op): Add '_' to matching list for \w operator.
6349         * posix/regex_internal.c (re_string_construct): Invoke
6350         build_upper_buffer in case of not RE_ENABLE_I18N.
6351         (re_string_reconstruct): Don't touch cur_state in case of not
6352         RE_ENABLE_I18N.
6353         * posix/regex_internal.h (attribute_hidden): New macro in case of
6354         not _LIBC.
6355         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6356         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6357         RE_ENABLE_I18N.
6358         (transit_state_mb): Likewise.
6359         (check_node_accept_bytes): Implement the code evaluating range
6360         expression in case of not _LIBC.
6361         (find_collation_sequence_value): Hide in case of not _LIBC.
6363 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6365         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6366         i386/semctl.c.
6367         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6368         be used.
6370 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6372         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6374         * sysdeps/ia64/strncpy.S: Fix recovery code.
6375         Patch by David Mosberger <davidm@hpl.hp.com>.
6377 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6379         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6380         GLIBC_2.2.6.
6382 2002-04-14  Bruno Haible  <bruno@clisp.org>
6384         * posix/regex.c (re_max_failures): Add back symbol for binary
6385         compatibility.
6387 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6389         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6390         of buffer building functions.
6391         * posix/regex_internal.c (re_string_allocate): New function.
6392         (re_string_realloc_buffers): New function.
6393         (re_string_skip_chars): New function.
6394         (re_string_reconstruct): New function.
6395         (re_string_construct): Adapt it to new interface of buffer building
6396         functions.
6397         (re_string_construct_common): Likewise.
6398         (build_wcs_buffer): Likewise.
6399         (build_wcs_upper_buffer): Likewise.
6400         (build_upper_buffer): Likewise.
6401         (re_string_translate_buffer): Likewise.
6402         (re_string_context_at): Adapt it to variable length buffers.
6403         * posix/regex_internal.h (re_string_t): Add new fields to handle
6404         variable length buffers.
6405         (re_match_context_t): Likewise.
6406         * posix/regexec.c (re_search_internal): Adapt it to new interface
6407         of re_string_t and re_match_context_t.
6408         (acquire_init_state_context): Likewise.
6409         (check_matching): Likewise.
6410         (check_halt_state_context): Likewise.
6411         (proceed_next_node): Likewise.
6412         (set_regs): Likewise.
6413         (sift_states_backward): Likewise.
6414         (clean_state_log_if_need): Likewise.
6415         (sift_states_iter_mb): Likewise.
6416         (sift_states_iter_bkref): Likewise.
6417         (add_epsilon_backreference): Likewise.
6418         (transit_state): Likewise.
6419         (transit_state_sb): Likewise.
6420         (transit_state_mb): Likewise.
6421         (transit_state_bkref): Likewise.
6422         (transit_state_bkref_loop): Likewise.
6423         (check_node_accept): Likewise.
6424         (match_ctx_init): Likewise.
6425         (extend_buffers): New function.
6427 2002-04-21  Bruno Haible  <bruno@clisp.org>
6429         * iconvdata/tst-table.sh: For the second check, use the truncated
6430         GB18030 charmap table, like for the first check.
6432 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6434         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6435         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6437 2002-04-23  H.J. Lu  <hjl@gnu.org>
6439         * include/math.h (isfinite): Fix a typo.
6441 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6443         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6444         which is created by the test suite.
6446 2002-04-20  Bruno Haible  <bruno@clisp.org>
6448         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6449         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6451 2002-04-20  Bruno Haible  <bruno@clisp.org>
6453         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6454         to avoid gcc warning.
6456 2002-04-20  Bruno Haible  <bruno@clisp.org>
6458         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6459         of data->__statep->__count.
6461 2002-04-20  Bruno Haible  <bruno@clisp.org>
6463         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6464         tag characters.
6465         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6467 2002-04-24  Roland McGrath  <roland@frob.com>
6469         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6470         use END macro instead of our own .end directive.
6471         Use `callsys' insn mnemonic instead of `call_pal'.
6473         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6475         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6476         macro; we need this for Hurd.
6478         Log entry was missing for 2002/03/24 commit of rev 1.8,
6479         goes with 2002-03-17 changes.
6480         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6481         (sysdep_routines): Append ioperm here.
6482         (sysdep_headers): Append sys/io.h here.
6484 2002-04-23  Roland McGrath  <roland@frob.com>
6486         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6487         * sysdeps/mach/hurd/sendto.c: Likewise.
6488         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6489         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6490         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6492 2002-04-22  Roland McGrath  <roland@frob.com>
6494         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6495         failure from i386_io_perm_* RPCs to ENOSYS.
6497 2002-04-22  Andreas Jaeger  <aj@suse.de>
6499         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6501         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6503         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6504         register instead of destroying %rbx.
6506 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6508         * string/string.h: Declare strerror_r also for XPG6.
6510 2002-04-19  Roland McGrath  <roland@frob.com>
6512         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6514 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6516         * Makefile: Add handling of xtests and xcheck targets.
6517         * MakeTAGS: Likewise.
6518         * Makeconfig: Likewise.
6519         * Makerules: Likewise.
6520         * Rules: Likewise.
6521         * manual/Makefile: Likewise.
6522         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6523         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6525 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6527         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6528         authnone_private_s.
6529         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6530         Delete #ifdef _RPC_THREAD_SAFE_ block.
6531         (authnone_private): Make a struct, not a pointer to struct.
6532         (authnone_private_guard): New once-control variable.
6533         (authnone_create_once): New function, split out of
6534         authnone_create.  No need to allocate memory.
6535         (authnone_create): Just call authnone_create_once via
6536         __libc_once, then return &authnone_private->no_client.
6537         (authnone_marshal): Access private data via CLIENT argument,
6538         not authnone_private pointer.
6539         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6540         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6541         authnone_private_s.
6543 2002-04-12  H.J. Lu  <hjl@gnu.org>
6545         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6547 2002-04-18  Bruno Haible  <bruno@clisp.org>
6549         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6550         FROM_DIRECTION): Make the FROM direction stateless.
6551         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6552         FROM_DIRECTION): Likewise.
6554 2002-04-15  Bruno Haible  <bruno@clisp.org>
6556         * iconvdata/JISX0213.TXT: New file.
6557         * iconvdata/jisx0213.h: New file.
6558         * iconvdata/jisx0213.c: New file.
6559         * iconvdata/euc-jisx0213.c: New file.
6560         * iconvdata/shift_jisx0213.c: New file.
6561         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6562         * iconvdata/EUC-JISX0213.precomposed: New file.
6563         * iconvdata/SHIFT_JISX0213.precomposed: New file.
6564         * iconvdata/SHIFT_JISX0213.irreversible: New file.
6565         * iconvdata/tst-table-to.c (main): Make it work for encodings for
6566         which the "to" direction is stateful.
6567         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6568         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6569         SHIFT_JISX0213.
6570         (libJISX0213-routines): New variable.
6571         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6572         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6573         (LDFLAGS-libJISX0213.so): New variable.
6574         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6575         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6576         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6578 2002-04-15  Bruno Haible  <bruno@clisp.org>
6580         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6581         uint32_t.  Update to Unicode 3.2.
6582         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6583         (BODY for TO_LOOP): Handle the ASCII range specially.
6584         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6585         * iconvdata/testdata/BIG5HKSCS: Remove a character.
6586         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6588 2002-04-15  Bruno Haible  <bruno@clisp.org>
6590         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6591         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6593 2002-04-15  Bruno Haible  <bruno@clisp.org>
6595         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6596         (ucs4_to_cns11643): Update.
6597         * iconvdata/cns11643.c: Update to Unicode 3.2.
6598         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6599         __cns11643_from_ucs4p2_tab): Regenerated.
6600         (__cns11643_from_ucs4p2c_tab): New array.
6601         * iconvdata/cvs11643l1.c: Update comments.
6602         * iconvdata/EUC-TW.irreversible: Remove two entries.
6604 2002-04-15  Bruno Haible  <bruno@clisp.org>
6606         * locale/C-translit.h.in: Update to Unicode 3.2.
6607         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6608         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6610 2002-04-15  Bruno Haible  <bruno@clisp.org>
6612         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6613         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6615 2002-04-15  Bruno Haible  <bruno@clisp.org>
6617         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6618         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6619         always one byte, not 0 bytes in some cases and 2 bytes in others.
6621         * iconvdata/tst-table-from.c (main): Correct the usage message.
6623 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6625         * posix/regcomp.c (parse_expression): Fix incorrect error code.
6626         (parse_dup_op): Fix error handling like "a{}".
6627         (parse_bracket_exp): Add error handling.
6628         (fetch_number): Add error handling for "a{<very_large_number>}".
6630 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
6632         * posix/regcomp.c (parse_bracket_symbol): Add error handling
6633         in case that the symbol name is too long.
6634         (build_charclass): Handle [:lower:]/[:uppper:] correctly
6635         in case of REG_ICASE.
6637 2002-04-19  Andreas Jaeger  <aj@suse.de>
6639         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6640         <hartvige@mips.com>.
6642 2002-04-15  H.J. Lu  <hjl@gnu.org>
6644         * include/math.h (__finitel_internal): Declare only if
6645         __NO_LONG_DOUBLE_MATH is not defined.
6646         (__isinfl_internal): Likewise.
6647         (__isnanl_internal): Likewise.
6649         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6650         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6651         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6652         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6653         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6654         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6655         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6657         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6658         __fcntl_internal.
6660         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6661         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6663 2002-04-15  Bruno Haible  <bruno@clisp.org>
6665         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6666         (BODY for TO_LOOP): Likewise.
6667         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6668         * iconvdata/tst-table.sh: Add support for encodings which contain
6669         precomposed Unicode characters, known to the iconv converter in both
6670         directions but not listed in the charmap.
6671         * iconvdata/IBM856.irreversible: New file.
6672         * iconvdata/IBM922.irreversible: New file.
6673         * iconvdata/IBM1132.irreversible: New file.
6674         * iconvdata/IBM1133.irreversible: New file.
6675         * iconvdata/IBM1160.irreversible: New file.
6676         * iconvdata/IBM1161.irreversible: New file.
6677         * iconvdata/IBM1163.irreversible: New file.
6678         * iconvdata/IBM1164.irreversible: New file.
6679         * iconvdata/ARMSCII-8.irreversible: New file.
6680         * iconvdata/TCVN5712-1.precomposed: New file.
6681         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6682         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6683         ARMSCII-8, TCVN5712-1.
6684         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6685         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6686         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6687         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6689 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6691         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
6692         for EVENING69.  Include offsets in TZ environment variable.
6694 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
6696         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6697         avoid compiler warnings.
6699         * locale/programs/localedef.c (main): Always call
6700         construct_output_path.
6702         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6704         * locale/programs/locfile.c (to_archive): New variable.  To collect
6705         data which has to be added to the locale archive.
6706         (write_all_categories): Take new third parameter with locale name.
6707         Unless no_archive flag set add new locale data to the archive
6708         (write_locale_data): Unless no-archive flag set store generated data
6709         in to_archive data structure instead of generation output file.
6710         Add new parameter with locale category index.
6711         * locale/programs/locfile.h: Add new parameters in declaractions of
6712         write_all_categories and write_locale_data.
6713         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6714         --add-to-archive, and --delete-from-archive options.  Pass extra
6715         parameter to write_all_categories.
6716         * locale/programs/localedef.h: Add prototypes for functions in
6717         locarchive.c.
6718         * locale/locarchive.h: New file.
6719         * locale/programs/locarchive.c: New file.
6720         * locale/Makefile (distribute): Add programs/locarchive.c and
6721         locarchive.h.
6722         (localedef-modules): Add md5 and locarchive.
6723         Add vpath to crypt subdir for md5.c.
6725         * locale/programs/ld-address.c: Pass locale category ID as new second
6726         parameter to write_locale_data.
6727         * locale/programs/ld-collate.c: Likewise.
6728         * locale/programs/ld-ctype.c: Likewise.
6729         * locale/programs/ld-identification.c: Likewise.
6730         * locale/programs/ld-measurement.c: Likewise.
6731         * locale/programs/ld-messages.c: Likewise.
6732         * locale/programs/ld-monetary.c: Likewise.
6733         * locale/programs/ld-name.c: Likewise.
6734         * locale/programs/ld-numeric.c: Likewise.
6735         * locale/programs/ld-paper.c: Likewise.
6736         * locale/programs/ld-telephone.c: Likewise.
6737         * locale/programs/ld-time.c: Likewise.
6739         * locale/simple-hash.c: Move compute_hashval function from here...
6740         * locale/hashval.h: ...to here.  New file.
6741         * locale/simple-hash.h: Add prototype for compute_hashval.
6743         * include/libintl.h: Minor cleanups.
6745 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
6747         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6749 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
6751         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
6753 2002-04-14  Bruno Haible  <bruno@clisp.org>
6755         * locale/programs/charmap.c (charmap_read): Don't access result if
6756         result == NULL.
6758 2002-02-17  Andreas Schwab  <schwab@suse.de>
6760         * elf/reldep7.c: New file.
6761         * elf/reldep7mod1.c: New file.
6762         * elf/reldep7mod2.c: New file.
6763         * elf/Makefile: Add rules to build and run reldep7.
6765 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
6767         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6768         the end of the function.  Pass original flags to recursive call if
6769         add_dependency failed.
6770         (_dl_lookup_versioned_symbol): Likewise.
6772 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
6774         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6775         early, but check whether it overflowed afterwards.
6776         * time/tst-mktime.c (main): Add new tests.
6778 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
6780         * debug/xtrace.sh: Fix program name in help message.
6781         Patch by Roger Luethi <rl@hellgate.ch>.
6783         * include/sys/stat.h: Add prototypes for __lxstat_internal and
6784         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
6785         NOT_IN_libc.
6786         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6787         * sysdeps/mach/hurd/lxstat.c: Likewise.
6788         * sysdeps/unix/common/lxstat.c: Likewise.
6789         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6790         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6791         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6792         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6793         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6794         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6795         * sysdeps/mach/hurd/lxstat64.c: Likewise.
6796         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6797         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6799         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6800         prototypes.  Add __mbrlen and __mbrtowc macros.
6801         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6802         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6804         * include/unistd.h: Add prototype for __write_internal and add
6805         __libc_write macro is SHARED.
6806         * sysdeps/generic/write.c: Use INTDEF for __write.
6807         * sysdeps/mach/hurd/write.c: Likewise.
6808         * sysdeps/unix/sysv/aix/write.c: Likewise.
6809         * sysdeps/unix/syscalls.list: Add __libc_write alias.
6811         * assert/assert.c: Replace STR_N_SIZE with something usable in
6812         macro arguments.
6813         * assert/assert-perr.c: Likewise.
6815         * include/sys/socket.h: Declare __libc_sa_len_internal and define
6816         SA_LEN macro to use it if not NOT_IN_libc.
6817         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6819         * include/fcntl.h: Declare __open_internal and define __open and
6820         __libc_open macros if not NOT_IN_libc.
6821         * sysdeps/generic/open.c: Use INTDEF for __open.
6822         * sysdeps/mach/hurd/open.c: Likewise.
6823         * sysdeps/unix/sysv/aix/open.c: Likewise.
6824         * sysdeps/unix/syscalls.list: Add __open_internal alias.
6826         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6827         has correct number.
6829         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6830         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6831         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6832         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6834         * include/wctype.h: Declare __iswalpha_l_internal,
6835         __iswdigit_l_internal, __iswspace_l_internal,
6836         __iswxdigit_l_internal, and __iswctype_internal.  Define
6837         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6838         __iswxdigit_l macros if not NOT_IN_libc.
6839         * wctype/iswctype.c: Use INTDEF for __iswctype.
6840         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6842         * include/math.h: Declare __isinf_internal, __isinfl_internal,
6843         __isnan_internal, and __isnanl_internal.
6844         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6845         __isnan, and __isnanl.
6846         * stdio-common/printf_size.c: Likewise.
6847         * sysdeps/generic/printf_fphex.c: Likewise.
6848         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6849         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6850         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6851         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6852         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6853         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6854         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6855         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6856         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6857         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6858         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6859         * sysdeps/m68k/s_isinfl.c: Likewise.
6860         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6861         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6863         * include/sys/time.h: Declare __gettimeofday_internal and define
6864         __gettimeofday macro if not NOT_IN_libc.
6865         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6866         * sysdeps/mach/gettimeofday.c: Likewise.
6867         * sysdeps/posix/gettimeofday.c: Likewise.
6868         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6869         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6870         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6871         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6873         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6874         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6875         Remove __lstat and __fstat inline functions.
6876         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6877         * sysdeps/mach/hurd/fxstat.c: Likewise.
6878         * sysdeps/unix/fxstat.c: Likewise.
6879         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6880         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6881         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6882         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6883         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6884         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6885         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6886         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6887         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6889         * include/unistd.h: Declare __getpid_internal and define
6890         __getpid macro if not NOT_IN_libc.
6891         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6892         * sysdeps/generic/getpid.c: Likewise.
6893         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6894         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6896         * include/unistd.h: Declare __getpgid_internal and define
6897         __getpgid macro if not NOT_IN_libc.
6898         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6899         * sysdeps/mach/hurd/getpgid.c: Likewise.
6900         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6901         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6902         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6903         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6905         * include/unistd.h: Declare __getpagesize_internal and define
6906         __getpagesize macro if not NOT_IN_libc.
6907         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6908         __getpagesize.
6909         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6910         * sysdeps/mach/getpagesize.c: Likewise.
6911         * sysdeps/posix/getpagesize.c: Likewise.
6912         * sysdeps/unix/getpagesize.c: Likewise.
6913         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6914         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6915         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6916         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6918 2002-04-13  Andreas Jaeger  <aj@suse.de>
6920         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6921         as clobber to reduce register pressure.
6922         (__strpbrk_cg): Likewise.
6923         (__mempcpy_by4): Likewise.
6924         (__strstr_cg): Likewise.
6925         Add prototype for __memrchr.
6927 2002-04-13  Andreas Schwab  <schwab@suse.de>
6929         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6930         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6931         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6933 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
6935         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
6936         check whether the caller prefers getting the most recent version of
6937         a symbol of the earliest version.
6938         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
6939         _dl_do_lookup to also take the new parameter and pass it on.
6940         Change 'explicit' parameter of _dl_lookup_symbol and
6941         _dl_lookup_versioned_symbol to flags.  Adjust tests.
6942         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6943         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6944         _dl_lookup_versioned_symbol.
6945         * elf/dl-reloc.c: Likewise.
6946         * elf/dl-runtime.c: Likewise.
6947         * elf/dl-sym.c: Likewise.
6948         * sysdeps/mips/dl-machine.h: Likewise.
6950 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6952         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6953         in a token.
6954         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6956 2002-04-10  Andreas Jaeger  <aj@suse.de>
6958         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6960         * include/argz.h: Remove extra char from last patch.
6962 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
6964         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
6965         * sysdeps/unix/sysv/aix/chown.c: Likewise.
6966         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
6967         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
6968         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6969         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
6970         __chown_internal.
6971         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6973         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
6974         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
6975         * intl/ngettext.c: Likewise.
6977         * include/sys/socket.h: Declare __connect_internal and define
6978         __connect macro if not NOT_IN_libc.
6979         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
6980         * sysdeps/unix/sysv/aix/connect.c: Likewise.
6981         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
6983         * include/unistd.h: Declare __close_internal and define __close macro
6984         if not NOT_IN_libc.
6985         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
6986         WJUMP3): Add extra parenthesis to avoid expanding element names with
6987         macors like __close.
6988         * sysdeps/unix/syscalls.list: Add __close_internal alias.
6990         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
6991         if not NOT_IN_libc.
6992         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
6993         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
6994         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
6996         * include/unistd.h: Declare __fork_internal and define __fork macro
6997         if not NOT_IN_libc.
6998         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
6999         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7000         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7002         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7003         __fsetlocking macro to use it if not NOT_IN_libc.
7004         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7006         * libio/__fbufsize.c: Correct copyright.
7007         * libio/__flbf.c: Likewise.
7008         * libio/__fpending.c: Likewise.
7009         * libio/__fpurge.c: Likewise.
7010         * libio/__freadable.c: Likewise.
7011         * libio/__freading.c: Likewise.
7012         * libio/__fsetlocking.c: Likewise.
7013         * libio/__fwritable.c: Likewise.
7014         * libio/__fwriting.c: Likewise.
7016         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7017         macro to use it if not NOT_IN_libc.
7018         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7020         * include/mntent.h: Declare __setmntent_internal,
7021         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7022         __getmntent_r, and __endmntent macros to use these functions if not
7023         NOT_IN_libc.
7024         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7025         __endmntent.
7027         * include/math.h: Declare __finite_internal, __finitef_internal, and
7028         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7029         these functions.
7030         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7031         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7032         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7033         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7034         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7035         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7036         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7037         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7038         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7039         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7041         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7042         to use this function if not NOT_IN_libc.
7043         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7044         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7045         * sysdeps/mach/hurd/fcntl.c: Likewise.
7046         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7047         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7049         * include/argz.h: Declare __argz_count_internal and
7050         __argz_stringify_internal.
7051         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7052         __argz_stringify.
7053         * string/argz-count.c: Use INTDEF for __argz_count.
7054         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7056         * include/stdlib.h: Declare __cxa_atexit_internal and define
7057         __cxa_atexit macro if not NOT_IN_libc.
7058         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7059         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7061         * assert/assert.c: Use INTDEF for __assert_fail.
7062         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7063         * include/assert.h: Declare __assert_fail_internal.
7065         * extra-lib.mk: Mark assignment to lib with override.
7067 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7069         * Makerules: Use cppflags-iterator.mk to add defines for all test
7070         source files.
7072 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7074         * elf/elf.h: Define R_SH_TLS_xxx macros.
7075         * elf/rtld.c: Remove an extra parenthesis.
7076         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7077         TLS_GD macros.
7078         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7079         * sysdeps/sh/dl-lookupcfg.h: New file.
7080         * sysdeps/sh/dl-tls.h: New file.
7081         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7082         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7083         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7084         R_SH_TLS_TPOFF32 relocations.
7086 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7088         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7089         of NOT_IN_LIBC.
7090         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7091         * include/stdlib.h: Likewise.
7093 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7095         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7096         instead of _RTLD_LOCAL.
7097         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7098         * include/unistd.h: Likewise.
7099         * sysdeps/generic/ldsodefs.h: Likewise.
7101         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7102         if in libc or ld.so.
7104 2002-04-08  Andreas Jaeger  <aj@suse.de>
7106         * elf/cache.c (print_entry): Support x86-64.
7108 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7110         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7111         with one accessing the locale data structures directly.
7112         * stdio-common/printf-prs.c: Include localeinfo.h for new
7113         MB_CUR_MAX definition.
7115         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7116         is the name of the source file without extension.
7117         * Makefile (distribute): Add cppflags-iterator.mk.
7118         * cppflags-iterator.mk: New file.
7119         * extra-lib.mk: For the sources of the library run
7120         cppflags-iterator.mk.
7122         * include/libintl.h: Declare __dcgettext_internal and
7123         _libc_intl_domainname_internal.  Define __dcgettext using these
7124         two symbols if used in libc itself.
7125         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7126         _libc_intl_domainname_internal.
7127         * argp/argp-parse.c: Likewise.
7128         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7129         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7130         * intl/gettext.c: Likewise.
7131         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7132         alias.
7133         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7134         __dcgettext.
7135         * posix/regex_internal.c (gettext): Likewise.
7137 2002-04-08  Andreas Jaeger  <aj@suse.de>
7139         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7141         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7142         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7143         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7144         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7145         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7146         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7148 2002-04-08  Roland McGrath  <roland@frob.com>
7150         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7151         widening __hurd_fail value.
7153 2002-04-07  Roland McGrath  <roland@frob.com>
7155         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7156         <mach/machine/alpha_instruction.h>.
7157         (_hurd_setup_sighandler): Take proper arguments for current decls.
7158         Update code to use _hurdsig_catch_fault.
7159         Use `callsys' instruction instead of `call_pal'.
7160         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7162         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7163         (ALIGN, at, AT, fp): New macros.
7165 2002-04-06  Roland McGrath  <roland@frob.com>
7167         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7169         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7170         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7172         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7173         * sysdeps/mach/hurd/connect.c: Likewise.
7174         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7175         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7177         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7178         __msg_sig_post RPC.
7180         * hurd/catch-exc.c: Use integer_t instead of int.
7181         * hurd/hurdfault.c: Likewise.
7183         * sysdeps/mach/hurd/alpha/exc2signal.c
7184         (_hurd_exception2signal): Rewritten.
7185         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7186         (_hurd_longjmp_thread_state): Rewritten.
7188 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7190         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7191         DB_LOOKUP_FCT prototype.
7192         * nss/getXXent_r.c: Likewise.
7193         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7194         * inet/getaliasname_r.c: Likewise.
7195         * inet/getnetbyad_r.c: Likewise.
7196         * inet/getnetbynm_r.c: Likewise.
7197         * inet/getnetent_r.c: Likewise.
7198         * inet/getproto_r.c: Likewise.
7199         * inet/getprtent_r.c: Likewise.
7200         * inet/getprtname_r.c: Likewise.
7201         * inet/getrpcbyname_r.c: Likewise.
7202         * inet/getrpcbynumber_r.c: Likewise.
7203         * inet/getrpcent_r.c: Likewise.
7204         * inet/getservent_r.c: Likewise.
7205         * inet/getsrvbynm_r.c: Likewise.
7206         * inet/getsrvbypt_r.c: Likewise.
7207         * shadow/getspent_r.c: Likewise.
7208         * shadow/getspnam_r.c: Likewise.
7210         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7212         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7213         Use i686-friendly PIC code.
7214         * sysdeps/i386/elf/setjmp.S: Likewise.
7216         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7218         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7219         list.
7220         * elf/Versions: Remove it here.
7222 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7224         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7225         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7227 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7229         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7230         test just before the test runs.
7231         * intl/tst-translit.sh: Likewise.
7232         * intl/tst-codeset.sh: Likewise.
7234         * timezone/zic.c: Update from tzcode2002c.
7235         * timezone/asia: Update from tzdata2002c.
7236         * timezone/backward: Likewise.
7237         * timezone/europe: Likewise.
7238         * timezone/northamerica: Likewise.
7239         * timezone/northamerica: Likewise.
7240         * timezone/northamerica: Likewise.
7241         * timezone/southamerica: Likewise.
7242         * timezone/zone.tab: Likewise.
7244 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7246         * sysdeps/generic/brk.c (__curbrk): Declare.
7247         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7248         * sysdeps/generic/dl-sbrk.c: Likewise.
7249         * sysdeps/unix/arm/dl-brk.S: New file.
7250         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7251         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7252         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7253         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7254         * sysdeps/unix/i386/dl-brk.S: New file.
7255         * sysdeps/unix/mips/dl-brk.S: New file.
7256         * sysdeps/unix/sparc/dl-brk.S: New file.
7257         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7258         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7259         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7260         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7262 2002-04-03  Andreas Schwab  <schwab@suse.de>
7264         * Makefile (headers): Add gnu/lib-names.h here instead of
7265         install-others.
7266         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7267         installation rule.
7268         (install-headers): Add dependency on install-headers-nosubdir.
7269         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7270         instead of install-others.
7271         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7272         installation rule.
7274 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7276         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7277         Reported by Sam Roberts <sroberts@uniserve.com>.
7279 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7281         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7282         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7283         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7284         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7286 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7288         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7289         (RTLD_START): Ditto.
7290         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7291         dependency violation.
7293 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7295         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7296         all variable declarations.
7298 2002-04-04  Andreas Schwab  <schwab@suse.de>
7300         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7302 2002-04-04  Andreas Jaeger  <aj@suse.de>
7304         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7305         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7307         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7308         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7309         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7311         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7313         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7315         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7316         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7318         * configure.in: Handle all mips entries the same.
7320         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7321         * sysdeps/mips/mips3/*: Likewise.
7322         * sysdeps/mips/p40/bits/endian.h: Likewise.
7324 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7326         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7327         non-null result [PR libc/2600].
7329         * misc/tst-dirname.c: Add more tests.
7331 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7333         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7334         define a code_set_name provide one based on the filename.
7336         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7338 2001-12-28  Andreas Jaeger  <aj@suse.de>
7340         * time/mktime.c (__mktime_internal): Check for year < 70
7341         [PR libc/2738].
7343 2002-04-03  Andreas Jaeger  <aj@suse.de>
7345         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7346         shmat.
7347         Reported by Andi Kleen <ak@suse.de>.
7349 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7351         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7352         * sysdeps/generic/w_lgammaf.c: Likewise.
7353         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7355         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7356         Adjust for new output format of the backtrace functions.
7358         * misc/syslog.c (vsyslog): Only use cleanup handler if
7359         _LIBC_REENTRANT is defined [PR libc/2924].
7361         * libio/Makefile (tests): Add bug-ungetwc2.
7362         * libio/bug-ungetwc2.c: New file.
7364         * manual/install.texi: Typographical and grammatical cleanup.
7365         Patch by Dennis Grace <dgrace@us.ibm.com>.
7367         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7368         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7370         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7371         always "&".  Adjust callers.
7372         Add "_" prefix to several generated definitions.
7373         Patch by paul@serice.net [PR libc/3158].
7375 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7377         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7378         size of _dl_arm_cap_flags.
7379         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7381         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7382         Define as 8.
7384 2002-03-22  H.J. Lu  <hjl@gnu.org>
7386         * scripts/firstversions.awk: Check the first version.
7388 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7390         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7391         dependencies must be stable to work correctly.
7392         Reported by martin.lubich@datacon.at.
7394         * libio/bug-ungetwc1.c: New file.
7395         * libio/Makefile (tests): Add bug-ungetwc1.
7397         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7398         if stream was last used for writing.
7400         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7401         number [PR libc/3111].
7403         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7404         to ...
7405         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7407 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7409         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7410         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7411         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7412         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7413         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7415 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7417         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7418         dynamic tags.
7420 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7422         * sysdeps/i386/fpu/s_fabs.S: New file.
7423         * sysdeps/i386/fpu/s_fabsf.S: New file.
7424         * sysdeps/i386/fpu/s_fabsl.S: New file.
7425         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7426         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7427         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7429 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7431         * rt/tst-shm.c (do_test): Add one more test for size of shared
7432         memory object.
7434 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7436         * malloc/malloc.c: Add short description and prototypes for
7437         malloc_get_state, malloc_set_state and posix_memalign, for
7438         consistency and to avoid warnings with -Wstrict-prototypes.
7439         Reported by Andreas Jaeger <aj@suse.de>.
7441 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7443         * po/gl.po: Update from translation team.
7445 2002-03-31  Roland McGrath  <roland@frob.com>
7447         * hurd/hurdselect.c (_hurd_select): Fix
7448         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7449         Use a union rather than casts to compare mach_msg_type_t as int.
7451 2002-03-25  Roland McGrath  <roland@frob.com>
7453         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7454         check off the end of NAME when it's shorter than 2 chars.
7455         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7457 2002-03-17  Roland McGrath  <roland@frob.com>
7459         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7460         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7461         * sysdeps/mach/hurd/i386/Dist: Add them.
7462         * sysdeps/mach/hurd/i386/Versions
7463         (libc: GLIBC_2.2.6): New set, add ioperm.
7464         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7465         (mach_interface_list): Check for mach_i386.defs.
7466         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7467         * sysdeps/mach/configure: Regenerated.
7469 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7471         * po/fr.po: Update from translation team.
7473 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7475         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7476         getpriority from syscalls list.
7478 2002-03-28  Andreas Jaeger  <aj@suse.de>
7480         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7481         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7482         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7483         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7485 2002-03-27  Andreas Jaeger  <aj@suse.de>
7487         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7488         sigcontext): Follow further kernel change.
7490         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7491         kernel change.
7493         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7494         Change for struct sigcontext change.
7496         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7497         Follow changes in struct sigcontext.
7499         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7500         sysycall, use wrapper instead.
7502 2002-03-26  Andreas Jaeger  <aj@suse.de>
7504         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7505         read and write accesses as detailed as possible.
7506         (__memcpy_by2): Likewise.
7507         (__memcpy_g): Likewise.
7508         (memmove): Likewise.
7509         (memcmp): Likewise.
7510         (__memset_ccn_by4): Likewise.
7511         (__memset_ccn_by2): Likewise.
7512         (__memset_gcn_by4): Likewise.
7513         (__memset_gcn_by2): Likewise.
7514         (memchr): Likewise.
7515         (__memrchr): Likewise.
7516         (rawmemchr): Likewise.
7517         (__strlen_g): Likewise.
7518         (__strcpy_g): Likewise.
7519         (__mempcpy_by4): Likewise.
7520         (__mempcpy_by2): Likewise.
7521         (__mempcpy_byn): Likewise.
7522         (__stpcpy_g): Likewise.
7523         (__strncpy_by4): Likewise.
7524         (__strncpy_by2): Likewise.
7525         (__strncpy_byn): Likewise.
7526         (__strncpy_gg): Likewise.
7527         (__strcat_c): Likewise.
7528         (__strcat_g): Likewise.
7529         (__strncat_g): Likewise.
7530         (__strcmp_gg): Likewise.
7531         (__strncmp_g): Likewise.
7532         (__strchr_c): Likewise.
7533         (__strchr_g): Likewise.
7534         (__strchrnul_c): Likewise.
7535         (__strchrnul_g): Likewise.
7536         (__strrchr_c): Likewise.
7537         (__strrchr_g): Likewise.
7538         (__strrchr_c): Likewise.
7539         (__strrchr_g): Likewise.
7540         (__strcspn_c1): Likewise.
7541         (__strcspn_cg): Likewise.
7542         (__strcspn_g): Likewise.
7543         (__strcspn_g): Likewise.
7544         (__strspn_c1): Likewise.
7545         (__strspn_cg): Likewise.
7546         (__strspn_g): Likewise.
7547         (__strspn_g): Likewise.
7548         (__strpbrk_cg): Likewise.
7549         (__strpbrk_g): Likewise.
7550         (__strstr_cg): Likewise.
7551         (__strstr_g): Likewise.
7553         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
7554         Michal Ludvig <mludvig@suse.cz>.
7556         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7557         compatibilty, adjust for kernel changes.
7559         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7560         sigcontext): Adjust for kernel changes.
7562 2002-03-25  Andreas Jaeger  <aj@suse.de>
7564         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7565         little endian.
7566         Reported by Artur Zaprzala <zybi@talex.com.pl>.
7568 2002-03-24  Andreas Jaeger  <aj@suse.de>
7570         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7572         * stdio-common/tst-fdopen.c (main): Remove unused variable.
7574         * iconv/tst-iconv3.c (main): Use correct printf strings.
7576 2002-03-18  Roland McGrath  <roland@frob.com>
7578         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7579         (CMGROUP_MAX): New macro.
7581 2002-03-23  Roland McGrath  <roland@frob.com>
7583         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7584         * sysdeps/posix/shm_unlink.c: Likewise.
7586 2002-03-22  Roland McGrath  <roland@frob.com>
7588         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7589         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7590         under --enable-libio.
7591         * sysdeps/mach/hurd/configure: Regenerated.
7593 2002-03-23  Roland McGrath  <roland@frob.com>
7595         * sysdeps/mach/hurd/i386/Makefile
7596         (sysdep_routines, shared-only-routines): Don't add framestate,
7597         reverting 2001-10-02 change.
7598         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7599         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7600         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7601         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7602         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7603         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7604         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7605         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7606         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7607         Do it here instead, only if [$(unwind-find-fde) = yes].
7609 2002-03-23  Andreas Jaeger  <aj@suse.de>
7611         * signal/signal.h: Fix typo. Patch by Steve Kemp
7612         <skx@tardis.ed.ac.uk>.
7614 2002-03-22  Andreas Jaeger  <aj@suse.de>
7616         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7617         getresuid.
7619         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7620         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7621         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7622         user_fpregs_struct): Rename fwd.
7624         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7625         Follow sigcontext changes.
7627 2002-03-22  Andreas Jaeger  <aj@suse.de>
7629         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
7630         changes for NaNs on MIPS.
7631         Patch by Hartvig Ekner <hartvige@mips.com>.
7633 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
7635         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7636         Use realloc if too large.
7637         (addgrbyid): Likewise.
7638         * nscd/hstcache.c (addhstbyname): Likewise.
7639         (addhstbyaddr): Likewise.
7640         (addhstbynamev6): Likewise.
7641         (addhstbyaddrv6): Likewise.
7642         * nscd/pwdcache.c (addpwbyname): Likewise.
7643         (addpwbyuid): Likewise.
7645 2002-03-21  Andreas Jaeger  <aj@suse.de>
7647         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7648         _fpstate): Add separate struct for x86-64.
7650         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7651         user_fpregs_struct): Change member names to follow kernel.
7653 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
7655         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7656         Correctly close the UDP connection right away [PR libc/3120].
7658 2002-03-20  Andreas Jaeger  <aj@suse.de>
7660         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7661         user_fpregs_struct): Fix for changed kernel struct.
7662         (struct user_regs_struct): Likewise.
7663         (struct user): Likewise.
7664         Add 32-bit x86 compatibility.
7666         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7668 2002-03-19  Andreas Jaeger  <aj@suse.de>
7670         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7672 2002-03-18  Andreas Jaeger  <aj@suse.de>
7674         * iconvdata/Makefile: Only run tests when shared libs are
7675         available.
7677 2002-03-17  Andreas Jaeger  <aj@suse.de>
7679         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7681         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7683         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7684         bits.
7686         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7687         (CAUSE_SHIFT): New macro.
7688         Patch by Hartvig Ekner <hartvige@mips.com>.
7690         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7691         * sysdeps/generic/unwind-pe.h: Likewise.
7693         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7694         type to _IO_setb.
7696         * libio/stdio.c (AL2): Define variant when visibility attribute is
7697         not supported.
7699         * include/libc-symbols.h (_INTVARDEF): Define variant when
7700         visibility attribute is not supported.
7702 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
7704         * po/fr.po: Update from translation team.
7706 2002-02-25  Bruno Haible  <bruno@clisp.org>
7708         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7710 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7712         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7713         buffers if _IO_file_attach failed.
7715         * libio/fileops.c (_IO_file_open): Close file descriptor if
7716         _IO_SEEKOFF call failed.
7718 2002-03-15  H.J. Lu  <hjl@gnu.org>
7719             Ulrich Drepper  <drepper@redhat.com>
7721         * configure.in: Check for availability of
7722         init_array/fini_array/preinit_array handling in binutils.
7723         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7724         * config.make.in (have-initfini-array): New variable.
7726 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
7728         * stdio-common/tst-printf.c (main): Comment out one test which
7729         checked the compiler's ability to fold floating-point constants
7730         but not really printf.
7731         (rfg3): Make s const.
7732         * stdio-common/tst-printf.sh: Adjust for removed test.
7734         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7735         internal function.  Adjust for internal_function calling convention.
7736         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7737         as internal_function.
7739         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7740         hidden.
7742         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7743         declaration and definition.
7744         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7745         declaration.
7746         * nss/getXXent_r.c: Likewise.
7747         * nss/nsswitch.h (db_lookup_function): Add internal_function to
7748         definition.
7750         * include/time.h: Declare __localtime_r as hidden.
7752         * include/aliases.h: Declare __getaliasent_r as hidden.
7753         * include/grp.h: Declare __getgrent_r as hidden.
7754         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7755         __getservent_r, and __getprotoent_r as hidden.
7756         * include/pwd.h: Declare __getpwent_r as hidden.
7757         * include/shadow.h: Declare __getspent_r as hidden.
7758         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7760         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7761         and __gconv_transliterate as hidden.
7762         Add internal_function to __gconv_get_path declaration.
7763         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7764         definition.  Add attribute_hidden to __gconv_read_conf definition.
7766 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
7768         * elf/rtld.c: Declare _environ as hidden.
7769         * sysdeps/generic/dl-environ.c: Likewise.
7770         * sysdeps/generic/dl-sysdep.c: Likewise.
7772         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7773         _dl_mcount_internal as hidden.
7775         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7776         * sysdeps/generic/dl-brk.c: New file.
7777         * sysdeps/generic/dl-sbrk.c: New file.
7778         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7779         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7781         * elf/dl-minimal.c (malloc): Declare _end as hidden.
7782         (__errno_location): New function.  Declare errno as hidden.
7783         * elf/rtld.c (_dl_argc): Define as hidden.
7784         (_dl_skip_args): Define as hidden.
7785         (_begin, _end): Declare as hidden.
7786         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7787         * sysdeps/generic/entry.h (_start): Declare as hidden.
7788         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7789         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7790         _dl_runtime_resolve and _dl_runtime_profile as hidden.
7791         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7793 2002-03-14  Roland McGrath  <roland@frob.com>
7795         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7797         * Makeconfig (%.v.i, %.v): New implicit rules.
7798         (preprocess-versions): Variable removed.
7799         ($(common-objpfx)shlib-versions.v.i): New target giving just the
7800         shlib-versions input files as dependencies.
7801         ($(common-objpfx)soversions.i): Depend on that instead of the input
7802         files.  Use it as input instead of using a pipeline.
7803         (postclean-generated): Append soversions.i, shlib-versions.v, and
7804         shlib-versions.v.i here.
7805         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7806         the Versions.def input files as dependencies.
7807         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7808         ($(common-objpfx)Versions.all): Depend on that instead of the input
7809         files.  Use it as input instead of using a pipeline.
7810         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7811         (postclean-generated): Append those .v and .v.i files here.
7813 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7815         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7816         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7817         Remove.
7819 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
7821         * sysdeps/generic/mp_clz_tab.c: New file.
7822         * sysdeps/i386/mp_clz_tab.c: New file.
7823         * sysdeps/hppa/mp_clz_tab.c: New file.
7824         * sysdeps/powerpc/mp_clz_tab.c: New file.
7825         * stdlib/Makefile (aux): Revert last patch.
7826         * math/Makefile (gmp-objs): Likewise.
7828 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7830         * time/strftime.c: Comment fixes for references to obsolescent
7831         standards, In most cases the simplest fix is to remove the
7832         confusing comments.  Cross-referencing all the standards properly
7833         is a bit of a pain, and it should be enough to put that info in
7834         the documentation as I did in my recent time.texi patch.
7836 2002-03-13  Paul Eggert  <eggert@twinsun.com>
7838         * manual/time.texi (Formatting Calendar Time):
7839         ISO C99 also specifies the E and O modifiers.
7840         %P is a GNU extension, and is not in ISO C99.
7841         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7842         %T is also in ISO C99.
7843         The RFC 822 example is not valid in arbitrary locales.
7844         Reword the POSIX.2 wording slightly, to make it a bit clearer
7845         that POSIX.2 formats are also supported by later POSIX versions.
7846         If a format was introduced in ISO C99 it is also required by
7847         POSIX.1-2001.
7849 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7851         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7852         _sys_nerr_internal with INTVARDEF2.
7853         * include/libc-symbols.h (INTVARDEF2): New macro.
7854         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7855         (_sys_nerr_internal): Library.
7857         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7858         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7860         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7862 2002-03-13  Wolfram Gloger  <wg@malloc.de>
7864         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7866 2002-03-02  Andreas Schwab  <schwab@suse.de>
7868         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7869         'h' flag and positional arg.
7870         * stdio-common/tst-printf.c (rfg3): New function to test
7871         positional arguments.
7872         (main): Fix some warnings.
7874 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7876         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7877         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7879 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
7881         * grp/initgroups.c (__nss_group_data): Declare as hidden.
7883         * include/locale.h (_nl_C_locobj): Declare as hidden.
7885         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7886         * time/strptime.c (_nl_C_LC_TIME): Likewise.
7888         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7890         * include/sys/gmon.h: Declare _gmonparam as hidden.
7892         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7893         (__ctype32_wctrans): Likewise.
7894         (__ctype32_width): Likewise.
7896         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7897         use of __ttyname.
7899         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7900         Define as hidden.
7901         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
7902         hidden.  Change all users of these variables.
7904         * posix/regex_internal.h (__re_error_msgid): Renamed from
7905         re_error_msgid.  Declare as hidden.
7906         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
7907         hidden.
7909         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7910         (__printf_function_table): Likewise.
7911         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7912         hidden.
7913         (__printf_function_table): Likewise.
7915         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7916         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7918         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7919         * nss/nsswitch.c: Declare _nss_*_database as hidden.
7921         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7922         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7924 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
7926         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7927         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7928         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7929         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7930         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7931         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7932         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7933         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7934         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7935         _nl_C_LC_CTYPE_width: Declare as hidden.
7936         * include/locale.h: Declare _nl_locale_file_list.
7937         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7938         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7939         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7940         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7941         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7942         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7943         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7944         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7945         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7946         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7947         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7948         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7949         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7950         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7951         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7952         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7953         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7954         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7955         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7956         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7957         _nl_C_LC_CTYPE_width, and as hidden.
7958         * locale/findlocale.c: Declare _nl_C as hidden.
7959         * locale/newlocale.c: Likewise.
7960         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
7961         _nl_locale_file_list.
7962         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
7963         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
7964         Define _nl_C_locobj as hidden.
7966         * malloc/mtrace.c (_mtrace_file): Define as hidden.
7967         (_mtrace_line): Likewise.
7969         * include/time.h: Declare __mon_yday as hidden.
7970         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
7972         * libio/libioP.h: Declare __libio_codecvt as hidden.
7973         * libio/fileops.c: Declare __libio_translit as hidden.
7974         * libio/iofwide.c: Define __libio_translit as hidden.
7976         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
7977         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
7978         * login/getutline_r.c: Likewise.
7979         * login/utmpname.c: Likewise.
7981         * login/utmp-private.h: Declare __libc_utmp_file_functions,
7982         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
7983         __libc_utmp_file_name as hidden.
7985         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
7986         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
7987         * locale/freelocale.c: Likewise.
7988         * locale/lc-time.c: Likewise.
7990         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
7991         (__libc_ptyname2): Likewise.
7992         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
7993         hidden.
7994         (__libc_ptyname2): Likewise.
7996         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
7997         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
7998         * sysdeps/generic/init-first.c: Likewise.
7999         * sysdeps/i386/init-first.c: Likewise.
8000         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8001         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8002         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8003         * sysdeps/sh/init-first.c: Likewise.
8004         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8005         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8007         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8008         (_itowa_upper_digits): Likewise.
8010         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8011         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8012         as hidden.
8014         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8015         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8016         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8017         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8019         * gmon/gmon.c (__bb_head): Define as hidden.
8020         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8022         * argp/argp-parse.c (_argp_hang): Define as static.
8024         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8025         handling in latest compilers.
8027         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8028         define alias.
8029         * libio/fileops.c (_IO_file_jumps): Likewise.
8030         * libio/stdfiles.c (_IO_list_all): Likewise.
8031         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8033         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8034         include/malloc.h.
8035         * include/malloc.h: Add __libc_malloc_initialized declaration
8036         here.  Mark variable hidden.
8037         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8039         * elf/dl-open.c (__libc_argc): Declare as hidden.
8040         (__libc_argv): Likewise.
8041         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8042         (__libc_argv): Likewise.
8043         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8044         __libc_argv as hidden.
8045         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8046         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8047         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8048         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8050         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8051         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8052         * stdlib/erand48.c: Likewise.
8053         * stdlib/jrand48.c: Likewise.
8054         * stdlib/lcong48.c: Likewise.
8055         * stdlib/lrand48.c: Likewise.
8056         * stdlib/mrand48.c: Likewise.
8057         * stdlib/nrand48.c: Likewise.
8058         * stdlib/seed48.c: Likewise.
8059         * stdlib/srand48.c: Likewise.
8061         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8062         (_itoa_lower_digits_internal): New declaration.
8063         (_itoa_upper_digits_internal): New declaration.
8064         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8065         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8066         (_itoa_upper_digits_internal): New declaration.
8067         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8068         _itoa_lower_digits.
8069         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8070         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8072         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8073         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8075         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8076         (_itowa_lower_digits): Likewise.
8077         (_itowa_upper_digits): Likewise.
8078         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8079         (_itowa_upper_digits): Likewise.
8081         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8082         not already defined.
8083         (GERMANIC_PLURAL): Declare as hidden.
8085         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8086         (attribute_hidden): Define as empty macro if not already defined.
8088         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8089         (__gconv_max_path_elem_len): Likewise.
8090         (__gconv_path_envvar): Likewise.
8092         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8093         * stdlib/Makefile (aux): Remove mp_clz_tab.
8094         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8096         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8098         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8100         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8101         _nl_category_names, _nl_category_name_sizes, _nl_current,
8102         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8104         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8105         (_nl_current_default_domain): Likewise
8106         (_nl_state_lock): Likewise.
8107         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8108         (_nl_current_default_domain): Likewise
8109         (_nl_state_lock): Likewise.
8110         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8112         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8113         (_fpioconst_pow10): Likewise.
8115         * include/time.h (_tmbuf): Add attribute_hidden.
8117         * time/tzset.c (tzstring_list): Define as static.
8119         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8120         __use_tzfile declaration.
8122         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8123         and __wcsmbs_last_locale declaration.
8125 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8127         * timezone/Makefile (tzbases): Move systemv from here...
8128         (tzlinks): to here, since the entries in systemv were all changed
8129         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8130         tested) by Peter Breitenlohner.
8132 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8134         * time/tst-posixtz.c (tests): Add new tests.
8135         (main): Test whether tzset() sets daylight properly.
8137 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8139         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8140         __tzname_cur_max setting...
8141         (tzset_internal): ...here.
8143 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8145         * time/tzset.c (compute_change): Don't return any value.
8146         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8147         (__tz_convert): But here.
8149 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8151         * manual/examples/mkfsock.c: Include <string.h> as well.
8152         Patch by Alain De Carolis <alaind@wseurope.com>.
8154 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8156         * posix/regexec.c (re_match): Fix incorrect register sizes.
8157         (re_search): Likewise.
8159 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8161         * posix/regcomp.c (regfree): Remove a disused condition.
8162         * posix/regex_internal.c (re_acquire_state): Likewise.
8163         (re_acquire_state_context): Likewise.
8164         (register_state): Remove a redundant malloc invocation.
8165         * posix/regex_internal.h: (re_state_table_entry): Simplify
8166         the structure.
8168 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8170         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8171         handling conditions.
8172         (regerror): Likewise.
8173         (regfree): Likewise.
8174         (re_compile_internal): Likewise.
8175         (init_dfa): Likewise.
8176         (init_word_char): Likewise.
8177         (create_initial_state): Likewise.
8178         (analyze): Likewise.
8179         (analyze_tree): Likewise.
8180         (duplicate_node): Likewise.
8181         (calc_eclosure): Likewise.
8182         (calc_eclosure_iter): Likewise.
8183         (parse): Likewise.
8184         (parse_reg_exp): Likewise.
8185         (parse_branch): Likewise.
8186         (parse_expression): Likewise.
8187         (parse_subexp): Likewise.
8188         (parse_dup_op): Likewise.
8189         (parse_bracket_exp): Likewise.
8190         (build_equiv_class): Likewise.
8191         (build_charclass): Likewise.
8192         (build_word_op): Likewise.
8193         (fetch_number): Likewise.
8194         (create_tree): Likewise.
8195         (duplicate_tree): Likewise.
8196         * posix/regex.c (BE): New macro.
8197         * posix/regexec.c (re_match): Add __builtin_expect to error
8198         handling conditions.
8199         (re_match_2): Likewise.
8200         (re_search): Likewise.
8201         (re_search_internal): Likewise.
8202         (check_matching): Likewise.
8203         (proceed_next_node): Likewise.
8204         (set_regs): Likewise.
8205         (sift_states_backward): Likewise.
8206         (add_epsilon_backreference): Likewise.
8207         (transit_state): Likewise.
8208         (transit_state_sb): Likewise.
8209         (transit_state_mb): Likewise.
8210         (transit_state_bkref): Likewise.
8211         (transit_state_bkref_loop): Likewise.
8212         (build_trtable): Likewise.
8213         (group_nodes_into_DFAstates): Likewise.
8214         (match_ctx_init): Likewise.
8215         (match_ctx_add_entry): Likewise.
8216         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8217         to error handling conditions.
8218         (re_string_construct_toupper): Likewise.
8219         (build_wcs_buffer): Likewise.
8220         (build_wcs_upper_buffer): Likewise.
8221         (build_upper_buffer): Likewise.
8222         (re_string_translate_buffer): Likewise.
8223         (re_node_set_alloc): Likewise.
8224         (re_node_set_init_1): Likewise.
8225         (re_node_set_init_2): Likewise.
8226         (re_node_set_init_copy): Likewise.
8227         (re_node_set_intersect): Likewise.
8228         (re_node_set_init_union): Likewise.
8229         (re_node_set_merge): Likewise.
8230         (re_node_set_insert): Likewise.
8231         (re_dfa_add_node): Likewise.
8232         (re_acquire_state): Likewise.
8233         (re_acquire_state_context): Likewise.
8234         (create_new_state_common): Likewise.
8235         (register_state): Likewise.
8236         (create_ci_new_state): Likewise.
8237         (create_cd_new_state): Likewise.
8238         (re_string_context_at): Remove redundant condition.
8240 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8242         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8244         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8246 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8248         * sysdeps/i386/elf/configure.in: Fix comment.
8250         * sysdeps/sparc/sparc64/configure.in: New file.
8251         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8252         if .dynamic comes before .got.
8253         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8255         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8256         HP_TIMING_ACCUM): Fix typos.
8258 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8260         * string/strfry.c: Add some more randomness to the seed.
8261         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8263         * po/es.po: Update from translation team.
8264         * po/fr.po: Likewise.
8266         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8268         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8269         when determining type of format.
8270         Patch by James Antill <james@anqd.org> [PR libc/2787].
8272 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8274         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8276 2002-03-11  Roland McGrath  <roland@frob.com>
8278         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8280         * Versions.def (libc): Add GLIBC_2.2.6.
8281         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8282         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8283         __errno_location instead of __hurd_errno_location, and don't inline it.
8284         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8285         * hurd/errno.c: New file.
8286         * hurd/Makefile (routines): Add errno.
8288 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8290         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8291         ridiculously large widths and precisions [PR libc/3026].
8293 2002-03-11  Andreas Jaeger  <aj@suse.de>
8295         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8296         support.
8297         Patch by Susanne Oberhauser <froh@SuSE.de>.
8299 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8301         * inet/rexec.c (ahostbuf): Define as static.
8303         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8304         (__ctype32_wctrans): Likewise.
8305         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8306         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8307         (__ctype32_wctrans): Likewise.
8308         (__ctype32_width): Likewise.
8310         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8311         They were never exported anyway.
8313         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8314         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8315         exported.
8316         * include/sys/gmon.h: Declare _gmonparam.
8318         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8319         symbols for getdents64.  They were never exported.
8321 2002-03-09  Roland McGrath  <roland@frob.com>
8323         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8324         Reported by Jon Arney <jarney1@cox.net>.
8326 2002-02-23  Roland McGrath  <roland@frob.com>
8328         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8329         declaration.
8330         (__hurd_errno_location): Function removed.
8332 2002-03-06  Andreas Jaeger  <aj@suse.de>
8334         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8335         32-bit.
8337 2002-03-04  Andreas Jaeger  <aj@suse.de>
8339         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8341         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8342         x86-64.
8344         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8346         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8348         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8350         * sysdeps/x86_64/bits/setjmp.h: New file.
8352         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8354         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8356         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8357         for x86.
8358         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8359         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8361 2002-02-28  Bo Thorsen  <bo@suse.de>
8363         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8364         version.
8366 2002-03-03  Andreas Jaeger  <aj@suse.de>
8368         * sysdeps/x86_64/bits/wordsize.h: New file.
8370         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8371         * elf/tst-tlsmod1.c: Likewise.
8373         * posix/regcomp.c: Get regex.h from include dir for internal
8374         prototypes.
8376         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8377         to libc-internal.h and include it.
8378         * include/libc-internal.h: Add __init_misc.
8380         * misc/init-misc.c: Include libc-internal.h for prototypes.
8382         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8384         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8385         _IO_putc_internal.
8387 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8389         * posix/regcomp.c: Compatibility changes to allow using the code
8390         outside glibc.
8392 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8394         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8395         compiled non-PIC.
8397 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8399         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8400         of .str elements in the returned data structure.
8402         * elf/elf.h: Add Alpha TLS bits.
8404 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8406         * sysdeps/unix/sysv/linux/nice.c: New file.
8408 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8410         * elf/Makefile (dl-routines): Add dl-origin.
8411         (elide-routines.os): Add dl-origin.
8412         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8413         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8414         _dl_debug_state.
8415         * include/libc-symbols.c: Define attribute_hidden depending on
8416         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8418         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8419         * elf/dl-load.c: Likewise.
8420         * elf/rtld.c: Likewise.
8421         * include/unistd.h: Declare __libc_enable_secure_internal.
8422         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8423         Use INTUSE with __libc_enable_secure.
8424         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8426         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8427         * elf/dl-error.c: Likewise,
8428         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8430         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8431         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8432         function definition.  Use INTDEF with _dl_get_origin.
8433         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8435         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8436         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8438         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8439         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8440         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8442         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8443         * elf/dl-deps.c: Likewise.
8444         * elf/dl-error.c: Likewise.
8445         * elf/dl-fini.c: Likewise.
8446         * elf/dl-init.c: Likewise.
8447         * elf/dl-load.c: Likewise.
8448         * elf/dl-lookup.c: Likewise.
8449         * elf/dl-reloc.c: Likewise.
8450         * elf/dl-version.c: Likewise.
8451         * elf/do-lookup.h: Likewise.
8452         * sysdeps/arm/dl-machine.h: Likewise.
8453         * sysdeps/cris/dl-machine.h: Likewise.
8454         * sysdeps/hppa/dl-machine.h: Likewise.
8455         * sysdeps/i386/dl-machine.h: Likewise.
8456         * sysdeps/m68k/dl-machine.h: Likewise.
8457         * sysdeps/powerpc/dl-machine.h: Likewise.
8458         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8459         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8460         * sysdeps/sh/dl-machine.h: Likewise.
8461         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8462         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8463         * sysdeps/x86_64/dl-machine.h: Likewise.
8464         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8465         _dl_argv[0].  Use INTUSE with _dl_argv.
8466         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8467         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8469 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8471         * elf/rtld.c (_rtld_global): Remove .protected.
8472         (_rtld_local): Strong alias to _rtld_global.
8473         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8474         only .os object.
8475         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8476         _rtld_local instead of _rtld_global.
8477         (_rtld_local): Add hidden extern, possibly in .sdata section.
8478         * configure.in: Add tests for visibility attribute and .sdata.
8479         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8480         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8481         * sysdeps/arm/dl-machine.h: Likewise.
8482         * sysdeps/generic/ldsodefs.h: Likewise.
8483         * sysdeps/hppa/dl-machine.h: Likewise.
8484         * sysdeps/cris/dl-machine.h: Likewise.
8485         * sysdeps/i386/dl-machine.h: Likewise.
8486         * sysdeps/ia64/dl-machine.h: Likewise.
8487         * sysdeps/m68k/dl-machine.h: Likewise.
8488         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8489         * sysdeps/mips/dl-machine.h: Likewise.
8490         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8491         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8492         * sysdeps/sh/dl-machine.h: Likewise.
8493         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8494         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8495         * sysdeps/x86_64/dl-machine.h: Likewise.
8497 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8499         * login/login.c (login): Always initialize ut_line field
8500         [PR libc/2991].
8502 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8504         * sysdeps/i386/Makefile (sysdep_routines): Add
8505         divdi3 in csu dir.
8506         (shared-only-routines): Likewise.
8507         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8508         (shared-only-routines): Likewise.
8509         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8510         (shared-only-routines): Likewise.
8511         * sysdeps/wordsize-32/divdi3.c: New file.
8513 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8515         * locale/iso-4217.def: Remove obsolete currencies for countries
8516         with Euro.
8518 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8520         * posix/regcomp.c (regcomp): Remove a redundant condition.
8521         (init_word_char): Add a check on malloc failure.
8522         (create_initial_state): Likewise.
8523         (duplicate_node): Likewise.
8524         (calc_eclosure): Likewise.
8525         (calc_eclosure_iter): Likewise.
8526         (parse_expression): Likewise.
8527         (parse_bracket_exp): Remove unnecessary malloc invocations.
8528         (build_equiv_class): Likewise.
8529         (build_charclass): Likewise.
8530         * posix/regex_internal.c (re_node_set_intersect): Add a check
8531         on malloc failure.
8532         (re_node_set_add_intersect): Likewise.
8533         (re_node_set_merge): Likewise.
8534         (re_acquire_state): Likewise.
8535         (re_acquire_state_context): Likewise.
8536         (create_newstate_common): Likewise.
8537         (register_state): Likewise.
8538         (create_ci_newstate): Likewise.
8539         (create_cd_newstate): Likewise.
8540         * posix/regex_internal.h: Fix prototypes of re_acquire_state
8541         and re_acquire_state_context.
8542         * posix/regexec.c (regexec): Suit it to the error handling of
8543         re_search_internal.
8544         (re_match): Likewise.
8545         (re_search): Likewise.
8546         (re_search_internal): Add a check on malloc failure.
8547         (acquire_init_state_context): Likewise.
8548         (check_matching): Likewise.
8549         (proceed_next_node): Likewise.
8550         (set_regs): Likewise.
8551         (sift_states_backward): Likewise.
8552         (sift_states_iter_bkref): Likewise.
8553         (add_epsilon_backreference): Likewise.
8554         (transit_state): Likewise.
8555         (transit_state_sb): Likewise.
8556         (transit_state_mb): Likewise.
8557         (transit_state_bkref_loop): Likewise.
8558         (build_trtable): Likewise.
8559         (group_nodes_into_DFAstates): Likewise.
8560         (match_ctx_init): Likewise.
8561         (match_ctx_add_entry): Likewise.
8563 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8565         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8566         l_libname if profiling is enabled [PR libc/2916].
8568         * sysdeps/ia64/dl-tls.h: New file.
8570 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
8572         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8573         Work around an Alpha gas bug.
8575 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
8577         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8578         uses read to load the catalog.
8579         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8581 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
8583         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8584         regex_internal.c, and regex_internal.h.
8585         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8586         * posix/regex.c: Complete rewrite.
8587         * posix/regexec.c: New file.
8588         * posix/regcomp.c: New file.
8589         * posix/regex_internal.c: New file.
8590         * posix/regex_internal.h: New file.
8591         * posix/regex.h (RE_ICASE): New macro.
8592         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8594         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8595         ungetwc.  It's a macro.
8596         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8597         implementation.
8598         Reported by Jason Merrill <jason@redhat.com>.
8600 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8602         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8603         position to fp->_offset if it is set.
8604         * stdio-common/Makefile (tests): Add tst-fdopen.
8605         * stdio-common/tst-fdopen.c: New test.
8607 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8609         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8610         * stdio-common/tst-ungetc.c (main): Add another test.
8612 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
8614         * assert/assert-perr.c: Use INTUSE to reference functions and variables
8615         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
8616         aliases.  Add prototypes for the new aliases.
8617         * assert/assert.c: Likewise.
8618         * include/libc-symbols.h: Likewise.
8619         * include/stdio.h: Likewise.
8620         * include/netinet/in.h: Likewise.
8621         * include/rpc/auth.h: Likewise.
8622         * include/rpc/auth_unix.h: Likewise.
8623         * include/rpc/key_prot.h: Likewise.
8624         * include/rpc/pmap_prot.h: Likewise.
8625         * include/rpc/pmap_rmt.h: Likewise.
8626         * include/rpc/rpc_msg.h: Likewise.
8627         * include/rpc/xdr.h: Likewise.
8628         * inet/gethstbyad_r.c: Likewise.
8629         * inet/gethstbynm2_r.c: Likewise.
8630         * inet/gethstbynm_r.c: Likewise.
8631         * inet/gethstent_r.c: Likewise.
8632         * inet/in6_addr.c: Likewise.
8633         * libio/__fpurge.c: Likewise.
8634         * libio/filedoalloc.c: Likewise.
8635         * libio/fileops.c: Likewise.
8636         * libio/ftello.c: Likewise.
8637         * libio/ftello64.c: Likewise.
8638         * libio/genops.c: Likewise.
8639         * libio/iofclose.c: Likewise.
8640         * libio/iofdopen.c: Likewise.
8641         * libio/iofflush.c: Likewise.
8642         * libio/iofflush_u.c: Likewise.
8643         * libio/iofgetpos.c: Likewise.
8644         * libio/iofgetpos64.c: Likewise.
8645         * libio/iofgets.c: Likewise.
8646         * libio/iofgets_u.c: Likewise.
8647         * libio/iofopen.c: Likewise.
8648         * libio/iofopncook.c: Likewise.
8649         * libio/iofputs.c: Likewise.
8650         * libio/iofread.c: Likewise.
8651         * libio/iofread_u.c: Likewise.
8652         * libio/iofsetpos.c: Likewise.
8653         * libio/iofsetpos64.c: Likewise.
8654         * libio/ioftell.c: Likewise.
8655         * libio/iofwrite.c: Likewise.
8656         * libio/iogetline.c: Likewise.
8657         * libio/iogets.c: Likewise.
8658         * libio/iogetwline.c: Likewise.
8659         * libio/iolibio.h: Likewise.
8660         * libio/iopadn.c: Likewise.
8661         * libio/iopopen.c: Likewise.
8662         * libio/ioseekoff.c: Likewise.
8663         * libio/ioseekpos.c: Likewise.
8664         * libio/iosetbuffer.c: Likewise.
8665         * libio/iosetvbuf.c: Likewise.
8666         * libio/ioungetc.c: Likewise.
8667         * libio/ioungetwc.c: Likewise.
8668         * libio/iovdprintf.c: Likewise.
8669         * libio/iovsprintf.c: Likewise.
8670         * libio/iovsscanf.c: Likewise.
8671         * libio/libioP.h: Likewise.
8672         * libio/memstream.c: Likewise.
8673         * libio/obprintf.c: Likewise.
8674         * libio/oldfileops.c: Likewise.
8675         * libio/oldiofclose.c: Likewise.
8676         * libio/oldiofdopen.c: Likewise.
8677         * libio/oldiofgetpos.c: Likewise.
8678         * libio/oldiofgetpos64.c: Likewise.
8679         * libio/oldiofopen.c: Likewise.
8680         * libio/oldiofsetpos.c: Likewise.
8681         * libio/oldiofsetpos64.c: Likewise.
8682         * libio/oldiopopen.c: Likewise.
8683         * libio/oldstdfiles.c: Likewise.
8684         * libio/putc.c: Likewise.
8685         * libio/setbuf.c: Likewise.
8686         * libio/setlinebuf.c: Likewise.
8687         * libio/stdfiles.c: Likewise.
8688         * libio/stdio.c: Likewise.
8689         * libio/strops.c: Likewise.
8690         * libio/vasprintf.c: Likewise.
8691         * libio/vscanf.c: Likewise.
8692         * libio/vsnprintf.c: Likewise.
8693         * libio/vswprintf.c: Likewise.
8694         * libio/wfiledoalloc.c: Likewise.
8695         * libio/wfileops.c: Likewise.
8696         * libio/wgenops.c: Likewise.
8697         * libio/wstrops.c: Likewise.
8698         * malloc/mtrace.c: Likewise.
8699         * misc/error.c: Likewise.
8700         * misc/syslog.c: Likewise.
8701         * nss/getXXbyYY_r.c: Likewise.
8702         * nss/getXXent_r.c: Likewise.
8703         * nss/hosts-lookup.c: Likewise.
8704         * stdio-common/getw.c
8705         * stdio-common/printf-prs.c: Likewise.
8706         * stdio-common/printf_fp.c: Likewise.
8707         * stdio-common/printf_size.c: Likewise.
8708         * stdio-common/putw.c: Likewise.
8709         * stdio-common/scanf.c: Likewise.
8710         * stdio-common/sprintf.c: Likewise.
8711         * stdio-common/tmpfile64.c: Likewise.
8712         * stdio-common/vfprintf.c: Likewise.
8713         * stdio-common/vfscanf.c: Likewise.
8714         * stdlib/strfmon.c: Likewise.
8715         * sunrpc/auth_des.c: Likewise.
8716         * sunrpc/auth_none.c: Likewise.
8717         * sunrpc/auth_unix.c: Likewise.
8718         * sunrpc/authdes_prot.c: Likewise.
8719         * sunrpc/authuxprot.c: Likewise.
8720         * sunrpc/clnt_perr.c: Likewise.
8721         * sunrpc/clnt_raw.c: Likewise.
8722         * sunrpc/clnt_tcp.c: Likewise.
8723         * sunrpc/clnt_udp.c: Likewise.
8724         * sunrpc/clnt_unix.c: Likewise.
8725         * sunrpc/key_call.c: Likewise.
8726         * sunrpc/key_prot.c: Likewise.
8727         * sunrpc/openchild.c: Likewise.
8728         * sunrpc/pm_getmaps.c: Likewise.
8729         * sunrpc/pm_getport.c: Likewise.
8730         * sunrpc/pmap_clnt.c: Likewise.
8731         * sunrpc/pmap_prot.c: Likewise.
8732         * sunrpc/pmap_prot2.c: Likewise.
8733         * sunrpc/pmap_rmt.c: Likewise.
8734         * sunrpc/rpc_cmsg.c: Likewise.
8735         * sunrpc/rpc_prot.c: Likewise.
8736         * sunrpc/svc_authux.c: Likewise.
8737         * sunrpc/svc_raw.c: Likewise.
8738         * sunrpc/svc_simple.c: Likewise.
8739         * sunrpc/svc_tcp.c: Likewise.
8740         * sunrpc/svc_udp.c: Likewise.
8741         * sunrpc/svc_unix.c: Likewise.
8742         * sunrpc/xdr.c: Likewise.
8743         * sunrpc/xdr_array.c: Likewise.
8744         * sunrpc/xdr_mem.c: Likewise.
8745         * sunrpc/xdr_rec.c: Likewise.
8746         * sunrpc/xdr_ref.c: Likewise.
8747         * sunrpc/xdr_stdio.c: Likewise.
8748         * sysdeps/generic/_strerror.c: Likewise.
8749         * sysdeps/generic/printf_fphex.c: Likewise.
8750         * sysdeps/generic/tmpfile.c: Likewise.
8751         * sysdeps/gnu/errlist.awk: Likewise.
8752         * sysdeps/gnu/errlist.c: Likewise.
8754         * libio/Makefile (routines): Remove iosprint.
8755         * libio/iosprintf.c: Removed
8758 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
8760         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8761         non_dynamic_init and exported now.
8762         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8763         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8764         !SHARED.
8765         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8766         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8767         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8769 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
8771         * elf/dl-close.c (free_slotinfo): Check for end of list and return
8772         true in this case.
8774         * locale/iso-639.def: Add language codes for Walloon.
8776         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8777         total number of relocations performed.
8779         * elf/sprof.c (load_profdata): If do_test provide information as
8780         to why loading failed.
8781         * elf/dl-profile.c (_dl_start_profile): Initialize all of
8782         hist_hdr.dimen.
8784         * csu/set-init.c: Moved to...
8785         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
8786         * csu/Makefile: Don't compile set-init.
8787         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8788         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8789         to __libc_init.
8790         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8791         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8792         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8793         __libc_init.
8794         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
8795         __libc_subinit.
8797 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
8799         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8800         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8801         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8802         (_dl_deallocate_tls): New function.
8803         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8804         _dl_deallocate_tls.
8806 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
8808         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8809         * stdio-common/tst-fseek.c (main): Add test for this.
8811 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
8813         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8815 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
8817         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8818         pointer before dereferencing.
8820 2002-02-18  Roland McGrath  <roland@frob.com>
8822         * sysdeps/mach/hurd/times.c: Fix typo in last change.
8824         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8825         Use task_policy in place of task_priority.
8827         * sysdeps/generic/bits/mman.h
8828         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8829         * sysdeps/mach/msync.c: New file.
8831         * sysdeps/mach/powerpc/syscall.S: New file.
8833         * mach/msg.c [MACH_MSG_OVERWRITE]
8834         (__mach_msg_trap, __mach_msg_overwrite): New functions.
8835         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8837         * sysdeps/mach/configure.in: Check for clock.defs to put into
8838         mach_interface_list.
8839         * sysdeps/mach/configure: Regenerated.
8841         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8842         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8843         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8844         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8845         (mach-shortcuts): Add device_read_overwrite_request,
8846         device_read_overwrite, vm_read_overwrite, thread_switch.
8848         * configure.in (base_machine): Set to $machine by default.
8849         * configure: Regenerated.
8851         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8852         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8853         * sysdeps/mach/configure: Regenerated.
8854         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8856         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8858         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8860         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8861         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8863 2002-02-17  Roland McGrath  <roland@frob.com>
8865         * sysdeps/mach/hurd/times.c
8866         [NO_CREATION_TIME] (startup_time): New static variable.
8867         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8868         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8869         creation_time from task_basic_info.
8870         (__times): Use __gettimeofday instead of __host_get_time.
8872         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8873         Use untyped Mach IPC message format.
8875         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8877         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8878         _S_catch_exception_raise_state_identity,
8879         _hurdsig_fault_catch_exception_raise_state,
8880         _hurdsig_fault_catch_exception_raise_state_identity.
8882         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8884         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8885         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8887         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8888         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8890         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8891         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
8892         them as no-op macros.
8893         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8894         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8896         * sysdeps/powerpc/dl-machine.h
8897         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8899         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8900         Use untyped Mach IPC message format.
8902         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8903         Handle untyped Mach IPC message formats.
8905         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8906         Expect different argument conventions when this is defined.
8907         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8908         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8909         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8910         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8911         for OSF Mach variant.
8912         (faulted): Use mig_reply_error_t for REPLY.
8913         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8914         in __thread_set_exception_ports call.
8915         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8916         __mach_port_set_attributes in place of __mach_port_set_qlimit.
8918         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8919         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8920         on Darwin, which includes bogons.
8922         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8923         variable LOADBASE so it's not declared when it's not used.
8925 2002-02-16  Roland McGrath  <roland@frob.com>
8927         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8928         to use BI.creation_time.
8930         * mach/Machrules (MIG): Add -x c to CPP value passed down.
8932         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8933         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8934         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8935         host_page_size instead of vm_statistics.
8937         * sysdeps/mach/Makefile (mach-before-compile): Don't include
8938         mach_interface.h here, since not all variants use that name.
8940         * sysdeps/mach/configure.in: Add some checks for Mach headers
8941         to ensure a sane installation.
8942         (mach_interface_list): Define this variable by checking for .defs
8943         files found in various variants.
8944         * configure.in (mach_interface_list): AC_SUBST this.
8945         * config.make.in (mach-interface-list): New substituted variable.
8946         * mach/Makefile (user-interfaces): Define this using the value
8947         of $(mach-interface-list) instead of mach, mach4.
8948         Updated other references to mach_interface to use it as well.
8950         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8952         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8953         mig_reply_error_t for OSF Mach variant.
8955         * mach/Makefile (routines): Remove bootprivport.
8956         * mach/bootprivport.c: File removed.  It has never been used.
8958         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8959         Grok the OSF flavor of message format.
8960         (mach_msg_destroy_port): For MAKE_SEND and
8961         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
8962         no-senders notification.
8964 2002-02-06  Roland McGrath  <roland@frob.com>
8966         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
8967         to here if 2.0 compatibility enabled ...
8968         (libc: GLIBC_2.1.3): ... from here.
8970 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
8972         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
8973         generation counter.
8974         * elf/dl-close.c (_dl_close): Likewise.
8976 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
8978         * elf/Makefile: Add rules to build and run tst-tls8.
8979         * elf/tst-tls8.c: New file.
8980         * elf/tst-tlsmod4.c: New file.
8982         * stdlib/test-a64l.c (tests): Add more test cases.
8984         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
8985         Reported by Walter Harms <WHarms@bfs.de>.
8987 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
8989         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
8990         definitions for struct sigcontext.
8991         Suggested by David Mosberger-Tang.
8993 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
8995         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
8996         for removing reference of module in slotinfo list.
8997         (_dl_close): Use remove_slotinfo.
8998         * sysdeps/generic/dl-tls.c: General pretty printing.
8999         (oom): Define only if SHARED.
9000         (_dl_next_tls_modid): Correct starting point for the case we assume
9001         there is a gap.  Add missing instruction grouping (doh!).  Correct
9002         tests for reaching maximum index.
9003         * elf/Makefile: Add rules to build and run tst-tls7.
9004         * elf/tst-tls7.c: New file.
9005         * elf/tst-tlsmod3.c: New file.
9007         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9008         USE_TLS.
9009         * elf/tst-tlsmod2.c: Likewise.
9011         * elf/dl-close.c (_dl_close): When closing an object using TLS
9012         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9013         true.  Increment dl_tls_generation only if we closed any TLS-using
9014         object.
9015         * elf/tst-tls6.c: New file.
9016         * elf/Makefile: Add rules to build and run tst-tls6.
9018         * po/da.po: Update from translation team.
9020         * locale/categories.def: Fix typo [PR libc/2948].
9021         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9022         [PR libc/2949].
9023         * locale/iso-4217.def: Update from official version [PR libc/2950].
9024         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9025         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9026         message if input is too confusion instead of using assert.
9027         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9028         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9030         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9031         * elf/tst-tls2.c: Likewise.
9032         * elf/tst-tls3.c: Likewise.
9034 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9036         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9038 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9040         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9041         if this is really necessary.
9043         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9044         slotinfo array.
9045         (free_mem): Free memory for the slotinfo array if possible.
9047 2002-02-12  Andreas Schwab  <schwab@suse.de>
9049         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9051 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9053         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9054         TLS_DTV_UNALLOCATE.
9055         (oom): New function.
9056         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9057         (_dl_determine_tlsoffset): Likewise.
9058         (_dl_allocate_tls): Likewise.
9059         (__TLS_GET_ADDR): Define if not already defined.
9060         (_dl_tls_symaddr): New function.
9061         (allocate_and_init): New function.
9062         (__tls_get_addr): Actually implement handling of generation counter
9063         and deferred allocation.
9064         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9065         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9066         _dl_tls_generation.
9067         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9068         Declare _dl_tls_symaddr.
9069         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9070         SHARED.
9071         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9072         l_tls_previmage.
9073         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9074         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9075         (_dl_vsym): Likewise.
9076         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9077         layout.
9078         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9079         nextimage list handling.  Instead add all modules using TLS to
9080         dl_tls_dtv_slotinfo_list.
9081         * elf/dl-open.c (dl_open_worker): After successfully loading all
9082         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9083         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9084         empty segment don't do anything.  Remove handling of initimage list.
9085         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9086         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9087         * elf/dl-minimal.c: Define __libc_memalign.
9088         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9089         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9090         _dl_tls_generation.
9091         * include/stdlib.h: Declare __libc_memalign.
9093         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9094         * elf/tst-tls4.c: New file.
9095         * elf/tst-tls5.c: New file.
9096         * elf/tst-tlsmod2.c: New file.
9098         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9100         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9102         * elf/tst-tls1.c: Use test-skeleton.c.
9103         * elf/tst-tls2.c: Likewise.
9104         * elf/tst-tls3.c: Likewise.
9106         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9108 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9110         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9112 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9114         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9116         * elf/tst-tls3.c: New file.
9117         * elf/tst-tlsmod1.c: New file.
9118         * elf/Makefile: Add rules to build and run tst-tls3.
9120         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9121         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9122         TLS relocations.
9124         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9126         * po/fr.po: Update from translation team.
9128         * elf/tls-macros.h: Add alternative macros for use in PIC.
9130         * elf/dl-lookup.c: Include <tls.h>.
9131         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9133         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9134         required by passing pointer to last element of the list.
9136         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9137         l_tls_initimage to a place where it actually is performed.
9139         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9140         after globfree() calls.
9142         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9143         (openaux): Pass open_mode as new last argument to _dl_map_object.
9144         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9145         open_mode element of args variable with it.
9146         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9147         _dl_map_object_deps.
9148         * elf/rtld.c (dl_main): Add zero as last parameter to
9149         _dl_map_object_deps call.
9150         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9151         * elf/nodlopen2.c: New file.
9152         * elf/nodlopenmod2.c: New file.
9153         * elf/Makefile: Add rules to build and run nodlopen2.
9155         * elf/tst-tls1.c: Move TLS helper macros to...
9156         * elf/tls-macros.h: ...here.  New file.
9157         * elf/tst-tls2.c: New file.
9158         * elf/Makefile (tests): Add tst-tls2.
9159         (distribute): Add tls-macros.h.
9161         * po/sv.po: Update from translation team.
9163         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9164         architecture specific definitions from the actual test code.
9166         * po/tr.po: Update from translation team.
9168 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9170         * elf/Makefile (tests): Add tst-tls1.
9171         * elf/tst-tls1.c: New file.
9173         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9174         alignment of TCB for now.
9176         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9177         initialization image for the application itself.
9179         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9180         loop to initialize TLS block.
9182 2002-02-08  Richard Henderson  <rth@redhat.com>
9184         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9185         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9187         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9189 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9191         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9193 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9195         * po/ca.po: Update from translation team.
9196         * po/sk.po: Likewise.
9198         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9199         (dl_main): Move dtv/static TLS handling before relocation.
9200         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9201         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9202         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9203         so far uses TLS initialize GL(dl_tls_static_size) and
9204         GL(dl_tls_static_align) to account for the TCB.
9205         (_dl_allocate_tls): New function.
9206         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9207         _dl_initial_dtv_malloced.
9209         * configure.in: Test for __builtin_memset more realistically.
9211         * csu/version.c (banner): If TLS support is available say so.
9213 2002-02-04  H.J. Lu  <hjl@gnu.org>
9215         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9216         __attribute_used__.
9217         (__dl_runtime_resolve): Likewise.
9219         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9220         declaration.
9222 2001-11-15  H.J. Lu  <hjl@gnu.org>
9224         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9225         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9227         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9229 2002-02-07  H.J. Lu  <hjl@gnu.org>
9231         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9232         ".set noreorder".
9233         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9234         Likewise.
9236 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9238         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9240         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9241         ___tls_get_addr_internal.
9242         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9244         * po/ko.po: Update from translation team.
9246 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9248         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9249         attribute, change __pad{1,2} type to unsigned int.
9250         (struct stat64): Remove packed attribute.
9252 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9254         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9256 2002-02-07  Andreas Schwab  <schwab@suse.de>
9258         * configure.in: Fix check for -zcombreloc.
9260 2002-02-06  H.J. Lu  <hjl@gnu.org>
9262         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9263         * configure.in: Check if __builtin_memset really works.
9264         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9265         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9267 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9269         * io/bug-ftw3.c (main): Don't try the test if root.
9271 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9273         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9274         constraints.
9275         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9276         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9277         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9278         Likewise.
9279         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9280         a weak alias for __clone.
9281         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9282         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9283         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9284         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9285         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9286         a weak alias for __mmap64.
9288 2002-02-05  H.J. Lu  <hjl@gnu.org>
9290         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9291         (atomic_add): Likewise.
9292         (compare_and_swap): Likewise.
9293         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9295 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9297         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9299         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9300         alignment of the TCB and store total size and alignment of static
9301         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9302         tls_index is a typedef.
9303         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9304         _dl_tls_static_align.
9305         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9306         * elf/dl-support.c: Define _dl_tls_static_size and
9307         _dl_tls_static_align.
9309 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9311         * configure.in: Add --without-tls option.
9312         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9313         --without-tls is given.
9315         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9317         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9319 2002-02-06  Roland McGrath  <roland@frob.com>
9321         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9322         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9324         * scripts/versions.awk: Improve error message for missing version.
9325         Each version inherits from the last one only if they have the same
9326         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9327         but not GLIBC_x and FOO_y.
9329         * scripts/firstversions.awk: Handle libraries that don't have each
9330         particular version named in the third column of shlib-versions.
9332         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9334 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9336         * Versions.def [ld]: Add GLIBC_2.3.
9337         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9338         * elf/Makefile (dl-routines): Add dl-tls.
9339         (distribute): Add dl-tls.h.
9340         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9341         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9342         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9343         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9344         along with the other info in the link map.  Change queueing of init
9345         images for double linked list.  Use _dl_next_tls_modid to compute
9346         l_tls_modid.
9347         * elf/rtld.c (_dl_start_final): Store alignment requirement
9348         along with the other info in rtld map and executable map.
9349         (dl_main): Add ld.so to the init image list if necessary.  Compute
9350         final module ID with _dl_next_tls_modid.
9351         * include/link.h (struct link_map): Add l_tls_previmage and
9352         l_tls_align.
9353         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9354         * sysdeps/i386/elf/Versions: New file.
9355         * sysdeps/generic/dl-tls.c: New file.
9356         * sysdeps/generic/dl-tls.h: New file.
9357         * sysdeps/i386/dl-tls.h: New file.
9359 2002-02-06  Roland McGrath  <roland@frob.com>
9361         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9362         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9364 2002-01-05  Roland McGrath  <roland@frob.com>
9366         * sysdeps/mach/configure.in: New file.
9367         * sysdeps/mach/configure: New generated file.
9369         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9370         It has never been used by anything.
9372 2002-02-06  H.J. Lu  <hjl@gnu.org>
9374         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9375         is included.
9377 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9379         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9380         attribute((packed)) to counter stupid people misusing gcc options.
9381         (struct stat64): Likewise.
9383 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9385         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9386         the variables which are used as booleans.
9388 2002-02-06  Andreas Jaeger  <aj@suse.de>
9390         * include/libc-symbols.h (INTUSE): Renamed from INT.
9391         * elf/dl-deps.c: Change users.
9392         * sysdeps/generic/dl-sysdep.c: Likewise.
9393         * sysdeps/generic/dl-cache.c: Likewise.
9394         * elf/dl-reloc.c: Likewise.
9395         * elf/rtld.c: Likewise.
9396         * elf/dl-version.c: Likewise.
9397         * elf/dl-load.c: Likewise.
9398         * elf/dl-dst.h: Likewise.
9399         * elf/dl-init.c: Likewise.
9400         * elf/dl-error.c: Likewise.
9401         * elf/dl-fini.c: Likewise.
9402         * elf/dl-runtime.c: Likewise.
9403         * elf/do-lookup.h: Likewise.
9405         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9406         definition.
9407         * stdio-common/_itowa.h: Likewise.
9409 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9411         * elf/dl-minimal.c: Define _itoa_lower_digits.
9413         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9414         DT_FLAGS set.
9416         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9417         loading modules with the DF_STATIC_TLS flag set.
9418         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9419         element.
9420         * include/link.h (struct link_map): Add l_flags field.
9421         * elf/elf.h (DF_STATIC_TLS): New definition.
9423         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9424         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9426         * elf/rtld.c (process_dl_debug): Correct printing help message.
9427         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9428         for %s.
9430         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9431         definition and pass &errno in use of this variable.
9432         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9434 2002-02-04  Andreas Schwab  <schwab@suse.de>
9436         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9437         * locale/programs/charmap-dir.c: Wrap calls that output messages
9438         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9439         * locale/programs/charmap.c: Likewise.
9440         * locale/programs/ld-address.c: Likewise.
9441         * locale/programs/ld-collate.c: Likewise.
9442         * locale/programs/ld-ctype.c: Likewise.
9443         * locale/programs/ld-identification.c: Likewise.
9444         * locale/programs/ld-measurement.c: Likewise.
9445         * locale/programs/ld-messages.c: Likewise.
9446         * locale/programs/ld-monetary.c: Likewise.
9447         * locale/programs/ld-name.c: Likewise.
9448         * locale/programs/ld-numeric.c: Likewise.
9449         * locale/programs/ld-paper.c: Likewise.
9450         * locale/programs/ld-telephone.c: Likewise.
9451         * locale/programs/ld-time.c: Likewise.
9452         * locale/programs/linereader.c: Likewise.
9453         * locale/programs/linereader.h: Likewise.
9454         * locale/programs/localedef.c: Likewise.
9455         * locale/programs/locfile.c: Likewise.
9456         * locale/programs/repertoire.c: Likewise.
9458 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9460         * elf/rtld.c (_dl_start_final): Determine load address to locate
9461         ehdr with GL(dl_rtld_map).l_map_start.
9463         * po/ca.po: Update from translation team.
9465         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9466         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9467         header entry.
9468         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9469         _dl_tls_module_cnt.
9470         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9472 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9474         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9475         * include/link.h (struct link_map): Add various members for TLS
9476         information.
9477         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9478         _rtld_tlsoffset, add _dl_initimage_list.
9479         * sysdeps/i386/dl-lookupcfg.h: New file.
9480         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9481         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9482         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9483         is used.
9485         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9486         unused.
9488         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9489         thread-pointer as soon as possible.
9490         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9491         elements in rtld_global.
9492         * sysdeps/generic/tls.h: New file.
9493         * elf/Makefile (distribute): Add tls.h.
9494         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9495         relocations.  Not complete yet.
9497         * resolv/resolv.h: Allow user to define __need_res_state and only
9498         define __res_start structure then.
9499         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9501         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9502         dl_cpuclock_offset initialization to _dl_start_final.
9503         (_dl_show_auxv): Avoid unnecessary sign extension.
9504         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9506 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9508         * config.h.in: Add HAVE_TLS_SUPPORT.
9509         * sysdeps/i386/elf/configure.in: New file.
9511 2002-02-03  Andreas Schwab  <schwab@suse.de>
9513         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9514         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9516 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9518         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9519         alloca if the memory reqirements are too high.
9521 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9523         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9524         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9525         the former is available anyway and speed isn't important here.
9526         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9527         * elf/dl-version.c (match_symbol): Likewise.
9528         (_dl_check_map_versions): Likewise.
9529         * elf/rtld.c (process_envvars): Likewise.
9530         (print_statistics): Likewise.
9531         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9532         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9533         bases.  Add assert to catch uses of unimplemented features.
9534         (__strsep): Add assert to catch uses of unimplemented features.
9535         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9536         and avoid inline optimization.
9537         * elf/rtld.c (process_envvars): Likewise.
9538         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9539         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9540         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9542 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9544         * stdio-common/_itoa.h: Minor simplifications of the code.
9545         * stdio-common/_itoa.c: Likewise.
9547         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9548         instead of _dl_printf for debugging info output.
9550         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9551         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9553 2002-02-01  H.J. Lu  <hjl@gnu.org>
9555         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9556         (atomic_add): Likewise.
9557         (compare_and_swap): Return 0 only when failed to compare. Use
9558         branch likely.
9560         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9561         branch likely.
9563 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9565         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9567 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9569         * elf/dl-minimal.c (__strsep): New minimal implementation.
9571 2002-02-02  Paul Eggert  <eggert@twinsun.com>
9573         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9574         (__mktime_internal): If no tm_isdst is requested, prefer solutions
9575         with tm_isdst > 0 when the requested time falls within a
9576         spring-forward gap [PR libc/2894].
9578 2002-02-03  Andreas Schwab  <schwab@suse.de>
9580         * stdio-common/tst-rndseek.c: Increase timeout.
9582 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
9584         Change ld.so to not use functions which are exported.  One cannot
9585         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
9586         definitions.
9587         * include/libc-symbols.h: Define INT and INTDEF.
9588         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9589         _dl_signal_error_internal, _dl_map_object_internal,
9590         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9591         _dl_lookup_versioned_symbol_internal,
9592         _dl_relocate_object_internal, _dl_debug_state_internal,
9593         _dl_start_profile_internal, and _dl_unload_cache_internal.
9594         * include/dlfcn.h: Declare _dl_catch_error_internal.
9595         * elf/rtld.c: Use INT for calls to any of the *_internal functions
9596         above.  Add INTDEF to function definitions.
9597         * elf/dl-debug.c: Likewise.
9598         * elf/dl-deps.c: Likewise.
9599         * elf/dl-dst.h: Likewise.
9600         * elf/dl-error.c: Likewise.
9601         * elf/dl-fini.c: Likewise.
9602         * elf/dl-init.c: Likewise.
9603         * elf/dl-load.c: Likewise.
9604         * elf/dl-lookup.c: Likewise.
9605         * elf/dl-misc.c: Likewise.
9606         * elf/dl-open.c: Likewise.
9607         * elf/dl-profile.c: Likewise.
9608         * elf/dl-reloc.c: Likewise.
9609         * elf/dl-runtime.c: Likewise.
9610         * elf/dl-version.c: Likewise.
9611         * elf/do-lookup.h: Likewise.
9612         * sysdeps/generic/dl-cache.c: Likewise.
9613         * sysdeps/generic/dl-sysdep.c: Likewise.
9614         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9615         instead of _dl_init.
9616         * sysdeps/arm/dl-machine.h: Likewise.
9617         * sysdeps/cris/dl-machine.h: Likewise.
9618         * sysdeps/hppa/dl-machine.h: Likewise.
9619         * sysdeps/i386/dl-machine.h: Likewise.
9620         * sysdeps/ia64/dl-machine.h: Likewise.
9621         * sysdeps/m68k/dl-machine.h: Likewise.
9622         * sysdeps/mips/dl-machine.h: Likewise.
9623         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9624         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9625         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9626         * sysdeps/sh/dl-machine.h: Likewise.
9627         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9628         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9629         * sysdeps/x86_64/dl-machine.h: Likewise.
9630         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9632         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9633         and _dl_debug_initialize.
9635         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
9636         more information.
9637         * elf/rtld.c (dl_main): Avoid strrchr.
9638         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9639         result of readlink.  Search from the back for '/'.
9641         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9642         strncpy if possible.
9644         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
9645         strncmp.
9646         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
9647         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9648         strspn, and strcspn.
9649         (process_envvars): Don't use strcspn.
9651         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9652         (_dl_dst_substitute): Likewise.
9654 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9656         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9657         code which is never used when relocating ld.so itself.
9659         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9660         starting ld.so itself.  Move l_addr variable initialization closer
9661         to use.
9662         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9664 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9666         * Versions.def (libc): Add GLIBC_PRIVATE.
9667         (libdb, libnss_db, libdb1): Remove.
9668         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9669         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9670         (libpthread): Add GLIBC_PRIVATE.
9671         (libresolv): Likewise, remove GLIBC_2.1.
9672         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9673         GLIBC_2.2.3, GLIBC_2.3.
9674         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9675         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9676         _dl_sym, _dl_vsym): Likewise.
9677         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9678         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9679         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9680         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9681         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9682         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9683         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9684         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9685         Likewise.
9686         (_dl_object_relocation_scope): Remove.
9687         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9688         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9689         __gconv_cache): Move to GLIBC_PRIVATE.
9690         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9691         __internal_setnetgrent): Likewise.
9692         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9693         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9694         * locale/Versions (__collate_element_hash, __collate_element_strings,
9695         __collate_symbol_classes, __collate_symbol_hash,
9696         __collate_symbol_strings, _nl_current_LC_COLLATE,
9697         _nl_current_LC_CTYPE): Likewise.
9698         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9699         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9700         (libnss_nis, libnss_nisplus): Likewise.
9701         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9702         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9703         (libnss_files): Move all symbols to GLIBC_PRIVATE.
9704         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9705         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9706         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9707         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9708         __ns_get16, __ns_samename): Likewise.
9709         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9710         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9711         GLIBC_PRIVATE.
9712         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9713         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9714         __libc_connect): Likewise.
9715         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9716         Likewise.
9717         * stdlib/Versions (__libc_system): Likewise.
9718         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9719         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9720         * sysdeps/ia64/fpu/Versions: Likewise.
9721         * sysdeps/ia64/Versions: Likewise.
9722         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9723         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9724         to GLIBC_PRIVATE.
9725         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9726         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9727         __libc_sigaction): Likewise.
9728         * termios/Versions (__libc_tcdrain): Likewise.
9730         * misc/sys/cdefs (__attribute_noinline__): Define.
9731         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9732         __attribute_noinline__.
9734         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9735         * elf/dl-xstat64.c: New file.
9736         * elf/dl-fxstat64.c: New file.
9737         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9738         don't export __fxstat64 at multiple versions.
9739         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9740         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9742 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
9744         * locale/program/ld-collate.c (collate_finish): Assign a wide
9745         char collation sequence value to multi character collating
9746         elements, and avoid over writing by non-character elements.
9748 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9750         * elf/Makefile (distribute): Add dl-procinfo.c.
9751         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9752         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9754 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9756         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9757         definition.
9758         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9759         _rtld_global struct.
9760         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9761         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9762         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9763         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9764         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9765         _dl_fpu_control_set): Remove unused externs.
9766         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9767         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9768         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9769         related variables in _rtld_global struct.
9770         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9771         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9772         unused extern.
9774 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9776         * sysdeps/generic/dl-procinfo.c: New file.
9778 2002-02-01  Andreas Schwab  <schwab@suse.de>
9780         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9782 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
9784         * elf/rtld.c (_dl_start): Mark as internal_function.
9785         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9786         in register.
9787         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9788         General pretty printing.
9790 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9792         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9793         * elf/dl-reloc.c: Pretty printing.
9794         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9795         procinfo-related variables in rtld_global struct.
9796         * elf/dl-support.c: Likewise.
9797         * elf/rtld.c: Likewise.
9798         * sysdeps/i386/i686/Makefile: Likewise.
9799         * sysdeps/i386/i686/hp-timing.c: Likewise.
9800         * sysdeps/i386/i686/hp-timing.h: Likewise.
9801         * sysdeps/ia64/Makefile: Likewise.
9802         * sysdeps/ia64/hp-timing.c: Likewise.
9803         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9804         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9805         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9806         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9807         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9808         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9809         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9810         * sysdeps/x86_64/Makefile: Likewise.
9812         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9813         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9814         _dl_debug_fd to rtld_global.
9815         * elf/Versions: Likewise.
9816         * elf/dl-close.c: Likewise.
9817         * elf/dl-iteratephdr.c: Likewise.
9818         * elf/dl-lookup.c: Likewise.
9819         * elf/dl-misc.c: Likewise.
9820         * elf/dl-open.c: Likewise.
9821         * elf/dl-support.c: Likewise.
9822         * elf/do-lookup.h: Likewise.
9823         * elf/rtld.c: Likewise.
9824         * sysdeps/generic/dl-cache.c: Likewise.
9825         * sysdeps/generic/dl-sysdep.c: Likewise.
9826         * sysdeps/ia64/Versions: Likewise.
9827         * sysdeps/unix/clock_gettime.c: Likewise.
9828         * sysdeps/unix/clock_settime.c: Likewise.
9829         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9830         * sysdeps/sparc/Versions: Removed.
9831         * sysdeps/i386/i686/Versions : Removed.
9832         * sysdeps/x86_64/Versions: Removed.
9833         * configure.in: Define HAVE_PROTECTED if .protected is available.
9834         * config.h.in: Add entry for HAVE_PROTECTED.
9836 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
9838         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9839         code in struct _rtld_global.  Export this struct, remove all
9840         exports for the signal variables.
9841         * sysdeps/arm/dl-machine: Likewise.
9842         * sysdeps/generic/dl-origin: Likewise.
9843         * sysdeps/generic/dl-sysdep: Likewise.
9844         * sysdeps/generic/dl-cache: Likewise.
9845         * sysdeps/hppa/dl-fptr: Likewise.
9846         * sysdeps/hppa/dl-machine: Likewise.
9847         * sysdeps/cris/dl-machine: Likewise.
9848         * sysdeps/i386/dl-machine: Likewise.
9849         * sysdeps/ia64/dl-machine: Likewise.
9850         * sysdeps/m68k/dl-machine: Likewise.
9851         * sysdeps/mach/hurd/dl-sysdep: Likewise.
9852         * sysdeps/mips/mips64/dl-machine: Likewise.
9853         * sysdeps/mips/dl-machine: Likewise.
9854         * sysdeps/powerpc/elf/libc-start: Likewise.
9855         * sysdeps/powerpc/dl-machine: Likewise.
9856         * sysdeps/powerpc/dl-start: Likewise.
9857         * sysdeps/sparc/sparc32/dl-machine: Likewise.
9858         * sysdeps/sparc/sparc64/dl-machine: Likewise.
9859         * sysdeps/sh/dl-machine: Likewise.
9860         * sysdeps/s390/s390-32/dl-machine: Likewise.
9861         * sysdeps/s390/s390-64/dl-machine: Likewise.
9862         * sysdeps/unix/sysv/aix/libc-start: Likewise.
9863         * sysdeps/unix/sysv/aix/start-libc: Likewise.
9864         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9865         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9866         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9867         * sysdeps/x86_64/dl-machine: Likewise.
9869 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
9871         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9872         are too high.
9874 2002-01-31  Andreas Schwab  <schwab@suse.de>
9876         * sysdeps/posix/readv.c: Check for ssize_t overflow.
9878 2002-01-31  Andreas Schwab  <schwab@suse.de>
9880         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9881         reference to _dl_pagesize.
9883 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
9885         * Versions.def [ld]: Add GLIBC_2.3.
9886         * elf/dl-addr.c: Move global variables for SHARED code in struct
9887         _rtld_global.  Export this struct, remove all exports for the
9888         signal variables.
9889         * elf/dl-close.c: Likewise.
9890         * elf/dl-conflict.c: Likewise.
9891         * elf/dl-debug.c: Likewise.
9892         * elf/dl-deps.c: Likewise.
9893         * elf/dl-dst.h: Likewise.
9894         * elf/dl-error.c: Likewise.
9895         * elf/dl-fini.c: Likewise.
9896         * elf/dl-init.c: Likewise.
9897         * elf/dl-iteratephdr.c: Likewise.
9898         * elf/dl-libc.c: Likewise.
9899         * elf/dl-load.c: Likewise.
9900         * elf/dl-lookup.c: Likewise.
9901         * elf/dl-minimal.c: Likewise.
9902         * elf/dl-object.c: Likewise.
9903         * elf/dl-open.c: Likewise.
9904         * elf/dl-profile.c: Likewise.
9905         * elf/dl-profstub.c: Likewise.
9906         * elf/dl-reloc.c: Likewise.
9907         * elf/dl-runtime.c: Likewise.
9908         * elf/dl-support.c: Likewise.
9909         * elf/dl-sym.c: Likewise.
9910         * elf/dl-version.c: Likewise.
9911         * elf/do-lookup.h: Likewise.
9912         * elf/do-rel.h: Likewise.
9913         * elf/dynamic-link.h: Likewise.
9914         * elf/rtld.c: Likewise.
9915         * sysdeps/generic/dl-cache.c: Likewise.
9916         * sysdeps/generic/dl-sysdep.c: Likewise.
9917         * sysdeps/generic/ldsodefs.h: Likewise.
9918         * sysdeps/generic/libc-start.c: Likewise.
9919         * sysdeps/i386/dl-machine.h: Likewise.
9920         * sysdeps/ia64/dl-fptr.c: Likewise.
9921         * sysdeps/ia64/dl-machine.h: Likewise.
9922         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9923         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9924         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9925         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9926         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9927         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9928         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9929         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9931 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9933         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9934         to avoid warning
9935         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9937         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9938         SHARED version.
9939         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9941         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9943 2002-01-29  Ben Collins  <bcollins@debian.org>
9945         * string/bits/string2.h (__mempcpy): Protect size arg for
9946         addition when using __builtin_memcpy.
9948 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
9950         * stdlib/Makefile (tests): Add tst-qsort.
9951         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
9953         * manual/signal.texi (Process Signal Mask): Document that
9954         pthread_sigmask, not sigprocmask, must be used in MT programs.
9955         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9957         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9958         found.
9959         * misc/Makefile (tests): Add tst-hsearch.
9960         * misc/tst-hsearch.c: New file.
9962 2002-01-18  Wolfram Gloger  <wg@malloc.de>
9964         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
9965         * malloc/malloc.h: Likewise.
9966         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
9967         * malloc/arena.c: New file.
9968         * malloc/hooks.c: New file.
9969         * malloc/tst-mallocstate.c: New file.
9970         * malloc/Makefile: Add new testcase tst-mallocstate.
9971         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
9973 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9975         * stdlib/msort.c: Remove last patch.  The optimization violates the
9976         same rule which qsort.c had problems with.
9978 2002-01-27  Paul Eggert  <eggert@twinsun.com>
9980         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
9981         to a pivot element that lies outside the array to be sorted, as
9982         ISO C99 requires that the comparison function be called only with
9983         addresses of array elements [PR libc/2880].
9985 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
9987         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
9988         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
9990         * timezone/asia: Update from tzdata2002b.
9991         * timezone/australasia: Likewise.
9992         * timezone/backward: Likewise.
9993         * timezone/europe: Likewise.
9994         * timezone/leapseconds: Likewise.
9995         * timezone/iso3166.tab: Likewise.
9996         * timezone/zone.tab: Likewise.
9998 2002-01-23  Richard Henderson  <rth@redhat.com>
10000         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10002 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10004         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10005         this element [PR libc/2855].
10007         * string/strcoll.c: Handle zero-length arguments specially
10008         [PR libc/2856].
10010 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10012         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10013         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10014         short lengths and constant src.
10015         (strcpy): Don't optimize for gcc 3.0+.
10016         (__stpcpy): For gcc 3.0+, don't use
10017         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10018         for short string literal src.
10020 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10022         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10023         Set for arm, too.
10025 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10027         * manual/llio.texi (Linked Channels, Cleaning Streams):
10028         Make it clearer that a just-opened input stream might need cleaning.
10030 2002-01-21  H.J. Lu  <hjl@gnu.org>
10032         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10033         Don't use label at end of compound statement.
10035 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10037         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10038         Remove test for negative integer arg; sin_pi does it correctly.
10040 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10042         * nscd/Makefile (distribute): Filter out xmalloc.c.
10044 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10046         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10047         Set offset if read end wasn't the buffer end.
10048         (_IO_file_seekoff_mmap): New function.
10049         (_IO_file_xsgetn_mmap): New function.
10050         (_IO_file_jumps_mmap): Use the two new functions.
10051         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10052         != end buffer.
10053         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10054         _IO_file_underflow_mmap.
10055         * libio/iofopen.c: Don't position file descriptor at end of file.
10056         * libio/tst-widetext.c: Improve error messages.
10057         * stdio-common/tst-rndseek.c: Likewise.
10059 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10061         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10062         end of enum for !_GNU_SOURCE.
10063         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10064         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10065         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10066         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10067         values unless _GNU_SOURCE.
10069         * iconvdata/tcvn5712-1.c: Minor cleanups.
10071 2002-01-18  Andreas Schwab  <schwab@suse.de>
10073         * sysdeps/unix/sysv/linux/configure.in
10074         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10076 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10078         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10079         more efficient "Towers of Hanoi" mergesort.
10080         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10081         for generic, sizeof(int) and sizeof(long) variants respectively.
10083 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10085         * manual/syslog.texi (openlog): Describe possible problems with
10086         first parameter.
10087         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10089         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10090         * nscd/connections.c (begin_drop_privileges): New function.
10091         (finish_drop_privileges): New function.
10092         (nscd_init): Call the new functions which also install all groups
10093         for the server user.
10094         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10095         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10097 2002-01-17  H.J. Lu  <hjl@gnu.org>
10099         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10100         `const' from `got'.
10102 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10104         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10105         instructions for pointer operations.
10106         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10108 2002-01-17  Andreas Jaeger  <aj@suse.de>
10110         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10111         __uint128_t build-in.
10113         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10114         PowerPC, sync with 2.2 branch.
10116 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10118         * posix/getconf.c: Update copyright year.
10119         * nss/getent.c: Likewise.
10120         * nscd/nscd_nischeck.c: Likewise.
10121         * iconv/iconvconfig.c: Likewise.
10122         * iconv/iconv_prog.c: Likewise.
10123         * elf/ldconfig.c: Likewise.
10124         * catgets/gencat.c: Likewise.
10125         * csu/version.c: Likewise.
10126         * elf/ldd.bash.in: Likewise.
10127         * elf/sprof.c (print_version): Likewise.
10128         * locale/programs/locale.c: Likewise.
10129         * locale/programs/localedef.c: Likewise.
10130         * nscd/nscd.c (print_version): Likewise.
10131         * debug/xtrace.sh: Likewise.
10132         * malloc/memusage.sh: Likewise.
10133         * malloc/mtrace.pl: Likewise.
10135 2002-01-16  Andreas Schwab  <schwab@suse.de>
10137         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10138         reliably remove "-ia64" from rtld name.
10140 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10142         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10143         Patch by Yu Shao <yshao@redhat.com>.
10145 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10147         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10148         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10149         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10151 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10153         * sysdeps/s390/fpu/libm-test-ulps: Update.
10155 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10157         * elf/elf.h: Update x86 relocations.
10159 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10161         * locale/programs/charmap.c (new_width): Check whether byte
10162         sequences for both ends of range have the same length.
10164 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10166         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10168 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10170         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10171         string literals.
10172         (__full_ieee754_sqrt): Add __attribute_used__.
10174 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10176         * sysdeps/generic/group_member.c (__group_member): Also check
10177         groups[0] [PR libc/2781].
10179 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10181         * Makefile (distribute): Add scripts/cpp.
10182         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10183         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10184         unwind-dw2-fde.h, and dwarf2.h.
10185         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10186         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10187         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10188         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10190 2002-01-07  Roland McGrath  <roland@frob.com>
10192         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10193         volatile on type of ARGC so the compiler doesn't get clever.
10195 2002-01-07  Andreas Jaeger  <aj@suse.de>
10197         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10198         * sysdeps/i386/bits/byteswap.h: Likewise.
10199         * sysdeps/ia64/bits/byteswap.h: Likewise.
10200         * sysdeps/m68k/bits/byteswap.h: Likewise.
10201         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10202         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10204 2002-01-02  Bruno Haible  <bruno@clisp.org>
10206         * intl/plural.y: Fix %expect count.
10208 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10210         * elf/Makefile (routines, shared-only-routines): Add
10211         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10212         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10213         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10214         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10215         Optimize if .eh_frame section contains no FDEs.
10216         (__register_frame, __deregister_frame_info_bases,
10217         __deregister_frame): Likewise.
10218         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10219         DW_CFA_restore handling.
10221 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10223         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10225         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10226         for x < 0.25 and restore original range reduction method.
10227         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10229 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10231         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10232         (_IO_file_close_mmap): New function.
10233         (_IO_file_jumps_mmap): New variable.
10234         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10235         trying to convert rest of byte buffer.
10236         (_IO_wfile_underflow_mmap): New function.
10237         (_IO_wfile_jumps_mmap): New variable.
10238         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10239         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10240         (_IO_new_fopen): Call __fopen_internal.
10241         * libio/iofopen64.c: Just call __fopen_internal.
10242         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10243         successfully.
10244         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10245         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10246         _IO_file_close_mmap.
10248         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10249         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10251         * stdio-common/Makefile (tests): Add tst-rndseek.
10252         * stdio-common/tst-rndseek.c: New file.
10254 2002-01-05  Roland McGrath  <roland@frob.com>
10256         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10257         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10258         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10259         * sysdeps/mach/hurd/configure: Regenerated.
10261 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10263         * elf/elf.h: Add more TLS definitions.
10265 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10267         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10269 2002-01-02  Roland McGrath  <roland@frob.com>
10271         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10272         __sigisemptyset.  Don't use MASK uninitialized.
10274         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10275         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10276         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10277         __sigdelset, __sigaddset, __sigorset.
10279         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10280         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10282         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10283         _hurd_ports is null.
10285         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10286         for old CMU and new OSF Mach interface flavors.
10287         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10288         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10290         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10292         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10293         Pass extra arguments to task_create for OSF variant.
10294         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10296         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10297         conditional on [HAVE_AUX_VECTOR].
10299         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10300         mach_msg_timeout_t as type of final argument.
10302         * hurd/privports.c (__get_privileged_ports):
10303         Change host_priv_t to mach_port_t in argument type.
10304         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10305         Update decls.
10307         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10308         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10309         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10310         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10311         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10312         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10314 2002-01-01  Roland McGrath  <roland@frob.com>
10316         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10318 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10320         * include/stdlib.h: Define inlines for the _l variants of the strto*
10321         functions.
10323 2002-01-01  Roland McGrath  <roland@frob.com>
10325         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10327         * mach/Machrules (MIG): Set CPP as well as CC.
10329 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10331         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10332         locale to parse /proc/loadavg [PR libc/2760].
10334 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10336         * elf/dl-conflict.c: Include sys/param.h.
10337         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10338         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10339         warning.
10340         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10341         literals to avoid warnings.
10343 2001-12-31  Andreas Jaeger  <aj@suse.de>
10345         * configure.in: Don't check for gsed since we do not use it anywhere.
10347 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10349         * io/fts.c: Update from BSD to fix memory leaks.
10351 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10353         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10354         * elf/chroot_canon.c: Likewise.
10355         * elf/dl-object.c: Likewise.
10356         * iconv/iconv_charmap.c: Likewise.
10357         * iconv/iconv_prog.c: Likewise.
10358         * libio/iogetdelim.c: Likewise.
10359         * locale/lc-time.c: Likewise.
10360         * stdlib/canonicalize.c: Likewise.
10361         * sunrpc/svc.c: Likewise.
10362         * sysdeps/generic/glob.c: Likewise.
10364 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10366         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10367         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10368         remove high order bit from the program counter.
10369         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10371 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10373         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10374         unnecessary code and add missing reloc types.
10375         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10376         case for reloc type R_390_NONE.
10378 2001-12-28  Andreas Jaeger  <aj@suse.de>
10380         * io/bug-ftw3.c: Include string.h for prototypes.
10382         * crypt/md5test.c (main): Remove unused variable.
10384         * dlfcn/modstatic.c: Add prototype to avoid warning.
10386 2001-12-26  Roland McGrath  <roland@frob.com>
10388         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10389         check only (SS->pending & MASK) for the signal to return.
10390         From Jeroen Dekkers <jeroen@dekkers.cx>.
10392 2001-12-22  Roland McGrath  <roland@frob.com>
10394         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10395         Use preprocessor #if conditionals instead of `if' to avoid
10396         warnings about divide by zero in dead code.
10398         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10399         _hurd_port_init, and __hurd_self_sigstate.
10401         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10403 2001-12-21  Andreas Jaeger  <aj@suse.de>
10405         * elf/dblloadmod1.c: Add prototype to avoid warning.
10406         * elf/dblloadmod2.c: Likewise.
10407         * elf/dblloadmod3.c: Likewise.
10408         * elf/reldepmod5.c: Likewise.
10409         * elf/reldepmod6.c: Likewise.
10411         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10412         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10413         used on all architectures.
10415         * sunrpc/svc_tcp.c: Add noreturn attribute for
10416         svctcp_rendezvous_abort.
10417         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10419         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10420         to avoid warning.
10422 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10424         * manual/llio.texi (aio_fsync): Fix a typo.
10425         Patch by Tammy Fox <tfox@redhat.com>.
10427 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10429         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10430         stack bias from child stack pointer before passing it to clone syscall.
10432 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10434         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10435         _SC_TZNAME_MAX.
10436         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10437         Reported by Thorsten Kukuk <kukuk@suse.de>.
10439         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10440         add some casts.
10442         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10444 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10446         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10447         conforming: return EBADF if file descriptor is invalid and EINVAL
10448         if file descriptor is no valid tty.
10449         * login/tst-grantpt.c: New file.
10450         * login/Makefile (tests): Add tst-grantpt.
10452 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10454         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10455         different than implemented in last patch.
10456         * io/bug-ftw3.c: Adjust test for changed handling of
10457         inaccessibility of toplevel dir.
10459 2001-12-16  Roland McGrath  <roland@frob.com>
10461         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10462         * grp/initgroups.c (internal_getgrouplist): Likewise.
10464         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10465         `default:' to silence new GCC warning.
10466         Rewrite cast of lvalue to silence new GCC warning.
10468         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10470         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10471         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10473 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10475         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10476         Patch by Stephen R. van den Berg.
10478         * crypt/md5.h: Define md5_uintptr.
10480 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10482         * libio/tst_swprintf.c (main): Add test for string argument with
10483         zero precision.
10484         * stdio-common/Makefile (tests): Add tst-sprintf.
10485         * stdio-common/tst-sprintf.c: New file.
10487 2001-12-13  Andreas Schwab  <schwab@suse.de>
10489         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10490         zero precision with wide character string format.
10492 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10494         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10495         but have a user supplied buffer, return the empty buffer, not NULL.
10497 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10499         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10500         Patch by Eric Sharkey <sharkey@netrics.com>.
10502         * crypt/md5test.c (main): Add test for multiple calls to
10503         __md5_process_bytes to itererate over input string.
10505 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10507         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10508         from __nis_findfastest.  Take timeout value from parameter.
10509         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10510         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10511         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10513 2001-12-12  Andreas Jaeger  <aj@suse.de>
10515         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10516         combreloc test so that it works in this case.
10518         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10520 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10522         * sysdeps/sh/Makefile: New file.
10523         * sysdeps/sh/_mcount.S: New file.
10524         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10525         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10527 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10529         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10530         limitation [PR libc/2564].
10532 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10534         * elf/Makefile (dl-routines): Add conflict.
10535         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10536         (ld.so): Add _begin local symbol.
10537         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10538         Define.
10539         * elf/dl-deps.c (_dl_build_local_scope): New function.
10540         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10541         of all libraries.
10542         * elf/do-rel.h (VALIDX): Define.
10543         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10544         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10545         can be skipped.
10546         * elf/dl-conflict.c: New file.
10547         * elf/dl-lookup.c (_dl_debug_bindings): New function.
10548         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
10549         non-NULL.
10550         (_dl_lookup_symbol_skip): Likewise.
10551         (_dl_lookup_versioned_symbol): Likewise.
10552         (_dl_lookup_versioned_symbol_skip): Likewise.
10553         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10554         define to ElfW(Rel).
10555         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10556         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10557         ranges.
10558         Don't adjust address dynamic tags if l_addr is 0.
10559         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10560         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10561         (VALIDX, ADDRIDX): Define.
10562         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10563         (dl_main): Print library list for LD_TRACE_PRELINKING.
10564         If prelinking information can be used, skip relocating libraries and
10565         call _dl_resolve_conflicts instead.
10566         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10567         * elf/dl-load.c (_dl_map_object): Don't create fake libs
10568         if LD_TRACE_PRELINKING.
10569         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10570         + DT_ADDRNUM.
10571         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10572         (DL_DEBUG_PRELINK): Define.
10573         (_dl_resolve_conflicts): Add prototype.
10575         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10576         .plt for prelinked libraries where prelinking info cannot be used.
10577         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10578         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10579         * sysdeps/arm/bits/link.h: New file.
10580         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10581         content of .got[1].
10582         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10583         (ELF_MACHINE_PLT_REL): Define.
10584         (elf_machine_rela, elf_machine_rela_relative): New functions.
10585         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10586         of adjusting it if prelinked and prelinking cannot be used.
10587         * sysdeps/i386/bits/link.h: New file.
10588         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10589         content of .got[1].
10590         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10591         (ELF_MACHINE_PLT_REL): Define.
10592         (elf_machine_rela, elf_machine_rela_relative): New functions.
10593         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10594         of adjusting it if prelinked and prelinking cannot be used.
10595         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10596         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
10597         to find out map for R_PPC_JMP_SLOT relocs.
10598         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10599         (OPCODE_BA): Define.
10600         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10601         libraries where prelinking info cannot be used.
10602         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10603         (elf_machine_fixup_plt): Call sparc_fixup_plt.
10604         (elf_machine_rela): Set value to 0 if relocating conflicts.
10605         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10606         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10607         (sparc64_fixup_plt): Fix a typo.
10608         (elf_machine_rela): Set value to 0 if relocating conflicts.
10609         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10610         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10611         libraries where prelinking info cannot be used.
10612         * sysdeps/sh/bits/link.h: New file.
10613         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10614         content of .got[1].
10615         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10616         of adjusting it if prelinked and prelinking cannot be used.
10617         * sysdeps/s390/s390-32/bits/link.h: New file.
10618         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10619         Save original content of .got[1].
10620         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10621         of adjusting it if prelinked and prelinking cannot be used.
10622         * sysdeps/s390/s390-64/bits/link.h: New file.
10623         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10624         Save original content of .got[1].
10625         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10626         of adjusting it if prelinked and prelinking cannot be used.
10627         * sysdeps/x86_64/bits/link.h: New file.
10628         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10629         Save original content of .got[1].
10630         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10631         of adjusting it if prelinked and prelinking cannot be used.
10633 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10635         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10636         where appropriate instead of numbers.  Little optimizations.
10638 2001-12-10  Roland McGrath  <roland@frob.com>
10640         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10641         set it.
10643         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10644         set to GLIBC_2.2.5, not GLIBC_2.2.4.
10646         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10647         Fix conditionals so this is set by default for stdio and not for libio.
10648         * sysdeps/mach/hurd/configure: Regenerated.
10650 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
10652         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10654 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
10656         * io/Makefile (tests): Add bug-ftw3.
10657         * io/bug-ftw3.c: New file.
10659         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10660         matches and GLOB_NOCHECK is set.
10661         * posix/globtest.sh: Correct expected result for NOCHECK test.
10663         * po/ca.po: Update from translation team.
10665 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
10667         Implement transliteration of characters in strings of the locale
10668         definitions.
10669         * locale/programs/linereader.c: Adjust for additional parameter to
10670         lr_token.
10671         (get_string): If character <Uxxxx> is not found try to transliterate
10672         it.
10673         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10674         lr_token.  Add const to charmap parameter of all functions.
10675         (find_translit, find_translit2): New functions.
10676         * locale/programs/charmap.c: Adjust for additional parameter to
10677         lr_token.
10678         * locale/programs/repertoire.c: Likewise.
10679         * locale/programs/linereader.h: Likewise.
10680         * locale/programs/ld-address.c: Likewise.  Add const to charmap
10681         parameter of all functions.
10682         * locale/programs/ld-collate.c: Likewise.
10683         * locale/programs/ld-identification.c: Likewise.
10684         * locale/programs/ld-measurement.c: Likewise.
10685         * locale/programs/ld-messages.c: Likewise.
10686         * locale/programs/ld-monetary.c: Likewise.
10687         * locale/programs/ld-name.c: Likewise.
10688         * locale/programs/ld-numeric.c: Likewise.
10689         * locale/programs/ld-paper.c: Likewise.
10690         * locale/programs/ld-paper.c: Likewise.
10691         * locale/programs/ld-telephone.c: Likewise.
10692         * locale/programs/ld-time.c: Likewise.
10693         * locale/programs/locfile.c: Likewise.
10694         * locale/programs/localedef.c: Likewise.
10695         * locale/programs/localedef.h: Likewise.
10696         * locale/programs/locfile.h: Likewise.  Add declaration for
10697         find_translit.
10698         * locale/programs/simple-hash.c: Add const to first parameter of
10699         find_entry, iterate_table, and lookup.
10700         * locale/programs/simple-hash.h: Likewise.
10701         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
10702         instead.
10703         * include/locale.h: Define __LC_LAST.
10704         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10706 2001-12-07  Geoff Keating  <geoffk@redhat.com>
10708         * sysdeps/powerpc/Dist: Update for recent FP changes.
10709         * sysdeps/powerpc/fpu/Dist: Likewise.
10711 2001-12-07  Andreas Schwab  <schwab@suse.de>
10713         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10715 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10717         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10718         save/restore functions here.
10719         (libm-support): Don't define these functions here.
10720         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10721         functions here.
10722         * sysdeps/powerpc/fe_nomask.c: Move to...
10723         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10724         * sysdeps/powerpc/fprrest.S: Move to...
10725         * sysdeps/powerpc/fpu/fprrest.S: ... here.
10726         * sysdeps/powerpc/fprsave.S: Move to...
10727         * sysdeps/powerpc/fpu/fprsave.S: ... here.
10729 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10731         * sysdeps/unix/sysv/linux/opensock.c: New file.
10733 2001-12-06  Geoff Keating  <geoffk@redhat.com>
10735         * config.make.in (with-fp): Define from configure.
10736         * configure.in: Substitute with_fp.
10737         * configure: Regenerate.
10738         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10739         specified, and don't change FPU environment.
10741 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
10743         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10744         * assert/assert.c: Check result of __asprintf call and don't use
10745         string if it failed.
10746         * assert/assert-perr.c: Likewise.
10747         * inet/rcmd.c: Likewise.
10748         * locale/programs/localedef.c (main): Check result of
10749         construct_output_path and exit if it failed.
10750         (construct_output_path): Check result of asprintf and mkdir calls and
10751         fail if they failed.
10752         * posix/getopt.c: Check result of __asprintf calls and fail if
10753         they failed.
10754         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10756 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10758         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10759         patch.
10760         * sysdeps/generic/strncase.c: Likewise.
10761         * string/tester.c: Add tests for strcasecmp and strncasecmp.
10763 2001-12-05  Geoff Keating  <geoffk@redhat.com>
10765         * scripts/cpp: Test the exit status from 'type', not 'awk'.
10767         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10768         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10769         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10770         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10771         * sysdeps/powerpc/fclrexcpt.c: Move to...
10772         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10773         * sysdeps/powerpc/fpu_control.h: Move to...
10774         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10776 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10778         * iconvdata/ibm1129.h: Remove duplicate mappings.
10779         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
10780         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10781         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10783         * timezone/zic.c: Fix handling of turnaround times.
10784         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10786 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
10788         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10789         overflow problem.
10791 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
10793         * posix/regex.c: For use outside glibc defined bounded pointer
10794         macros here.  Patch by Jim Meyering <jim@meyering.net>.
10796         * iconvdata/Makefile (modules): Add TCVN5712-1.
10797         * iconvdata/TESTS: Add TCVN5712-1.
10798         * iconvdata/gconv-modules: Likewise.
10799         * iconvdata/tcvn5712-1.c: New file.
10800         * iconvdata/testdata/TCVN-5712: New file.
10801         * iconvdata/testdata/TCVN-5712..UTF8: New file.
10803 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
10805         * iconvdata/cp1258.c: Optimize conversion from UCS4.
10807 2001-12-02  Roland McGrath  <roland@frob.com>
10809         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10811         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10812         Reported by Jeff Bailey <jbailey@nisa.net>.
10814         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10815         Reported by Jeff Bailey <jbailey@nisa.net>.
10817         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10818         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10819         Reported by Jeff Bailey <jbailey@nisa.net>.
10821 2001-12-01  Roland McGrath  <roland@frob.com>
10823         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10824         missing backslash in test arguments.
10825         * sysdeps/mach/hurd/configure: Regenerated.
10827 2001-11-26  Roland McGrath  <roland@frob.com>
10829         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10830         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10832 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
10834         * iconvdata/Makefile (modules): Add ARMSCII-8.
10835         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10836         * iconvdata/armscii-8.c: New file.
10838 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
10840         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10841         don't match, fix {{a,b},c} globbing, clean up.
10842         Patch by Flavio Veloso <flaviovs@magnux.com>.
10843         * posix/globtest.sh: Add new tests.
10845 2001-11-29  Andreas Jaeger  <aj@suse.de>
10847         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10848         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10850         * sysdeps/generic/abort.c: Include libioP.h for
10851         _IO_flush_all_lockp prototype.
10853 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
10855         * posix/regex.h: Define __restrict_arr correctly.
10857 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10859         * iconvdata/ibm1163.c: New file.
10860         * iconvdata/ibm1163.h: New file.
10861         * iconvdata/ibm1164.c: New file.
10862         * iconvdata/ibm1164.h: New file.
10863         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10864         * iconvdata/Makefile: Likewise.
10865         * iconvdata/testdata/IBM1163: New file.
10866         * iconvdata/testdata/IBM1163..UTF8: New file.
10867         * iconvdata/testdata/IBM1164: New file.
10868         * iconvdata/testdata/IBM1164..UTF8: New file.
10869         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10871         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
10872         * iconvdata/ibm1124.h: Likewise.
10873         * iconvdata/ibm1132.h: Likewise.
10874         * iconvdata/ibm1133.h: Likewise.
10875         * iconvdata/ibm1160.h: Likewise.
10876         * iconvdata/ibm1161.h: Likewise.
10877         * iconvdata/ibm1162.h: Likewise.
10878         * iconvdata/ibm856.h: Likewise.
10879         * iconvdata/ibm922.h: Likewise.
10880         * iconvdata/ibm930.h: Likewise.
10881         * iconvdata/ibm932.h: Likewise.
10882         * iconvdata/ibm933.h: Likewise.
10883         * iconvdata/ibm935.h: Likewise.
10884         * iconvdata/ibm937.h: Likewise.
10885         * iconvdata/ibm939.h: Likewise.
10886         * iconvdata/ibm943.h: Likewise.
10887         * iconvdata/ibm930.c: Pretty printing.
10888         * iconvdata/ibm937.c: Avoid access accross array boundary.
10890         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10891         the current locale's codeset.
10892         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10893         empty input string.
10894         * iconv/iconv_prog.c: Pass empty strings as default value for to-
10895         and from-charset.  Don't determine locale's charset here.
10897         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
10898         as the old _IO_flush_all but lock only if parameter is nonzero.
10899         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10900         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10901         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10902         if libio is used [PR libc/2575].
10904 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
10906         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10907         __signbitl): Only define for ISO C99.
10909 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
10911         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10912         herrnop to NETDB_INTERNAL if we run out of buffer space.
10914 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
10916         * nss/nss_files/files-XXX.c (internal_getent): Correct input
10917         overflow test for platforms with signed char.
10918         Reported by Andrew Haley <aph@cambridge.redhat.com>.
10920 2001-11-28  Bruno Haible  <bruno@clisp.org>
10922         * locale/programs/simple-hash.c (lookup_2): Remove function.
10923         (insert_entry_2): Call lookup instead of lookup_2.
10925 2001-03-04  Bruno Haible  <bruno@clisp.org>
10927         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10929 2001-10-31  Bruno Haible  <bruno@clisp.org>
10931         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10933 2001-03-21  Bruno Haible  <bruno@clisp.org>
10935         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10936         chokes on empty macro arguments.
10937         * intl/plural.y: Add #pragma for alloca on AIX 3.
10939 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
10941         * intl/dcigettext.c (guess_category_value): Only implement for
10942         glibc.  Otherwise rely on function _nl_locale_name which isn't
10943         present in the glibc sources.
10945 2001-09-24  Bruno Haible  <bruno@clisp.org>
10947         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10948         transliteration when building on a glibc system but outside glibc.
10950 2001-09-22  Bruno Haible  <bruno@clisp.org>
10952         * intl/plural-eval.c: New file, extracted from dcigettext.c.
10953         * intl/dcigettext.c (plural_eval): Remove function, moved to
10954         intl/plural-eval.c.
10955         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10956         Include plural-eval.c.
10958 2001-09-22  Bruno Haible  <bruno@clisp.org>
10960         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
10961         don't start with a digit; nplurals must be positive.
10963 2001-09-02  Bruno Haible  <bruno@clisp.org>
10965         * intl/plural-exp.h: New file, extracted from gettextP.h.
10966         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
10967         * intl/gettextP.h (struct expression, struct parse_args,
10968         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
10969         * intl/loadmsgcat.c: Include plural-exp.h.
10970         (PLURAL_PARSE): Move macro to plural-exp.h.
10971         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
10972         plural-exp.c.
10973         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
10974         EXTRACT_PLURAL_EXPRESSION.
10975         (_nl_unload_domain): Update.
10976         * intl/dcigettext.c: Include plural-exp.h.
10977         * intl/plural.y: Include plural-exp.h, not gettextP.h.
10978         (FREE_EXPRESSION): Move macro to plural-exp.h.
10979         * intl/Makefile (routines): Add plural-exp.
10980         (distribute): Add plural-exp.h.
10982 2001-07-28  Bruno Haible  <bruno@clisp.org>
10984         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
10985         isdigit, tolower argument to 'unsigned char'.
10986         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
10987         'unsigned char'.
10988         * intl/localealias.c (read_alias_file): Cast isspace argument to
10989         'unsigned char'.
10991 2001-10-20  Bruno Haible  <bruno@clisp.org>
10993         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
10994         anyway.)
10995         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
10996         with the variable 'index' in plural_lookup.
10997         * intl/l10nflist.c (strchr): Likewise.
10998         * intl/localealias.c (strchr): Likewise.
11000         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11001         * intl/bindtextdom.c: Likewise.
11002         * intl/dcigettext.c: Likewise.
11003         * intl/dgettext.c: Likewise.
11004         * intl/dngettext.c: Likewise.
11005         * intl/explodename.c: Likewise.
11006         * intl/finddomain.c: Likewise.
11007         * intl/gettext.c: Likewise.
11008         * intl/l10nflist.c: Likewise.
11009         * intl/loadmsgcat.c: Likewise.
11010         * intl/localealias.c: Likewise.
11011         * intl/ngettext.c: Likewise.
11012         * intl/textdomain.c: Likewise.
11013         * intl/gettext.h: Assume <limits.h> exists.
11015 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11017         * stdio-common/Makefile (tests): Add scanf11.
11018         * stdio-common/scanf11.c: New file.
11020 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11022         * version.h (RELEASE): Define as development.
11023         (VERSION): Set to 2.2.90.
11025 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11027         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11028         * nis/nss_nis/nis-grp.c: Likewise.
11029         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11031         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11032         * nis/nss_nis/nis-pwd.c: Likewise.
11033         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11035         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11036         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11037         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11039         * nscd/grpcache.c: Use strtoul instead of atol.
11040         * nscd/pwdcache.c: Likewise.
11041         * nss/getent.c: Likewise.
11043 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11045         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11046         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11048 2001-11-19  Bruno Haible  <bruno@clisp.org>
11050         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11051         90%.
11052         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11053         improves the quality of the hash function, especially for short
11054         strings.
11056 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11058         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11059         are found call conv_error and not input_error [PR libc/2669].
11061         * math/bits/mathcalls.h: Mark ceil and floor as const.
11062         Reported by David Mosberger.
11064 2001-11-21  Jim Meyering  <meyering@lucent.com>
11066         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11067         Define to be __-prefixed.
11068         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11070 2001-11-26  Andreas Jaeger  <aj@suse.de>
11072         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11073         avoid warning.
11075 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11077         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11078         initialization.
11080         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11081         unused variables.  Fix threshold for returning 1.0.
11083         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11084         argument.
11086         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11087         remove unused variables.
11089         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11091         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11092         include local math header files.
11094 2001-11-22  Andreas Jaeger  <aj@suse.de>
11096         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11097         avoid warning.
11099 2001-11-21  Andreas Jaeger  <aj@suse.de>
11101         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11103         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11104         sys/debugreg.h
11106 2001-11-15  Andreas Jaeger  <aj@suse.de>
11108         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11109         compilers that support it.
11111         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11112         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11113         * stdlib/stdlib.h: Likewise.
11115 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11117         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11118         statement with gotos.
11119         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11121 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11123         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11125 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11127         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11129 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11130             H.J. Lu  <hjl@gnu.org>
11132         * Versions.def (libc): Add GCC_3.0.
11133         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11134         if gcc supports this flag.
11135         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11136         (gcc3): Allow glibc to be compiled with gcc 3.x.
11137         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11138         * config.make.in (static-libgcc, unwind-find-fde): Add.
11139         * Makerules (build-shlib-helper, build-module-helper): Use it.
11140         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11141         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11142         necessary.
11143         (_fini): Call __deregister_frame_info_bases if
11144         __register_frame_info_bases was used to register.
11145         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11146         for GLIBC_2.0.
11147         (__register_frame_info_bases, __register_frame_info_table_bases,
11148         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11149         * elf/Makefile (routines): Add unwind-dw2-fde.
11150         (shared-only-routines): Add unwind-dw2-fde.
11151         * sysdeps/alpha/gccframe.h: New file.
11152         * sysdeps/arm/gccframe.h: New file.
11153         * sysdeps/generic/framestate.c: New file.
11154         * sysdeps/generic/dwarf2.h: New file.
11155         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11156         * sysdeps/generic/unwind-dw2-fde.c: New file.
11157         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11158         * sysdeps/generic/unwind-dw2-fde.h: New file.
11159         * sysdeps/generic/unwind-dw2.c: New file.
11160         * sysdeps/generic/unwind-pe.h: New file.
11161         * sysdeps/generic/unwind.h: New file.
11162         * sysdeps/hppa/gccframe.h: New file.
11163         * sysdeps/i386/gccframe.h: New file.
11164         * sysdeps/m68k/gccframe.h: New file.
11165         * sysdeps/mips/gccframe.h: New file.
11166         * sysdeps/powerpc/gccframe.h: New file.
11167         * sysdeps/s390/gccframe.h: New file.
11168         * sysdeps/sh/gccframe.h: New file.
11169         * sysdeps/sparc/gccframe.h: New file.
11170         * sysdeps/vax/gccframe.h: New file.
11171         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11172         Set on all architectures except ia64.
11173         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11174         for i386.
11175         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11176         __deregister_frame_info): Move to elf/Versions.
11177         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11178         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11179         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11180         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11181         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11182         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11183         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11184         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11185         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11186         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11187         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11188         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11189         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11190         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11191         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11192         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11193         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11194         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11196 2001-11-15  Jeff Law  <law@redhat.com>
11198         * posix/regex.c (uintptr_t): Do not provide a definition if the
11199         system provided one.
11201 2001-11-13  Roland McGrath  <roland@frob.com>
11203         * stdio-common/tmpfile.c: Moved to ...
11204         * sysdeps/generic/tmpfile.c: ... here.
11205         * sysdeps/mach/hurd/tmpfile.c: New file.
11207         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11208         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11209         (fopenport): Define as weak alias.
11211         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11212         * libio/libioP.h: ... to here.
11214 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11216         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11217         program header twice.  Construct list with the needed information.
11219 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11221         * po/ca.po: Update from translation team.
11223         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11224         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11225         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11226         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11228 2001-11-10  Andreas Jaeger  <aj@suse.de>
11230         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11231         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11232         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11234 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11236         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11237         correctly.
11238         * elf/dl-load.c (is_dst): New function.
11239         (_dl_dst_count): Use is_dst to check for DST variable.
11240         (_dl_dst_substitute): Likewise.
11242 2001-11-09  Roland McGrath  <roland@frob.com>
11244         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11245         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11246         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11247         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11248         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11249         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11250         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11251         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11252         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11253         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11254         * sysdeps/mach/hurd/powerpc/Dist: New file.
11256         * hurd/privports.c (__get_privileged_ports):
11257         Only contact the proc server if necessary for this call.
11258         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11259         Check error return for mach_port_mod_refs.
11261 2001-11-09  Andreas Schwab  <schwab@suse.de>
11263         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11265 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11267         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11268         object is always the last in the list.
11269         (_dl_map_object_from_fd): Delete code to remove from object list
11270         when DF_1_NOOPEN is seen.  This is done in lose.
11272 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11274         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11276 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11278         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11279         HWCAP_CHECK macro code.
11281         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11282         Now returns MAP_FAILED on error.
11283         * elf/rtld.c: Adjust caller.
11284         * sysdeps/generic/dl-cache.c: Likewise.
11285         * sysdeps/generic/ldsodefs.h: Adjust description.
11287         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11288         (_dl_check_map_versions): Likewise.
11290 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11292         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11293         _dl_signal_error directly, always use lose.  Set fd to -1 after
11294         file is closed.
11295         (lose): Don't call close if fd == -1.
11297 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11299         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11300          Also fix typo @code {mbsinit} to @code{mbsinit}.
11302 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11304         * elf/dl-profile.c: Replace state variable with simple flag named
11305         running.  Remove commented-out code.
11307         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11308         (_dl_init_paths): Likewise.
11309         (_dl_map_object_from_fd): Likewise.
11310         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11312 2001-11-06  Roland McGrath  <roland@frob.com>
11314         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11315         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11317         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11318         sysdeps/powerpc/elf/sysdep.h.
11319         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11321 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11323         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11324         speed.
11325         (process_envvars): Some more optimizations.
11326         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11328         * elf/elf.h: Add dynamic tag definitions for prelinking.
11330         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11331         Rewrite code to remove environment varables for SUID binaries.
11332         Small optimization in LD_PROFILE handling.
11333         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11334         changes.
11335         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11337         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11339         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11340         strings.  Change type of second parameter.
11341         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11342         for last change.
11344         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11346 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11348         * manual/string.texi: Fix typos.
11349         * manual/examples/argp-ex2.c: Likewise.
11351 2001-11-05  Roland McGrath  <roland@frob.com>
11353         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11354         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11355         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11356         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11357         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11358         here, put under [__ELF__].
11360 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11362         * manual/charset.texi: Extensive editing work.
11363         * manual/nss.texi: Likewise.
11364         Changes by Dennis Grace <dgrace@us.ibm.com>.
11366 2001-11-04  Roland McGrath  <roland@frob.com>
11368         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11369         parameter to dir_mkfile.
11371 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11373         * string/bits/string2.h (__strndup): If n is smaller than len, set
11374         len to n + 1.
11375         * string/tester.c (test_strndup): New function.
11376         (main): Call it.
11378 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11380         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11382         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11383         * scripts/cpp: New file.
11385         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11386         for rtld_search_dirs content.  Minor optimizations.
11388 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11390         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11391         avoiding unnecessary duplication.
11393 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11395         * elf/dl-load.c (_dl_map_object): If library was found using
11396         LD_LIBRARY_PATH, don't try RUNPATH list.
11398 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11400         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11401         Correct second argument of register_dump call.
11402         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11403         Likewise.
11405 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11407         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11408         modules.
11409         * iconvdata/TESTS: Likewise.
11410         * iconvdata/gconv-modules: Likewise.
11411         * iconvdata/ibm1132.c: New file.
11412         * iconvdata/ibm1132.h: New file.
11413         * iconvdata/ibm1133.c: New file.
11414         * iconvdata/ibm1133.h: New file.
11415         * iconvdata/ibm1162.c: New file.
11416         * iconvdata/ibm1162.h: New file.
11417         * iconvdata/testdata/IBM1132: New file.
11418         * iconvdata/testdata/IBM1132..UTF8: New file.
11419         * iconvdata/testdata/IBM1133: New file.
11420         * iconvdata/testdata/IBM1133..UTF8: New file.
11421         * iconvdata/testdata/IBM1162: New file.
11422         * iconvdata/testdata/IBM1162..UTF8: New file.
11423         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11425         * string/string.h: Fix typo in comment.
11426         * wcsmbs/wchar.h: Likewise.
11428 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11430         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11431         const in type of longopts parameter.
11433 2001-10-29  Andreas Jaeger  <aj@suse.de>
11435         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11437 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11439         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11440         output, clarify `#' behaviour on 0.
11441         (Floating-Point Conversions): Clarify that %g only uses %e when
11442         the exponent would be greater than 1.
11444 2001-10-28  Roland McGrath  <roland@frob.com>
11446         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11447         * sysdeps/mach/powerpc/machine-sp.h: New file.
11448         * sysdeps/mach/powerpc/sysdep.h: New file.
11449         * sysdeps/mach/powerpc/thread_state.h: New file.
11451         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11452         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11453         expect to need the same thing on every platform.
11455         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11456         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11458         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11459         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11460         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11461         Move all these assembly-related definitions to ...
11462         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11464         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11465         by Peter Bruin <pjbruin@dds.nl>.
11467         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11468         packing results for a `poll' call.
11470 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11472         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11473         correctly.
11474         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11475         bracket expression.
11477         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11478         nrules value.
11479         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11481 2001-10-24  H.J. Lu  <hjl@gnu.org>
11483         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11484         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11485         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11487 2001-10-21  Jim Meyering  <meyering@lucent.com>
11489         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11490         this code would end up calling gettext even in packages built
11491         with --disable-nls.
11492         * posix/getopt.c (_): Likewise.
11493         * posix/regex.c (_): Likewise.
11495 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11497         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11498         lookup not ip6.int.
11499         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11500         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11502 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11504         * misc/sys/cdefs.h (__attribute_used__): Define.
11505         * elf/rtld.c (_dl_start): Add __attribute_used__.
11506         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11508 2001-10-25  Andreas Schwab  <schwab@suse.de>
11510         * stdlib/a64l.c: Expect least significant digit first.
11511         * stdlib/l64a.c: Produce least significant digit first.
11512         * stdlib/Makefile (tests): Add test-a64l.
11513         * stdlib/test-a64l.c: New file.
11514         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11516 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11518         * po/sk.po: Update from translation team.
11520 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11522         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11524 2001-10-18  Andreas Schwab  <schwab@suse.de>
11526         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11527         next whole number.
11528         (print_function_ulps): Likewise.
11529         (print_complex_function_ulps): Likewise.
11530         (print_max_error): Likewise.
11531         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11533 2001-10-16  Andreas Schwab  <schwab@suse.de>
11535         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11536         implementation.
11538         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11539         BSD_SETJMP or BSD__SETJMP is defined, resp.
11540         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11541         a tail call to __sigsetjmp that would require extending the
11542         caller's frame.
11543         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11544         * sysdeps/m68k/bsd-setjmp.S: Deleted.
11545         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11546         Reported by Jes Sorensen <jes@trained-monkey.org>.
11548 2001-10-16  Andreas Jaeger  <aj@suse.de>
11550         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11551         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
11552         close PR libc/2589.
11554 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
11556         * po/ca.po: New file.  Contributed by the translation team.
11558 2001-10-15  Ralf Baechle  <ralf@gnu.org>
11560         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11561         a varargs prototype.  Remove dependency from kernel header files.
11563         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11564         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11566 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11568         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11569         to generate hexadecimal identifier.
11570         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11572 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
11574         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11576 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
11578         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11579         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11580         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11582         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11583         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11585         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11586         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11587         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11589         * timezone/africa: Update from tzdata2001d.
11590         * timezone/asia: Likewise.
11591         * timezone/australasia: Likewise.
11592         * timezone/backward: Likewise.
11593         * timezone/europe: Likewise.
11594         * timezone/leapseconds: Likewise.
11595         * timezone/northamerica: Likewise.
11596         * timezone/southamerica: Likewise.
11597         * timezone/zone.tab: Likewise.
11599 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11601         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11602         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11604 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
11606         * elf/elf.h (PT_TLS): New definition.
11608 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
11610         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11611         bits/errno.h
11613 2001-10-07  Roland McGrath  <roland@frob.com>
11615         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11617 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
11619         * elf/elf.h: Add more ELFOSABI_* constants.
11621 2001-10-04  Ben Collins  <bcollins@debian.org>
11623         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11624         decleration of __need_wchar_t.
11626 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
11628         * string/bits/string2.h (__strsep_g): Add prototype.
11629         (__strsep): Use it.
11630         * string/Versions (__strsep): Remove.
11631         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11633 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
11635         * manua/llio.texi: Clarify file references added by mmap.
11636         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11638 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
11640         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11641         Add sc_loadrs and sc_rbs_bas to match current kernel.
11643 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11645         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11647         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11649 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
11651         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11652         object has been bumped because of relocation dependency, avoid
11653         duplicates in l_scope.
11654         (show_scope): Fix typos.
11655         * elf/Makefile: Add rules to build and run reldep6.
11656         * elf/reldep6.c: New file.
11657         * elf/reldep6mod0.c: New file.
11658         * elf/reldep6mod1.c: New file.
11659         * elf/reldep6mod2.c: New file.
11660         * elf/reldep6mod3.c: New file.
11661         * elf/reldep6mod4.c: New file.
11663 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
11665         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11666         sparc64_fixup_plt.
11667         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
11668         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11669         for non-lazy binding. Fix .plt[32768+] handling.
11670         (elf_machine_plt_value): Don't add addend.
11671         (elf_machine_rela): Call sparc64_fixup_plt instead of
11672         elf_machine_fixup_plt.
11673         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11674         dynamic linker at 0xfffff800XXXXXXXX.
11676         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11678 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
11680         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11682 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
11684         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11685         declare __cmsg_data field if its size would be bigger than 0.
11686         (CMSG_DATA): Adjust accordingly.
11687         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11688         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11689         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11690         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11691         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11692         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11693         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11695 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
11697         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11698         * iconvdata/testdata/IBM1160: New file.
11699         * iconvdata/testdata/IBM1160..UTF8: New file.
11700         * iconvdata/testdata/IBM1161: New file.
11701         * iconvdata/testdata/IBM1161..UTF8: New file.
11702         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11704 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11706         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11707         UL_SETFSIZE computations better.
11709         * rt/Makefile: Remove use of filter for librt again.
11711         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11712         UL_SETFSIZE computations better.
11714         * string/Versions: Export __strsep for GLIBC_2.2.5.
11715         * string/bits/string2.h: Define all __STRING_INLINE functions if
11716         _FORCE_INLINES is defined.
11717         Use int instead of char of parameter types.
11718         (__strsep): Don't use __strsep_g.  Don't define it.
11719         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11720         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11721         __strcpy_small.
11722         (__stpcpy_a_small): Renamed from __stpcpy_small.
11723         (__strcspn_c1): Don't define if _FORCE_INLINES.
11724         (__strspn_c1): Likewise.
11726 2001-09-22  Ben Collins  <bcollins@debian.org>
11728         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11729         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
11730         * sysdeps/ia64/bits/sigaction.h: Likewise.
11731         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11733 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
11735         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11737 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
11739         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11741 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
11743         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11745 2001-09-20  H.J. Lu  <hjl@gnu.org>
11747         * include/dlfcn.h (__RTLD_SPROF): New definiton.
11748         * elf/dl-open.c (dl_open_worker): Return immediately after loading
11749         for __RTLD_SPROF.
11750         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11751         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11753 2001-09-20  H.J. Lu  <hjl@gnu.org>
11755         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11756         don't add 1.
11758 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11760         * nss/getent.c: Accept -s parameter to overwrite rules in
11761         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
11763         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11764         with as many ".0" as necessary to form a complete address
11765         inet_network understands.
11767         * nss/getent.c: Various cleanups.  Use simpler and fewer function
11768         calls.
11770 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11772         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11773         _JMPBUF_UNWINDS.
11774         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11776 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
11778         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11779         IBM1161.
11780         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11781         * iconvdata/ibm1160.c: New file.
11782         * iconvdata/ibm1160.h: New file.
11783         * iconvdata/ibm1161.c: New file.
11784         * iconvdata/ibm1161.h: New file.
11785         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11787 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
11789         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11790         difference between base address and first PT_LOAD's virtual address,
11791         not the base address.
11793 2001-09-11  Tom Rix  <trix@redhat.com>
11795         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
11796         ifdef for __getopt_clean_environment.
11797         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11799 2001-09-22  Andreas Jaeger  <aj@suse.de>
11801         * elf/reldep4.c (main): Add proper prototype to fix warning.
11803         * elf/reldep5.c (main): Remove unused variable.
11805         * math/math_private.h: Add prototypes.
11807 2001-09-21  Andreas Jaeger  <aj@suse.de>
11809         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11810         * sysdeps/x86_64/Dist: New file.
11811         * sysdeps/x86_64/soft-fp/Dist: New file.
11813         * sysdeps/gnu/Dist: Remove eval.c.
11815 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
11817         * malloc/memusage.c (realloc): Don't count already allocated
11818         memory in the sums.
11819         (me): Always use dlsym() to find the real implementations.
11821         * malloc/memusage.sh: Make -n option actually do something.
11823 2001-09-20  Andreas Jaeger  <aj@suse.de>
11825         * elf/elf.h (R_390_NUM): Correct value.
11827         * Versions.def: Add missing versions 2.2.3 for libthread_db and
11828         libpthread.
11830         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11831         for x86-64, install x86-64 into */lib64.
11833         * shlib-versions: Add x86-64.
11835         * elf/elf.h: Add x86-64 relocations.
11837 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
11839         * po/fr.po: Update from translation team.
11841 2001-09-19  Andreas Jaeger  <aj@suse.de>
11843         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11844         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11845         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11846         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11847         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11848         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11849         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11850         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11851         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11852         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11853         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11854         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11855         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11856         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11857         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11858         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11859         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11860         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11861         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11862         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11863         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11864         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11865         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11866         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11867         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11868         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11869         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11870         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11871         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11872         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11873         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11874         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11875         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11876         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11877         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11878         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11879         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11880         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11881         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11882         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11883         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11884         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11885         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11886         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11887         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11888         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11889         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11890         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11891         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11892         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11893         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11894         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11895         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11896         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11897         * sysdeps/unix/x86_64/sysdep.S: New file.
11898         * sysdeps/unix/x86_64/sysdep.h: New file.
11899         * sysdeps/x86_64/Implies: New file.
11900         * sysdeps/x86_64/Makefile: New file.
11901         * sysdeps/x86_64/Versions: New file.
11902         * sysdeps/x86_64/__longjmp.S: New file.
11903         * sysdeps/x86_64/abort-instr.h: New file.
11904         * sysdeps/x86_64/atomicity.h: New file.
11905         * sysdeps/x86_64/bits/endian.h: New file.
11906         * sysdeps/x86_64/bits/setjmp.h: New file.
11907         * sysdeps/x86_64/bits/string.h: New file.
11908         * sysdeps/x86_64/bp-asm.h: New file.
11909         * sysdeps/x86_64/bsd-_setjmp.S: New file.
11910         * sysdeps/x86_64/bsd-setjmp.S: New file.
11911         * sysdeps/x86_64/dl-machine.h: New file.
11912         * sysdeps/x86_64/elf/initfini.c: New file.
11913         * sysdeps/x86_64/elf/start.S: New file.
11914         * sysdeps/x86_64/ffs.c: New file.
11915         * sysdeps/x86_64/ffsll.c: New file.
11916         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11917         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11918         * sysdeps/x86_64/fpu/e_acosl.c: New file.
11919         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11920         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11921         * sysdeps/x86_64/fpu/e_expl.c: New file.
11922         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11923         * sysdeps/x86_64/fpu/e_log10l.S: New file.
11924         * sysdeps/x86_64/fpu/e_log2l.S: New file.
11925         * sysdeps/x86_64/fpu/e_logl.S: New file.
11926         * sysdeps/x86_64/fpu/e_powl.S: New file.
11927         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11928         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11929         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11930         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11931         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11932         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11933         * sysdeps/x86_64/fpu/fegetenv.c: New file.
11934         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11935         * sysdeps/x86_64/fpu/fegetround.c: New file.
11936         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11937         * sysdeps/x86_64/fpu/fesetenv.c: New file.
11938         * sysdeps/x86_64/fpu/fesetround.c: New file.
11939         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11940         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11941         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11942         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11943         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11944         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11945         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11946         * sysdeps/x86_64/fpu/s_atanl.c: New file.
11947         * sysdeps/x86_64/fpu/s_cosl.S: New file.
11948         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11949         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11950         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11951         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11952         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11953         * sysdeps/x86_64/fpu/s_logbl.c: New file.
11954         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11955         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11956         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11957         * sysdeps/x86_64/fpu/s_rintl.c: New file.
11958         * sysdeps/x86_64/fpu/s_significandl.c: New file.
11959         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11960         * sysdeps/x86_64/fpu/s_sinl.S: New file.
11961         * sysdeps/x86_64/fpu/s_tanl.S: New file.
11962         * sysdeps/x86_64/gmp-mparam.h: New file.
11963         * sysdeps/x86_64/hp-timing.c: New file.
11964         * sysdeps/x86_64/hp-timing.h: New file.
11965         * sysdeps/x86_64/htonl.S: New file.
11966         * sysdeps/x86_64/memusage.h: New file.
11967         * sysdeps/x86_64/setjmp.S: New file.
11968         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
11969         * sysdeps/x86_64/stackinfo.h: New file.
11970         * sysdeps/x86_64/sysdep.h: New file.
11971         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
11973         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
11974         L Moshier.
11976 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
11978         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
11979         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
11981 2001-09-18  Andreas Schwab  <schwab@suse.de>
11983         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
11984         list, now that l_scope is a pointer.
11986         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
11987         scope list.
11989 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11991         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
11992         (elf_machine_rela_relative): Add a missing declaration.
11994 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
11996         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
11997         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
11998         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
11999         ldd-rewrite scripts.
12001 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12003         * elf/ldd.bash.in: Update copyright message.
12005 2001-09-17  H.J. Lu  <hjl@gnu.org>
12007         * hurd/hurdmalloc.c (bcopy): Removed.
12008         (realloc): Replace bcopy with memcpy.
12009         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12010         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12011         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12013         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12014         (gethostbyaddr): Likewise.
12015         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12017 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12019         * sysdeps/gnu/eval.c: Removed.
12021 2001-09-18  Andreas Jaeger  <aj@suse.de>
12023         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12024         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12026         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12027         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12029         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12030         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12032 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12034         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12035         nrules value.
12037 2001-09-14  H.J. Lu  <hjl@gnu.org>
12039         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12041 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12043         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12044         Patch by Florian La Roche <laroche@redhat.com>.
12046         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12048         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12049         ETHER_CRC_LEN.
12051 2001-09-14  Andreas Schwab  <schwab@suse.de>
12053         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12054         Sumner <bls@sgi.com>.
12055         * posix/execlp.c: Likewise.
12057 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12059         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12060         is already found earlier in the search scope.
12062 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12064         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12065         filter.
12067 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12069         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12071 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12073         * config.h.in: Enforce optimization to be used.
12074         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12075         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12076         * posix/Makefile (annexc-CFLAGS): Define to -O.
12077         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12079 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12081         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12082         Patch by Stephan Kulow.
12084 2001-09-08  Ben Collins  <bcollins@debian.org>
12086         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12087         usage of RESOLVE() (r_type, not reloc->r_type).
12089 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12091         * elf/dl-object.c: Avoid allocating extra memory block for name.
12092         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12093         allocated separately.
12094         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12096 2001-09-08  H.J. Lu  <hjl@gnu.org>
12098         * po/zh_TW.po: Fix a typo.
12100 2001-09-07  Tom Rix  <trix@redhat.com>
12102         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12104 2001-08-26  Tom Rix  <trix@redhat.com>
12106         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12107         command line options.
12108         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12109         * sysdeps/unix/sysv/aix/start.c: Removed.
12110         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12111         * sysdeps/unix/sysv/aix/init-first.c: New file.
12112         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12114 2001-09-08  Ben Collins  <bcollins@debian.org>
12116         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12117         * sysdeps/generic/dl-machine.h: Likewise.
12118         * sysdeps/hppa/dl-fptr.c: Likewise.
12119         * sysdeps/ia64/dl-fptr.c: Likewise.
12120         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12121         * sysdeps/mips/dl-machine.h: Likewise.
12122         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12123         * sysdeps/powerpc/dl-machine.c: Likewise.
12125 2001-09-07  Ben Collins  <bcollins@debian.org>
12127         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12129         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12131 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12133         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12134         dependencies if necessary.
12136         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12137         loaded directly) determine length if l_initfini list by iterating
12138         over its elements.  Minor optimizations.
12139         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12140         for dependency objects.
12141         If object was already loaded check whether any of the dependencies
12142         is already on the relocation dependency list.  If yes, remove the
12143         latter.  Minor optimizations.
12144         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12145         maps here.  Search l_initfini list only if the object was loaded
12146         directly and not only as a dependency.
12147         (_dl_lookup_symbol): Add relocation dependency also if object
12148         is not in global scope.  Remove test for self-reference here.
12149         (_dl_lookup_versioned_symbol): Likewise.
12150         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12151         element of first name record.
12152         * elf/loadtest.c: Add some more test to recognize early if an object
12153         wasn't unloaded.
12154         * elf/Makefile: Add rules to build and run reldep5.
12155         * elf/reldep5.c: New file.
12156         * elf/reldepmod5.c: New file.
12157         * elf/reldepmod6.c: New file.
12159         * elf/reldep2.c: Fix typo.
12161 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12163         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12164         elements.  Change l_scope to be a pointer only.
12165         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12166         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12167         here add searchlist of newly open file to the dependency's scope.
12168         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12169         only searchlist from its scope.  Free own scope array if necessary.
12170         * elf/Makefile (tests): Add dblload and dblunload now.
12172 2001-09-06  Andreas Jaeger  <aj@suse.de>
12174         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12175         Stephen L Moshier.
12177 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12179         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12180         they both fail.
12181         * elf/dblload.c: New file.
12182         * elf/dblloadmod1.c: New file.
12183         * elf/dblloadmod2.c: New file.
12184         * elf/dblloadmod3.c: New file.
12185         * elf/dblunload.c: New file.
12187 2001-09-04  Richard Henderson  <rth@redhat.com>
12189         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12190         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12192 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12194         Correct very misleading message for error in failed runtime relocation.
12195         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12196         place of the error.
12197         (_dl_signal_cerror): Likewise.
12198         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12199         * elf/dl-close.c: Likewise.
12200         * elf/dl-deps.c: Likewise.
12201         * elf/dl-load.c: Likewise.
12202         * elf/dl-lookup.c: Likewise.
12203         * elf/dl-open.c: Likewise.
12204         * elf/dl-reloc.c: Likewise.
12205         * elf/dl-sym.c: Likewise.
12206         * elf/dl-version.c: Likewise.
12207         * sysdeps/generic/dl-sysdep.c: Likewise.
12209 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12211         * iconv/strtab.c (strtabinit): Initialize null Strent.
12212         (newstring): Move len == 0 handling...
12213         (strtabadd): ...here.
12214         If len == 1, return null Strent.
12215         When inserting a suffix of an existing string, check if
12216         it is not equal to some suffix already recorded.
12217         Copy left and right members over if adding longer string.
12219 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12221         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12223         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12224         (__syscall_gethostname): Add prototype.
12226 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12228         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12230 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12232         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12234 2001-08-27  Roland McGrath  <roland@frob.com>
12236         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12237         short, copy that much into NAME anyway before returning error.
12239 2001-09-01  Richard Henderson  <rth@redhat.com>
12241         * sysdeps/alpha/elf/Dist: Remove file.
12242         * sysdeps/alpha/elf/Makefile: Remove file.
12243         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12244         * sysdeps/alpha/elf/crtend.S: Remove file.
12245         * sysdeps/alpha/elf/initfini.c: New file.
12247 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12249         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12250         * iconv/tst-iconv3.c: Likewise.
12252 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12254         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12256 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12258         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12259         export it.
12260         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12261         * iconv/iconv_prog.c (insert_cache): New function.
12262         (print_known_names): If cache is used call insert_cache to use the
12263         information from the cache [PR libc/2509].
12265 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12267         * time/strptime.c (strptime_internal): Recognize 'l' format and
12268         handle it like 'I' for symmetry with strftime.
12270 2001-08-31  Richard Henderson  <rth@redhat.com>
12272         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12273         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12274         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12275         (print_statistics): Make scalar unsigned long long.
12276         * sysdeps/alpha/hp-timing.h: New file.
12278 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12280         * stdio-common/perror.c (perror): Save errno early, pass it
12281         down to perror_internal.
12282         (perror_internal): Add errnum argument.
12284 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12286         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12287         Don't add old memory content for R_ALPHA_REFQUAD.
12289 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12291         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12292         memory correctly.
12294         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12295         instead of open, __close instead of close, __getpagesize instead
12296         of getpagesize.
12298         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12299         instead of strnlen.
12300         * include/string.h (strndupa): Redefine here to use __strnlen
12301         instead of strnlen.
12302         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12304         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12305         connected).
12307 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12309         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12310         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12311         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12312         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12313         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12314         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12315         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12317 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12319         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12321 2001-08-30  Andreas Jaeger  <aj@suse.de>
12323         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12324         contributed Stephen L Moshier.
12326 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12328         * sunrpc/etc.rpc (sgi_fam): Add.
12330 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12332         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12334 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12336         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12337         first is from a previous call.
12338         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12340 2001-08-29  Andreas Schwab  <schwab@suse.de>
12342         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12344 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12346         * config.make.in (INSTALL_SCRIPT): Define.
12347         * Makeconfig (INSTALL_SCRIPT): Define.
12348         * Makerules (do-install-script): New macro to install scripts using
12349         INSTALL_SCRIPT.
12350         (install-bin-script): New rule to install scripts with
12351         do-install-script.
12352         (install-bin-script-nosubdir): New rule.
12353         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12354         (distinfo-vars): Add $(install-bin-script).
12355         * Rules (others): Likewise.
12356         * Makefile (glibcbug): Install with install-bin-script.
12357         * debug/Makefile (xtrace): Likewise.
12358         (catchsegv): Likewise.
12359         * elf/Makefile (ldd): Likewise.
12360         * malloc/Makefile (mtrace): Likewise.
12361         * timezone/Makefile (tzselect): Likewise.
12363 2001-08-29  H.J. Lu  <hjl@gnu.org>
12365         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12366         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12367         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12369 2001-08-29  Andreas Schwab  <schwab@suse.de>
12371         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12373 2001-08-28  H.J. Lu  <hjl@gnu.org>
12375         * Makeconfig (combreloc-LDFLAGS): New variable.
12376         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12377         * config.make.in (have-z-combreloc): New variable.
12378         * configure.in: Substitute libc_cv_z_combreloc.
12380 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12382         * po/sv.po: Update from translation team.
12383         * po/fr.po: Likewise.
12384         * po/da.po: Likewise.
12386 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12388         * Makerules: Fix a typo: MD% -> MD5.
12390 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12392         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12393         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12395 2001-08-28  Andreas Jaeger  <aj@suse.de>
12397         * manual/libc-texinfo.sh: Add entry about free manuals.
12399         * manual/contrib.texi (Contributors): Fix cross reference.
12401         * manual/libc.texinfo (Copying): Include freemanuals.
12403         * manual/Makefile (appendices): Add freemanuals.
12405         * manual/freemanuals.texi: New file.
12406         Patch by Brian Youmans <3diff@gnu.org>.
12408         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12409         smaller table.
12411         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12412         table on separate page.
12413         Patch by Brian Youmans <3diff@gnu.org>.
12415 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12417         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12418         the connection went down after we first used it try to connect
12419         again and resend the message before printing to the console.
12420         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12422 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12424         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12425         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12426         bit set.
12428 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12430         * iconv/strtab.c (searchstring): Use correct length for comparison.
12431         (strtabadd): Account total size correct if new string has old string as
12432         substring.
12434 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12436         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12438 2001-08-27  Andreas Jaeger  <aj@suse.de>
12440         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12442         * math/libm-test.inc (j0_test): Add extra tests.
12443         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12444         not x, in Hankel approximation.
12445         Patches by Stephen L Moshier.
12447 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12449         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12450         link_map.
12452         * configure.in: Fix test for .rela.dyn section.
12454         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12456 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12458         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12459         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12460         Pass type_class to _dl_lookup_*.
12461         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12462         Pass around just type_class instead of noexec, noplt pair.
12463         (_dl_lookup_versioned_symbol): Likewise.
12464         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12465         noexec, noplt pair.
12466         (_dl_lookup_versioned_symbol_skip): Likewise.
12467         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12468         * elf/do-lookup.h (do_lookup): Likewise.
12469         * include/link.h (struct link_map): Replace noexec and noplt fields
12470         in l_lookup_cache with type_class field.
12471         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12472         ELF_RTYPE_CLASS_COPY): Define.
12473         Adjust prototypes for _dl_lookup_symbol and
12474         _dl_lookup_versioned_symbol.
12475         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12476         elf_machine_lookup_noexec_p): Remove.
12477         (elf_machine_type_class): Define.
12478         * sysdeps/arm/dl-machine.h: Likewise.
12479         * sysdeps/hppa/dl-machine.h: Likewise.
12480         * sysdeps/cris/dl-machine.h: Likewise.
12481         * sysdeps/i386/dl-machine.h: Likewise.
12482         * sysdeps/ia64/dl-machine.h: Likewise.
12483         * sysdeps/m68k/dl-machine.h: Likewise.
12484         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12485         * sysdeps/mips/dl-machine.h: Likewise.
12486         * sysdeps/powerpc/dl-machine.h: Likewise.
12487         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12488         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12489         * sysdeps/sh/dl-machine.h: Likewise.
12490         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12491         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12493 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12495         * manual/message.texi (Advanced gettext functions): Change
12496         description of plural forms for Slovak.
12497         Reported by Marcel Telka <marcel@telka.sk>.
12499         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12500         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12502 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12504         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12505         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12507 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12509         * include/link.h (struct link_map): Add l_lookup_cache element.
12510         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12511         (RESOLVE_MAP): Likewise.
12512         (_dl_relocate_object): Remove cache initialization.
12513         * elf/dl-lookup.c: Rip out cache handling code.
12514         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12515         declarations.
12517         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12518         remove some __builtin_expect.
12519         (_dl_lookup_versioned_symbol): Likewise.
12521         * config.h.in: Add HAVE_Z_COMBRELOC.
12522         * configure.in: Add test for -z combreloc.
12524         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12525         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12526         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12527         case to almost no code.
12529 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12531         * po/tr.po: Update from translation team.
12533 2001-08-24  Andreas Jaeger  <aj@suse.de>
12535         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12536         make clean works.
12538 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12540         * elf/rtld.c (print_statistics): Printf % after percent values.
12541         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12543         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12544         don't have to compute the hash value and initialize current_value.
12545         Move reference_name variable to where it is needed.
12546         (_dl_lookup_versioned_symbol): Likewise.
12548 2001-08-24  Roland McGrath  <roland@frob.com>
12550         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12551         Just test that strerror returns non-null for a few errno codes.
12553 2001-08-23  Roland McGrath  <roland@frob.com>
12555         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12556         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12558         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12560         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12561         __mach_reply_port.
12563 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12565         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12566         returns NULL.
12568         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12569         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12570         doesn't do it.
12571         * elf/rtld.c: Include <sys/param.h>.
12572         * elf/dl-reloc.c: Likewise.
12574 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12576         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12577         empty to prevent junk from being generated.
12578         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12580 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12582         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12583         records.  Rename endrel to relative, initialize it to r, and use it
12584         in elf_machine_rel_relative calls.  Point r after relative relocs.
12586 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12588         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12589         of R_386_NONE.
12591 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
12593         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12594         necessary.  Undefine newly defined macros at the end.
12595         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12596         Rename from elf_machine_rel_relative.
12597         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12598         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12599         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12600         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12601         Likewise.
12602         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12603         Likewise.
12604         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12605         Fix argument types.
12606         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12607         Fix argument types.
12608         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12609         Likewise.  Fix argument types.
12610         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12611         Likewise.  Fix argument types.
12612         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12613         Fix argument types.
12614         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12615         ElfW(Rel) in argument.
12616         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12617         function.
12619 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
12621         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12623 2001-08-24  Andreas Jaeger  <aj@suse.de>
12625         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12626         Stephen L Moshier <moshier@mediaone.net>.
12628 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
12630         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12631         first if RELCOUNT is set.
12633         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12634         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12635         elf_machine_rel_relative.
12636         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12637         Minor optimizations.
12638         * sysdeps/arm/dl-machine.h: Likewise.
12639         * sysdeps/cris/dl-machine.h: Likewise.
12640         * sysdeps/hppa/dl-machine.h: Likewise.
12641         * sysdeps/i386/dl-machine.h: Likewise.
12642         * sysdeps/ia64/dl-machine.h: Likewise.
12643         * sysdeps/m68k/dl-machine.h: Likewise.
12644         * sysdeps/mips/dl-machine.h: Likewise.
12645         * sysdeps/powerpc/dl-machine.h: Likewise.
12646         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12647         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12648         * sysdeps/sh/dl-machine.h: Likewise.
12649         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12650         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12652 2001-08-23  Roland McGrath  <roland@frob.com>
12654         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12656         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12657         sysdeps/mach version.  Implement counting ("recursive") mutexes
12658         on top of cthreads mutexes.
12659         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12661         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12662         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12663         (__libc_cleanup_region_start, __libc_cleanup_region_end,
12664         __libc_clean_end): Define these to call the cleanup function after
12665         normal exit when they're supposed to.
12667         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12668         Take new first arg DOIT, a boolean saying whether to really install
12669         any cleanup handler.
12670         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12671         (__libc_cleanup_end): Likewise.
12672         * sysdeps/generic/bits/libc-lock.h: Same changes.
12673         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12674         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12675         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12676         Likewise.
12677         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12678         * sysdeps/generic/bits/stdio-lock.h
12679         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12681 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12683         * elf/ldconfig.c (search_dir): Remove stale symlinks.
12685 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12687         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12688         functions.
12689         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12690         lookups in cache.
12691         (_dl_lookup_versioned_symbol): Likewise.
12692         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12693         relocation lookup.
12694         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12695         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12696         (lookup_cache, lookup_cache_versioned): Add declarations.
12698 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12700         * stdlib/tst-random.c (main): Swap parameters in fail call.
12701         Patch by Pete Bevin <pete@petebevin.com>.
12703 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
12705         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12707 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
12709         * malloc/obstack.c: Indent preprocessor directives.
12710         Patch by Jim Meyering <meyering@ascend.com>.
12712         * po/ja.po: Update from translation team.
12714 2001-08-23  Roland McGrath  <roland@frob.com>
12716         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12718         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12719         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12721 2001-08-22  Roland McGrath  <roland@frob.com>
12723         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12724         __libc_lock_define_recursive.
12725         * elf/dl-open.c: Don't declare it here any more.
12726         * elf/dl-close.c: Likewise.
12727         * elf/dl-lookup.c: Likewise.
12728         * elf/dl-iteratephdr.c: Likewise.
12729         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12730         __libc_lock_unlock_recursive.
12731         * elf/dl-close.c (_dl_close): Likewise
12732         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12733         * elf/dl-open.c (_dl_open): Likewise
12735         * sysdeps/generic/bits/libc-lock.h
12736         (__libc_lock_define_recursive): New macro.
12737         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12738         (_IO_lock_lock): Use __libc_lock_lock_recursive.
12739         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12741         * conform/conformtest.pl (checknamespace): Sort the output list.
12743         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12744         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12745         definitions conditional on [__USE_XOPEN].
12747         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12748         these unconditionally, not only use [__USE_BSD], so as to match
12749         the sysdeps/unix/sysv/linux files.
12751 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12753         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12754         avoid warnings.
12756         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12757         DL_LOOKUP_ADDRESS.
12759 2001-08-22  Roland McGrath  <roland@frob.com>
12761         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12762         conditionalization of sa_handler/sa_sigaction member types to
12763         match the sysdeps/unix/sysv/linux file.
12765 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12767         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12768         symbol sizes a bit better.
12770         * sysdeps/ia64/strncpy.S: Complete rewrite.
12771         Contributed by Jakub Jelinek <jakub@redhat.com>.
12773         * string/stratcliff.c (main): Add strncpy test.
12775 2001-08-22  Roland McGrath  <roland@frob.com>
12777         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12778         and don't declare unsetenv or _environ directly.
12779         (unsetenv): Return int, not void.  Use __environ instead of _environ.
12781 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12783         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12784         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12785         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12786         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12787         test for cmsg struct size.
12789 2001-04-23  Paul Eggert  <eggert@twinsun.com>
12791         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12792         Rename __argc to ___argc in prototypes to avoid compatibility
12793         problems with systems that reserve the identifier "__argc".
12794         Similarly for __argv.
12796 2001-08-21  Roland McGrath  <roland@frob.com>
12798         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12800         * mach/Makefile (tests): Removed.
12801         * mach/hello.c: File removed.
12803 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
12805         * po/sv.po: Update from translation team.
12807         * stdio-common/vfscanf.c: Fix handling of %l[].
12808         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12810         * libio/Makefile (tests): Add tst-sscanf.
12811         * libio/tst-sscanf.c: New file.
12813         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12814         * malloc/mtrace.c (tr_where): dli_sname always points to a
12815         non-empty string if != NULL.
12816         Reported by Tim Janik <timj@gtk.org>.
12818 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
12820         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12821         buf.  Free resources on failure.
12822         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12823         (makefd_xprt): Likewise.
12824         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12825         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12826         * sunrpc/auth_unix.c (authunix_create): Likewise.
12828 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
12830         * string/strnlen.c: Remove.
12831         * sysdeps/generic/strnlen.c: New file.
12832         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12834 2001-08-21  Roland McGrath  <roland@frob.com>
12836         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12837         as a macro, not an extern inline function.
12839         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12840         * Versions.def (libc): Add GLIBC_2.2.5 set.
12841         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12842         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12844 2001-08-20  Roland McGrath  <roland@frob.com>
12846         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12847         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12849 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12851         * string/bits/string2.h: Remove strnlen optimization here.
12852         * sysdeps/i386/i486/bits/string.h: Add it here.
12854 2001-08-21  Wolfram Gloger  <wg@malloc.de>
12856         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12858 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
12860         * po/gl.po: Update from translation team.
12862 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12864         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12865         * misc/err.c (convert_and_print): Likewise.
12867         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12868         function calls.
12870 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12872         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12873         change of the gregset_t type.
12874         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12876 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12878         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12880 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12882         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12884         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
12886 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
12888         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12889         before calling the cthreads initialization code.
12891 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
12893         * argp/argp-help.c: Fix two problems introduced in last change.
12895         * include/dirent.h: Include <dirstream.h> first.
12897 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
12899         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12901         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12902         * sunrpc/xdr_rec.c: Likewise.
12903         * sunrpc/xdr_mem.c: Likewise.
12904         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12905         * sunrpc/rpc_cmsg.c: Likewise.
12906         * sunrpc/getrpcport.c (getrpcport): Likewise.
12907         * sunrpc/clnt_simp.c (callrpc): Likewise.
12908         * sunrpc/clnt_gen.c (clnt_create): Likewise.
12909         * string/envz.c: Likewise.
12911         * po/ko.po: Update from translation team.
12913         * argp/argp-help.c: Handle wide oriented stderr stream.
12915 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
12917         * sysdeps/generic/strtol.c: Little optimizations.  Add some
12918         __builtin_expect.
12920         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12922         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12923         * wcsmbs/wcwidth.c (wcwdith): Likewise.
12924         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12926         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12928         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12930         * time/time.h (struct timespec): Use __time_t for tv_sec element.
12932         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
12933         wchar_t for function declarations and defintions.
12935         * misc/sys/select.h: Define __need_time_t before including <time.h>.
12936         Define suseconds_t if it hasn't happened yet.
12938         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12940         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12942         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12943         <stddef.h>.
12945         * conform/data/stddef.h-data: Remove wint_t.
12947         * conform/conformtest.pl: Change namespace test to take #undef
12948         lines into account.
12950         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12952         * conform/data/sys/socket.h-data: Add sockatmark.
12954 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12956         * io/fts.c: Update from recent BSD source.
12958 2001-08-17  Roland McGrath  <roland@frob.com>
12960         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
12961         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
12962         Likewise.
12964 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12966         * locale/duplocale.c (__duplocale): Also initialize the special
12967         __ctype_* elements.
12969         * conform/data/netdb.h-data: Adjust gai_strerror return type.
12971 2001-08-17  Andreas Jaeger  <aj@suse.de>
12973         * misc/getpass.c: Include wchar.h for prototypes.
12974         * malloc/obstack.c: Likewise.
12976 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
12978         * sunrpc/svc_simple.c (universal): Use __write instead of write.
12980         * wcsmbs/wcscoll.c: Also define __wcscoll.
12981         * include/wchar.h: Declare __wcscoll.
12983         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
12984         * libio/vwprintf.c: Likewise.
12985         * libio/wprintf.c: Likewise.
12987         * iconv/gconv_cache.c: Use __munmap instead of munmap.
12989 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
12991         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
12992         instead of mbrtowc.
12993         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
12994         wcslen, and __wcscoll instead of wcscoll.
12996         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
12998         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
12999         __getuid instead of getuid.
13001         * stdio-common/perror.c (perror): Use __close instead of close.
13002         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13003         * libio/freopen.c (freopen): Likewise.
13004         * libio/freopen64.c (freopen64): Likewise.
13006         * libio/tst-ungetwc2.c (main): Define str const.
13008         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13009         * libio/fwprintf.c: Also define __fwprintf.
13010         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13011         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13012         * assert/assert-perr.c: Likewise.
13013         * assert/assert.c: Likewise.
13014         * gmon/gmon.c: Likewise.
13015         * inet/rcmd.c: Likewise.
13016         * malloc/obstack.c: Likewise.
13017         * misc/err.c: Likewise.
13018         * misc/error.c: Likewise.
13019         * misc/getpass.c: Likewise.
13020         * posix/getopt.c: Likewise.
13021         * resolv/res_hconf.c: Likewise.
13022         * stdio-common/perror.c: Likewise.
13023         * stdio-common/psignal.c: Likewise.
13024         * stdlib/fmtmsg.c: Likewise.
13025         * sunrpc/auth_unix.c: Likewise.
13026         * sunrpc/clnt_perr.c: Likewise.
13027         * sunrpc/clnt_tcp.c: Likewise.
13028         * sunrpc/clnt_udp.c: Likewise.
13029         * sunrpc/clnt_unix.c: Likewise.
13030         * sunrpc/svc_simple.c: Likewise.
13031         * sunrpc/svc_tcp.c: Likewise.
13032         * sunrpc/svc_udp.c: Likewise.
13033         * sunrpc/svc_unix.c: Likewise.
13034         * sunrpc/xdr.c: Likewise.
13035         * sunrpc/xdr_array.c: Likewise.
13036         * sunrpc/xdr_rec.c: Likewise.
13037         * sunrpc/xdr_ref.c: Likewise.
13038         * sysdeps/generic/wordexp.c: Likewise.
13040         * po/it.po: Update from translation team.
13042         * misc/err.c: Handle wide oriented stderr stream.
13044 2001-08-14  Tom Rix  <trix@redhat.com>
13046         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13047         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13049 2001-08-13  Tom Rix  <trix@redhat.com>
13051         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13052         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13053         and __intptr_t.
13055 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13057         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13058         Store the access registers to the ucontext structure.
13059         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13060         Likewise.
13062         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13063         Load the access registers from the ucontext structure.
13064         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13065         Likewise.
13067         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13068         offsets to the new ucontext layout.
13069         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13071         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13072         of the ucontext structure.
13073         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13075 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13077         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13078         (error_at_line): Likewise.
13080         * stdio-common/perror.c (perror): Implement according to standard.
13081         The stream orientation must not be changed if the stream was not
13082         oriented before the call.
13083         * stdio-common/Makefile (tests): Add tst-perror.
13084         * stdio-common/tst-perror.c: New file.
13087 See ChangeLog.12 for earlier changes.