1 2002-09-17 Bruno Haible <bruno@clisp.org>
3 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
4 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
5 also on platforms with !HAVE_UT_TYPE.
6 (proc_utmp_eq): Remove function.
7 (internal_getut_r, pututline_file): Call __utmp_equal instead.
9 2002-09-20 Bruno Haible <bruno@clisp.org>
11 * abi-tags: Add support for FreeBSD with ABI OS value 3.
12 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
14 2002-09-20 Roland McGrath <roland@redhat.com>
16 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
17 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
19 * sysdeps/x86_64/gmp-mparam.h: File removed.
20 * sysdeps/sparc/gmp-mparam.h: File removed.
21 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
22 * sysdeps/ia64/gmp-mparam.h: File removed.
23 * sysdeps/alpha/gmp-mparam.h: File removed.
25 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
27 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
28 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
29 casts. Align __libc_stack_end to 8 bytes.
31 2002-09-20 Roland McGrath <roland@redhat.com>
33 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
34 instead of asm for lrintf, __lrintf aliases.
36 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
37 int array for 32-/64-bit compatibility.
38 From Steven Munroe <sjmunroe@us.ibm.com>.
40 2002-09-17 Bruno Haible <bruno@clisp.org>
42 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
43 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
44 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
45 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
46 for iterating through the list of interfaces.
47 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
49 2002-09-20 Roland McGrath <roland@redhat.com>
51 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
52 Reported by Bruno Haible <bruno@clisp.org>.
54 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
56 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
57 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
58 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
60 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
62 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
63 * sysdeps/powerpc/bits/wordsize.h: New file.
64 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
65 array to int array for 32-/64-bit compatibility.
67 2002-09-20 Roland McGrath <roland@redhat.com>
69 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
71 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
72 Reported by Bruno Haible <bruno@clisp.org>.
74 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
75 before doubling RQ_LEN.
76 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
77 Reported by Bruno Haible <bruno@clisp.org>.
79 2002-09-18 Bruno Haible <bruno@clisp.org>
81 * login/logout.c (logout): Don't assume ut_time has the same size as
83 * login/logwtmp.c (logwtmp): Likewise.
85 * sysdeps/pthread/configure: New file, moved here from
86 linuxthreads/sysdeps/unix/sysv/linux/configure.
88 2002-09-19 Ulrich Drepper <drepper@redhat.com>
90 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
91 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
92 Reported by Glen Nakamura <glen@imodulo.com>.
94 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
96 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
97 thread's sigstate data structure if it has been allocated.
99 2002-09-19 Roland McGrath <roland@redhat.com>
101 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
102 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
104 2002-09-18 Ulrich Drepper <drepper@redhat.com>
106 * version.h (VERSION): Bump to 2.2.94.
108 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
109 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
110 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
113 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
115 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
117 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
121 2002-09-19 Jakub Jelinek <jakub@redhat.com>
123 * sysdeps/wordsize-32/Makefile: New file.
124 * sysdeps/arm/Makefile: Removed.
125 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
126 Don't add divdi3 here.
127 * sysdeps/m68k/Makefile: Likewise.
128 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
129 * sysdeps/sh/Makefile: Likewise.
130 * sysdeps/s390/s390-32/Makefile: Likewise.
132 2002-09-18 Roland McGrath <roland@redhat.com>
134 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
135 the __ctype_* compat symbols, so the relocs generated bind to the
136 right versioned global symbol in the shared object.
138 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
139 from the value taken from the DT_VERSYM table.
140 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
141 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
142 (RESOLVE_GOTSYM): Likewise.
144 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
146 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
147 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
148 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
149 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
150 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
151 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
152 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
153 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
155 2002-09-18 Ulrich Drepper <drepper@redhat.com>
157 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
159 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
160 define sigaction and __sigaction as wrappers around
161 __libc_sigaction which rejects changing SIGCANCEL.
162 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
164 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
167 * signal/allocrtsig.c: Move to...
168 * sysdeps/generic/allocrtsig.c: ...here. New file.
170 2002-09-17 Jakub Jelinek <jakub@redhat.com>
172 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
174 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
175 R_386_TLS_LE): Define.
176 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
178 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
179 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
180 (elf_machine_rel): Handle R_386_TLS_TPOFF.
181 (elf_machine_rela): Likewise.
182 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
184 2002-09-17 Roland McGrath <roland@redhat.com>
186 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
187 file-specific variable override so it compiles properly when using
190 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
192 Ported to PowerPC64 running Linux.
193 * sysdeps/powerpc/powerpc64/Dist: New file.
194 * sysdeps/powerpc/powerpc64/Implies: New file.
195 * sysdeps/powerpc/powerpc64/Makefile: New file.
196 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
197 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
198 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
199 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
200 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
201 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
202 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
203 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
204 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
205 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
206 * sysdeps/powerpc/powerpc64/memset.S: New file.
207 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
208 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
209 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
210 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
211 * sysdeps/powerpc/powerpc64/strchr.S: New file.
212 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
213 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
214 * sysdeps/powerpc/powerpc64/strlen.S: New file.
215 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
216 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
217 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
218 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
227 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
228 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
229 various gcc versions. Dot names required for powerpc64.
230 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
231 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
232 C_SYMBOL_DOT_NAME(alias).
233 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
234 original strong_alias macro.
235 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
236 C_SYMBOL_DOT_NAME(alias).
237 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
238 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
240 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
241 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
242 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
243 (hidden_def): Append hidden_dot_def1 macro to definition.
244 (hidden_ver): Append hidden_dot_def1 macro to definition.
245 (hidden_data_def): New macro. Same as original hidden_def macro.
246 (hidden_data_ver): New macro. Same as original hidden_ver macro.
247 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
248 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
249 (hidden_weak): Append hidden_dot_weak1 macro to definition.
250 (hidden_data_weak): New macro. Same as original hidden_weak macro.
251 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
252 Otherwise defined as __GI_name.
253 (libc_hidden_data_def): New macro. Use hidden_data_def.
254 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
255 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
256 (rtld_hidden_data_def): New macro. Use hidden_data_def.
257 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
258 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
259 (libm_hidden_data_def): New macro. Use hidden_data_def.
260 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
261 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
262 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
264 2002-09-17 Ulrich Drepper <drepper@redhat.com>
266 * include/libc-symbols.h: Change *hidden_proto macros to accept
267 option parameters and pass those to the attribute definition.
268 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
270 * include/unistd.h: Declare __libc_pause.
272 * include/sys/socket.h: Declare __libc_send, __libc_recv,
273 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
275 * include/unistd.h: Declare __libc_fork.
277 2002-09-17 Roland McGrath <roland@redhat.com>
279 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
280 (passwd2des): Define it as an alias.
281 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
283 2002-09-12 Bruno Haible <bruno@clisp.org>
285 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
286 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
288 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
289 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
291 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
293 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
294 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
295 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
296 PowerPC64 does not have separate 64-bit syscalls.
298 2002-09-16 Roland McGrath <roland@redhat.com>
300 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
305 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
307 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
308 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
309 * sysdeps/generic/_exit.c: Likewise.
311 2002-09-12 Jakub Jelinek <jakub@redhat.com>
313 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
315 * elf/rtld.c (struct dl_start_final_info): New.
316 (_dl_start_final): Change second argument to struct
317 dl_start_final_info *. Set start_time from info.
318 (_dl_start): Remove bootstrap_map variable, add info.
319 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
320 store HP_TIMING_NOW result into info.start_time.
322 2002-09-16 Andreas Jaeger <aj@suse.de>
324 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
326 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
328 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
330 * sysdeps/powerpc/abort-instr.h: New file.
332 2002-09-14 Ulrich Drepper <drepper@redhat.com>
334 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
337 * test-skeleton.c (main): Provide more information in case waitpid
340 * include/unistd.h: Declare __exit_thread.
341 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
342 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
343 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
344 * sysdeps/unix/sysv/linux/_exit.c: New file.
345 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
346 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
349 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
351 2002-09-12 Jakub Jelinek <jakub@redhat.com>
353 * sysdeps/i386/dl-machine.h (elf_machine_rel)
354 (case R_386_TLS_DTPMOD32): Don't use addend.
355 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
356 (elf_machine_rela): Add support for TLS relocs.
358 2002-09-14 Roland McGrath <roland@redhat.com>
360 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
362 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
364 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
365 specific asm macros for multiple percision integer math.
367 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
369 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
370 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
371 Remove per-machine conditionals for FLAG_* cases.
372 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
373 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
376 2002-09-10 Alan Modra <amodra@bigpond.net.au>
378 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
380 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
381 lowest address for profiling in __monstartup call.
382 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
384 2002-09-14 Roland McGrath <roland@redhat.com>
386 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
387 instead of __NR_pread.
388 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
389 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
390 instead of __NR_pwrite.
391 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
393 2002-09-13 Roland McGrath <roland@redhat.com>
395 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
397 2002-09-13 Andreas Jaeger <aj@suse.de>
399 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
400 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
402 2002-09-12 Ulrich Drepper <drepper@redhat.com>
404 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
406 2002-09-10 Ulrich Drepper <drepper@redhat.com>
408 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
411 2002-09-12 Roland McGrath <roland@redhat.com>
413 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
414 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
417 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
418 executable if needed, in case it's actually a shared object.
420 2002-09-11 Roland McGrath <roland@redhat.com>
422 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
423 l_map_start to adjust l_tls_initimage.
425 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
426 when using h_errno and it's not set to NETDB_INTERNAL.
427 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
429 * Makefile ($(common-objpfx)testrun.sh): New target.
430 (others): Depend on it.
431 (postclean-generated): Append it.
433 * nss/bug-erange.c: New file.
434 * nss/Makefile (tests): Add it.
436 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
437 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
439 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
440 strncmp, keeps the code smaller for a non-performance-critical case.
442 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
443 no longer wrongly matches arbitrary prefixes of NAME.
444 Reported by Jakub Jelinek <jakub@redhat.com>.
446 2002-09-11 Jakub Jelinek <jakub@redhat.com>
448 * posix/bug-regex11.c (tests): New array.
449 (main): Rewritten to run more different tests.
451 2002-09-10 Roland McGrath <roland@redhat.com>
453 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
454 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
455 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
457 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
458 well so we don't get it declared by include/math.h's hidden_proto.
459 Then do hidden_proto for __isnanf locally so hidden_def works right.
461 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
462 a cast to turn nl_langinfo return value into an integer.
464 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
466 * posix/regexec.c (build_trtable): Fix the destination of
467 newline to prevent wrong states from overwriting.
468 Append break statements to optimization.
470 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
472 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
473 (build_range_exp): Add castings to strlen invocations.
474 (build_collating_symbol): Restore the type of characters from "char"
475 to "unsigned char", and supplement castings.
476 (build_collating_symbol): Likewise.
477 (build_equiv_class): Likewise.
478 (build_charclass): Likewise.
479 (seek_collating_symbol_entry): Likewise.
480 (parse_bracket_exp): Likewise.
481 (build_word_op): Supplement a casting.
482 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
483 (re_string_allocate): Fix castings.
484 (re_string_construct): Likewise.
485 (re_string_construct_common): Likewise.
486 (re_string_realloc_buffers): Likewise.
487 (build_wcs_buffer): Likewise.
488 (build_wcs_upper_buffer): Likewise.
489 (re_string_skip_chars): Likewise.
490 (re_string_reconstruct): Likewise.
491 * posix/regex_internal.h: Restore the type of characters in
492 re_string_t and bracket_elem_t from "char" to "unsigned char".
493 (re_string_elem_size_at): Fix castings.
494 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
495 (transit_state_bkref_loop): Restore the type of characters from
496 "char" to "unsigned char", and append a cast to "char*" pointer in
498 (check_node_accept_bytes): Likewise.
499 (find_collation_sequence_value): Likewise.
501 2002-09-10 Hartvig Ekner <hartvige@mips.com>
503 * sysdeps/mips/memcpy.S: New file.
504 * sysdeps/mips/memset.S: New file.
505 * sysdeps/mips/fpu/e_sqrt.c: New file.
506 * sysdeps/mips/fpu/e_sqrtf.c: New file.
508 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
509 functional before. Also removed all SHLIB_COMPAT stuff.
510 * fpu/fegetenv.c: Likewise.
511 * fpu/fesetenv.c:: Likewise.
512 * fpu/feupdateenv.c: Likewise.
513 * fpu/fgetexcptflg.c: Likewise.
514 * fpu/fraiseexcpt.c: Likewise.
516 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
518 2002-09-09 Jakub Jelinek <jakub@redhat.com>
520 * include/math.h (__finite_internal, __finitef_internal,
521 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
523 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
524 __isinfl, __isnanl): Add hidden_proto.
525 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
527 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
528 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
530 * stdio-common/printf_size.c (printf_size): Likewise.
531 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
532 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
533 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
534 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
535 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
536 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
537 (__finite): Add hidden_def.
538 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
539 (__finitef): Add hidden_def.
540 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
541 (__finitel): Add hidden_def.
542 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
544 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
545 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
547 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
548 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
550 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
551 (__isinfl): Remove INTDEF.
552 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
554 (__isnanl): Remove INTDEF.
555 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
557 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
558 instead of sin and cos.
559 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
561 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
562 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
563 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
565 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
567 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
568 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
569 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
571 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
573 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
575 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
576 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
577 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
579 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
580 __finitel_internal): Remove aliases.
581 (__finite, __finitef, __finitel): Add hidden_def.
582 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
583 __isnanl_internal): Remove aliases.
584 (__isnan, __isnanf, __isnanl): Add hidden_def.
585 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
586 __isinfl_internal): Remove aliases.
587 (__isinf, __isinff, __isinfl): Add hidden_def.
588 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
589 __fpclassifyl): Add libm_hidden_def.
590 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
591 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
592 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
593 (hidden_defx): Define and use.
594 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
596 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
597 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
598 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
600 (__isnan, __isnanf): Add hidden_def.
601 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
602 (__finitel): Add libm_hidden_def.
603 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
605 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
606 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
607 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
608 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
609 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
610 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
611 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
612 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
613 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
614 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
615 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
616 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
617 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
618 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
619 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
620 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
621 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
622 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
623 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
624 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
625 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
626 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
627 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
628 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
629 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
630 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
631 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
633 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
635 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
637 2002-09-09 Jakub Jelinek <jakub@redhat.com>
639 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
640 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
642 2002-09-09 Ulrich Drepper <drepper@redhat.com>
644 * string/stratcliff.c: Some more strncpy tests.
645 Patch by Daniel Jacobowitz <drow@mvista.com>.
647 2002-09-08 Roland McGrath <roland@redhat.com>
649 * resolv/resolv.h: Include <sys/types.h> for u_long even in
650 the [__need_res_state] case.
651 Reported by Bruno Haible <bruno@clisp.org>.
653 2002-09-04 Bruno Haible <bruno@clisp.org>
655 * sysdeps/generic/bits/ustat.h: Comment fix.
656 * io/sys/sendfile.h: Comment fix.
657 * sysdeps/posix/pread.c: Comment fix.
658 * sysdeps/posix/pread64.c: Comment fix.
659 * sysdeps/posix/pwrite.c: Comment fix.
660 * sysdeps/posix/pwrite64.c: Comment fix.
662 2002-09-06 Roland McGrath <roland@redhat.com>
664 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
665 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
666 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
667 (_UTSNAME_MACHINE_LENGTH): Likewise.
668 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
670 2002-09-06 Ulrich Drepper <drepper@redhat.com>
672 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
673 test for filesystem type name of mount points.
675 * include/errno.h: Use errno definition with __thread for now only
678 * test-skeleton.c (main): Improve error message for unexpected
681 2002-09-05 Roland McGrath <roland@redhat.com>
683 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
684 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
686 2002-09-05 Jakub Jelinek <jakub@redhat.com>
688 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
691 2002-09-04 Bruno Haible <bruno@clisp.org>
693 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
694 sigset_get_old_mask): Turn into inline functions.
695 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
696 sigset_get_old_mask): Likewise.
697 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
698 sigset_get_old_mask): Likewise.
699 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
702 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
704 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
706 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
707 _sys_nerr_internal instead of _sys_nerr.
709 * nscd/connections.c (handle_request): Declare CALLER inside #if.
711 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
713 * sysdeps/powerpc/__longjmp.S: Moved to...
714 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
715 * sysdeps/powerpc/add_n.S: Moved to...
716 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
717 * sysdeps/powerpc/addmul_1.S: Moved to...
718 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
719 * sysdeps/powerpc/atomicity.h: Moved to...
720 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
721 * sysdeps/powerpc/backtrace.c: Moved to...
722 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
723 * sysdeps/powerpc/bp-asm.h: Moved to...
724 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
725 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
726 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
727 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
728 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
729 * sysdeps/powerpc/dl-machine.c: Moved to...
730 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
731 * sysdeps/powerpc/dl-machine.h: Moved to...
732 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
733 * sysdeps/powerpc/dl-start.S: Moved to...
734 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
735 * sysdeps/powerpc/gprrest0.S: Moved to...
736 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
737 * sysdeps/powerpc/gprrest1.S: Moved to...
738 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
739 * sysdeps/powerpc/gprsave0.S: Moved to...
740 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
741 * sysdeps/powerpc/gprsave1.S: Moved to...
742 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
743 * sysdeps/powerpc/lshift.S: Moved to...
744 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
745 * sysdeps/powerpc/memset.S: Moved to...
746 * sysdeps/powerpc/powerpc32/memset.S: ...here.
747 * sysdeps/powerpc/mul_1.S: Moved to...
748 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
749 * sysdeps/powerpc/ppc-mcount.S: Moved to...
750 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
751 * sysdeps/powerpc/register-dump.h: Moved to...
752 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
753 * sysdeps/powerpc/rshift.S: Moved to...
754 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
755 * sysdeps/powerpc/setjmp.S: Moved to...
756 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
757 * sysdeps/powerpc/stpcpy.S: Moved to...
758 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
759 * sysdeps/powerpc/strchr.S: Moved to...
760 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
761 * sysdeps/powerpc/strcmp.S: Moved to...
762 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
763 * sysdeps/powerpc/strcpy.S: Moved to...
764 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
765 * sysdeps/powerpc/strlen.S: Moved to...
766 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
767 * sysdeps/powerpc/sub_n.S: Moved to...
768 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
769 * sysdeps/powerpc/submul_1.S: Moved to...
770 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
771 * sysdeps/powerpc/elf/bzero.S: Moved to...
772 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
773 * sysdeps/powerpc/elf/start.S: Moved to...
774 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
775 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
776 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
777 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
778 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
779 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
780 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
781 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
782 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
783 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
784 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
785 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
786 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
787 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
789 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
791 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
793 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
795 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
797 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
799 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
801 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
804 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
806 * FAQ.in: Add powerpc64 to supported targets list. Also state the
807 minimum gcc version is 3.2
808 * README: Add powerpc64 to supported targets list.
809 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
810 Add powerpc64 and machine=powerpc/powerpc64.
811 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
812 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
813 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
814 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
815 * sysdeps/powerpc/powerpc32/Dist: New file.
816 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
817 * sysdeps/powerpc/powerpc32/Implies: New file.
818 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
819 ($(with-fp) = no): Move test to powerpc32/Makefile.
820 ($(subdir) = misc): Move to powerpc32/Makefile.
821 ($(build-shared) = yes): Move to powerpc32/Makefile.
822 ($(subdir) = csu): Move to powerpc32/Makefile.
823 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
824 * sysdeps/powerpc/powerpc32/Makefile: New file.
825 * sysdeps/powerpc/Versions: Remove libgcc functions.
826 * sysdeps/powerpc/powerpc32/Versions: New file.
827 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
828 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
829 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
830 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
831 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
832 ($machine): Add powerpc/powerpc64 to if ... | for
833 libc_cv_slibdir=/libc64.
834 (powerpc*): Set ldd_rewrite_script.
835 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
836 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
839 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
840 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
841 functions. Remove GLIBC_2.2 functions except getrlimit and
842 setrlimit. Moved them to ...
843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
845 2002-09-04 Ulrich Drepper <drepper@redhat.com>
847 * libio/tst-atime.c: Include <errno.h>.
848 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
850 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
852 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
853 warnings of some compilers.
854 (build_collating_symbol): Change the type of characters from
855 "unsigned char" to "char", and append a cast to "char*" pointer in
857 (build_collating_symbol): Likewise.
858 (build_equiv_class): Likewise.
859 (build_charclass): Likewise.
860 (re_compile_pattern): Remove incorrect cast.
861 (re_compile_fastmap_iter): Change the type of characters from
862 "unsigned char" to "char", and append a cast to "char*" pointer
864 (parse_bracket_exp): Likewise.
865 * posix/regex_internal.c (re_string_construct_common): Likewise.
866 (re_string_allocate): Likewise.
867 (re_string_construct): Likewise.
868 (re_string_realloc_buffers): Likewise.
869 (build_wcs_buffer): Likewise.
870 (re_string_reconstruct): Likewise.
871 * posix/regex_internal.h: Change the type of characters in
872 re_string_t and bracket_elem_t from "unsigned char" to "char".
873 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
874 warnings of some compilers.
875 (transit_state_bkref_loop): Change the type of characters from
876 "unsigned char" to "char", and append a cast to "char*" pointer in
878 (check_node_accept_bytes): Likewise.
879 (find_collation_sequence_value): Likewise.
881 2002-09-04 Roland McGrath <roland@redhat.com>
883 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
884 from 1024 to 65536, to avoid buffer overrun.
886 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
888 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
890 2002-09-04 Ulrich Drepper <drepper@redhat.com>
892 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
895 2002-09-04 Jakub Jelinek <jakub@redhat.com>
897 * posix/bug-regex11.c: New test.
898 * posix/Makefile (tests): Add bug-regex11.
900 2002-09-03 Jakub Jelinek <jakub@redhat.com>
902 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
905 2002-09-02 Roland McGrath <roland@redhat.com>
907 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
908 __pthread_initialize_minimal and __libc_check_standard_fds to
909 match the generic version.
911 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
912 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
914 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
915 warnings on platorms where char is unsigned.
917 2002-09-02 Ulrich Drepper <drepper@redhat.com>
919 * version.h (VERSION): Bump to 2.2.93.
921 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
923 2002-09-02 Jakub Jelinek <jakub@redhat.com>
925 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
928 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
930 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
932 2002-09-02 Jakub Jelinek <jakub@redhat.com>
934 * locale/localeinfo.h (struct locale_data): Add private.ctype.
935 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
936 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
937 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
938 (__wcsmbs_load_conv): Remove const from argument.
939 (_nl_cleanup_ctype): New proto.
940 (get_gconv_fcts): New function.
941 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
942 (__wcsmbs_to_wc): Rename back to...
944 (__wcsmbs_gconv_fcts): Rename to...
945 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
947 (__libc_setlocale_lock): New extern.
948 (__wcsmbs_load_conv): Remove const from argument.
949 Initialize new_category->private.ctype instead of a global
951 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
952 update_function_ptrs. No locking is necessary.
953 (_nl_cleanup_ctype): New function.
954 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
955 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
956 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
957 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
958 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
959 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
960 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
961 * wcsmbs/wctob.c (wctob): Likewise.
962 * stdlib/mblen.c (mblen): Likewise.
963 * stdlib/mbtowc.c (mbtowc): Likewise.
964 * stdlib/wctomb.c (wctomb): Likewise.
965 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
966 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
967 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
970 2002-09-02 Roland McGrath <roland@frob.com>
972 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
974 2002-09-01 Roland McGrath <roland@redhat.com>
976 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
977 Variable declarations removed.
978 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
979 these functions to replace them.
980 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
981 functions plus an indirection rather than the old global variables.
982 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
984 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
986 * ctype/ctype-info.c: Revert last reversion back the other way.
987 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
988 Define real function versions of include/ctype.h inlines here.
989 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
990 __ctype_tolower_loc, __ctype_toupper_loc.
991 * locale/lc-ctype.c: Revert last reversion back the other way.
992 (_nl_postload_ctype): If current thread uses the global locale,
994 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
995 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
996 CTYPE_TOLOWER, CTYPE_TOUPPER.
998 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
999 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1000 from __libc_tsd_threadvar_location.
1001 (__libc_tsd_set, __libc_tsd_get): Update uses.
1003 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1005 * ctype/ctype.h: Undo the patch before the last one. Put back the
1006 macro definitions for the standard functions to access the
1007 classification and mapping arrays.
1008 * include/ctype.h: Partly revert last patch. Move the macro
1009 definitions for the exported functions back to the public header.
1010 #undef all the macros defined here before redefining.
1011 * ctype/ctype-info.c: Revert last patch.
1012 * locale/lc-ctype.c: Revert last patch.
1014 * ctype/Makefile (routines): Add isctype.
1015 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1016 * ctype/ctype.h: Add declaration of isctype.
1017 * include/ctype.h: Declare __isctype.
1018 * ctype/isctype.c: New file.
1020 2002-09-01 Roland McGrath <roland@redhat.com>
1022 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1023 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1025 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1027 * locale/findlocale.c (_nl_remove_locale): Don't search in
1028 _nl_locale_file_list if DATA->alloc is ld_archive.
1029 Use _nl_unload_locale to do the rest of the work.
1031 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1032 of new structure to UNDELETABLE.
1034 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1035 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1036 towlower, towupper): Macros removed.
1037 * ctype/ctype.h (__tobody): Put parens around macro argument.
1038 (__isctype): Macro removed.
1039 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1040 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1041 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1042 tolower, toupper): Macros and inlines removed.
1043 * include/ctype.h [! NOT_IN_libc]
1044 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1045 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1046 tolower, toupper): Define here instead, using _NL_CURRENT.
1047 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1049 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1050 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1051 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1052 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1053 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1054 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1055 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1056 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1057 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1058 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1059 (ISSORTMASK): Update use.
1060 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1061 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1062 (_nss_files_getENTNAME_r): Likewise.
1063 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1066 * Makerules (all-nonlib): Renamed from all-tests.
1067 Include $(others) here too.
1068 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1069 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1070 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1071 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1072 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1073 the program modules via cppflags-iterator.mk.
1074 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1075 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1077 2002-08-31 Roland McGrath <roland@redhat.com>
1079 * posix/tst-getconf.sh: If no third arg, work with static linking.
1081 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1083 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1084 [_NL_CURRENT_INDIRECT].
1086 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1088 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1090 2002-08-31 Roland McGrath <roland@redhat.com>
1092 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1093 Instead, make the single allocation of the structure larger to hold
1095 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1096 Instead, calculate size for a single allocation and copy into it.
1097 * locale/freelocale.c (__freelocale): Don't free names individually.
1099 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1101 * locale/xlocale.h (__locale_struct): Move __names member last,
1102 for binary compatibility.
1104 * locale/duplocale.c (__duplocale): Free names from the right array.
1106 * locale/uselocale.c (__uselocale): Return previous locale when
1109 * locale/newlocale.c: Commit changes from 2002-08-30
1110 batch where I failed to commit this file:
1111 (__newlocale): Fill in __names array.
1113 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1115 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1116 errlist-compat.c if versioning==yes.
1118 2002-08-31 Andreas Jaeger <aj@suse.de>
1120 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1121 external functions with hidden attribute.
1122 (elf_machine_rela): Optimize.
1124 * sysdeps/x86_64/memset.S: New file.
1125 * sysdeps/x86_64/bzero.S: New file.
1126 * sysdeps/x86_64/stpcpy.S: New file.
1127 * sysdeps/x86_64/strcat.S: New file.
1128 * sysdeps/x86_64/strchr.S: New file.
1129 * sysdeps/x86_64/strcpy.S: New file.
1130 * sysdeps/x86_64/strcspn.S: New file.
1131 * sysdeps/x86_64/strlen.S: New file.
1132 * sysdeps/x86_64/strpbrk.S: New file.
1133 * sysdeps/x86_64/strspn.S: New file.
1134 * sysdeps/x86_64/strcmp.S: New file.
1135 * sysdeps/x86_64/strtok_r.S: New file.
1136 * sysdeps/x86_64/strtok.S: New file.
1137 * sysdeps/x86_64/memcpy.S: New file.
1138 * sysdeps/x86_64/mempcpy.S: New file.
1140 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1142 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1144 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1146 * stdio-common/Makefile (generated): Add errlist-compat.c.
1148 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1150 * locale/localeinfo.h: Pretty printing.
1152 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1153 form_number handling.
1155 2002-08-31 Andreas Jaeger <aj@suse.de>
1157 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1160 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1163 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1165 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1167 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1168 registers used for passing args.
1170 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1171 all needed registers.
1173 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1176 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1179 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1181 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1182 always_inline attribute.
1184 2002-08-30 Roland McGrath <roland@redhat.com>
1186 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1187 presume it's the stub and bail without error.
1189 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1190 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1192 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1194 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1195 macros replace the i686 versions for 64-bit mode.
1197 * locale/duplocale.c: Include <string.h>.
1199 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1200 [_LIBC] (category_to_name): Don't define the function. Instead
1201 define a macro using _nl_category_names.
1203 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1204 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1205 * locale/global-locale.c (_nl_global_locale): Likewise.
1206 * locale/duplocale.c (__duplocale): strdup __names elements.
1207 * locale/freelocale.c (__freelocale): Free __names elements.
1208 * locale/localename.c (_nl_current_names): Variable removed.
1209 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1210 * locale/localeinfo.h (_nl_current_names): Removed decl.
1211 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1212 _nl_current_names throughout.
1214 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1216 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1217 and sys_nerr in the output file.
1219 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1220 * scripts/cpp: Just use the environment variable.
1222 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1223 * libio/tst-mmap-offend.c (do_test): Likewise.
1224 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1225 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1226 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1228 * locale/localename.c: If the current locale is the global locale, use
1229 _nl_current_names; otherwise use the locale object.
1231 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1233 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1234 'm' to enable mmap I/O.
1235 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1236 former wasn't used (anymore?).
1237 (_IO_FLAGS2_MMAP): New define.
1238 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1239 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1240 _IO_FLAGS2_MMAP bit is set.
1241 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1242 Enable mmap-using mode only if 'm' was set.
1244 2002-08-29 Roland McGrath <roland@frob.com>
1246 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1248 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1249 Change argument type from int to intptr_t.
1251 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1252 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1253 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1254 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1255 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1257 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1259 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1261 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1263 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1264 * assert/assert-perr.c: Add libc_hidden_def.
1265 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1267 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1269 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1270 sys_errlist stuff to ...
1271 * sysdeps/unix/sysv/linux/Versions: ... here.
1273 * mach/mach.h: Include <features.h>.
1275 2002-08-29 Roland McGrath <roland@redhat.com>
1277 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1278 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1279 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1281 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1283 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1284 (norm_add_slashes): alloca -> __alloca
1286 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1288 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1289 string_malloced, it is unlikely to be set.
1290 Only call free with non-NULL workspace.
1291 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1292 -mcpu=ultrasparc, not only tune for it.
1293 (ASFLAGS*): Set unconditionally.
1295 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1296 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1297 p_vaddr/p_offset when computing LOADADDR.
1299 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1301 * version.h (VERSION): Bump to 2.2.92.
1303 * time/Makefile (tst-ftime_l-ENV): New variable.
1305 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1307 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1308 <U017A>, <U017D> and <U0179>. Add missing mappings.
1309 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1311 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1312 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1313 (struct tostruct): Use ACRINDEX as type for link field.
1314 (statuc gmonparam): Likewise for froms.
1315 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1317 (write_call_graph): Use correct type for from_index and to_index.
1318 * gmon/mcount.c: Use correct types for frompcindex and toindex
1320 Patches by Dan Kegel <dank@kegel.com>.
1322 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1325 * time/strptime.c (ISSPACE): New #define. Use isspace or
1326 __isspace_l. Replace calls to isspace.
1327 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1329 2002-08-29 Roland McGrath <roland@redhat.com>
1331 * string/tst-strxfrm.c: Remove __ from function names.
1333 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1335 * include/wchar.h: Declare __mbsrtowcs_l.
1336 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1337 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1338 USE_IN_EXTENDED_LOCALE_MODEL.
1339 * wcsmbs/mbsrtowcs_l: New file.
1340 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1341 define as static. Change all uses.
1342 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1344 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1345 * time/strftime.c: When translating for the extended locale model
1346 use the _l functions.
1347 * time/Makefile (tests): Add tst-ftime_l.
1348 * time/tst-ftime_l.c: New file.
1350 2002-08-28 Roland McGrath <roland@redhat.com>
1352 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1353 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1354 from _nl_find_locale ok if for _nl_C_name.
1356 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1357 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1358 we know they are all linked in.
1360 * NEWS: Added 2.2.6 text from 2.2 branch version.
1362 * time/strptime.c (strptime_internal): Remove spurious const.
1364 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1365 _nl_select_era_entry): Moved to ...
1366 * time/era.c: ... here, new file.
1367 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1368 Add internal_function to definitions. Take an additional argument
1369 giving the `struct locale_data *' to use.
1370 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1371 _nl_parse_alt_digit): Moved to ...
1372 * time/alt_digit.c: ... here, new file.
1373 * time/lc-time-cleanup.c: New file.
1374 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1375 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1376 (_nl_cleanup_time): Declare it.
1377 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1378 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1379 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1380 * time/strftime.c: Pass locale data to helper functions.
1381 * time/strptime.c: Likewise.
1383 * locale/localeinfo.h (struct locale_data): New member `private'
1384 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1385 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1386 * locale/C-collate.c: Update initializer.
1387 * locale/C-identification.c: Likewise.
1388 * locale/C-measurement.c: Likewise.
1389 * locale/C-telephone.c: Likewise.
1390 * locale/C-address.c: Likewise.
1391 * locale/C-name.c: Likewise.
1392 * locale/C-paper.c: Likewise.
1393 * locale/C-time.c: Likewise.
1394 * locale/C-numeric.c: Likewise.
1395 * locale/C-monetary.c: Likewise.
1396 * locale/C-messages.c : Likewise.
1397 * locale/C-ctype.c: Likewise.
1399 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1402 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1404 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1405 (_rtld_global): Use it.
1407 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1408 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1409 object directory. Pass all Versions files to the awk script.
1410 * sysdeps/gnu/errlist-compat.c: Removed.
1411 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1412 first Versions file in the search path which has them.
1413 Allow multiple errlist symbol versions to have the same count of
1415 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1416 of "errlist-compat.c".
1417 * sysdeps/gnu/errlist.c: Regenerated.
1418 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1419 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1420 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1421 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1422 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1423 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1424 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1425 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1426 ECANCELLED if not defined by kernel headers.
1427 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1428 already defined by kernel headers.
1429 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1430 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1431 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1433 * Versions.def (GLIBC_2.3) [librt]: Add.
1435 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1437 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1439 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1440 missing comma to .type directive.
1442 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1444 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1446 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1448 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1450 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1452 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1453 check to close_and_out close. Replace return NULL statements where
1454 fd might be >= 0 with goto close_and_out. Close the file descriptor
1455 when it is no longer needed.
1457 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1459 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1461 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1462 * sysdeps/arm/dl-machine.h: Likewise.
1463 * sysdeps/cris/dl-machine.h: Likewise.
1464 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1465 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1467 2002-08-28 Roland McGrath <roland@redhat.com>
1469 * Makeconfig (default_cflags): Revert unintended change.
1471 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1473 * version.h (VERSION): Bump to 2.2.91.
1475 * configure.in: Disable TLS support by default for now.
1477 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1479 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1482 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1484 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1485 fprintf/fwprintf calls.
1487 2002-08-28 Roland McGrath <roland@redhat.com>
1489 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1490 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1492 * locale/setlocale.c: Declare postload functions weak.
1494 * elf/tst-tls1-static.c: New file.
1495 * elf/tst-tls2-static.c: New file.
1496 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1498 Make uselocale support static linking.
1499 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1500 This file again just defines _nl_C_locobj.
1501 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1502 * locale/global-locale.c: New file. Define _nl_global_locale here,
1503 using all weak references in the initializer.
1504 * locale/Makefile (aux): Add global-locale.
1505 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1506 these unconditional, along with the tsd decl.
1507 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1508 Define it under these conditions.
1509 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1510 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1511 `extern __thread struct locale_data *const *'.
1512 [NL_CURRENT_INDIRECT]
1513 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1514 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1515 the thread variable _nl_current_LC_FOO and also a special absolute
1516 symbol _nl_current_LC_FOO_used.
1517 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1518 Set each _nl_current_LC_FOO symbol to point into the new locale,
1519 using weak references to test if _nl_current_LC_FOO_used was linked in.
1520 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1521 [NL_CURRENT_INDIRECT]: ... with this one.
1522 (_nl_current, _nl_C): Variables removed.
1523 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1524 weak references to _nl_current_LC_FOO_used.
1525 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1526 (free_category): New function, broken out of ...
1527 (free_mem): ... here. Call that.
1528 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1531 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1532 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1533 it is already absolute.
1535 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1536 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1537 [$(build-static) = yes] (tests-static): New variable.
1538 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1540 2002-08-26 Christoph Hellwig <hch@lst.de>
1542 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1543 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1545 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1547 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1549 * sysdeps/s390/Dist: Add bits/link.h.
1551 * sysdeps/sh/Dist: New file.
1553 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1555 * sysdeps/wordsize-32/Dist: New file.
1557 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1558 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1559 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1561 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1564 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1567 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1569 * sysdeps/unix/bsd/sun/Dist: New file.
1571 * sysdeps/unix/bsd/osf/Dist: New file.
1573 * sysdeps/unix/bsd/hp/Dist: New file.
1575 * sysdeps/unix/arm/Dist: New file.
1577 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1579 * sysdeps/mach/hurd/Dist: Add set-init.c.
1581 * sysdeps/i386/Dist: Add bits/link.h.
1583 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1585 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1587 * locale/Makefile (distribute): Add hashval.h.
1589 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1591 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1593 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1594 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1595 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1596 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1598 * libio/stdio.h: Likewise.
1599 * locale/locale.h: Likewise.
1600 * math/math.h: Likewise.
1601 * math/bits/mathcalls.h: Likewise.
1602 * setjmp/setjmp.h: Likewise.
1603 * signal/signal.h: Likewise.
1604 * stdlib/stdlib.h: Likewise.
1605 * string/string.h: Likewise.
1606 * time/time.h: Likewise.
1607 * wcsmbs/wchar.h: Likewise.
1608 * wctype/wctype.h: Likewise.
1610 2002-08-28 Roland McGrath <roland@redhat.com>
1612 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1614 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1615 Roland McGrath <roland@redhat.com>
1617 * locale/hashval.h (compute_hashval): Use prototype defn.
1618 (hashval_t): New macro, defined to unsigned long int
1619 if not already defined.
1620 (compute_hashval): Return hashval_t instead of unsigned long int.
1621 * locale/loadarchive.c (hashval_t): New macro.
1622 * locale/programs/locarchive.c: Include hashval.h directly instead
1624 (compute_hashval, hashval_t): Define these macros first.
1625 (insert_name): Use archive_hashval instead of compute_hashval.
1626 (add_locale, delete_locales_from_archive): Likewise.
1628 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1630 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1631 hash collisions if be_quiet.
1633 2002-08-27 Roland McGrath <roland@redhat.com>
1635 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1636 __uselocale): Don't declare these any more.
1637 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1639 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1640 and treat it as an EOF return.
1641 * sysdeps/unix/readdir_r.c: Likewise.
1643 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1644 From Alexandre Oliva <aoliva@redhat.com>.
1645 * sysdeps/gnu/errlist-compat.c: Regenerated.
1647 2002-08-27 Brian Youmans <3diff@gnu.org>
1649 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1650 wording at request of copyright holder Stephen Moshier.
1651 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1652 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1653 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1654 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1655 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1656 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1657 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1658 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1659 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1660 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1661 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1662 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1663 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1664 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1666 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1668 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1669 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1670 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1671 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1672 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1673 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1674 * wctype/iswctype_l.c (iswctype_l): Likewise.
1676 2002-08-27 Roland McGrath <roland@redhat.com>
1678 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1680 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1681 * stdlib/stdlib.h: Don't declare __*_l names.
1682 * include/stdlib.h: Declare them here instead.
1683 * include/string.h: Don't declare __*_l names.
1684 * string/string.h: Declare them here instead.
1685 * time/time.h: Don't declare __*_l names.
1686 * include/time.h: Declare them here instead.
1687 * wcsmbs/wchar.h: Don't declare __*_l names.
1688 * include/wchar.h: Declare them here instead.
1689 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1690 Don't declare __*_l names.
1691 * include/wctype.h: Declare them here instead.
1692 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1693 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1694 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1695 * include/langinfo.h: Declare it here with __typeof.
1697 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1698 instead, taking an extra __locale_t argument.
1699 * time/Makefile (routines): Add strptime_l.
1700 * time/time.h (__strptime_l, strptime_l): Declare them.
1701 * time/strptime_l.c: New file.
1703 * time/time.h (__strftime_l, strftime_l): Declare them.
1704 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1705 * time/strftime_l.c: New file.
1706 * time/wcsftime_l.c: New file.
1707 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1708 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1709 strftime_l, wcsftime_l.
1710 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1711 or __wcsftime_l instead, taking an extra __locale_t argument.
1713 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1714 (libc: GLIBC_2.3): ... here.
1716 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1718 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1720 * Makefile (distribute): Add LICENSES.
1722 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1725 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1727 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1729 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1731 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1733 * sysdeps/mach/hurd/alpha/Dist: New file.
1735 * sysdeps/arm/Dist: Add bits/link.h.
1737 * sunrpc/Makefile: Distribute thrsvc.
1739 * stdio-common/Makefile: Remove more left-overs from old stdio.
1741 * include/linewrap.h: Removed.
1743 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1745 * intl/Makefile (distribute): Add plural-eval.c.
1747 2002-08-27 Roland McGrath <roland@redhat.com>
1749 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1750 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1751 Say mtab is in either /var/run or /etc.
1753 2002-08-26 Roland McGrath <roland@redhat.com>
1755 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1756 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1758 * sysdeps/gnu/Versions: New file.
1759 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1760 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1761 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1762 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1763 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1764 and _sys_nerr_internal instead of anything else. Make it include
1765 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1766 Make it emit some asm magic if [EMIT_ERR_MAX].
1767 * sysdeps/gnu/errlist.c: Regenerated.
1768 * sysdeps/gnu/errlist-compat.awk: New file.
1769 * sysdeps/gnu/errlist-compat.c: New file (generated).
1770 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1771 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1772 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1773 (SYS_ERRLIST, SYS_NERR): Macros removed.
1774 (sys_nerr, _sys_nerr): Remove these weak aliases.
1775 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1776 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1777 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1779 * include/libc-symbols.h (declare_symbol): New macro.
1780 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1781 * configure.in: New check to define it.
1782 * configure: Regenerated.
1784 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1786 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1787 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1789 * Make-dist: Remove traces of old stdio.
1790 * Makeconfig: Likewise.
1792 * locale/Makefile (localedef-aux): New variable. Only md5
1793 assigned to it. These files are not ddistributed in this directory.
1795 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1796 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1797 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1799 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1801 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1802 set h_errno to NO_RECOVERY [PR libc/4360].
1804 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1806 * libio/Makefile (tests): Add bug-fopena+.
1807 * libio/bug-fopena+.c: New file.
1808 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1809 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1811 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1813 * locale/xlocale.c: Fix the last change. The variable still has
1815 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1816 (__libc_tsd_set): Add _data prefix to variable name.
1818 2002-08-26 Roland McGrath <roland@redhat.com>
1820 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1821 macro with inline function.
1822 (sigset_get_old_mask): Likewise.
1823 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1824 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1825 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1826 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1827 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1828 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1830 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1831 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1833 2002-07-06 Bruno Haible <bruno@clisp.org>
1835 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1836 sigset_get_old_mask): Make it work with larger sigset_t.
1837 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1838 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1839 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1841 2002-08-26 Roland McGrath <roland@redhat.com>
1843 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1844 * manual/filesys.texi (File Times): Document lutimes and futimes.
1845 * misc/Makefile (routines): Add them.
1846 * misc/Versions (libc: GLIBC_2.3): Likewise.
1847 * sysdeps/generic/lutimes.c: New file.
1848 * sysdeps/generic/futimes.c: New file.
1849 * sysdeps/mach/hurd/lutimes.c: New file.
1850 * sysdeps/mach/hurd/futimes.c: New file.
1852 * manual/filesys.texi (File Times): Add explicit note about null
1853 pointer argument to utimes.
1855 2002-08-26 Roland McGrath <roland@frob.com>
1857 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1858 (__ifreq): Add a cast. Remove an unused variable.
1860 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1861 _HURD_THREADVAR_LOCALE.
1863 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1865 * posix/regexec.c (re_search_stub): Return correct match length
1867 * posix/bug-regex10.c: New test.
1868 * posix/Makefile (tests): Add bug-regex10.
1870 2002-08-26 Brian Youmans <3diff@gnu.org>
1872 * COPYING.LIB: Replaced with fresh copy from
1873 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1874 suggested copying permission notice now says version 2.1 instead
1877 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1879 * crypt/crypt_util.c: Likewise.
1880 * crypt/ufc.c: Likewise.
1881 * elf/dl-conflict.c: Likewise.
1882 * elf/dl-iteratephdr.c: Likewise.
1883 * iconv/iconvconfig.h: Likewise.
1884 * malloc/arena.c: Likewise.
1885 * malloc/hooks.c: Likewise.
1886 * malloc/malloc.c: Likewise.
1887 * posix/glob/Makefile.ami: Likewise.
1888 * posix/glob/Makefile.in: Likewise.
1889 * stdlib/gmp-impl.h: Likewise.
1890 * stdlib/gmp.h: Likewise.
1891 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1892 * sysdeps/generic/strnlen.c: Likewise.
1893 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1894 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1895 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1896 * sysdeps/mach/hurd/spawni.c: Likewise.
1897 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1898 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1899 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1900 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1901 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1902 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1904 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1905 Lesser GPL copying permission notice from 2 to 2.1.
1906 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1907 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1908 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1909 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1910 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1911 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1912 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1913 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1914 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1915 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1916 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1917 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1918 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1919 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1920 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1921 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1922 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1923 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1924 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1925 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1926 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1927 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1928 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1929 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1930 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1931 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1932 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1933 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1934 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1935 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1936 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1937 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1938 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1939 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1940 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1941 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1942 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1943 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1944 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1945 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1946 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1947 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1948 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1949 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1950 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1951 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1952 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1953 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1954 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1955 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1956 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1957 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
1958 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
1959 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
1960 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
1962 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
1963 Moshier and Lesser GPL copying permission notice, per license from
1965 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1966 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1967 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1968 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1969 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1970 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1971 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1972 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1973 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1974 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1975 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1976 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1977 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1978 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1980 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
1981 notice, per license from copyright holder Stephen Moshier.
1982 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1983 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1984 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1985 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1986 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1987 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1988 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
1989 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1990 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1992 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1994 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
1995 (shared-only-routines): Likewise.
1997 2002-08-26 Roland McGrath <roland@redhat.com>
1999 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2000 name of "", store a null pointer instead.
2002 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2003 * configure: Regenerated.
2005 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2006 Initialize this instead of __libc_tsd_LOCALE_data.
2008 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2009 ptsname_r to EINVAL.
2011 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2013 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2014 implementations depend on pthreads.
2015 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2016 * rt/tst-aio64.c (do_test): Likewise.
2017 * rt/tst-aio2.c (do_test): Likewise.
2018 * rt/tst-aio3.c (do_test): Likewise.
2019 * rt/tst-aio4.c (do_test): Likewise.
2020 * rt/tst-aio5.c (do_test): Likewise.
2021 * rt/tst-aio6.c (do_test): Likewise.
2022 * rt/tst-aio7.c (do_test): Likewise.
2024 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2025 void so as to avoid compiler warnings.
2027 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2028 _IO_wide_data_FD, which is never used here.
2031 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2032 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2033 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2035 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2036 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2038 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2039 (closelog): Likewise.
2041 2002-07-06 Bruno Haible <bruno@clisp.org>
2043 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2045 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2046 * sysdeps/unix/alpha/pipe.S: ... here.
2047 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2049 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2051 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2052 * sysdeps/unix/i386/fork.S: Likewise.
2053 * sysdeps/unix/i386/pipe.S: Likewise.
2054 * sysdeps/unix/i386/wait.S: Likewise.
2056 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2057 * sysdeps/unix/arm/fork.S: Likewise.
2059 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2061 (DO_CALL): Swap argument order.
2062 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2064 (DO_CALL): Swap argument order.
2065 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2067 (DO_CALL): Swap argument order.
2068 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2070 (DO_CALL): Swap argument order.
2071 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2073 (DO_CALL): Swap argument order.
2074 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2076 (DO_CALL): Swap argument order.
2077 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2079 (DO_CALL): Swap argument order.
2081 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2082 (L): Define right for ELF.
2083 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2084 Now defined in sysdeps/i386/sysdep.h.
2086 * sysdeps/posix/readv.c: Ansify function definition.
2087 * sysdeps/posix/writev.c: Likewise.
2089 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2090 have the same size. Avoid direct cast from size_t to off_t.
2092 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2093 nul byte in entry[n].ut_user.
2094 (simulate_logout): Likewise.
2096 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2097 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2098 existence of corresponding members of 'struct utmp'.
2099 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2102 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2103 allocate a buffer of at least BUFSIZ bytes, not just of
2104 sizeof (struct dirent).
2106 * sysdeps/generic/glob.c: Include <limits.h>.
2107 (NAME_MAX): Define a fallback.
2108 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2110 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2111 (main): Allocate enough room for a 'struct dirent64' on the stack.
2112 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2115 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2118 * inet/htontest.c: Include <sys/types.h>.
2120 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2122 * include/sys/sysctl.h: Comment fix.
2124 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2126 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2128 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2130 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2131 (__getpeername): New alias.
2132 (__getsockname): New alias.
2133 (__socket): New alias.
2135 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2137 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2138 (__fcntl_internal): New alias.
2139 (__profil): New alias.
2141 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2143 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2144 entry was for getaddr* lookup or not. Add only matching cache
2145 entry. Change all callers [PR libc/4317].
2147 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2148 finding the read position [PR libc/4265].
2149 * libio/Makefile (tests): Add bug-rewind2.
2150 * libio/bug-rewind2.c: New file.
2152 * libio/bug-rewind.c: Fix creation of temp file.
2154 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2156 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2157 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2158 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2159 to ENOENT if no entry is found.
2160 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2162 * nis/nss_compat/compat-initgroups.c: Likewise.
2163 * nis/nss_compat/compat-pwd.c: Likewise.
2164 * nis/nss_compat/compat-spwd.c: Likewise.
2165 * nis/nss_nis/nis-alias.c: Likewise.
2166 * nis/nss_nis/nis-ethers.c: Likewise.
2167 * nis/nss_nis/nis-grp.c: Likewise.
2168 * nis/nss_nis/nis-hosts.c: Likewise.
2169 * nis/nss_nis/nis-initgroups.c: Likewise.
2170 * nis/nss_nis/nis-netgrp.c: Likewise.
2171 * nis/nss_nis/nis-network.c: Likewise.
2172 * nis/nss_nis/nis-proto.c: Likewise.
2173 * nis/nss_nis/nis-publickey.c: Likewise.
2174 * nis/nss_nis/nis-pwd.c: Likewise.
2175 * nis/nss_nis/nis-rpc.c: Likewise.
2176 * nis/nss_nis/nis-service.c: Likewise.
2177 * nis/nss_nis/nis-spwd.c: Likewise.
2178 * resolv/nss_dns/dns-host.c: Likewise.
2179 * resolv/nss_dns/dns-network.c: Likewise.
2180 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2181 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2182 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2183 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2184 * nis/nss_nisplus/nisplus-network.c: Likewise.
2185 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2186 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2187 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2188 * nis/nss_nisplus/nisplus-service.c: Likewise.
2189 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2190 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2191 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2192 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2193 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2195 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2196 declaring __restore and __restore_rt as hidden (if possible).
2198 2002-08-25 Roland McGrath <roland@redhat.com>
2200 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2202 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2203 (getutent_r_file, internal_getut_r): Updated all callers.
2204 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2206 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2208 * locale/programs/locale.c: Don't print aliases for non-existing
2209 locales for 'locale -a'.
2210 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2212 2002-07-19 H.J. Lu <hjl@gnu.org>
2214 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2216 2002-07-16 H.J. Lu <hjl@gnu.org>
2218 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2220 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2222 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2224 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2225 not moved ahead of the fputs call.
2226 * elf/tst-tlsmod2.c (in_dso): Likewise.
2227 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2228 * elf/tst-tlsmod4.c (in_dso): Likewise.
2230 2002-08-25 Andreas Schwab <schwab@suse.de>
2232 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2234 2002-08-25 Roland McGrath <roland@redhat.com>
2236 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2237 resetting handler, to avoid the possibility of a spurious SIGALRM
2238 delivered to the user's handler.
2239 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2241 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2242 set -fkeep-inline-functions, which is not needed for the current file.
2244 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2245 (_dl_setup_hash): Add attribute_hidden.
2246 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2247 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2248 (_dl_new_object, _dl_map_object_deps): Likewise.
2249 (_dl_map_object_deps_internal): Remove decl.
2250 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2252 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2253 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2254 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2255 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2256 instead relying on the compiler to produce only GOTOFF variable refs.
2258 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2260 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2262 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2263 inline to avoid defining it in every file which includes this header.
2265 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2266 defining DONT_USE_BOOTSTRAP_MAP.
2268 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2269 * libio/tst-mmap-setvbuf.c (main): Likewise.
2270 * libio/tst-widetext.c (main): Likewise.
2272 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2274 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2275 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2277 * sysdeps/i386/elf/configure.in: Unconditionally define
2278 PI_STATIC_AND_HIDDEN.
2279 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2280 PI_STATIC_AND_HIDDEN is defined as well.
2281 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2283 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2285 * sysdeps/ia64/bzero.S: Define __bzero as well.
2287 * locale/programs/charmap.c (charmap_new_char): Don't use
2288 ULONG_MAX as maximum UCS4 value.
2290 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2292 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2294 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2295 * malloc/malloc.c (mALLINFo): Likewise.
2297 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2299 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2300 examining result of _IO_do_flush call.
2302 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2303 Use prec not spec when sizing buffers.
2305 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2306 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2307 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2308 * stdio-common/vfscanf.c (inchar): Likewise.
2309 * misc/efgcvt_r.c (fcvt_r): Likewise.
2310 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2311 * elf/readlib.c (process_file): Likewise.
2312 * elf/sprof.c (load_profdata): Likewise.
2313 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2314 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2315 * locale/programs/charmap.c (charmap_read): Likewise.
2316 * libio/fileops.c: Likewise.
2317 * libio/fmemopen.c: Likewise.
2318 * stdlib/strtod.c: Likewise.
2319 * elf/dl-load.c: Likewise.
2320 * iconv/iconvconfig.c: Likewise.
2321 * iconv/iconv_prog.c (process_block): Likewise.
2322 * elf/rtld.c (dl_main): Likewise.
2324 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2325 macro to calm down the compiler.
2327 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2329 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2331 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2332 placement of errno definition.
2333 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2334 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2335 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2336 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2337 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2339 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2340 from 1024 to 65536, to avoid buffer overrun.
2342 2002-08-16 Paul Eggert <eggert@twinsun.com>
2344 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2345 from 1024 to 65536, to avoid buffer overrun.
2346 * resolv/res_query.c (MAXPACKET): Likewise.
2348 2002-08-24 Andreas Jaeger <aj@suse.de>
2350 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2352 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2354 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2357 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2358 Patch by Simon Gee <simong@agile.tv>.
2360 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2361 Prefer reading /proc/stat since it is more uniform across
2364 * manual/texinfo.tex: Update to latest official version.
2366 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2367 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2368 * sysdeps/gnu/bits/shm.h: Likewise.
2369 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2370 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2371 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2372 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2373 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2374 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2375 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2376 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2377 since this is what the kernel says.
2379 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2380 since ssize_t is needed as well. Replace const with __const.
2382 2002-08-23 Roland McGrath <roland@redhat.com>
2384 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2385 __malloc_hook, __realloc_hook, __memalign_hook,
2386 __after_morecore_hook): Variable definitions moved to ...
2387 * malloc/malloc.c: ... here, so as to be before all references.
2389 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2390 global variable reference in an unused asm parameter, to ensure the
2391 compiler has set up the GOT register before we use it.
2393 * malloc/hooks.c: Move variable definitions ahead of uses.
2394 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2395 initializers that make reference to variables they define.
2397 2002-08-23 Andreas Jaeger <aj@suse.de>
2399 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2400 alloca, free, qsort.
2402 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2404 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2405 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2407 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2409 * sysdeps/generic/fgetxattr.c: New file.
2410 * sysdeps/generic/flistxattr.c: New file.
2411 * sysdeps/generic/fremovexattr.c: New file.
2412 * sysdeps/generic/fsetxattr.c: New file.
2413 * sysdeps/generic/getxattr.c: New file.
2414 * sysdeps/generic/listxattr.c: New file.
2415 * sysdeps/generic/lgetxattr.c: New file.
2416 * sysdeps/generic/llistxattr.c: New file.
2417 * sysdeps/generic/lremovexattr.c: New file.
2418 * sysdeps/generic/lsetxattr.c: New file.
2419 * sysdeps/generic/removexattr.c: New file.
2420 * sysdeps/generic/setxattr.c: New file.
2421 * misc/Makefile (headers): Add sys/xattr.h.
2422 (routines): Add *xattr calls.
2423 * misc/Versions: Add *xattr calls with version 2.3.
2424 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2425 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2426 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2427 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2428 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2429 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2430 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2431 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2433 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2435 * sysdeps/powerpc/elf/libc-start.c
2436 (__cache_line_size): Declare.
2437 (__aux_init_cache): New function.
2438 (__libc_start_main): Change type of `auxvec' parameter to
2439 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2441 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2442 (__cache_line_size): Declare.
2443 (__aux_init_cache): New function.
2444 (DL_PLATFORM_INIT): Define.
2445 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2446 value to select the correct stride for dcbz.
2448 2002-08-22 Andreas Jaeger <aj@suse.de>
2450 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2453 2002-08-22 Roland McGrath <roland@redhat.com>
2455 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2456 position indicated by locrectab against file bounds before rounding to
2457 page size. In mapping loop, always set TO before breaking out of
2458 contiguous range coalescing loop.
2460 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2461 (or MAP_COPY if available) instead of MAP_SHARED.
2463 * scripts/firstversions.awk: When encountering a version newer than
2464 the specified earliest version, be sure to emit the specified earliest
2465 version first if any renaming of an older version to that has been.
2467 2002-08-21 Roland McGrath <roland@redhat.com>
2469 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2470 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2471 (Configuring and compiling): Don't mention older GCC versions any more.
2472 * INSTALL: Regenerated.
2474 * manual/install.texi (Configuring and compiling, Installation,
2475 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2477 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2478 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2479 and with noinline otherwise. Remove hack alloca use to prevent
2480 inlining, we can ask for it explicitly nowadays.
2482 * dlfcn/bug-dlsym1.c: New file.
2483 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2484 * dlfcn/Makefile (distribute): Add them.
2485 (tests): Add bug-dlsym1 here.
2486 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2487 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2488 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2490 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2492 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2493 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2495 (_dl_start): Don't use local bootstrap_map variable if
2496 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2497 pass bootstrap_map to _dl_start_final in this case either. Don't
2498 pass start_time to _dl_start_final ever.
2499 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2501 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2502 This cripples the scope lists necessary to search for symbols in
2503 dependencies which are not in the global scope.
2505 * include/setjmp.h (__libc_longjmp): Add declaration.
2507 2002-08-21 Andreas Jaeger <aj@suse.de>
2509 * sysdeps/x86_64/_mcount.S: Fix assembler.
2511 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2512 with biarch support.
2514 2002-08-21 Andreas Jaeger <aj@suse.de>
2516 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2518 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2520 * sysdeps/x86_64/machine-gmon.h: New file.
2521 * sysdeps/x86_64/_mcount.S: New file.
2523 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2525 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2526 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2527 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2528 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2529 to TL_INIT_TP. Otherwise pass 1.
2530 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2531 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2533 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2535 * locale/programs/localedef.c (add_to_readlist): Error about
2536 circular dependencies only if the locale in question hasn't
2538 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2539 CTYPE_LOCALE to load_locale.
2540 * locale/programs/locfile.c (locfile_read): Don't include
2541 unneeded but available locales in locale_mask.
2543 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2544 print any messages about enlarging archive.
2546 2002-08-20 Brian Youmans <3diff@gnu.org>
2548 * manual/contrib.texi: Removed licenses, added acknowledgements
2549 for contributions by Intel, IBM, Craig Metz.
2550 * LICENSES: New file, contains the text of all non-FSF licenses in the
2551 distribution that require putting the notice in the accompanying
2553 * README.template, README: Mention LICENSES.
2555 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2556 new one modelled on the modern BSD license, per recent letter
2557 of permission from CMU.
2558 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2560 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2561 from IBM to FSF, per the recent Software Letter. Changed the
2562 distribution terms from GPL to LGPL.
2564 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2565 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2566 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2567 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2568 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2569 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2570 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2571 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2572 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2573 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2575 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2576 from IBM to FSF, per the recent Software Letter. Corrected the
2577 text of the copying permission notice to say Lesser GPL instead
2578 of GPL in warranty disclaimer paragraph.
2579 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2580 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2581 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2582 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2583 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2584 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2585 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2586 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2587 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2588 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2589 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2590 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2591 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2592 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2593 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2594 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2595 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2596 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2597 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2598 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2599 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2601 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2602 permission notice to say Lesser GPL instead of GPL in warranty
2603 disclaimer paragraph.
2604 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2605 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2606 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2607 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2608 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2609 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2610 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2611 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2612 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2613 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2614 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2615 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2616 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2617 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2618 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2619 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2620 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2621 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2622 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2623 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2624 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2625 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2626 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2628 2002-08-20 Roland McGrath <roland@redhat.com>
2630 Fix ABI compatibility with libc compiled with old tools on powerpc.
2631 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2632 and Jack Howarth <howarth@bromo.med.uc.edu>.
2633 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2634 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2635 pass -DHAVE_DOT_HIDDEN for these files.
2636 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2638 * sysdeps/powerpc/divdi3.c: New file.
2639 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2640 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2642 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2644 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2645 partially overlapping mappings. Remove unneeded (char *) casts.
2646 Never allow duplication of ranges in mapped areas.
2648 2002-08-20 Roland McGrath <roland@redhat.com>
2650 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2651 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2653 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2655 * include/unistd.h: Don't hide _exit.
2657 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2658 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2659 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2660 argument 1 to TLS_INIT_TP.
2661 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2663 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2665 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2666 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2667 memory allocation to...
2668 (allocate_dtv): ...here. New function.
2669 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2670 call allocate_dtv instead of _dl_allocate_tls_storage.
2671 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2672 (_dl_get_tls_static_info): New function.
2673 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2674 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2676 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2678 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2679 immediately if result == NULL.
2681 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2683 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2685 2002-08-18 Roland McGrath <roland@frob.com>
2687 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2688 instead of __file_name_split.
2689 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2691 * sysdeps/mach/hurd/dl-sysdep.c
2692 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2693 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2695 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2697 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2698 in change before last: MAX -> MIN.
2700 2002-08-15 Roland McGrath <roland@redhat.com>
2702 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2703 if seek would go past it.
2704 (mmap_remap_check): If file position is at or past EOF after check,
2705 leave read pointers at EOF and don't seek.
2707 * libio/tst-mmap-offend.c: New file.
2708 * libio/Makefile (tests): Add it.
2710 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2711 the name as passed, rather than the name in the archive dictionary.
2713 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2715 * csu/Makefile: Define elide-routines.os not static-only-routines.
2717 * include/sched.h (__clone): Add varargs at the end.
2719 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2721 (TLS_INIT_HELPER): If defined, use it.
2722 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2724 2002-08-15 Roland McGrath <roland@redhat.com>
2726 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2727 on L->l_prev; it can happen under rtld --verify too.
2729 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2730 header separately, just map an initial window of 2MB from the file
2731 and remap if that is not large enough to cover the whole header.
2733 2002-08-15 Andreas Jaeger <aj@suse.de>
2735 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2737 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2738 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2739 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2740 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2741 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2742 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2743 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2744 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2745 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2746 Patch by Andreas Gruenbacher <agruen@suse.de>.
2748 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2750 2002-08-14 Roland McGrath <roland@redhat.com>
2752 * locale/locarchive.h (struct locale_category_data): Give this name to
2753 the type of locale_data_t's elements.
2754 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2755 (add_locale): Use that to sort the categories by size and put all
2756 those that fit into two pages into the LC_ALL block, instead of
2757 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2758 (show_archive_content): Detect categories inside LC_ALL block
2759 directly, instead of hard-coding.
2760 (oldlocrecentcmp): Compare just on file locations used.
2762 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2764 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2765 (oldlocrecentcmp): New function.
2766 (enlarge_archive): Re-add locales in the order they were added
2768 (add_locale): Put all the small locale files together, if the small
2769 locale file block would occupy less pages if page size aligned, align
2771 (show_archive_content): Adjust for locale archives optimized for speed.
2773 2002-08-14 Roland McGrath <roland@frob.com>
2775 * configure.in: Use "MISSING" as not-found value for MIG.
2776 * sysdeps/mach/configure.in: Fatal if mig not found.
2777 * configure, sysdeps/mach/configure: Regenerated.
2779 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2781 * locale/loadarchive.c (archfname): Add missing slash.
2783 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2784 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2786 2002-08-12 Roland McGrath <roland@redhat.com>
2788 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2789 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2790 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2791 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2792 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2793 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2794 * sysdeps/generic/waitpid.c: Likewise.
2796 * include/net/if.h: New file. Use libc_hidden_proto
2797 for if_nametoindex and if_indextoname.
2798 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2799 * sysdeps/mach/hurd/if_index.c: Likewise.
2800 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2802 * include/grp.h (setgroups): Add libc_hidden_proto.
2803 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2804 * sysdeps/mach/hurd/setgroups.c: Likewise.
2805 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2806 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2808 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2810 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2811 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2812 * sysdeps/generic/setegid.c (setegid): Likewise.
2813 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2814 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2815 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2816 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2817 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2818 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2819 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2820 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2821 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2822 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2823 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2824 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2825 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2827 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2828 __lxstat_internal, __lxstat64_internal): Remove.
2829 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2831 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2832 Remove INTDEF where present, remove #undef at the beginning.
2833 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2834 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2835 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2836 * sysdeps/generic/xstat.c (__xstat): Likewise.
2837 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2838 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2839 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2840 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2841 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2842 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2843 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2844 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2845 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2846 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2847 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2848 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2849 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2850 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2851 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2852 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2853 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2854 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2855 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2856 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2857 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2858 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2859 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2860 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2861 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2862 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2863 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2864 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2865 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2866 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2867 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2868 * sysdeps/unix/xstat.c (__xstat): Likewise.
2870 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2871 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2872 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2873 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2874 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2875 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2876 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2878 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2879 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2880 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2881 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2882 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2883 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2884 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2885 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2887 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2888 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2889 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2890 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2891 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2892 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2893 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2894 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2896 * include/string.h (strcoll): Add libc_hidden_proto.
2897 * string/strcoll.c (strcoll): Add libc_hidden_def.
2899 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2901 2002-08-11 Philip Blundell <philb@gnu.org>
2903 * sysdeps/arm/Makefile: New file.
2905 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2907 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2908 by another '|', end of regex or enclosing ')', clear branch.
2909 * posix/bug-regex9.c: New test.
2910 * posix/Makefile (tests): Add bug-regex9.
2912 2002-08-12 Roland McGrath <roland@redhat.com>
2914 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2915 start count condition, use TOTAL instead of variable that was never
2916 set. Fix outer loop termination condition to TOTAL >= after update.
2918 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2919 dl_tls_static_align and dl_tls_static_nelem.
2921 2002-08-11 Roland McGrath <roland@redhat.com>
2923 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2924 of the TLS macros, otherwise the compiler might not have initialized
2925 the PIC register yet when we use the PLT via asm.
2926 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2927 * elf/tst-tlsmod2.c (in_dso): Likewise.
2929 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2931 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2932 Evaluate argument exactly once. Remove __volatile__ from asm's.
2934 * include/unistd.h: Use libc_hidden_proto for getdomainname
2936 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2937 * sysdeps/mach/hurd/getdomain.c: Likewise.
2938 * sysdeps/unix/getlogin_r.c: Likewise.
2939 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2940 * sysdeps/generic/getlogin_r.c: Likewise.
2942 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2943 * sunrpc/rtime.c: Add libc_hidden_def.
2945 * include/string.h: Use libc_hidden_proto for basename.
2946 * string/basename.c [_LIBC]: Add libc_hidden_def.
2948 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2950 * locale/loadarchive.c: munmap -> __munmap throughout.
2952 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2953 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2954 * sysdeps/generic/gai_strerror.c: Likewise.
2956 * include/sys/errno.h: New file.
2958 * include/signal.h: No libc_hidden_proto for raise,
2959 __libc_current_sigrtmin, __libc_current_sigrtmax.
2960 These need to be overridden by linuxthreads.
2961 * sysdeps/posix/raise.c: Reverted.
2962 * sysdeps/generic/raise.c: Reverted.
2963 * signal/allocrtsig.c: Reverted.
2965 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
2967 2002-08-10 Roland McGrath <roland@redhat.com>
2969 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
2970 * locale/localeinfo.h: Declare it.
2971 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
2972 current locale if it's not in the file list.
2973 Call _nl_archive_subfreeres.
2975 2002-08-10 Andreas Jaeger <aj@suse.de>
2977 * sysdeps/i386/strchr.S: Add comment.
2979 2002-08-10 Roland McGrath <roland@redhat.com>
2981 * include/wchar.h (putwc): Use libc_hidden_proto.
2982 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
2983 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
2984 * stdio-common/dprintf.c: Add libc_hidden_def.
2985 * stdio-common/fprintf.c: Likewise.
2986 * stdio-common/sprintf.c: Likewise.
2987 * stdio-common/sscanf.c: Likewise.
2988 * libio/iofwrite.c: Likewise.
2989 * libio/memstream.c: Likewise.
2990 * libio/putwc.c: Likewise.
2991 * stdio-common/perror.c: Likewise.
2992 * sysdeps/posix/remove.c: Likewise.
2993 * sysdeps/generic/remove.c: Likewise.
2994 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
2995 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
2997 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2999 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3000 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3001 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3002 towlower, towupper): Add libc_hidden_weak.
3004 * include/bits/dlfcn.h: New file.
3005 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3007 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3008 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3009 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3010 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3011 * include/shadow.h (_nss_files_parse_spent): Likewise.
3012 * include/netdb.h (_nss_files_parse_protoent,
3013 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3014 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3015 (LINE_PARSER): Use it.
3016 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3017 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3019 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3022 * manual/debug.texi (%MENU%): Remove trailing dot.
3023 Reported by <hayastan132@hotmail.com>.
3025 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3028 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3031 2002-08-09 Roland McGrath <roland@redhat.com>
3033 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3034 name to find codeset name (if any) and normalize it. If the
3035 normalized name differs, look up only that in the archive.
3036 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3037 contains a codeset, normalize the codeset store only the normalized
3038 name in the archive. If not, add an alias containing the locale's
3039 normalized codeset name. Apply codeset name normalization when
3040 matching entries in the alias file.
3042 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3043 decrement HEAD->namehash_used here.
3044 (add_locale): Only need to insert name string when name_offset != 0.
3046 * locale/programs/localedef.c (options): Add -A/--alias-file.
3047 (alias_file): New variable.
3048 (parse_opt): Grok -A, set that.
3049 * locale/programs/localedef.h: Declare it.
3051 * locale/locarchive.h (struct locrecent): Add `refs' member.
3052 * locale/programs/locarchive.c (insert_name): New function, broken out
3054 (add_locale_to_archive): ... here. Call that.
3055 (add_alias): New function.
3056 (add_locale): New static function, add_locale_to_archive renamed.
3057 (add_locale_to_archive): Call that and use add_alias to add an alias
3058 for the name with codeset if the given name lacks it.
3059 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3061 * locale/Makefile (routines): Add loadarchive.
3062 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3063 (_nl_load_locale_from_archive): New function.
3064 * locale/localeinfo.h: Declare it.
3065 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3066 try _nl_load_locale_from_archive first.
3068 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3069 broken out of _nl_load_locale.
3070 (_nl_load_locale): Call that.
3071 * locale/localeinfo.h: Declare it.
3072 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3073 (struct locale_data): Remove unused member `options'.
3074 * locale/findlocale.c (_nl_remove_locale): Update uses.
3075 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3076 * locale/C-collate.c: Update initializer.
3077 * locale/C-identification.c: Likewise.
3078 * locale/C-measurement.c: Likewise.
3079 * locale/C-telephone.c: Likewise.
3080 * locale/C-address.c: Likewise.
3081 * locale/C-name.c: Likewise.
3082 * locale/C-paper.c: Likewise.
3083 * locale/C-time.c: Likewise.
3084 * locale/C-numeric.c: Likewise.
3085 * locale/C-monetary.c: Likewise.
3086 * locale/C-messages.c : Likewise.
3087 * locale/C-ctype.c: Likewise.
3089 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3090 use CHAR_BIT instead of BITSPERBYTE.
3092 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3093 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3094 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3095 (_nl_remove_locale): Likewise.
3096 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3098 * locale/findlocale.c (_nl_default_locale_path): New variable.
3099 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3100 * locale/localeinfo.h: Declare it.
3101 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3102 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3103 * locale/newlocale.c (__newlocale): Likewise.
3105 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3106 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3107 * sysdeps/generic/morecore.c: Likewise.
3108 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3109 (__libc_current_sigrtmax): Likewise.
3111 2002-08-08 Roland McGrath <roland@redhat.com>
3113 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3114 * catgets/open_catalog.c (__open_catalog): Likewise.
3116 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3117 from typo INITIAL_NUM_NANES.
3118 (create_archive): Update use.
3120 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3122 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3124 2002-08-08 Roland McGrath <roland@frob.com>
3126 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3128 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3130 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3131 else and undefine after including wcstol_l.c.
3132 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3134 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3136 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3138 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3140 * configure.in: Make the test for broken_alias_attribute stricter.
3142 2002-05-24 Robert Love <rml@tech9.net>
3144 * posix/Makefile (routines): Add sched_getaffinity and
3146 * posix/sched.h: Add declarations for sched_getaffinity and
3148 * sysdeps/generic/sched_getaffinity.c: New file.
3149 * sysdeps/generic/sched_setaffinity.c: New file.
3150 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3153 2002-08-06 Andreas Schwab <schwab@suse.de>
3155 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3157 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3159 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3162 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3163 It is known to be defined.
3165 * include/string.h: Define index and rindex only if _ISOMAC is not
3168 * elf/rtld.c: Include <errno.h>.
3169 * sysdeps/generic/libc-tls.c: Likewise.
3171 2002-08-07 Roland McGrath <roland@redhat.com>
3173 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3175 (precsize_aton): Likewise.
3177 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3178 the static symbols added in the last change (doofus is me).
3180 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3181 loop to notice missing categories in a composite name.
3183 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3184 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3185 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3186 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3188 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3190 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3192 2002-08-07 Roland McGrath <roland@redhat.com>
3194 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3195 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3196 Reported by Jakub Jelinek <jakub@redhat.com>.
3198 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3200 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3203 2002-08-06 Roland McGrath <roland@redhat.com>
3205 * include/getopt.h: Put private decls inside [_GETOPT_H].
3206 Use libc_hidden_proto for getopt_long, getopt_long_only.
3207 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3208 Add libc_hidden_def.
3210 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3211 Define as a macro for __dl_iterate_phdr.
3213 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3214 made static. Add __ name as a strong alias.
3215 (internal_endnetgrent): Likewise.
3216 (internal_getnetgrent_r): Likewise.
3218 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3220 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3221 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3222 all *_l functions with no __ prefix.
3223 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3224 * ctype/ctype_l.c: Likewise.
3225 * locale/nl_langinfo.c: Likewise.
3226 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3227 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3228 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3229 * wctype/wctype.h [__USE_GNU]: Likewise.
3230 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3231 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3232 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3233 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3234 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3235 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3236 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3237 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3238 (__wcscasecmp_l): Add libc_hidden_def.
3239 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3240 (__wcsncasecmp_l): Add libc_hidden_def.
3241 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3242 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3243 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3244 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3245 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3246 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3247 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3248 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3249 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3250 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3251 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3252 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3253 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3254 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3256 2002-08-05 Roland McGrath <roland@redhat.com>
3258 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3259 netname2user, host2netname, user2netname, key_gendes.
3260 * sunrpc/netname.c: Add libc_hidden_def.
3261 * sunrpc/key_call.c: Likewise.
3263 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3265 * inet/getnameinfo.c: Add libc_hidden_def.
3266 * sysdeps/generic/getaddrinfo.c: Likewise.
3267 * sysdeps/posix/getaddrinfo.c: Likewise.
3269 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3270 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3271 * wcsmbs/wmemset.c: Add libc_hidden_def.
3273 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3274 (index, rindex): Define as macros for strchr, strrchr.
3276 * string/envz.c (envz_strip): index -> strchr
3278 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3279 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3281 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3282 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3284 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3285 * stdlib/wctomb.c: Add libc_hidden_def.
3287 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3288 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3289 * resolv/herror.c: Likewise.
3290 * inet/rcmd.c: Add libc_hidden_def.
3291 * inet/ruserpass.c: Likewise.
3292 * inet/getnetgrent_r.c: Likewise.
3294 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3295 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3296 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3297 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3299 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3300 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3302 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3304 (__libc_system): Call it, putting just the line == NULL test here.
3306 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3307 variables work right.
3309 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3310 * elf/dl-close.c (_dl_close): Likewise.
3312 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3313 in6addr_any, in6addr_loopback. Remove decls for
3314 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3315 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3316 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3317 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3318 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3319 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3320 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3322 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3324 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3326 * inet/ether_aton_r.c: Add libc_hidden_def.
3327 * inet/ether_ntoa_r.c: Likewise.
3329 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3331 * sunrpc/svc.c: Add libc_hidden_def.
3332 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3333 pmap_set, pmap_unset.
3334 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3335 * sunrpc/pm_getport.c: Likewise.
3336 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3337 * sunrpc/publickey.c: Add libc_hidden_def.
3339 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3341 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3342 the other memset call in this function.
3344 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3345 at correct index. Clear BSS region now that memalign is used.
3347 2002-08-05 Roland McGrath <roland@redhat.com>
3349 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3350 * sysdeps/generic/uname.c: Add libc_hidden_def.
3351 * sysdeps/mach/hurd/uname.c: Likewise.
3353 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3355 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3356 wcspbrk): Add libc_hidden_proto.
3357 * time/strftime.c (my_strftime): Add libc_hidden_def.
3358 (strftime): Remove libc_hidden_def.
3359 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3360 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3361 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3362 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3363 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3364 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3366 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3367 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3368 __rpc_thread_createerr): Add libc_hidden_proto.
3369 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3370 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3371 __rpc_thread_createerr): Add libc_hidden_def.
3373 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3374 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3375 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3376 clnt_perror, clnt_sperror): Add libc_hidden_def.
3377 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3379 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3381 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3382 * sunrpc/des_soft.c (des_setparity): Likewise.
3384 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3385 Add libc_hidden_proto.
3386 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3387 Add libc_hidden_def.
3389 2002-08-05 Roland McGrath <roland@redhat.com>
3391 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3392 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3393 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3394 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3395 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3396 old data, abandoning the original memory allocated by rtld at startup,
3397 instead of calling realloc normally.
3399 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3401 * po/fr.po: Update from translation team.
3403 2002-08-04 Roland McGrath <roland@redhat.com>
3405 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3406 then generate a dummy module under the given name, obeying the
3407 normal rules for the "caller" field.
3409 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3410 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3412 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3413 weak here; we declare it weak or strong in the one place we use it.
3414 * sysdeps/generic/libc-start.c: ... which is here.
3415 Don't make the decl weak if [USE_TLS], since static programs need TLS
3416 setup even when single-threaded.
3418 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3420 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3421 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3422 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3423 all these variables.
3425 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3427 * include/stdio.h: Don't define macro magic to redirect function
3428 calls if _ISOMAC is defined.
3430 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3433 2002-08-04 Roland McGrath <roland@redhat.com>
3435 * stdlib/lrand48_r.c: Add libc_hidden_def.
3437 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3438 TCB with __libc_memalign instead of mmap.
3439 (_dl_deallocate_tls): Free it with free instead of munmap.
3441 * Makerules (cpp-srcs-left): When setting this to run
3442 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3443 words. Combine the two loops into one on the concatenated list,
3444 including those as well as $(test-srcs).
3446 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3447 since we align here with optimally minimal waste anyway.
3448 (malloc): Just call that.
3450 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3453 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3454 to compute memory location for l_tls_initimage.
3455 * elf/rtld.c (_dl_start): Likewise.
3456 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3458 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3459 because the .d file is generated in the non-shared case and
3460 so fails to catch them otherwise.
3462 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3463 split out of _dl_allocate_tls.
3464 (_dl_allocate_tls_init): Likewise.
3465 (_dl_allocate_tls): Call those.
3466 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3467 * elf/rtld.c (dl_main): Call them separately instead of calling
3468 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3469 is finished, so that the initializer data has been relocated before we
3470 copy it into the main thread's TLS block.
3472 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3473 loop conditions, prevented the last used module from being initialized.
3475 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3477 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3478 if glob resp. globfree are not macros.
3479 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3480 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3481 Add libc_hidden_ver.
3482 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3484 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3485 instead of libc_hidden_weak.
3486 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3487 libc_hidden_ver instead of libc_hidden_def.
3488 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3489 libc_hidden_ver instead of libc_hidden_def.
3490 (wcstoll, wcstoq): Remove libc_hidden_weak.
3491 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3493 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3495 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3497 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3500 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3502 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3503 to access _sys_siglist.
3504 * string/strsignal.c: Likewise.
3505 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3506 * sysdeps/gnu/siglist.c: Likewise.
3507 * sysdeps/unix/siglist.c: Likewise.
3508 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3510 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3512 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3514 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3516 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3518 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3519 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3520 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3522 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3523 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3525 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3526 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3527 and __gconv_get_cache respectively.
3528 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3529 defined static. Change all users.
3530 (__gconv_get_cache): New function.
3531 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3532 (__gconv_get_alias_db): New function.
3533 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3534 (__conv_modules_db): Likewise.
3535 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3536 and __gconv_get_alias_db.
3537 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3540 * include/stdlib.h: Add prototype and libc_hidden_proto for
3542 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3544 * malloc/obstack.c: Remove fputs macro.
3546 * malloc/mtrace.c: Remove fopen macro.
3548 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3550 * manual/debug.texi: Fix spelling to programmatically.
3551 Reported by <hayastan132@hotmail.com>.
3553 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3555 * include/libio.h: Add libc_hidden_proto for __uflow.
3556 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3557 fgetpos to _IO_* names.
3558 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3559 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3560 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3561 putwc_unlocked, vswscanf.
3562 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3563 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3564 * libio/fseek.c: Likewise.
3565 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3567 * libio/genops.c (__uflow): Add libc_hidden_def.
3568 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3569 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3570 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3571 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3572 * libio/iofread_u.c (fread_unlocked): Likewise.
3573 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3574 * libio/iovswscanf.c (vswscanf): Likewise.
3575 * libio/putwc_u.c (putwc_unlocked): Likewise.
3576 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3577 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3578 * malloc/mtrace.c: Likewise.
3580 * sunrpc/clnt_perr.c: Remove fputs macro.
3581 * sunrpc/svc_simple.c: Likewise.
3582 * sunrpc/svc_tcp.c: Likewise.
3583 * sunrpc/svc_udp.c: Likewise.
3584 * sunrpc/xdr_rec.c: Likewise.
3585 * sunrpc/xdr_ref.c: Likewise.
3587 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3588 iconv_prog, linereader, and charmap-dir.
3589 * locale/Makefile: Likewise for locale and charmap-dir.
3590 * malloc/Makefile: Likewise for memusagestat.
3591 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3592 * sunrpc/Makefile: Likewise for rpc_main.
3593 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3594 * timezone/Makefile: Likewise for zic.
3596 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3598 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3599 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3600 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3601 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3604 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3606 * libio/genops.c (__underflow): Add libc_hidden_def.
3607 * libio/wgenops.c (__wuflow): Likewise.
3608 (__wunderflow): Likewise.
3610 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3611 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3613 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3614 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3616 * include/string.h: Add libc_hidden_proto for __strverscmp.
3617 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3619 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3620 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3621 * sysdeps/posix/sysconf.c: Likewise.
3622 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3623 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3625 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3626 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3627 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3628 __iswxdigit_l, __towlower_l, __towupper_l.
3629 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3630 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3632 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3633 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3634 * sysdeps/mach/hurd/xmknod.c: Likewise.
3635 * sysdeps/unix/xmknod.c: Likewise.
3636 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3637 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3638 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3640 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3642 2002-08-03 Roland McGrath <roland@redhat.com>
3644 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3646 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3647 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3648 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3649 * sysdeps/mach/hurd/setpriority.c: Likewise.
3650 * sysdeps/mach/hurd/getpriority.c: Likewise.
3651 * sysdeps/generic/setpriority.c: Likewise.
3652 * sysdeps/generic/getpriority.c: Likewise.
3654 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3655 * malloc/mcheck.c: Add libc_hidden_def.
3657 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3658 * misc/hsearch_r.c: Add libc_hidden_def.
3660 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3661 * posix/fnmatch.c: Add libc_hidden_weak.
3663 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3664 execl, execle, execlp, execvp, getpid, getsid.
3665 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3666 * sysdeps/unix/alarm.c: Likewise.
3667 * posix/confstr.c: Likewise.
3668 * posix/execvp.c: Likewise.
3669 * posix/execlp.c: Likewise.
3670 * posix/execle.c: Likewise.
3671 * posix/execl.c: Likewise.
3672 * sysdeps/generic/getsid.c: Likewise.
3673 * sysdeps/mach/hurd/getsid.c: Likewise.
3674 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3675 * sysdeps/mach/hurd/getpid.c: Likewise.
3677 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3678 qecvt_r, qfcvt_r, lrand48_r.
3679 * misc/efgcvt_r.c: Add libc_hidden_def.
3681 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3682 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3684 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3685 * locale/nl_langinfo.c: Add libc_hidden_def.
3687 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3688 * sysdeps/generic/glob.c: Add libc_hidden_def.
3689 * sysdeps/generic/glob64.c: Likewise.
3690 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3692 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3694 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3696 * locale/setlocale.c (_nl_current_names): Variable moved ...
3697 * locale/localename.c (_nl_current_names): ... here, new file.
3698 Make it global, with attribute_hidden.
3699 * locale/localeinfo.h: Declare it.
3700 * locale/Makefile (aux): Add localename.
3701 * locale/localename.c (__current_locale_name): New function.
3702 * include/locale.h (__current_locale_name): Declare it.
3703 * intl/dcigettext.c (guess_category_value): Use that instead of
3706 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3707 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3708 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3709 * locale/newlocale.c: Add alias to __ name.
3710 * locale/duplocale.c: Likewise.
3711 * locale/freelocale.c: Likewise.
3712 * locale/uselocale.c: New file.
3713 * locale/Makefile (routines): Add it.
3714 * locale/Versions (libc: GLIBC_2.3): New set.
3715 Add newlocale, duplocale, freelocale, uselocale.
3716 (libc: GLIBC_PRIVATE): Add __uselocale.
3718 * locale/localeinfo.h [SHARED]
3719 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3720 (_NL_CURRENT_DATA): Define using that.
3721 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3722 (_NL_CURRENT_DEFINE): Define to empty.
3723 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3724 conditionalized on this.
3725 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3726 taking initializer of _nl_C_locobj.
3727 [SHARED] (_nl_global_locale): New variable, using that initializer.
3728 (_nl_C_locobj): Use new macro for initialzier.
3729 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3730 [! SHARED] (CATEGORY_USED): New macro.
3731 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3732 (setdata, setlocale): Use that macro instead of examining _nl_current.
3733 (setdata): Set the slot in _nl_global_locale.
3734 Conditionalize setting of _nl_current on [! SHARED].
3735 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3736 declaration as an extern.
3737 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3739 * include/locale.h: Use libc_hidden_proto for setlocale.
3740 * locale/setlocale.c: Add libc_hidden_def.
3742 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3744 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3745 * misc/hsearch_r.c: Add libc_hidden_def.
3746 * misc/lsearch.c: Likewise.
3748 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3750 * misc/getttyent.c: Add libc_hidden_def.
3752 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3753 * malloc/mcheck.c: Add libc_hidden_def.
3755 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3756 * include/argz.h: Use libc_hidden_proto for argz_delete.
3757 * string/argz-delete.c: Add libc_hidden_def.
3758 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3760 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3761 HIDDEN_JUMPTARGET for _exit.
3762 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3763 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3764 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3765 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3767 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3768 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3769 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3770 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3772 * include/stdlib.h: Use libc_hidden_proto for abort,
3773 __strtof_internal, __strtod_internal, __strtold_internal,
3774 __strtol_internal, __strtoll_internal, __strtoul_internal,
3775 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3776 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3777 __strtoul_l_internal, __strtoull_l_internal.
3778 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3779 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3780 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3781 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3782 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3784 * sysdeps/generic/abort.c: Add libc_hidden_def.
3785 * stdlib/strtod.c: Likewise.
3786 * sysdeps/generic/strtol.c: Likewise.
3787 * sysdeps/wordsize-64/strtol.c: Likewise.
3788 * sysdeps/wordsize-64/wcstol.c: Likewise.
3789 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3791 * include/stdlib.h: Use libc_hidden_proto for qsort.
3792 * stdlib/msort.c: Add libc_hidden_def.
3794 * include/utime.h: Use libc_hidden_proto for utime.
3795 * sysdeps/generic/utime.c: Add libc_hidden_def.
3796 * sysdeps/unix/utime.c: Likewise.
3798 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3799 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3800 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3801 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3802 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3804 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3805 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3806 and __libc_current_sigrtmax.
3807 * signal/sigismem.c: Add libc_hidden_def.
3808 * signal/sigfillset.c: Likewise.
3809 * signal/sigempty.c: Likewise.
3810 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3811 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3812 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3813 * sysdeps/posix/raise.c: Likewise.
3814 * sysdeps/generic/raise.c: Likewise.
3816 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3818 * include/string.h: Use libc_hidden_proto for __stpcpy.
3819 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3820 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3821 * sysdeps/generic/stpcpy.c: Likewise.
3822 * sysdeps/i386/stpcpy.S: Likewise.
3823 * sysdeps/i386/i586/stpcpy.S: Likewise.
3824 * sysdeps/powerpc/stpcpy.S: Likewise.
3825 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3826 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3828 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3829 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3830 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3832 * string/strdup.c (__strdup): Likewise.
3833 * string/strndup.c (__strndup): Likewise.
3834 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3835 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3837 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3839 * include/libio.h: New file.
3840 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3841 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3842 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3843 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3844 * sysdeps/unix/common/syscalls.list: Likewise.
3845 * sysdeps/unix/inet/syscalls.list: Likewise.
3846 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3847 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3848 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3849 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3850 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3851 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3852 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3853 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3854 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3855 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3856 * sysdeps/unix/syscalls.list: Likewise.
3858 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3859 Ulrich Drepper <drepper@redhat.com>
3861 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3862 the arguments is big enough to cause an overflow.
3864 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3866 * assert/assert.c: Use hidden_def not INTDEF.
3868 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3870 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3873 2002-08-03 Roland McGrath <roland@redhat.com>
3875 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3876 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3878 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3879 * misc/syslog.c: Add libc_hidden_def.
3880 * misc/err.c: Likewise.
3881 * stdlib/exit.c: Likewise.
3882 * stdlib/bsearch.c: Likewise.
3883 * sysdeps/generic/getenv.c: Likewise.
3885 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3887 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3888 libc_hidden_weak for every system call symbol defined.
3890 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3891 timelocal, localtime, strftime.
3892 * time/asctime.c: Add libc_hidden_def.
3893 * time/mktime.c: Likewise.
3894 * time/localtime.c: Likewise.
3895 * time/strftime.c: Likewise.
3896 * time/strptime.c: Likewise.
3897 * sysdeps/generic/time.c: Likewise.
3898 * sysdeps/unix/time.c: Likewise.
3899 * sysdeps/unix/sysv/i386/time.S: Likewise.
3900 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3902 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3903 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3904 * resolv/inet_ntop.c: Likewise.
3905 * resolv/inet_pton.c: Likewise.
3906 * inet/inet_mkadr.c: Add libc_hidden_def.
3907 * inet/inet_netof.c: Likewise.
3908 * resolv/inet_addr.c: Likewise.
3910 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3911 clauses from conditionals for now. Will have to be fixed later
3912 for older compilers.
3914 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3916 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3918 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3919 broken alias attribute handling.
3920 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3922 2002-08-02 Roland McGrath <roland@frob.com>
3924 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3925 since it sets the variables we use in a -D switch.
3927 2002-08-02 Roland McGrath <roland@redhat.com>
3929 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3930 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3931 matches long int, not int.
3933 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3934 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3935 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3936 * wctype/wctrans.c (wctrans): Likewise.
3937 * wctype/wctype.c (__wctype): Likewise.
3938 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3940 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3942 * assert/assert.c (__assert_fail): Fix typo in comment.
3944 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3945 * sunrpc/rpc_thread.c: Define it without static.
3946 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3948 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3950 * assert/assert.c (__assert_fail): Remove undef.
3951 Replace INTDEF with libc_hidden_def.
3952 * assert/__assert.c (__assert): Remove INTUSE.
3953 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3955 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3956 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3957 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
3958 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
3959 libm_hiden_ver): Define.
3960 * include/assert.h (__assert_fail_internal): Remove.
3961 (__assert_fail): Add prototype. Add hidden_proto.
3962 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
3964 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
3965 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
3966 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
3967 Add libc_hidden_proto.
3968 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
3969 __fcntl): Add libc_hidden_proto. Remove macros.
3970 (__open_internal, __fcntl_internal): Remove.
3971 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
3972 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
3973 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
3975 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
3977 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
3978 Add libc_hidden_def.
3979 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
3980 * sysdeps/generic/open.c (__open): Remove undef.
3981 Add libc_hidden_def. Remove INTDEF.
3982 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
3983 Add libc_hidden_def.
3984 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
3985 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
3986 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
3987 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3988 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
3989 (__libc_fcntl): Add libc_hidden_def.
3990 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
3991 (__open): Remove INTDEF2. Add libc_hidden_weak.
3992 (__libc_open): Add libc_hidden_def.
3993 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
3994 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
3995 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
3996 Add libc_hidden_def.
3997 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
3998 Add libc_hidden_def.
3999 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4001 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4002 (__libc_fcntl): Add libc_hidden_def.
4003 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4004 __getpgid_internal, __chown_internal): Remove.
4005 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4006 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4008 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4009 __getpid_internal, __open_internal, __write_internal): Remove.
4010 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4011 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4012 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4013 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4014 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4015 Replace INTDEF with libc_hidden_def.
4016 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4017 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4018 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4019 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4020 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4021 Add libc_hidden_proto.
4022 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4023 * include/sys/select.h (__select): Likewise.
4024 * include/sys/socket.h (__send): Likewise.
4025 * include/sys/statfs.h (__statfs): Likewise.
4026 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4027 __getpid, __getpgid, __setpgid, __close, __read, __write,
4028 __getpagesize, __sbrk): Likewise.
4029 (__chown_internal, __dup2_internal, __getpid_internal,
4030 __getpgid_internal, __close_internal, __write_internal,
4031 __getpagesize_internal): Remove.
4032 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4034 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4035 * include/sched.h (__sched_setscheduler): Likewise.
4036 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4037 * include/stdlib.h (__secure_getenv): Likewise.
4038 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4039 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4040 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4041 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4042 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4043 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4044 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4045 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4046 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4047 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4048 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4049 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4050 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4051 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4052 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4053 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4054 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4055 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4056 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4057 * libio/genops.c (__overflow): Add libc_hidden_def.
4058 * libio/iovdprintf.c: Remove libio.h include.
4059 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4060 libc_hidden_weak): Define to nothing if not defined.
4061 (__overflow, __woverflow): Add libc_hidden_proto.
4062 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4063 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4064 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4065 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4066 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4067 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4068 and libc_hidden_def.
4069 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4070 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4071 (__getpgid): Add libc_hidden_proto.
4072 (__bsd_getpgrp): Remove INTUSE.
4073 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4075 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4076 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4077 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4078 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4079 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4080 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4081 __rpc_thread_createerr): Add libc_hidden_def.
4082 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4084 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4085 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4086 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4087 * sysdeps/generic/chown.c (__chown): Likewise.
4088 * sysdeps/generic/close.c (__close): Likewise.
4089 * sysdeps/generic/dup2.c (__dup2): Likewise.
4090 * sysdeps/generic/pipe.c (__pipe): Likewise.
4091 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4092 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4093 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4094 * sysdeps/generic/read.c (__libc_read): Likewise.
4095 (__read): Add libc_hidden_weak.
4096 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4097 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4098 * sysdeps/generic/select.c (__select): Likewise.
4099 * sysdeps/generic/send.c (__send): Likewise.
4100 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4101 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4102 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4103 * sysdeps/generic/statfs.c (__statfs): Likewise.
4104 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4105 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4106 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4107 Remove undef and INTDEF.
4108 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4109 * sysdeps/generic/getpid.c (__getpid): Likewise.
4110 * sysdeps/generic/write.c (__libc_write): Likewise.
4111 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4112 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4113 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4114 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4115 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4116 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4117 Remove undef and INTDEF.
4118 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4119 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4120 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4121 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4122 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4123 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4124 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4125 (__pipe): Add libc_hidden_def.
4126 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4128 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4129 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4130 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4131 (__read): Add libc_hidden_weak.
4132 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4133 (__libc_pwrite64): Add libc_hidden_def.
4134 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4135 * sysdeps/mach/hurd/select.c (__select): Likewise.
4136 * sysdeps/mach/hurd/send.c (__send): Likewise.
4137 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4138 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4139 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4140 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4141 * sysdeps/posix/dup2.c: Likewise.
4142 Remove undef and INTDEF.
4143 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4144 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4145 (__pwrite64): Add libc_hidden_weak.
4146 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4147 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4148 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4149 * sysdeps/standalone/close.c (__close): Likewise.
4150 * sysdeps/standalone/write.c (__libc_write): Likewise.
4151 (__write): Add libc_hidden_weak.
4152 * sysdeps/standalone/read.c (__read): Likewise.
4153 (__libc_read): Add libc_hidden_def.
4154 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4155 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4156 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4157 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4158 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4159 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4160 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4161 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4162 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4163 __GI___sigaction): Add.
4164 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4165 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4166 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4167 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4168 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4169 __GI___setpgid): Add.
4170 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4171 Remove undef and INTDEF.
4172 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4173 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4174 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4175 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4176 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4177 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4178 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4179 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4180 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4181 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4182 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4183 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4184 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4185 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4186 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4187 __GI___statfs, __GI___send): Add.
4188 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4189 libc_hidden_ver resp. libc_hidden_def.
4190 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4192 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4193 Likewise. Remove undef and INTDEF.
4194 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4195 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4196 __GI___statfs, __GI___send): Add.
4197 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4199 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4201 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4202 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4203 libc_hidden_ver resp. libc_hidden_def.
4204 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4206 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4207 Add libc_hidden_weak.
4208 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4209 Add libc_hidden_def.
4210 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4211 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4213 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4214 resp. libc_hidden_def.
4215 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4217 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4219 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4220 Likewise. Remove undef.
4221 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4223 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4224 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4226 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4228 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4229 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4230 Likewise. Remove undef and INTDEF.
4231 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4233 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4235 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4237 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4238 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4239 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4241 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4242 Add libc_hidden_def.
4243 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4244 __GI___statfs): Add.
4245 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4247 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4248 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4249 Remove undef and INTDEF.
4250 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4251 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4253 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4254 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4256 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4258 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4259 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4260 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4262 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4263 libc_hidden_def. Remove undef and INTDEF.
4264 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4265 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4267 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4268 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4269 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4270 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4271 Remove undef and INTDEF.
4272 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4273 broken visibility attribute handling.
4274 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4276 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4278 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4279 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4281 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4284 2002-06-29 Todd Fries <todd@openbsd.org>
4286 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4288 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4290 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4292 2002-07-30 Roland McGrath <roland@redhat.com>
4294 * resolv/resolv.h (_res): Define macro unconditionally.
4295 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4296 * include/resolv.h: ... here.
4297 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4298 as a __thread variable.
4299 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4300 a __thread variable instead of a global.
4301 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4303 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4306 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4308 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4309 decls of memset and memcpy.
4311 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4312 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4314 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4316 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4317 (__libc_tsd_define): Define using __thread.
4319 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4320 (__rpc_thread_variables): Use __libc_tsd_get.
4321 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4322 __rpc_thread_variables, which might allocate what we're about to free.
4324 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4325 thread-local variable.
4326 * resolv/netdb.h (h_errno): Define macro unconditionally.
4327 [_LIBC] (__set_h_errno): Macro moved to ...
4328 * include/netdb.h: ... here.
4329 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4330 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4331 [! _LIBC_REENTRANT]: #undef h_errno here.
4333 * include/errno.h: Protect from multiple inclusion.
4335 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4336 before defining them, since Linux's <linux/posix_types.h> might have
4339 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4341 * malloc/malloc.c (public_cALLOc): Check for overflow on
4343 * sunrpc/xdr_array.c (xdr_array): Likewise.
4344 * sunrpc/rpc/types.h (mem_free): Add comment.
4345 Patch by Solar Designer <solar@openwall.com>.
4347 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4349 * sysdeps/unix/sysv/linux/kernel-features.h
4350 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4352 2002-08-01 Roland McGrath <roland@redhat.com>
4354 * libio/fileops.c (_IO_file_sync_mmap): New function.
4355 (_IO_file_jumps_mmap): Use it.
4356 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4357 repeat the stat check and resize the mapped buffer as necessary.
4359 2002-07-31 Roland McGrath <roland@redhat.com>
4361 * libio/fileops.c (decide_maybe_mmap): New static function.
4362 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4363 mmap the file contents. Then switch the jump tables to the mmap
4364 tables if it worked, or the vanilla file tables if not.
4365 (_IO_file_underflow_maybe_mmap): New function.
4366 (_IO_file_seekoff_maybe_mmap): New function.
4367 (_IO_file_xsgetn_maybe_mmap): New function.
4368 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4369 * libio/libioP.h: Declare those.
4370 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4371 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4372 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4373 If the stream is read-only, set its jump tables to those new ones.
4374 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4375 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4376 We need the tables set before _IO_file_attach.
4378 * libio/tst-mmap-eofsync.c: New file.
4379 * libio/tst-mmap-fflushsync.c: New file.
4380 * libio/bug-mmap-fflush.c: New file.
4381 * libio/tst-mmap2-eofsync.c: New file.
4382 * libio/Makefile (tests): Add them.
4384 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4385 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4387 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4389 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4390 Declarations moved to <bits/sys_errlist.h>. Include that file.
4391 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4392 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4393 declare sys_errlist and sys_nerr.
4394 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4395 provide declarations.
4397 2002-07-31 Roland McGrath <roland@redhat.com>
4399 * elf/rtld.c (dl_main): Fix typo in error message.
4401 2002-07-31 Roland McGrath <roland@frob.com>
4403 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4404 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4405 sysdeps/mach/hurd/dl-sysdep.c change.
4407 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4409 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4410 -r`/build/include for kernel headers.
4412 * po/fi.po: New file.
4414 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4416 * configure.in (static_nss): Set to `yes' if --disable-shared.
4418 2002-07-23 Bruno Haible <bruno@clisp.org>
4420 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4423 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4425 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4426 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4429 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4431 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4434 2002-07-21 Bruno Haible <bruno@clisp.org>
4436 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4437 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4438 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4439 trans_sysdep_tab_offset.
4440 (struct sysdep_segment): New type.
4441 (struct sysdep_string): New type.
4442 (SEGMENTS_END): New macro.
4443 * intl/gettextP.h (struct sysdep_string_desc): New type.
4444 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4445 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4446 orig_tab, trans_tab, hash_tab to const pointers because they point
4447 into read-only memory.
4448 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4449 (PRI*): Define fallback values.
4450 (get_sysdep_segment_value): New function.
4451 (_nl_load_domain): Distinguish major and minor revision parts. Add
4452 support for minor revision 1 with system dependent strings.
4453 (_nl_unload_domain): Also free the 'malloced' field.
4454 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4455 now done in loadmsgcat.c. Add support for system dependent strings.
4457 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4459 * posix/bug-regex7.c: New file.
4460 * posix/bug-regex8.c: New file.
4461 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4463 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4465 * posix/bug-regex4.c (main): Fix typos.
4466 * posix/bug-regex6.c (main): Likewise.
4468 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4470 * posix/bug-regex6.c (main): Fix warnings.
4472 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4474 * iconv/iconv_prog.c (main): Improve error message for the cases
4475 where -t and/or -f parameter are missing.
4477 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4479 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4480 (re_search): Likewise.
4481 (re_match_2): Likewise.
4482 (re_search_2): Likewise.
4483 (re_search_stub): New function.
4484 (re_search_2_stub): New function.
4485 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4487 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4489 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4490 (re_string_eoi): Use STOP instead of LEN.
4491 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4492 (re_string_construct): Likewise.
4493 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4494 * posix/regexec.c (re_search_internal): Add a new argument STOP
4495 so that it can handle the argument STOP of re_search_2 and re_match_2
4497 (regexec): Adapt to new I/F of re_search_internal.
4498 (re_search_stub): Likewise.
4500 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4502 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4504 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4506 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4507 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4510 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4511 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4512 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4513 alias for adjtimex syscall.
4515 * elf/dl-minimal.c: Define __assert_fail_internal.
4516 * assert/assert.c: Likewise.
4517 * include/assert.h: Define __assert_file macro if !SHARED and not
4520 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4522 * locale/Makefile: Likewise.
4523 * nscd/Makefile: Likewise.
4524 * catgets/Makefile: Likewise.
4526 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4528 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4529 compute current position.
4531 * stdio-common/tst-fseek.c (main): Improve error messages.
4533 * libio/tst-freopen.c (main): Remove unused variable.
4535 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4536 succesful seek call. Simplify error checking.
4538 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4540 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4541 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4543 2002-07-19 Roland McGrath <roland@frob.com>
4545 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4546 __libc_enable_secure is set.
4548 2002-07-24 Roland McGrath <roland@frob.com>
4550 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4551 This implementation supports only IPv4.
4552 * inet/ifaddrs.h: New file.
4553 * sysdeps/generic/ifaddrs.c: New file.
4554 * sysdeps/gnu/ifaddrs.c: New file.
4555 * inet/test-ifaddrs.c: New file.
4556 * inet/Makefile (routines): Add ifaddrs.
4557 (headers): Add ifaddrs.h here.
4558 (tests): Add test-ifaddrs.
4559 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4561 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4562 socket call to get an AF_INET socket, instead of using __opensock.
4563 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4565 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4566 if not -1 use it instead of calling __opensock.
4567 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4568 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4569 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4571 * sysdeps/mach/hurd/ifreq.h: New file.
4572 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4573 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4574 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4576 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4577 which gets moved around. Calculate size of mmap'd buffer instead.
4579 2002-07-24 Philip Blundell <philb@gnu.org>
4581 * sysdeps/unix/arm/brk.S: Improve schedule.
4582 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4583 efficient instruction.
4584 (__socket): Optimize return sequence.
4586 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4588 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4589 sockets on old kernels.
4591 2002-07-22 Philip Blundell <philb@gnu.org>
4593 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4594 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4597 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4599 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4600 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4602 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4603 test to detect duplicate locales.
4605 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4606 position would be before beginning of file.
4607 (_IO_file_seekoff_mmap): Likewise.
4608 * libio/Makefile (tests): Add bug-fseek.
4609 * libio/bug-fseek.c: New file.
4611 * intl/explodename.c: Remove support for CEN-style locale variables.
4612 It was never used and shouldn't be since it's not portable.
4613 * intl/finddomain.c: Likewise.
4614 * intl/l10nflist.c: Likewise.
4615 * intl/loadinfo.h: Likewise.
4616 * locale/findlocale.c: Likewise.
4618 2002-07-24 Roland McGrath <roland@frob.com>
4620 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4621 position, calculate it to take into account an active pushback buffer.
4623 * libio/Makefile (tests): Add bug-ungetc.
4624 * libio/bug-ungetc.c: New file.
4626 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4628 * sysdeps/generic/libc-tls.c: New file.
4629 * csu/Makefile (routines): Add libc-tls.
4630 (static-only-routines): Add libc-tls.
4631 * elf/dl-support.c (_dl_phdr): New variable.
4632 (_dl_phnum): New variable.
4633 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4634 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4635 for !SHARED. First look through auxiliary vector. If TLS always
4636 call __pthread_initialize_minimal.
4638 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4639 in mmap call is never zero.
4641 2002-07-23 Andreas Jaeger <aj@suse.de>
4643 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4644 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4646 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4648 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4649 creation and removal of the temp file.
4651 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4653 * test-skeleton.c (create_temp_file): New function.
4655 2002-07-22 Andreas Jaeger <aj@suse.de>
4657 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4660 2002-07-21 Roland McGrath <roland@frob.com>
4662 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4663 put -I../include before -I../stdlib so we get the right errno.h et al.
4664 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4665 (CFLAGS-wcstof.c): Likewise.
4666 (CFLAGS-wcstold.c): Likewise.
4667 (CFLAGS-wcstod_l.c): Likewise.
4668 (CFLAGS-wcstof_l.c): Likewise.
4669 (CFLAGS-wcstold_l.c): Likewise.
4671 2002-07-19 Roland McGrath <roland@frob.com>
4673 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4675 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4677 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4678 __ASSUME_AT_XID is defined.
4679 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4681 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4682 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4684 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4685 (CFLAGS-wcstof.c): Likewise.
4686 (CFLAGS-wcstold.c): Likewise.
4687 (CFLAGS-wcstod_l.c): Likewise.
4688 (CFLAGS-wcstof_l.c): Likewise.
4689 (CFLAGS-wcstold_l.c): Likewise.
4691 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4693 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4694 __priority_which_t): Always typedef to int for C++.
4696 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4698 * configure.in: Add test for __thread support in compiler.
4699 * config.h.in: Add HAVE___THREAD.
4700 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4701 * include/sys/errno.h: Moved to...
4702 * stdlib/sys/errno.h: ...here. New file.
4703 * stdlib/errno.h: New file. Moved from...
4704 * include/errno.h: ...here. Changed into an internal header defining
4705 libc-local things like __set_errno.
4706 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4708 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4709 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4711 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4713 (_dl_start_final): ...here. Add code to initialize tls elements from
4715 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4716 if USE_TLS && HAVE___THREAD.
4717 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4718 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4719 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4720 * sysdeps/standalone/bits/errno.h: Likewise.
4721 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4722 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4723 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4724 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4725 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4726 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4727 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4728 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4729 use GL(dl_rtld_map), use map parameter.
4730 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4731 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4732 USE_TLS && HAVE___THREAD.
4733 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4734 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4736 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4738 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4739 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4740 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4741 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4742 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4743 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4745 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4747 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4748 MS_INVALIDATE values.
4750 2002-07-17 Andreas Schwab <schwab@suse.de>
4751 Ulrich Drepper <drepper@redhat.com>
4753 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4754 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4755 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4756 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4758 2002-07-01 H.J. Lu <hjl@gnu.org>
4760 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4763 * elf/circlemod1.c (circlemod1): Return int.
4764 * elf/circlemod2.c (circlemod2): Likewise.
4765 * elf/circlemod2a.c (circlemod2): Likewise.
4766 * elf/circlemod3.c (circlemod3): Likewise.
4767 (circlemod3a): A new function.
4769 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4771 * catgets/tst-catgets.c (main): Don't expect results for
4772 untranslated messages.
4774 * glibcbug.in: Fix little typo. Remove STDIO.
4776 * config.h.in: Fail if __FAST_MATH__ is defined.
4777 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4778 (CPPFLAGS-test-idouble.c): Likewise.
4779 (CPPFLAGS-test-ildouble.c): Likewise.
4781 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4783 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4784 * intl/tst-gettext.c: Correctly handle untranslated messages in
4787 * po/de.po: Update from translation team.
4789 2002-07-02 H.J. Lu <hjl@gnu.org>
4791 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4793 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4795 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4798 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4800 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4801 TLS fail if USE_TLS is not defined.
4803 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4804 and adjust state for seek position. [PR libc/4070]
4805 * libio/Makefile (tests): Add bug-rewind.
4806 * libio/bug-rewind.c: New file.
4808 2002-07-12 Philip Blundell <philb@gnu.org>
4810 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4811 (__backtrace): Use it.
4812 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4814 2002-07-12 Philip Blundell <philb@gnu.org>
4816 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4817 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4818 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4819 (elf_machine_rela): Remove unused variable.
4821 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4822 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4825 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4827 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4829 2002-07-14 Andreas Jaeger <aj@suse.de>
4831 * sysdeps/x86_64/bits/link.h: Add biarch support.
4833 2002-07-13 Andreas Jaeger <aj@suse.de>
4835 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4836 Use correct indices.
4837 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4839 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4841 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4842 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4843 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4844 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4845 * sysdeps/s390/s390-32/bits/link.h: Remove.
4846 * sysdeps/s390/s390-64/bits/link.h: Remove.
4847 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4848 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4849 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4850 * sysdeps/s390/bits/wordsize.h: New file.
4851 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4853 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4854 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4855 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4856 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4857 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4858 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4859 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4860 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4861 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4862 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4863 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4864 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4866 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4867 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4868 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4869 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4870 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4871 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4872 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4874 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4875 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4877 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4878 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4879 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4881 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4882 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4883 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4884 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4885 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4886 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4887 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4888 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4890 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4891 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4892 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4894 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4895 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4897 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4899 * Versions.def (libc): Add GLIBC_2.3.
4900 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4901 * stdlib/canonicalize.c: Add compatibility version for realpath
4902 and make new code available in GLIBC_2.3.
4904 2002-07-06 Bruno Haible <bruno@clisp.org>
4906 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4908 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4910 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4911 function do_init. Use __libc_once.
4912 (do_init): New function.
4914 * iconvdata/iso8859-11.h: Removed.
4915 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4916 (distribute): Remove iso8859-11.h.
4917 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4919 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4920 underflow operation if c == (W)EOF.
4922 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4924 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4925 non-zero, adjust exponent.
4926 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4927 Remove NO_LONG_DOUBLE aliases.
4928 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4929 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4930 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4931 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4933 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4934 Fix BITS_PER_MP_LIMB 32 extraction.
4935 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4936 exceptions for qNaNs.
4937 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4938 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4939 Raise exceptions when needed. Don't recurse unnecessarily.
4940 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4941 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4942 exceptions for qNaNs.
4943 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4944 to fix *quo return value sign.
4945 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4947 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4949 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4951 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4952 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4955 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4957 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
4960 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
4961 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4963 * Versions.def (libthread_db): Add GLIBC_2.3.
4965 2002-07-09 Jakub Jelinek <jakub@redhat.com>
4967 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
4968 new stream if possible.
4969 * libio/freopen64.c (freopen64): Likewise.
4970 * libio/Makefile (tests): Add tst-freopen.
4971 * libio/tst-freopen.c: New file.
4973 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4975 * libio/stdio.h (obstack_printf): Add format attribute.
4976 (obstack_vprintf): Likewise.
4978 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4980 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
4981 resp. 16 bytes on 32-bit resp. 64-bit platforms.
4982 (re_charset_t, re_string_t): Reorder structure members for 64-bit
4985 2002-07-04 Jakub Jelinek <jakub@redhat.com>
4987 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
4988 (init_dfa): ...here.
4990 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
4992 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
4993 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
4994 nodes in parse trees.
4995 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
4996 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
4997 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
4998 nodes which can epsilon transit.
4999 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5000 to IS_EPSILON_NODE macro.
5001 * posix/regexec.c (update_regs): New function to update registers
5002 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5003 (proceed_next_node): Use the entities of the nodes to determine
5004 whether the node can transit to.
5005 (set_regs): Use update_regs function to update registers.
5007 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5009 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5010 * posix/bug-regex6.c: New file.
5011 * posix/Makefile (tests): Add bug-regex6.
5012 (bug-regex6-ENV): Set LOCPATH.
5014 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5016 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5017 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5019 2002-07-06 Bruno Haible <bruno@clisp.org>
5021 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5023 2002-07-06 Bruno Haible <bruno@clisp.org>
5025 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5028 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5030 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5032 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5034 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5036 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5037 * sysdeps/generic/bits/ustat.h: Likewise.
5039 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5041 2002-07-08 Andreas Jaeger <aj@suse.de>
5043 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5045 2002-07-08 Andreas Jaeger <aj@suse.de>
5047 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5049 2002-07-06 Andreas Jaeger <aj@suse.de>
5051 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5052 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5053 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5054 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5055 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5056 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5057 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5058 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5059 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5060 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5061 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5063 2002-06-05 Brian Youmans <3diff@gnu.org>
5065 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5066 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5067 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5068 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5069 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5070 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5071 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5072 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5073 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5074 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5075 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5076 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5077 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5078 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5079 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5080 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5081 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5082 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5083 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5084 * sysdeps/ia64/fpu/e_log.S: Likewise.
5085 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5086 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5087 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5088 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5089 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5090 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5091 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5092 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5093 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5094 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5095 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5096 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5097 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5098 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5099 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5100 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5101 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5102 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5103 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5104 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5105 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5106 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5107 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5108 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5109 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5110 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5111 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5112 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5113 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5114 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5115 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5116 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5117 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5118 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5119 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5120 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5121 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5122 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5123 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5124 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5125 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5126 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5127 * sysdeps/ia64/fpu/s_round.S: Likewise.
5128 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5129 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5130 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5131 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5132 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5133 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5134 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5135 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5136 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5137 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5138 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5139 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5140 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5141 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5142 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5143 reflect IBM donation of math library to FSF
5144 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5145 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5146 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5147 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5148 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5149 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5150 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5151 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5152 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5153 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5154 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5155 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5156 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5157 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5158 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5159 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5160 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5161 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5162 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5163 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5164 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5165 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5166 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5167 * sysdeps/vax/__longjmp.c: Likewise.
5168 * sysdeps/vax/setjmp.c: Likewise.
5169 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5170 remove advertising clause
5171 * sysdeps/vax/htonl.s: Likewise.
5172 * sysdeps/vax/htons.s: Likewise.
5173 * libio/wfiledoalloc.c: Likewise.
5174 * stdlib/random.c: Likewise.
5175 * stdlib/random_r.c: Likewise.
5176 * sysdeps/mach/sys/reboot.h: Likewise.
5177 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5178 * sysdeps/posix/getaddrinfo.c: Likewise.
5179 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5180 GPL and corrected pointer to point to the correct license.
5182 2002-07-04 Andreas Jaeger <aj@suse.de>
5184 * scripts/config.guess: New upstream version.
5185 * scripts/config.sub: Likewise.
5187 2002-07-02 Andreas Schwab <schwab@suse.de>
5189 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5190 in parallel to bumping up the buffer pointer.
5192 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5194 * math/libm-test.inc (acos_test): Add missing L suffix for
5196 (cpow_test): Likewise.
5197 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5198 error for acos (0.0625).
5200 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5202 * locale/iso-639.def: Add entry for Ganda.
5203 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5205 (address_finish): Handle entries with two letter ISO 639 code.
5207 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5208 directory if it existed before.
5209 * iconv/iconvconfig.c: Implement --prefix option.
5211 * math/libm-test.inc (cexp_test): Add missing L suffix for
5212 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5213 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5216 2002-05-29 H.J. Lu <hjl@gnu.org>
5218 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5221 2002-05-28 H.J. Lu <hjl@gnu.org>
5223 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5224 are not dlopened on the dependency list of a dlopened object.
5226 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5228 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5229 dependencies if they are created between objects which are created
5230 while processing RTLD_NOW for objects loaded as part of the same
5233 2002-06-14 H.J. Lu <hjl@gnu.org>
5235 * elf/Makefile (tests): Add circleload1.
5236 (modules-names): Add circlemod1, circlemod2, circlemod3,
5237 circlemod1a, circlemod2a and circlemod3a.
5238 ($(objpfx)circleload1): New target.
5239 ($(objpfx)circleload1.out): Likewise.
5240 ($(objpfx)circlemod1.so): Likewise.
5241 ($(objpfx)circlemod2.so): Likewise.
5242 ($(objpfx)circlemod1a.so): Likewise.
5243 ($(objpfx)circlemod2a.so): Likewise.
5244 * elf/circleload1.c: New file.
5245 * elf/circlemod1.c: New file.
5246 * elf/circlemod1a.c: New file.
5247 * elf/circlemod2.c: New file.
5248 * elf/circlemod2a.c: New file.
5249 * elf/circlemod3.c: New file.
5250 * elf/circlemod3a.c: New file.
5252 2002-06-18 Amos Waterland <apw@us.ibm.com>
5254 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5256 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5257 add check for fd not open for writing.
5259 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5260 completed element(s) and do not suspend thread if so. Patch
5261 heavily modified by drepper.
5263 * rt/tst-aio7.c: New file. Regression test for problems which the
5264 above three changes fix.
5265 * rt/Makefile (tests): Add tst-aio7.
5267 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5269 * rt/tst-aio6.c: Fix comment.
5271 * catgets/gencat.c (read_input_file): Handle more than one slash
5272 at end of line correctly [PR libc/3926].
5273 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5275 * catgets/sample.SJIS: Add test case for above bug.
5276 * catgets/test-gencat.c: Adjust test code.
5277 * catgets/test-gencat.sh: Adjust expected results.
5279 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5280 to skip relative relocations.
5281 Patch by Geoff Keating <geoffk@redhat.com>.
5283 2002-05-26 Bruno Haible <bruno@clisp.org>
5285 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5286 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5287 All callers changed.
5288 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5289 STANDARD_FROM_LOOP_ERR_HANDLER.
5290 (utf8_internal_loop): Likewise.
5291 (ucs2_internal_loop): Likewise.
5292 (internal_ucs2_loop): Perform error handling like in
5293 STANDARD_FROM_LOOP_ERR_HANDLER.
5294 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5295 in STANDARD_FROM_LOOP_ERR_HANDLER.
5296 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5298 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5299 in STANDARD_FROM_LOOP_ERR_HANDLER.
5300 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5302 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5303 in STANDARD_FROM_LOOP_ERR_HANDLER.
5304 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5306 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5307 STANDARD_FROM_LOOP_ERR_HANDLER.
5308 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5309 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5310 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5311 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5312 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5313 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5314 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5315 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5316 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5317 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5318 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5319 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5320 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5321 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5322 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5323 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5324 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5325 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5326 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5327 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5328 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5329 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5330 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5331 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5332 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5333 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5334 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5335 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5336 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5337 an error, still set result = __GCONV_ILLEGAL_INPUT.
5338 (BODY for TO_LOOP): Likewise.
5339 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5340 STANDARD_FROM_LOOP_ERR_HANDLER.
5341 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5342 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5343 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5345 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5346 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5347 STANDARD_FROM_LOOP_ERR_HANDLER.
5348 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5349 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5350 STANDARD_FROM_LOOP_ERR_HANDLER.
5351 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5352 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5353 STANDARD_FROM_LOOP_ERR_HANDLER.
5354 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5355 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5356 STANDARD_FROM_LOOP_ERR_HANDLER.
5357 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5358 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5359 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5361 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5362 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5363 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5364 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5366 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5368 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5369 labels in assembler instructions.
5371 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5373 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5374 not enough content is available.
5375 * libio/tst-eof.c: New file.
5376 * libio/Makefile (tests): Add tst-eof.
5378 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5380 * libio/tst-atime.c: New file.
5381 * libio/Makefile (tests): Add tst-atime.
5383 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5384 handling of overly long words.
5386 2002-06-25 Andreas Jaeger <aj@suse.de>
5388 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5389 to not use 32-bit pc relative relocations.
5390 (elf_machine_dynamic): Likewise.
5392 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5394 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5395 (__GETDENTS): Check for failed getdents64 syscall.
5396 * dirent/Makefile (tests): Add bug-readdir1.
5397 * dirent/bug-readdir1.c: New file.
5399 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5401 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5403 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5404 code. Print TLS modid and offset for modules containing PT_TLS
5407 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5409 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5410 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5411 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5412 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5414 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5416 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5417 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5418 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5419 * nss/getXXent_r.c (NEW, NEW1): Define.
5420 (NEW (REENTRANT_GETNAME)): Strong alias to
5421 INTERNAL (REENTRANT_GETNAME).
5422 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5424 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5426 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5427 (_IO_file_jumps_mmap): Use it.
5428 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5429 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5430 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5432 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5433 (_IO_wfile_jumps_mmap): Don't use it anymore.
5434 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5435 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5436 _IO_wdefault_setbuf.
5437 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5438 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5439 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5441 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5443 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5444 * libio/tst-mmap-setvbuf.c: New test.
5446 2002-06-21 Andreas Jaeger <aj@suse.de>
5448 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5450 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5452 * include/unistd.h (__fork_internal): Remove.
5453 (__fork): Don't define to __fork_internal.
5454 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5455 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5456 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5457 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5458 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5460 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5462 * po/hr.po: New file.
5464 2002-06-11 Wolfram Gloger <wg@malloc.de>
5466 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5467 Reported by Michael Meissner <meissner@redhat.com>.
5469 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5471 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5472 Patch by Hans Boehm <hans_boehm@hp.com>.
5474 2002-06-20 Andreas Jaeger <aj@suse.de>
5476 * math/libm-test.inc: Use exact values as input parameters,
5477 compute output parameters with 36 digits for 128-bit long doubles.
5478 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5479 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5480 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5482 2002-06-13 Stephen L Moshier <steve@moshier.net>
5484 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5485 argument or result is subnormal.
5487 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5489 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5491 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5492 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5494 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5496 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5498 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5499 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5500 Reported by Peter A. Buhr.
5502 2002-06-15 Roland McGrath <roland@frob.com>
5504 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5507 * sysdeps/mach/hurd/getcwd.c
5508 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5510 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5511 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5513 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5514 jump to local subroutine.
5516 2002-06-14 Roland McGrath <roland@frob.com>
5518 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5519 * sysdeps/mach/hurd/Makeconfig: ... here.
5521 2002-06-13 Andreas Schwab <schwab@suse.de>
5523 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5524 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5525 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5527 2002-06-13 Roland McGrath <roland@frob.com>
5529 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5530 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5531 Use intptr_t instead of int for argc in stack layout.
5532 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5533 (_dl_init_first): Likewise.
5534 (_hurd_stack_setup): Likewise.
5535 (init1): Add a cast.
5536 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5538 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5539 argument to pfinet_siocgifconf RPC.
5541 2002-06-13 Andreas Schwab <schwab@suse.de>
5543 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5546 2002-06-12 Roland McGrath <roland@frob.com>
5548 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5550 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5551 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5553 2002-06-11 Roland McGrath <roland@frob.com>
5555 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5556 file on [!RTLD_STAT64].
5557 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5559 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5560 (__fdopen): Use INTUSE.
5561 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5563 * stdio-common/tmpfile64.c: File removed.
5564 * sysdeps/generic/tmpfile64.c: New file.
5565 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5566 if not already defined.
5567 (tmpfile): Use it in place of __GT_FILE.
5569 * include/unistd.h: Declare __chown_internal.
5571 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5572 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5574 2002-06-09 Roland McGrath <roland@frob.com>
5576 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5577 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5578 value of HURD_INTERFACE_VERSION >= 20020609.
5579 * sysdeps/mach/hurd/configure: Regenerated.
5580 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5581 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5582 convert a struct stat64 into a struct stat and return 0 or -1
5583 with errno set to EOVERFLOW.
5584 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5585 for struct statfs64 to struct statfs.
5586 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5587 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5588 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5589 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5590 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5591 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5592 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5593 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5594 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5595 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5596 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5597 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5598 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5599 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5600 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5601 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5602 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5603 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5604 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5605 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5606 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5607 Use struct stat64 for io_stat argument.
5608 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5609 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5611 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5612 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5613 * hurd/hurd/fd.h: Update decls.
5614 * sysdeps/mach/hurd/getcwd.c
5615 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5616 and struct dirent64.
5617 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5618 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5619 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5620 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5622 2002-06-08 Roland McGrath <roland@frob.com>
5624 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5625 instead of unsigned long int for __allocation and __size members.
5627 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5629 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5630 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5631 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5632 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5634 2002-06-07 Roland McGrath <roland@frob.com>
5636 * sysdeps/mach/hurd/bits/environments.h: File removed.
5638 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5640 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5641 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5642 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5643 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5644 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5645 (sendfile64): Likewise.
5646 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5647 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5648 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5650 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5652 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5655 2002-06-04 Bruno Haible <bruno@clisp.org>
5657 * sysdeps/cris/stackinfo.h: New file.
5659 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5660 to an integer type before performing bit operations on it.
5662 2002-06-05 Roland McGrath <roland@frob.com>
5664 * sysdeps/generic/sendfile.c: Include <errno.h>.
5665 * sysdeps/generic/sendfile64.c: Likewise.
5667 * io/Makefile (routines): Add sendfile and sendfile64.
5668 (headers): Add sys/sendfile.h to the list.
5669 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5670 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5671 * io/sys/sendfile.h: ... here.
5672 * sysdeps/generic/sendfile.c: New file.
5673 * sysdeps/generic/sendfile64.c: New file.
5675 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5676 Move sendfile, sendfile64 to ...
5677 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5678 * sysdeps/mach/hurd/sendfile.c: New file.
5679 * sysdeps/mach/hurd/sendfile64.c: New file.
5681 * sysdeps/mach/nanosleep.c: New file.
5683 2002-06-04 Roland McGrath <roland@frob.com>
5685 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5686 * sysdeps/alpha/elf/configure: New file (generated).
5688 2002-06-02 Roland McGrath <roland@frob.com>
5690 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5692 2002-06-01 Roland McGrath <roland@frob.com>
5694 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5695 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5697 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5699 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5701 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5702 Remove nstimes setting.
5703 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5704 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5705 there is mix of IPv6 and IPv4 nameservers.
5706 Use nsmap array to find free slots and preserve nameserver ordering.
5709 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5711 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5712 use this header with LFS.
5714 * po/sk.po: Update from translation team.
5716 2002-05-28 Andreas Schwab <schwab@suse.de>
5718 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5719 message when finding object of wrong class.
5721 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5723 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5724 Patch by <radu@netsoft.ro>.
5726 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5728 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5730 * sysdeps/unix/sysv/linux/readahead.c: New file.
5731 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5732 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5733 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5734 Add sendfile64 alias to sendfile syscall.
5735 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5736 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5737 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5738 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5741 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5742 special section for PIC register loading.
5743 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5745 * config.h.in: Define HAVE_HIDDEN.
5746 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5748 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5750 2002-05-28 Roland McGrath <roland@frob.com>
5752 * sysdeps/mach/alpha/setfpucw.c: New file.
5754 2002-05-26 Roland McGrath <roland@frob.com>
5756 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5757 Use integer_t instead of int for IOC_VOID case.
5759 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5761 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5763 2002-05-26 Bruno Haible <bruno@clisp.org>
5765 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5766 end of the ISO-8859-7 from idx table.
5768 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5770 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5772 2002-05-24 David S. Miller <davem@redhat.com>
5774 * string/bits/string2.h (memset): Do not try to optimize when
5775 not _STRING_ARCH_unaligned if GCC will do the right thing.
5777 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5779 * posix/regex.c: Define `inline' as a macro into nothing for the
5780 compilers which lack the keyword.
5781 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5782 for the compatibility of gawk.
5783 * posix/regcomp.c: Add fake implementation of isblank() for the
5784 environments which lack the function.
5785 Don't use free_charset() in case of non-i18n envs.
5786 (build_range_exp): Don't use i18n related code in case of non-i18n
5788 (build_collating_symbol): Likewise.
5789 (build_equiv_class): Likewise.
5790 (build_charclass): Likewise.
5791 (re_compile_fastmap_iter): Likewise.
5792 (parse_bracket_exp): Likewise.
5793 (build_word_op): Likewise.
5794 (regfree): Don't use free_charset() in case of non-i18n envs.
5795 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5796 re_token_type_t in case of non-i18n envs.
5797 Don't define re_charset_t in case of non-i18n envs.
5798 Change the type of wcs of re_string_t from wchar_t to wint_t,
5799 since we store also WEOF.
5800 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5801 the type of wcs of re_string_t from wchar_t to wint_t.
5802 (re_string_reconstruct): Likewise.
5803 (create_ci_newstate): Don't use i18n related code in case of
5805 (create_cd_newstate): Likewise.
5807 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5809 * iconv/loop.c: Fix typo.
5811 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5813 * inet/ether_line.c (ether_line): Fix a typo causing only
5814 lower 4 bits of each ethernet address byte being assigned.
5815 Don't modify what line points to.
5816 * inet/tst-ether_aton.c (main): Add ether_line tests.
5818 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5820 * manual/filesys.texi: Don't make readlink example leak memory
5821 when readlink fails.
5823 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5825 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5826 some more security checks.
5828 2002-05-17 David S. Miller <davem@redhat.com>
5830 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5832 2002-05-16 David S. Miller <davem@redhat.com>
5834 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5835 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5836 (elf_machine_load_address): Likewise.
5837 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5839 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5840 is unaligned, do not forget to fully initialize %g1 magic value.
5842 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5843 register definitions and provide 32-bit variants of structures
5844 during 64-bit builds.
5846 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5847 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5848 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5849 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5850 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5851 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5852 Do not clear implicit one bit here, it must be done post-rounding.
5853 Only pad to the left using left shift if value uses less than the
5854 available fractional bits.
5856 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5858 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5859 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5860 (shared-only-routines): Likewise.
5861 * sysdeps/powerpc/libgcc-compat.c: New file.
5862 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5863 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5864 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5865 * sysdeps/wordsize-32/shdi3.c: Removed.
5867 2002-05-16 Bruno Haible <bruno@clisp.org>
5869 * MakeTAGS (libc.pot): Don't sort the output.
5870 * po/header.pot: Update to match xgettext 0.11 output.
5872 2002-05-16 Bruno Haible <bruno@clisp.org>
5874 * MakeTAGS (subdirs): Remove duplicates.
5876 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5878 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5879 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5882 2002-05-19 Andreas Jaeger <aj@suse.de>
5884 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5885 installation in /usr/local.
5887 2002-05-16 Bruno Haible <bruno@clisp.org>
5889 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5890 string as argument of #error.
5892 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5894 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5895 don't define static. Remove old __realpath function. TC1 of
5896 POSIX 2001 will allow the second parameter to be NULL.
5897 * stdlib/test-canon.c: Comment out test for NULL as second
5898 parameter of realpath.
5900 * time/offtime.c (__offtime): Set errno if overflow is detected.
5902 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5903 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5906 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5909 2002-05-15 Roland McGrath <roland@frob.com>
5911 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5913 2002-05-12 Bruno Haible <bruno@clisp.org>
5915 * iconvdata/testdata/EUC-JISX0213: New file.
5916 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5917 * iconvdata/testdata/SHIFT_JISX0213: New file.
5918 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5919 * iconvdata/testdata/ISO-2022-JP-3: New file.
5920 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5921 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5922 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5923 contains comments indicating precomposed characters.
5925 2002-04-21 Bruno Haible <bruno@clisp.org>
5927 * iconvdata/iso-2022-jp-3.c: New file.
5928 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5929 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5930 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5931 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5932 (distribute): Add iso-2022-jp-3.c.
5934 2002-05-12 Bruno Haible <bruno@clisp.org>
5936 * iconvdata/tst-table-to.c (main): Restore handling of
5937 transliterations, broken by last patch.
5939 2002-05-12 Bruno Haible <bruno@clisp.org>
5941 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5943 2002-05-12 Bruno Haible <bruno@clisp.org>
5945 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5946 when there is not enough room in the output buffer.
5947 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5949 2002-04-20 Bruno Haible <bruno@clisp.org>
5951 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5953 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5954 Also make this macro work if FROM_DIRECTION evaluates to 0.
5955 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5956 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5957 of consume_incomplete.
5958 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5959 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
5961 * iconvdata/cp1258.c: Likewise.
5962 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
5963 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
5965 * iconvdata/ibm933.c: Likewise.
5966 * iconvdata/ibm935.c: Likewise.
5967 * iconvdata/ibm937.c: Likewise.
5968 * iconvdata/ibm939.c: Likewise.
5969 * iconvdata/iso-2022-cn.c: Define
5970 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5971 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
5972 * iconvdata/iso-2022-cn-ext.c: Likewise.
5973 * iconvdata/iso-2022-jp.c: Define
5974 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5975 {MIN,MAX}_NEEDED_{FROM,TO}.
5976 * iconvdata/tcvn5712-1.c: Define
5977 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5978 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
5979 * iconvdata/euc-jisx0213.c: Define
5980 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
5981 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
5982 * iconvdata/shift_jisx0213.c: Likewise.
5984 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5986 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
5987 shdi3, fixdfdi, fixsfdi in csu dir.
5988 (shared-only-routines): Likewise.
5989 * sysdeps/wordsize-32/cmpdi2.c: New file.
5990 * sysdeps/wordsize-32/shdi3.c: New file.
5991 * sysdeps/wordsize-32/fixdfdi.c: New file.
5992 * sysdeps/wordsize-32/fixsfdi.c: New file.
5993 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
5994 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
5995 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
5997 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
5998 Only use va_arg if the argument will be used [PR libc/3259].
6000 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6002 * catgets/catgets.c (catopen): Free buffer if internal catalog
6005 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6007 * debug/xtrace.sh: Make more robust. For realtime tracking use
6008 non-buffering methods.
6009 * debug/pcprofiledump.c: Implement -u option.
6010 Patch by Roger Luethi <rl@hellgate.ch>.
6012 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6014 * include/netinet/in.h (bindresvport_internal): Add prototype.
6015 * include/rpc/auth.h (authunix_create_internal,
6016 authunix_create_default_internal, authnone_create_internal,
6017 authdes_pk_create_internal): Add prototypes.
6018 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6019 clntudp_create_internal, clntudp_bufcreate_internal,
6020 clntunix_create_internal): Add prototypes.
6021 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6022 svc_getreq_internal, svc_getreq_common_internal,
6023 svc_getreqset_internal, svc_getreq_poll_internal,
6024 svc_register_internal, svc_unregister_internal,
6025 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6026 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6027 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6028 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6029 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6030 * inet/rcmd.c (rcmd_af): Use __listen.
6031 (rresvport_af): Use __bind.
6032 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6033 authunix_create, authunix_create_default, authnone_create,
6034 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6035 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6036 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6037 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6038 _authenticate, add INTDEF after such function definitions.
6039 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6040 __setsockopt, __getsockname instead of non-__ variants.
6041 * sunrpc/pmap_rmt.c: Likewise.
6042 * sunrpc/rtime.c: Likewise.
6043 * sunrpc/svc_udp.c: Likewise.
6044 * sunrpc/clnt_unix.c: Likewise.
6045 * sunrpc/svc_unix.c: Likewise.
6046 * sunrpc/bindrsvprt.c: Likewise.
6047 * sunrpc/svc_tcp.c: Likewise.
6048 * sunrpc/auth_none.c: Likewise.
6049 * sunrpc/clnt_raw.c: Likewise.
6050 * sunrpc/clnt_tcp.c: Likewise.
6051 * sunrpc/auth_unix.c: Likewise.
6052 * sunrpc/key_call.c: Likewise.
6053 * sunrpc/clnt_gen.c: Likewise.
6054 * sunrpc/pm_getmaps.c: Likewise.
6055 * sunrpc/clnt_simp.c: Likewise.
6056 * sunrpc/pmap_clnt.c: Likewise.
6057 * sunrpc/svc_run.c: Likewise.
6058 * sunrpc/svc.c: Likewise.
6059 * sunrpc/svc_simple.c: Likewise.
6060 * sunrpc/pm_getport.c: Likewise.
6061 * sunrpc/auth_des.c: Likewise.
6062 * sunrpc/svc_auth.c: Likewise.
6063 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6064 __register_frame_info_table_bases, __deregister_frame_info_bases):
6066 (__register_frame_info_bases_internal,
6067 __register_frame_info_table_bases_internal,
6068 __deregister_frame_info_bases_internal): Add prototypes.
6069 (__register_frame_info, __register_frame): Use INTUSE in call to
6070 __register_frame_info_bases.
6071 (__register_frame_info_table): Similarly.
6072 (__deregister_frame_info, __deregister_frame): Similarly.
6073 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6074 sendto as weak alias.
6075 * sysdeps/mach/hurd/sendto.c: Likewise.
6076 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6077 recvfrom as weak alias.
6078 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6079 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6080 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6081 recvmsg as weak alias.
6082 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6083 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6084 sendmsg as weak alias.
6085 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6086 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6087 setsockopt, add setsockopt as weak alias.
6088 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6089 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6091 * sysdeps/mach/hurd/bind.c: Likewise.
6092 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6094 * sysdeps/mach/hurd/listen.c: Likewise.
6095 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6096 getsockname, add getsockname as weak alias.
6097 * sysdeps/mach/hurd/getsockname.c: Likewise.
6098 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6099 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6100 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6101 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6102 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6103 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6105 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6106 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6107 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6108 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6109 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6110 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6111 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6112 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6113 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6114 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6115 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6116 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6118 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6120 * locale/programs/localedef.h (show_archive_content): Add verbose
6122 * locale/programs/localedef.c (main): Adjust caller.
6123 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6125 (nameentcmp, dataentcmp): New functions.
6127 (show_archive_content): Print verbose listing with --list-archive -v.
6129 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6131 * locale/programs/locarchive.c (open_archive): Take extra argument
6132 readonly. If true open file with O_RDONLY and don't create the
6133 archive if it doesn't exist.
6135 (close_archive): Don't do anything if fd element is -1.
6136 * locale/programs/localedef.h (open_archive): Adjust prototype.
6137 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6140 * malloc/malloc.c (__posix_memalign): Correct check for size of
6141 alignment value [PR libc/3444].
6143 * include/stdio.h: Remove references to old stdio implementation.
6145 * libio/Makefile (bug-ungetwc2-ENV): Define.
6147 2002-05-13 Roland McGrath <roland@frob.com>
6149 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6151 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6153 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6155 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6156 Allocate three, not two, more than LEN when appending '/.'.
6157 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6158 if NAME ends with '/.' if it is shorter than 2 chars.
6160 2002-05-12 Roland McGrath <roland@frob.com>
6162 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6163 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6165 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6166 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6168 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6170 * sysdeps/ia64/Makefile: Remove extra endif.
6171 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6173 2002-05-10 Andreas Schwab <schwab@suse.de>
6175 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6177 2002-05-09 Andreas Jaeger <aj@suse.de>
6179 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6180 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6181 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6183 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6184 * sysdeps/wordsize-64/glob.c: ...here.
6185 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6186 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6187 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6189 2002-05-08 Roland McGrath <roland@frob.com>
6191 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6192 O_NOTRANS flag in "." lookup.
6194 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6196 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6198 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6200 * locale/duplocale.c (__duplocale): Update special members only
6201 when allocation succeeded.
6203 2002-05-03 Roland McGrath <roland@frob.com>
6205 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6206 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6208 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6210 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6211 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6212 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6213 * sysdeps/ia64/ia64libgcc.S: New file.
6215 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6217 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6219 * malloc/memusage.c: Distinguish anonymous mmap.
6221 2002-05-01 Roland McGrath <roland@frob.com>
6223 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6224 and use INTDEF on it.
6225 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6227 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6229 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6231 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6233 * malloc/memusage.c: Add support for tracking mmap & friends.
6234 * malloc/memusage.sh: Implement -m/--mmap option.
6236 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6238 * locale/programs/locarchive.c (create_archive): Add archivefname
6239 argument, create fname from it.
6240 (enlarge_archive): Honour output_prefix.
6241 (open_archive): Likewise.
6243 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6245 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6246 too many stpcpy macros.
6248 2002-04-26 Bruno Haible <bruno@clisp.org>
6250 * locale/programs/ld-collate.c (collate_read): Cast first argument
6253 2002-04-26 Bruno Haible <bruno@clisp.org>
6255 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6256 __dcngettext_internal): New declarations.
6257 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6258 attribute declarations.
6260 2002-04-30 Roland McGrath <roland@frob.com>
6262 Removed old GNU stdio implementation; GNU libio is now the only option.
6263 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6264 Define USE_IN_LIBIO unconditionally.
6265 * configure: Regenerated.
6266 * Makeconfig (stdio): Set to libio by default.
6267 * config.make.in (stdio): Variable removed.
6268 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6269 * sysdeps/unix/sysv/linux/configure: Regenerated.
6270 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6271 * sysdeps/mach/hurd/configure: Regenerated.
6272 * stdio/.cvsignore: File removed.
6273 * stdio/Makefile: File removed.
6274 * stdio/Versions: File removed.
6275 * stdio/__fbufsize.c: File removed.
6276 * stdio/__flbf.c: File removed.
6277 * stdio/__fpending.c: File removed.
6278 * stdio/__fpurge.c: File removed.
6279 * stdio/__freadable.c: File removed.
6280 * stdio/__freading.c: File removed.
6281 * stdio/__fsetlocking.c: File removed.
6282 * stdio/__fwritable.c: File removed.
6283 * stdio/__fwriting.c: File removed.
6284 * stdio/clearerr.c: File removed.
6285 * stdio/fclose.c: File removed.
6286 * stdio/fcloseall.c: File removed.
6287 * stdio/feof.c: File removed.
6288 * stdio/ferror.c: File removed.
6289 * stdio/fflush.c: File removed.
6290 * stdio/fgetc.c: File removed.
6291 * stdio/fgetpos.c: File removed.
6292 * stdio/fgets.c: File removed.
6293 * stdio/fileno.c: File removed.
6294 * stdio/fmemopen.c: File removed.
6295 * stdio/fopen.c: File removed.
6296 * stdio/fopncook.c: File removed.
6297 * stdio/fputc.c: File removed.
6298 * stdio/fputs.c: File removed.
6299 * stdio/fread.c: File removed.
6300 * stdio/freopen.c: File removed.
6301 * stdio/fseek.c: File removed.
6302 * stdio/fsetpos.c: File removed.
6303 * stdio/ftell.c: File removed.
6304 * stdio/fwrite.c: File removed.
6305 * stdio/getc.c: File removed.
6306 * stdio/getchar.c: File removed.
6307 * stdio/getdelim.c: File removed.
6308 * stdio/gets.c: File removed.
6309 * stdio/glue.c: File removed.
6310 * stdio/internals.c: File removed.
6311 * stdio/linewrap.c: File removed.
6312 * stdio/linewrap.h: File removed.
6313 * stdio/memstream.c: File removed.
6314 * stdio/newstream.c: File removed.
6315 * stdio/obstream.c: File removed.
6316 * stdio/putc.c: File removed.
6317 * stdio/putchar.c: File removed.
6318 * stdio/puts.c: File removed.
6319 * stdio/rewind.c: File removed.
6320 * stdio/setbuf.c: File removed.
6321 * stdio/setbuffer.c: File removed.
6322 * stdio/setlinebuf.c: File removed.
6323 * stdio/setvbuf.c: File removed.
6324 * stdio/stdio.h: File removed.
6325 * stdio/ungetc.c: File removed.
6326 * stdio/vasprintf.c: File removed.
6327 * stdio/vscanf.c: File removed.
6328 * stdio/vsnprintf.c: File removed.
6329 * stdio/vsprintf.c: File removed.
6330 * stdio/vsscanf.c: File removed.
6331 * sysdeps/generic/defs.c: File removed.
6332 * sysdeps/generic/fdopen.c: File removed.
6333 * sysdeps/generic/pipestream.c: File removed.
6334 * sysdeps/generic/stdio_init.c: File removed.
6335 * sysdeps/generic/sysd-stdio.c: File removed.
6336 * sysdeps/generic/vdprintf.c: File removed.
6337 * sysdeps/mach/hurd/defs.c: File removed.
6338 * sysdeps/mach/hurd/fdopen.c: File removed.
6339 * sysdeps/mach/hurd/pipestream.c: File removed.
6340 * sysdeps/mach/hurd/stdio_init.c: File removed.
6341 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6342 * sysdeps/mach/hurd/vdprintf.c: File removed.
6343 * sysdeps/posix/defs.c: File removed.
6344 * sysdeps/posix/fdopen.c: File removed.
6345 * sysdeps/posix/pipestream.c: File removed.
6346 * sysdeps/posix/stdio_init.c: File removed.
6347 * sysdeps/posix/vdprintf.c: File removed.
6348 * sysdeps/unix/pipestream.c: File removed.
6349 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6350 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6351 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6353 2002-04-29 Roland McGrath <roland@frob.com>
6355 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6357 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6359 * sysdeps/generic/tls.h: Describe what must be defined.
6361 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6362 glob_in_dir [PR libc/3385].
6363 * posix/globtest.sh: Add test case.
6365 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6368 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6370 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6371 _internal symbol handling.
6372 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6374 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6376 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6377 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6379 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6381 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6382 not _LIBC and RE_ENABLE_I18N.
6383 (build_range_exp): Implement for not _LIBC.
6384 (build_collating_symbol): Likewise.
6385 (parse_bracket_exp): Unify redundant error handlings.
6386 Don't erase mbcset for non matching list in multibyte envs.
6387 (build_word_op): Add '_' to matching list for \w operator.
6388 * posix/regex_internal.c (re_string_construct): Invoke
6389 build_upper_buffer in case of not RE_ENABLE_I18N.
6390 (re_string_reconstruct): Don't touch cur_state in case of not
6392 * posix/regex_internal.h (attribute_hidden): New macro in case of
6394 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6395 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6397 (transit_state_mb): Likewise.
6398 (check_node_accept_bytes): Implement the code evaluating range
6399 expression in case of not _LIBC.
6400 (find_collation_sequence_value): Hide in case of not _LIBC.
6402 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6404 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6406 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6409 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6411 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6413 * sysdeps/ia64/strncpy.S: Fix recovery code.
6414 Patch by David Mosberger <davidm@hpl.hp.com>.
6416 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6418 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6421 2002-04-14 Bruno Haible <bruno@clisp.org>
6423 * posix/regex.c (re_max_failures): Add back symbol for binary
6426 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6428 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6429 of buffer building functions.
6430 * posix/regex_internal.c (re_string_allocate): New function.
6431 (re_string_realloc_buffers): New function.
6432 (re_string_skip_chars): New function.
6433 (re_string_reconstruct): New function.
6434 (re_string_construct): Adapt it to new interface of buffer building
6436 (re_string_construct_common): Likewise.
6437 (build_wcs_buffer): Likewise.
6438 (build_wcs_upper_buffer): Likewise.
6439 (build_upper_buffer): Likewise.
6440 (re_string_translate_buffer): Likewise.
6441 (re_string_context_at): Adapt it to variable length buffers.
6442 * posix/regex_internal.h (re_string_t): Add new fields to handle
6443 variable length buffers.
6444 (re_match_context_t): Likewise.
6445 * posix/regexec.c (re_search_internal): Adapt it to new interface
6446 of re_string_t and re_match_context_t.
6447 (acquire_init_state_context): Likewise.
6448 (check_matching): Likewise.
6449 (check_halt_state_context): Likewise.
6450 (proceed_next_node): Likewise.
6451 (set_regs): Likewise.
6452 (sift_states_backward): Likewise.
6453 (clean_state_log_if_need): Likewise.
6454 (sift_states_iter_mb): Likewise.
6455 (sift_states_iter_bkref): Likewise.
6456 (add_epsilon_backreference): Likewise.
6457 (transit_state): Likewise.
6458 (transit_state_sb): Likewise.
6459 (transit_state_mb): Likewise.
6460 (transit_state_bkref): Likewise.
6461 (transit_state_bkref_loop): Likewise.
6462 (check_node_accept): Likewise.
6463 (match_ctx_init): Likewise.
6464 (extend_buffers): New function.
6466 2002-04-21 Bruno Haible <bruno@clisp.org>
6468 * iconvdata/tst-table.sh: For the second check, use the truncated
6469 GB18030 charmap table, like for the first check.
6471 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6473 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6474 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6476 2002-04-23 H.J. Lu <hjl@gnu.org>
6478 * include/math.h (isfinite): Fix a typo.
6480 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6482 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6483 which is created by the test suite.
6485 2002-04-20 Bruno Haible <bruno@clisp.org>
6487 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6488 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6490 2002-04-20 Bruno Haible <bruno@clisp.org>
6492 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6493 to avoid gcc warning.
6495 2002-04-20 Bruno Haible <bruno@clisp.org>
6497 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6498 of data->__statep->__count.
6500 2002-04-20 Bruno Haible <bruno@clisp.org>
6502 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6504 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6506 2002-04-24 Roland McGrath <roland@frob.com>
6508 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6509 use END macro instead of our own .end directive.
6510 Use `callsys' insn mnemonic instead of `call_pal'.
6512 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6514 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6515 macro; we need this for Hurd.
6517 Log entry was missing for 2002/03/24 commit of rev 1.8,
6518 goes with 2002-03-17 changes.
6519 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6520 (sysdep_routines): Append ioperm here.
6521 (sysdep_headers): Append sys/io.h here.
6523 2002-04-23 Roland McGrath <roland@frob.com>
6525 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6526 * sysdeps/mach/hurd/sendto.c: Likewise.
6527 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6528 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6529 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6531 2002-04-22 Roland McGrath <roland@frob.com>
6533 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6534 failure from i386_io_perm_* RPCs to ENOSYS.
6536 2002-04-22 Andreas Jaeger <aj@suse.de>
6538 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6540 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6542 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6543 register instead of destroying %rbx.
6545 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6547 * string/string.h: Declare strerror_r also for XPG6.
6549 2002-04-19 Roland McGrath <roland@frob.com>
6551 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6553 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6555 * Makefile: Add handling of xtests and xcheck targets.
6556 * MakeTAGS: Likewise.
6557 * Makeconfig: Likewise.
6558 * Makerules: Likewise.
6560 * manual/Makefile: Likewise.
6561 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6562 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6564 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6566 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6568 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6569 Delete #ifdef _RPC_THREAD_SAFE_ block.
6570 (authnone_private): Make a struct, not a pointer to struct.
6571 (authnone_private_guard): New once-control variable.
6572 (authnone_create_once): New function, split out of
6573 authnone_create. No need to allocate memory.
6574 (authnone_create): Just call authnone_create_once via
6575 __libc_once, then return &authnone_private->no_client.
6576 (authnone_marshal): Access private data via CLIENT argument,
6577 not authnone_private pointer.
6578 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6579 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6582 2002-04-12 H.J. Lu <hjl@gnu.org>
6584 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6586 2002-04-18 Bruno Haible <bruno@clisp.org>
6588 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6589 FROM_DIRECTION): Make the FROM direction stateless.
6590 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6591 FROM_DIRECTION): Likewise.
6593 2002-04-15 Bruno Haible <bruno@clisp.org>
6595 * iconvdata/JISX0213.TXT: New file.
6596 * iconvdata/jisx0213.h: New file.
6597 * iconvdata/jisx0213.c: New file.
6598 * iconvdata/euc-jisx0213.c: New file.
6599 * iconvdata/shift_jisx0213.c: New file.
6600 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6601 * iconvdata/EUC-JISX0213.precomposed: New file.
6602 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6603 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6604 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6605 which the "to" direction is stateful.
6606 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6607 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6609 (libJISX0213-routines): New variable.
6610 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6611 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6612 (LDFLAGS-libJISX0213.so): New variable.
6613 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6614 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6615 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6617 2002-04-15 Bruno Haible <bruno@clisp.org>
6619 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6620 uint32_t. Update to Unicode 3.2.
6621 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6622 (BODY for TO_LOOP): Handle the ASCII range specially.
6623 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6624 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6625 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6627 2002-04-15 Bruno Haible <bruno@clisp.org>
6629 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6630 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6632 2002-04-15 Bruno Haible <bruno@clisp.org>
6634 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6635 (ucs4_to_cns11643): Update.
6636 * iconvdata/cns11643.c: Update to Unicode 3.2.
6637 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6638 __cns11643_from_ucs4p2_tab): Regenerated.
6639 (__cns11643_from_ucs4p2c_tab): New array.
6640 * iconvdata/cvs11643l1.c: Update comments.
6641 * iconvdata/EUC-TW.irreversible: Remove two entries.
6643 2002-04-15 Bruno Haible <bruno@clisp.org>
6645 * locale/C-translit.h.in: Update to Unicode 3.2.
6646 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6647 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6649 2002-04-15 Bruno Haible <bruno@clisp.org>
6651 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6652 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6654 2002-04-15 Bruno Haible <bruno@clisp.org>
6656 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6657 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6658 always one byte, not 0 bytes in some cases and 2 bytes in others.
6660 * iconvdata/tst-table-from.c (main): Correct the usage message.
6662 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6664 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6665 (parse_dup_op): Fix error handling like "a{}".
6666 (parse_bracket_exp): Add error handling.
6667 (fetch_number): Add error handling for "a{<very_large_number>}".
6669 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6671 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6672 in case that the symbol name is too long.
6673 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6674 in case of REG_ICASE.
6676 2002-04-19 Andreas Jaeger <aj@suse.de>
6678 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6679 <hartvige@mips.com>.
6681 2002-04-15 H.J. Lu <hjl@gnu.org>
6683 * include/math.h (__finitel_internal): Declare only if
6684 __NO_LONG_DOUBLE_MATH is not defined.
6685 (__isinfl_internal): Likewise.
6686 (__isnanl_internal): Likewise.
6688 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6689 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6690 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6691 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6692 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6693 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6694 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6696 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6699 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6700 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6702 2002-04-15 Bruno Haible <bruno@clisp.org>
6704 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6705 (BODY for TO_LOOP): Likewise.
6706 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6707 * iconvdata/tst-table.sh: Add support for encodings which contain
6708 precomposed Unicode characters, known to the iconv converter in both
6709 directions but not listed in the charmap.
6710 * iconvdata/IBM856.irreversible: New file.
6711 * iconvdata/IBM922.irreversible: New file.
6712 * iconvdata/IBM1132.irreversible: New file.
6713 * iconvdata/IBM1133.irreversible: New file.
6714 * iconvdata/IBM1160.irreversible: New file.
6715 * iconvdata/IBM1161.irreversible: New file.
6716 * iconvdata/IBM1163.irreversible: New file.
6717 * iconvdata/IBM1164.irreversible: New file.
6718 * iconvdata/ARMSCII-8.irreversible: New file.
6719 * iconvdata/TCVN5712-1.precomposed: New file.
6720 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6721 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6722 ARMSCII-8, TCVN5712-1.
6723 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6724 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6725 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6726 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6728 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6730 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6731 for EVENING69. Include offsets in TZ environment variable.
6733 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6735 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6736 avoid compiler warnings.
6738 * locale/programs/localedef.c (main): Always call
6739 construct_output_path.
6741 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6743 * locale/programs/locfile.c (to_archive): New variable. To collect
6744 data which has to be added to the locale archive.
6745 (write_all_categories): Take new third parameter with locale name.
6746 Unless no_archive flag set add new locale data to the archive
6747 (write_locale_data): Unless no-archive flag set store generated data
6748 in to_archive data structure instead of generation output file.
6749 Add new parameter with locale category index.
6750 * locale/programs/locfile.h: Add new parameters in declaractions of
6751 write_all_categories and write_locale_data.
6752 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6753 --add-to-archive, and --delete-from-archive options. Pass extra
6754 parameter to write_all_categories.
6755 * locale/programs/localedef.h: Add prototypes for functions in
6757 * locale/locarchive.h: New file.
6758 * locale/programs/locarchive.c: New file.
6759 * locale/Makefile (distribute): Add programs/locarchive.c and
6761 (localedef-modules): Add md5 and locarchive.
6762 Add vpath to crypt subdir for md5.c.
6764 * locale/programs/ld-address.c: Pass locale category ID as new second
6765 parameter to write_locale_data.
6766 * locale/programs/ld-collate.c: Likewise.
6767 * locale/programs/ld-ctype.c: Likewise.
6768 * locale/programs/ld-identification.c: Likewise.
6769 * locale/programs/ld-measurement.c: Likewise.
6770 * locale/programs/ld-messages.c: Likewise.
6771 * locale/programs/ld-monetary.c: Likewise.
6772 * locale/programs/ld-name.c: Likewise.
6773 * locale/programs/ld-numeric.c: Likewise.
6774 * locale/programs/ld-paper.c: Likewise.
6775 * locale/programs/ld-telephone.c: Likewise.
6776 * locale/programs/ld-time.c: Likewise.
6778 * locale/simple-hash.c: Move compute_hashval function from here...
6779 * locale/hashval.h: ...to here. New file.
6780 * locale/simple-hash.h: Add prototype for compute_hashval.
6782 * include/libintl.h: Minor cleanups.
6784 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6786 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6788 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6790 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6792 2002-04-14 Bruno Haible <bruno@clisp.org>
6794 * locale/programs/charmap.c (charmap_read): Don't access result if
6797 2002-02-17 Andreas Schwab <schwab@suse.de>
6799 * elf/reldep7.c: New file.
6800 * elf/reldep7mod1.c: New file.
6801 * elf/reldep7mod2.c: New file.
6802 * elf/Makefile: Add rules to build and run reldep7.
6804 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6806 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6807 the end of the function. Pass original flags to recursive call if
6808 add_dependency failed.
6809 (_dl_lookup_versioned_symbol): Likewise.
6811 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6813 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6814 early, but check whether it overflowed afterwards.
6815 * time/tst-mktime.c (main): Add new tests.
6817 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6819 * debug/xtrace.sh: Fix program name in help message.
6820 Patch by Roger Luethi <rl@hellgate.ch>.
6822 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6823 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6825 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6826 * sysdeps/mach/hurd/lxstat.c: Likewise.
6827 * sysdeps/unix/common/lxstat.c: Likewise.
6828 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6829 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6830 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6831 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6832 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6833 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6834 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6835 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6836 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6838 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6839 prototypes. Add __mbrlen and __mbrtowc macros.
6840 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6841 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6843 * include/unistd.h: Add prototype for __write_internal and add
6844 __libc_write macro is SHARED.
6845 * sysdeps/generic/write.c: Use INTDEF for __write.
6846 * sysdeps/mach/hurd/write.c: Likewise.
6847 * sysdeps/unix/sysv/aix/write.c: Likewise.
6848 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6850 * assert/assert.c: Replace STR_N_SIZE with something usable in
6852 * assert/assert-perr.c: Likewise.
6854 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6855 SA_LEN macro to use it if not NOT_IN_libc.
6856 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6858 * include/fcntl.h: Declare __open_internal and define __open and
6859 __libc_open macros if not NOT_IN_libc.
6860 * sysdeps/generic/open.c: Use INTDEF for __open.
6861 * sysdeps/mach/hurd/open.c: Likewise.
6862 * sysdeps/unix/sysv/aix/open.c: Likewise.
6863 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6865 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6868 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6869 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6870 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6871 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6873 * include/wctype.h: Declare __iswalpha_l_internal,
6874 __iswdigit_l_internal, __iswspace_l_internal,
6875 __iswxdigit_l_internal, and __iswctype_internal. Define
6876 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6877 __iswxdigit_l macros if not NOT_IN_libc.
6878 * wctype/iswctype.c: Use INTDEF for __iswctype.
6879 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6881 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6882 __isnan_internal, and __isnanl_internal.
6883 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6884 __isnan, and __isnanl.
6885 * stdio-common/printf_size.c: Likewise.
6886 * sysdeps/generic/printf_fphex.c: Likewise.
6887 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6888 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6889 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6890 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6891 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6892 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6893 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6894 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6895 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6896 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6897 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6898 * sysdeps/m68k/s_isinfl.c: Likewise.
6899 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6900 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6902 * include/sys/time.h: Declare __gettimeofday_internal and define
6903 __gettimeofday macro if not NOT_IN_libc.
6904 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6905 * sysdeps/mach/gettimeofday.c: Likewise.
6906 * sysdeps/posix/gettimeofday.c: Likewise.
6907 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6908 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6909 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6910 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6912 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6913 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6914 Remove __lstat and __fstat inline functions.
6915 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6916 * sysdeps/mach/hurd/fxstat.c: Likewise.
6917 * sysdeps/unix/fxstat.c: Likewise.
6918 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6919 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6920 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6921 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6922 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6923 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6924 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6925 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6926 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6928 * include/unistd.h: Declare __getpid_internal and define
6929 __getpid macro if not NOT_IN_libc.
6930 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6931 * sysdeps/generic/getpid.c: Likewise.
6932 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6933 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6935 * include/unistd.h: Declare __getpgid_internal and define
6936 __getpgid macro if not NOT_IN_libc.
6937 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6938 * sysdeps/mach/hurd/getpgid.c: Likewise.
6939 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6940 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6941 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6942 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6944 * include/unistd.h: Declare __getpagesize_internal and define
6945 __getpagesize macro if not NOT_IN_libc.
6946 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6948 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6949 * sysdeps/mach/getpagesize.c: Likewise.
6950 * sysdeps/posix/getpagesize.c: Likewise.
6951 * sysdeps/unix/getpagesize.c: Likewise.
6952 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6953 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6954 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6955 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6957 2002-04-13 Andreas Jaeger <aj@suse.de>
6959 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
6960 as clobber to reduce register pressure.
6961 (__strpbrk_cg): Likewise.
6962 (__mempcpy_by4): Likewise.
6963 (__strstr_cg): Likewise.
6964 Add prototype for __memrchr.
6966 2002-04-13 Andreas Schwab <schwab@suse.de>
6968 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
6969 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6970 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6972 2002-04-13 Ulrich Drepper <drepper@redhat.com>
6974 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
6975 check whether the caller prefers getting the most recent version of
6976 a symbol of the earliest version.
6977 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
6978 _dl_do_lookup to also take the new parameter and pass it on.
6979 Change 'explicit' parameter of _dl_lookup_symbol and
6980 _dl_lookup_versioned_symbol to flags. Adjust tests.
6981 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
6982 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
6983 _dl_lookup_versioned_symbol.
6984 * elf/dl-reloc.c: Likewise.
6985 * elf/dl-runtime.c: Likewise.
6986 * elf/dl-sym.c: Likewise.
6987 * sysdeps/mips/dl-machine.h: Likewise.
6989 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6991 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
6993 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
6995 2002-04-10 Andreas Jaeger <aj@suse.de>
6997 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
6999 * include/argz.h: Remove extra char from last patch.
7001 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7003 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7004 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7005 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7006 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7007 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7008 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7010 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7012 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7013 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7014 * intl/ngettext.c: Likewise.
7016 * include/sys/socket.h: Declare __connect_internal and define
7017 __connect macro if not NOT_IN_libc.
7018 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7019 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7020 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7022 * include/unistd.h: Declare __close_internal and define __close macro
7024 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7025 WJUMP3): Add extra parenthesis to avoid expanding element names with
7026 macors like __close.
7027 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7029 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7031 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7032 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7033 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7035 * include/unistd.h: Declare __fork_internal and define __fork macro
7037 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7038 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7039 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7041 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7042 __fsetlocking macro to use it if not NOT_IN_libc.
7043 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7045 * libio/__fbufsize.c: Correct copyright.
7046 * libio/__flbf.c: Likewise.
7047 * libio/__fpending.c: Likewise.
7048 * libio/__fpurge.c: Likewise.
7049 * libio/__freadable.c: Likewise.
7050 * libio/__freading.c: Likewise.
7051 * libio/__fsetlocking.c: Likewise.
7052 * libio/__fwritable.c: Likewise.
7053 * libio/__fwriting.c: Likewise.
7055 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7056 macro to use it if not NOT_IN_libc.
7057 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7059 * include/mntent.h: Declare __setmntent_internal,
7060 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7061 __getmntent_r, and __endmntent macros to use these functions if not
7063 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7066 * include/math.h: Declare __finite_internal, __finitef_internal, and
7067 __finitel_internal. Redefine isfinite macro if in libc or libm using
7069 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7070 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7071 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7072 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7073 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7074 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7075 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7076 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7077 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7078 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7080 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7081 to use this function if not NOT_IN_libc.
7082 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7083 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7084 * sysdeps/mach/hurd/fcntl.c: Likewise.
7085 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7086 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7088 * include/argz.h: Declare __argz_count_internal and
7089 __argz_stringify_internal.
7090 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7092 * string/argz-count.c: Use INTDEF for __argz_count.
7093 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7095 * include/stdlib.h: Declare __cxa_atexit_internal and define
7096 __cxa_atexit macro if not NOT_IN_libc.
7097 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7098 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7100 * assert/assert.c: Use INTDEF for __assert_fail.
7101 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7102 * include/assert.h: Declare __assert_fail_internal.
7104 * extra-lib.mk: Mark assignment to lib with override.
7106 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7108 * Makerules: Use cppflags-iterator.mk to add defines for all test
7111 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7113 * elf/elf.h: Define R_SH_TLS_xxx macros.
7114 * elf/rtld.c: Remove an extra parenthesis.
7115 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7117 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7118 * sysdeps/sh/dl-lookupcfg.h: New file.
7119 * sysdeps/sh/dl-tls.h: New file.
7120 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7121 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7122 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7123 R_SH_TLS_TPOFF32 relocations.
7125 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7127 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7129 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7130 * include/stdlib.h: Likewise.
7132 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7134 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7135 instead of _RTLD_LOCAL.
7136 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7137 * include/unistd.h: Likewise.
7138 * sysdeps/generic/ldsodefs.h: Likewise.
7140 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7141 if in libc or ld.so.
7143 2002-04-08 Andreas Jaeger <aj@suse.de>
7145 * elf/cache.c (print_entry): Support x86-64.
7147 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7149 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7150 with one accessing the locale data structures directly.
7151 * stdio-common/printf-prs.c: Include localeinfo.h for new
7152 MB_CUR_MAX definition.
7154 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7155 is the name of the source file without extension.
7156 * Makefile (distribute): Add cppflags-iterator.mk.
7157 * cppflags-iterator.mk: New file.
7158 * extra-lib.mk: For the sources of the library run
7159 cppflags-iterator.mk.
7161 * include/libintl.h: Declare __dcgettext_internal and
7162 _libc_intl_domainname_internal. Define __dcgettext using these
7163 two symbols if used in libc itself.
7164 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7165 _libc_intl_domainname_internal.
7166 * argp/argp-parse.c: Likewise.
7167 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7168 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7169 * intl/gettext.c: Likewise.
7170 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7172 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7174 * posix/regex_internal.c (gettext): Likewise.
7176 2002-04-08 Andreas Jaeger <aj@suse.de>
7178 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7180 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7181 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7182 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7183 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7184 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7185 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7187 2002-04-08 Roland McGrath <roland@frob.com>
7189 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7190 widening __hurd_fail value.
7192 2002-04-07 Roland McGrath <roland@frob.com>
7194 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7195 <mach/machine/alpha_instruction.h>.
7196 (_hurd_setup_sighandler): Take proper arguments for current decls.
7197 Update code to use _hurdsig_catch_fault.
7198 Use `callsys' instruction instead of `call_pal'.
7199 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7201 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7202 (ALIGN, at, AT, fp): New macros.
7204 2002-04-06 Roland McGrath <roland@frob.com>
7206 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7208 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7209 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7211 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7212 * sysdeps/mach/hurd/connect.c: Likewise.
7213 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7214 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7216 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7219 * hurd/catch-exc.c: Use integer_t instead of int.
7220 * hurd/hurdfault.c: Likewise.
7222 * sysdeps/mach/hurd/alpha/exc2signal.c
7223 (_hurd_exception2signal): Rewritten.
7224 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7225 (_hurd_longjmp_thread_state): Rewritten.
7227 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7229 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7230 DB_LOOKUP_FCT prototype.
7231 * nss/getXXent_r.c: Likewise.
7232 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7233 * inet/getaliasname_r.c: Likewise.
7234 * inet/getnetbyad_r.c: Likewise.
7235 * inet/getnetbynm_r.c: Likewise.
7236 * inet/getnetent_r.c: Likewise.
7237 * inet/getproto_r.c: Likewise.
7238 * inet/getprtent_r.c: Likewise.
7239 * inet/getprtname_r.c: Likewise.
7240 * inet/getrpcbyname_r.c: Likewise.
7241 * inet/getrpcbynumber_r.c: Likewise.
7242 * inet/getrpcent_r.c: Likewise.
7243 * inet/getservent_r.c: Likewise.
7244 * inet/getsrvbynm_r.c: Likewise.
7245 * inet/getsrvbypt_r.c: Likewise.
7246 * shadow/getspent_r.c: Likewise.
7247 * shadow/getspnam_r.c: Likewise.
7249 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7251 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7252 Use i686-friendly PIC code.
7253 * sysdeps/i386/elf/setjmp.S: Likewise.
7255 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7257 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7259 * elf/Versions: Remove it here.
7261 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7263 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7264 direction. Reported by H . J . Lu <hjl@lucon.org>.
7266 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7268 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7269 test just before the test runs.
7270 * intl/tst-translit.sh: Likewise.
7271 * intl/tst-codeset.sh: Likewise.
7273 * timezone/zic.c: Update from tzcode2002c.
7274 * timezone/asia: Update from tzdata2002c.
7275 * timezone/backward: Likewise.
7276 * timezone/europe: Likewise.
7277 * timezone/northamerica: Likewise.
7278 * timezone/northamerica: Likewise.
7279 * timezone/northamerica: Likewise.
7280 * timezone/southamerica: Likewise.
7281 * timezone/zone.tab: Likewise.
7283 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7285 * sysdeps/generic/brk.c (__curbrk): Declare.
7286 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7287 * sysdeps/generic/dl-sbrk.c: Likewise.
7288 * sysdeps/unix/arm/dl-brk.S: New file.
7289 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7290 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7291 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7292 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7293 * sysdeps/unix/i386/dl-brk.S: New file.
7294 * sysdeps/unix/mips/dl-brk.S: New file.
7295 * sysdeps/unix/sparc/dl-brk.S: New file.
7296 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7297 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7298 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7299 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7301 2002-04-03 Andreas Schwab <schwab@suse.de>
7303 * Makefile (headers): Add gnu/lib-names.h here instead of
7305 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7307 (install-headers): Add dependency on install-headers-nosubdir.
7308 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7309 instead of install-others.
7310 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7313 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7315 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7316 Reported by Sam Roberts <sroberts@uniserve.com>.
7318 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7320 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7321 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7322 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7323 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7325 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7327 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7328 (RTLD_START): Ditto.
7329 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7330 dependency violation.
7332 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7334 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7335 all variable declarations.
7337 2002-04-04 Andreas Schwab <schwab@suse.de>
7339 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7341 2002-04-04 Andreas Jaeger <aj@suse.de>
7343 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7344 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7346 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7347 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7348 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7350 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7352 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7354 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7355 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7357 * configure.in: Handle all mips entries the same.
7359 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7360 * sysdeps/mips/mips3/*: Likewise.
7361 * sysdeps/mips/p40/bits/endian.h: Likewise.
7363 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7365 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7366 non-null result [PR libc/2600].
7368 * misc/tst-dirname.c: Add more tests.
7370 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7372 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7373 define a code_set_name provide one based on the filename.
7375 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7377 2001-12-28 Andreas Jaeger <aj@suse.de>
7379 * time/mktime.c (__mktime_internal): Check for year < 70
7382 2002-04-03 Andreas Jaeger <aj@suse.de>
7384 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7386 Reported by Andi Kleen <ak@suse.de>.
7388 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7390 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7391 * sysdeps/generic/w_lgammaf.c: Likewise.
7392 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7394 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7395 Adjust for new output format of the backtrace functions.
7397 * misc/syslog.c (vsyslog): Only use cleanup handler if
7398 _LIBC_REENTRANT is defined [PR libc/2924].
7400 * libio/Makefile (tests): Add bug-ungetwc2.
7401 * libio/bug-ungetwc2.c: New file.
7403 * manual/install.texi: Typographical and grammatical cleanup.
7404 Patch by Dennis Grace <dgrace@us.ibm.com>.
7406 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7407 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7409 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7410 always "&". Adjust callers.
7411 Add "_" prefix to several generated definitions.
7412 Patch by paul@serice.net [PR libc/3158].
7414 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7416 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7417 size of _dl_arm_cap_flags.
7418 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7420 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7423 2002-03-22 H.J. Lu <hjl@gnu.org>
7425 * scripts/firstversions.awk: Check the first version.
7427 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7429 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7430 dependencies must be stable to work correctly.
7431 Reported by martin.lubich@datacon.at.
7433 * libio/bug-ungetwc1.c: New file.
7434 * libio/Makefile (tests): Add bug-ungetwc1.
7436 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7437 if stream was last used for writing.
7439 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7440 number [PR libc/3111].
7442 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7444 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7446 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7448 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7449 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7450 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7451 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7452 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7454 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7456 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7459 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7461 * sysdeps/i386/fpu/s_fabs.S: New file.
7462 * sysdeps/i386/fpu/s_fabsf.S: New file.
7463 * sysdeps/i386/fpu/s_fabsl.S: New file.
7464 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7465 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7466 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7468 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7470 * rt/tst-shm.c (do_test): Add one more test for size of shared
7473 2002-03-29 Wolfram Gloger <wg@malloc.de>
7475 * malloc/malloc.c: Add short description and prototypes for
7476 malloc_get_state, malloc_set_state and posix_memalign, for
7477 consistency and to avoid warnings with -Wstrict-prototypes.
7478 Reported by Andreas Jaeger <aj@suse.de>.
7480 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7482 * po/gl.po: Update from translation team.
7484 2002-03-31 Roland McGrath <roland@frob.com>
7486 * hurd/hurdselect.c (_hurd_select): Fix
7487 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7488 Use a union rather than casts to compare mach_msg_type_t as int.
7490 2002-03-25 Roland McGrath <roland@frob.com>
7492 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7493 check off the end of NAME when it's shorter than 2 chars.
7494 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7496 2002-03-17 Roland McGrath <roland@frob.com>
7498 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7499 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7500 * sysdeps/mach/hurd/i386/Dist: Add them.
7501 * sysdeps/mach/hurd/i386/Versions
7502 (libc: GLIBC_2.2.6): New set, add ioperm.
7503 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7504 (mach_interface_list): Check for mach_i386.defs.
7505 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7506 * sysdeps/mach/configure: Regenerated.
7508 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7510 * po/fr.po: Update from translation team.
7512 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7514 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7515 getpriority from syscalls list.
7517 2002-03-28 Andreas Jaeger <aj@suse.de>
7519 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7520 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7521 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7522 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7524 2002-03-27 Andreas Jaeger <aj@suse.de>
7526 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7527 sigcontext): Follow further kernel change.
7529 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7532 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7533 Change for struct sigcontext change.
7535 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7536 Follow changes in struct sigcontext.
7538 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7539 sysycall, use wrapper instead.
7541 2002-03-26 Andreas Jaeger <aj@suse.de>
7543 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7544 read and write accesses as detailed as possible.
7545 (__memcpy_by2): Likewise.
7546 (__memcpy_g): Likewise.
7547 (memmove): Likewise.
7549 (__memset_ccn_by4): Likewise.
7550 (__memset_ccn_by2): Likewise.
7551 (__memset_gcn_by4): Likewise.
7552 (__memset_gcn_by2): Likewise.
7554 (__memrchr): Likewise.
7555 (rawmemchr): Likewise.
7556 (__strlen_g): Likewise.
7557 (__strcpy_g): Likewise.
7558 (__mempcpy_by4): Likewise.
7559 (__mempcpy_by2): Likewise.
7560 (__mempcpy_byn): Likewise.
7561 (__stpcpy_g): Likewise.
7562 (__strncpy_by4): Likewise.
7563 (__strncpy_by2): Likewise.
7564 (__strncpy_byn): Likewise.
7565 (__strncpy_gg): Likewise.
7566 (__strcat_c): Likewise.
7567 (__strcat_g): Likewise.
7568 (__strncat_g): Likewise.
7569 (__strcmp_gg): Likewise.
7570 (__strncmp_g): Likewise.
7571 (__strchr_c): Likewise.
7572 (__strchr_g): Likewise.
7573 (__strchrnul_c): Likewise.
7574 (__strchrnul_g): Likewise.
7575 (__strrchr_c): Likewise.
7576 (__strrchr_g): Likewise.
7577 (__strrchr_c): Likewise.
7578 (__strrchr_g): Likewise.
7579 (__strcspn_c1): Likewise.
7580 (__strcspn_cg): Likewise.
7581 (__strcspn_g): Likewise.
7582 (__strcspn_g): Likewise.
7583 (__strspn_c1): Likewise.
7584 (__strspn_cg): Likewise.
7585 (__strspn_g): Likewise.
7586 (__strspn_g): Likewise.
7587 (__strpbrk_cg): Likewise.
7588 (__strpbrk_g): Likewise.
7589 (__strstr_cg): Likewise.
7590 (__strstr_g): Likewise.
7592 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7593 Michal Ludvig <mludvig@suse.cz>.
7595 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7596 compatibilty, adjust for kernel changes.
7598 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7599 sigcontext): Adjust for kernel changes.
7601 2002-03-25 Andreas Jaeger <aj@suse.de>
7603 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7605 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7607 2002-03-24 Andreas Jaeger <aj@suse.de>
7609 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7611 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7613 * iconv/tst-iconv3.c (main): Use correct printf strings.
7615 2002-03-18 Roland McGrath <roland@frob.com>
7617 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7618 (CMGROUP_MAX): New macro.
7620 2002-03-23 Roland McGrath <roland@frob.com>
7622 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7623 * sysdeps/posix/shm_unlink.c: Likewise.
7625 2002-03-22 Roland McGrath <roland@frob.com>
7627 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7628 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7629 under --enable-libio.
7630 * sysdeps/mach/hurd/configure: Regenerated.
7632 2002-03-23 Roland McGrath <roland@frob.com>
7634 * sysdeps/mach/hurd/i386/Makefile
7635 (sysdep_routines, shared-only-routines): Don't add framestate,
7636 reverting 2001-10-02 change.
7637 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7638 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7639 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7640 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7641 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7642 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7643 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7644 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7645 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7646 Do it here instead, only if [$(unwind-find-fde) = yes].
7648 2002-03-23 Andreas Jaeger <aj@suse.de>
7650 * signal/signal.h: Fix typo. Patch by Steve Kemp
7651 <skx@tardis.ed.ac.uk>.
7653 2002-03-22 Andreas Jaeger <aj@suse.de>
7655 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7658 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7659 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7660 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7661 user_fpregs_struct): Rename fwd.
7663 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7664 Follow sigcontext changes.
7666 2002-03-22 Andreas Jaeger <aj@suse.de>
7668 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7669 changes for NaNs on MIPS.
7670 Patch by Hartvig Ekner <hartvige@mips.com>.
7672 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7674 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7675 Use realloc if too large.
7676 (addgrbyid): Likewise.
7677 * nscd/hstcache.c (addhstbyname): Likewise.
7678 (addhstbyaddr): Likewise.
7679 (addhstbynamev6): Likewise.
7680 (addhstbyaddrv6): Likewise.
7681 * nscd/pwdcache.c (addpwbyname): Likewise.
7682 (addpwbyuid): Likewise.
7684 2002-03-21 Andreas Jaeger <aj@suse.de>
7686 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7687 _fpstate): Add separate struct for x86-64.
7689 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7690 user_fpregs_struct): Change member names to follow kernel.
7692 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7694 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7695 Correctly close the UDP connection right away [PR libc/3120].
7697 2002-03-20 Andreas Jaeger <aj@suse.de>
7699 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7700 user_fpregs_struct): Fix for changed kernel struct.
7701 (struct user_regs_struct): Likewise.
7702 (struct user): Likewise.
7703 Add 32-bit x86 compatibility.
7705 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7707 2002-03-19 Andreas Jaeger <aj@suse.de>
7709 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7711 2002-03-18 Andreas Jaeger <aj@suse.de>
7713 * iconvdata/Makefile: Only run tests when shared libs are
7716 2002-03-17 Andreas Jaeger <aj@suse.de>
7718 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7720 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7722 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7725 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7726 (CAUSE_SHIFT): New macro.
7727 Patch by Hartvig Ekner <hartvige@mips.com>.
7729 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7730 * sysdeps/generic/unwind-pe.h: Likewise.
7732 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7735 * libio/stdio.c (AL2): Define variant when visibility attribute is
7738 * include/libc-symbols.h (_INTVARDEF): Define variant when
7739 visibility attribute is not supported.
7741 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7743 * po/fr.po: Update from translation team.
7745 2002-02-25 Bruno Haible <bruno@clisp.org>
7747 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7749 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7751 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7752 buffers if _IO_file_attach failed.
7754 * libio/fileops.c (_IO_file_open): Close file descriptor if
7755 _IO_SEEKOFF call failed.
7757 2002-03-15 H.J. Lu <hjl@gnu.org>
7758 Ulrich Drepper <drepper@redhat.com>
7760 * configure.in: Check for availability of
7761 init_array/fini_array/preinit_array handling in binutils.
7762 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7763 * config.make.in (have-initfini-array): New variable.
7765 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7767 * stdio-common/tst-printf.c (main): Comment out one test which
7768 checked the compiler's ability to fold floating-point constants
7769 but not really printf.
7770 (rfg3): Make s const.
7771 * stdio-common/tst-printf.sh: Adjust for removed test.
7773 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7774 internal function. Adjust for internal_function calling convention.
7775 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7776 as internal_function.
7778 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7781 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7782 declaration and definition.
7783 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7785 * nss/getXXent_r.c: Likewise.
7786 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7789 * include/time.h: Declare __localtime_r as hidden.
7791 * include/aliases.h: Declare __getaliasent_r as hidden.
7792 * include/grp.h: Declare __getgrent_r as hidden.
7793 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7794 __getservent_r, and __getprotoent_r as hidden.
7795 * include/pwd.h: Declare __getpwent_r as hidden.
7796 * include/shadow.h: Declare __getspent_r as hidden.
7797 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7799 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7800 and __gconv_transliterate as hidden.
7801 Add internal_function to __gconv_get_path declaration.
7802 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7803 definition. Add attribute_hidden to __gconv_read_conf definition.
7805 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7807 * elf/rtld.c: Declare _environ as hidden.
7808 * sysdeps/generic/dl-environ.c: Likewise.
7809 * sysdeps/generic/dl-sysdep.c: Likewise.
7811 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7812 _dl_mcount_internal as hidden.
7814 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7815 * sysdeps/generic/dl-brk.c: New file.
7816 * sysdeps/generic/dl-sbrk.c: New file.
7817 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7818 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7820 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7821 (__errno_location): New function. Declare errno as hidden.
7822 * elf/rtld.c (_dl_argc): Define as hidden.
7823 (_dl_skip_args): Define as hidden.
7824 (_begin, _end): Declare as hidden.
7825 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7826 * sysdeps/generic/entry.h (_start): Declare as hidden.
7827 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7828 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7829 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7830 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7832 2002-03-14 Roland McGrath <roland@frob.com>
7834 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7836 * Makeconfig (%.v.i, %.v): New implicit rules.
7837 (preprocess-versions): Variable removed.
7838 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7839 shlib-versions input files as dependencies.
7840 ($(common-objpfx)soversions.i): Depend on that instead of the input
7841 files. Use it as input instead of using a pipeline.
7842 (postclean-generated): Append soversions.i, shlib-versions.v, and
7843 shlib-versions.v.i here.
7844 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7845 the Versions.def input files as dependencies.
7846 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7847 ($(common-objpfx)Versions.all): Depend on that instead of the input
7848 files. Use it as input instead of using a pipeline.
7849 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7850 (postclean-generated): Append those .v and .v.i files here.
7852 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7854 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7855 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7858 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7860 * sysdeps/generic/mp_clz_tab.c: New file.
7861 * sysdeps/i386/mp_clz_tab.c: New file.
7862 * sysdeps/hppa/mp_clz_tab.c: New file.
7863 * sysdeps/powerpc/mp_clz_tab.c: New file.
7864 * stdlib/Makefile (aux): Revert last patch.
7865 * math/Makefile (gmp-objs): Likewise.
7867 2002-03-13 Paul Eggert <eggert@twinsun.com>
7869 * time/strftime.c: Comment fixes for references to obsolescent
7870 standards, In most cases the simplest fix is to remove the
7871 confusing comments. Cross-referencing all the standards properly
7872 is a bit of a pain, and it should be enough to put that info in
7873 the documentation as I did in my recent time.texi patch.
7875 2002-03-13 Paul Eggert <eggert@twinsun.com>
7877 * manual/time.texi (Formatting Calendar Time):
7878 ISO C99 also specifies the E and O modifiers.
7879 %P is a GNU extension, and is not in ISO C99.
7880 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7881 %T is also in ISO C99.
7882 The RFC 822 example is not valid in arbitrary locales.
7883 Reword the POSIX.2 wording slightly, to make it a bit clearer
7884 that POSIX.2 formats are also supported by later POSIX versions.
7885 If a format was introduced in ISO C99 it is also required by
7888 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7890 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7891 _sys_nerr_internal with INTVARDEF2.
7892 * include/libc-symbols.h (INTVARDEF2): New macro.
7893 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7894 (_sys_nerr_internal): Library.
7896 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7897 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7899 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7901 2002-03-13 Wolfram Gloger <wg@malloc.de>
7903 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7905 2002-03-02 Andreas Schwab <schwab@suse.de>
7907 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7908 'h' flag and positional arg.
7909 * stdio-common/tst-printf.c (rfg3): New function to test
7910 positional arguments.
7911 (main): Fix some warnings.
7913 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7915 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7916 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7918 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7920 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7922 * include/locale.h (_nl_C_locobj): Declare as hidden.
7924 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7925 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7927 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7929 * include/sys/gmon.h: Declare _gmonparam as hidden.
7931 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7932 (__ctype32_wctrans): Likewise.
7933 (__ctype32_width): Likewise.
7935 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7938 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7940 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7941 hidden. Change all users of these variables.
7943 * posix/regex_internal.h (__re_error_msgid): Renamed from
7944 re_error_msgid. Declare as hidden.
7945 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7948 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7949 (__printf_function_table): Likewise.
7950 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7952 (__printf_function_table): Likewise.
7954 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7955 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7957 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
7958 * nss/nsswitch.c: Declare _nss_*_database as hidden.
7960 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
7961 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
7963 2002-03-12 Ulrich Drepper <drepper@redhat.com>
7965 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
7966 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7967 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7968 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7969 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7970 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7971 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7972 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7973 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
7974 _nl_C_LC_CTYPE_width: Declare as hidden.
7975 * include/locale.h: Declare _nl_locale_file_list.
7976 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
7977 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
7978 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
7979 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
7980 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
7981 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
7982 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
7983 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
7984 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
7985 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
7986 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
7987 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
7988 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
7989 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
7990 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
7991 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
7992 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
7993 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
7994 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
7995 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
7996 _nl_C_LC_CTYPE_width, and as hidden.
7997 * locale/findlocale.c: Declare _nl_C as hidden.
7998 * locale/newlocale.c: Likewise.
7999 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8000 _nl_locale_file_list.
8001 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8002 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8003 Define _nl_C_locobj as hidden.
8005 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8006 (_mtrace_line): Likewise.
8008 * include/time.h: Declare __mon_yday as hidden.
8009 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8011 * libio/libioP.h: Declare __libio_codecvt as hidden.
8012 * libio/fileops.c: Declare __libio_translit as hidden.
8013 * libio/iofwide.c: Define __libio_translit as hidden.
8015 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8016 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8017 * login/getutline_r.c: Likewise.
8018 * login/utmpname.c: Likewise.
8020 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8021 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8022 __libc_utmp_file_name as hidden.
8024 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8025 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8026 * locale/freelocale.c: Likewise.
8027 * locale/lc-time.c: Likewise.
8029 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8030 (__libc_ptyname2): Likewise.
8031 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8033 (__libc_ptyname2): Likewise.
8035 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8036 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8037 * sysdeps/generic/init-first.c: Likewise.
8038 * sysdeps/i386/init-first.c: Likewise.
8039 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8040 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8041 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8042 * sysdeps/sh/init-first.c: Likewise.
8043 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8044 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8046 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8047 (_itowa_upper_digits): Likewise.
8049 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8050 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8053 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8054 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8055 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8056 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8058 * gmon/gmon.c (__bb_head): Define as hidden.
8059 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8061 * argp/argp-parse.c (_argp_hang): Define as static.
8063 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8064 handling in latest compilers.
8066 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8068 * libio/fileops.c (_IO_file_jumps): Likewise.
8069 * libio/stdfiles.c (_IO_list_all): Likewise.
8070 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8072 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8074 * include/malloc.h: Add __libc_malloc_initialized declaration
8075 here. Mark variable hidden.
8076 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8078 * elf/dl-open.c (__libc_argc): Declare as hidden.
8079 (__libc_argv): Likewise.
8080 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8081 (__libc_argv): Likewise.
8082 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8083 __libc_argv as hidden.
8084 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8085 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8086 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8087 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8089 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8090 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8091 * stdlib/erand48.c: Likewise.
8092 * stdlib/jrand48.c: Likewise.
8093 * stdlib/lcong48.c: Likewise.
8094 * stdlib/lrand48.c: Likewise.
8095 * stdlib/mrand48.c: Likewise.
8096 * stdlib/nrand48.c: Likewise.
8097 * stdlib/seed48.c: Likewise.
8098 * stdlib/srand48.c: Likewise.
8100 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8101 (_itoa_lower_digits_internal): New declaration.
8102 (_itoa_upper_digits_internal): New declaration.
8103 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8104 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8105 (_itoa_upper_digits_internal): New declaration.
8106 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8108 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8109 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8111 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8112 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8114 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8115 (_itowa_lower_digits): Likewise.
8116 (_itowa_upper_digits): Likewise.
8117 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8118 (_itowa_upper_digits): Likewise.
8120 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8121 not already defined.
8122 (GERMANIC_PLURAL): Declare as hidden.
8124 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8125 (attribute_hidden): Define as empty macro if not already defined.
8127 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8128 (__gconv_max_path_elem_len): Likewise.
8129 (__gconv_path_envvar): Likewise.
8131 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8132 * stdlib/Makefile (aux): Remove mp_clz_tab.
8133 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8135 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8137 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8139 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8140 _nl_category_names, _nl_category_name_sizes, _nl_current,
8141 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8143 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8144 (_nl_current_default_domain): Likewise
8145 (_nl_state_lock): Likewise.
8146 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8147 (_nl_current_default_domain): Likewise
8148 (_nl_state_lock): Likewise.
8149 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8151 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8152 (_fpioconst_pow10): Likewise.
8154 * include/time.h (_tmbuf): Add attribute_hidden.
8156 * time/tzset.c (tzstring_list): Define as static.
8158 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8159 __use_tzfile declaration.
8161 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8162 and __wcsmbs_last_locale declaration.
8164 2002-02-25 Paul Eggert <eggert@twinsun.com>
8166 * timezone/Makefile (tzbases): Move systemv from here...
8167 (tzlinks): to here, since the entries in systemv were all changed
8168 from Zone to Link lines in tz-2001a. Bug reported (and patch
8169 tested) by Peter Breitenlohner.
8171 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8173 * time/tst-posixtz.c (tests): Add new tests.
8174 (main): Test whether tzset() sets daylight properly.
8176 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8178 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8179 __tzname_cur_max setting...
8180 (tzset_internal): ...here.
8182 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8184 * time/tzset.c (compute_change): Don't return any value.
8185 (tz_compute): Likewise. Don't handle southern hemisphere here.
8186 (__tz_convert): But here.
8188 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8190 * manual/examples/mkfsock.c: Include <string.h> as well.
8191 Patch by Alain De Carolis <alaind@wseurope.com>.
8193 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8195 * posix/regexec.c (re_match): Fix incorrect register sizes.
8196 (re_search): Likewise.
8198 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8200 * posix/regcomp.c (regfree): Remove a disused condition.
8201 * posix/regex_internal.c (re_acquire_state): Likewise.
8202 (re_acquire_state_context): Likewise.
8203 (register_state): Remove a redundant malloc invocation.
8204 * posix/regex_internal.h: (re_state_table_entry): Simplify
8207 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8209 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8210 handling conditions.
8211 (regerror): Likewise.
8212 (regfree): Likewise.
8213 (re_compile_internal): Likewise.
8214 (init_dfa): Likewise.
8215 (init_word_char): Likewise.
8216 (create_initial_state): Likewise.
8217 (analyze): Likewise.
8218 (analyze_tree): Likewise.
8219 (duplicate_node): Likewise.
8220 (calc_eclosure): Likewise.
8221 (calc_eclosure_iter): Likewise.
8223 (parse_reg_exp): Likewise.
8224 (parse_branch): Likewise.
8225 (parse_expression): Likewise.
8226 (parse_subexp): Likewise.
8227 (parse_dup_op): Likewise.
8228 (parse_bracket_exp): Likewise.
8229 (build_equiv_class): Likewise.
8230 (build_charclass): Likewise.
8231 (build_word_op): Likewise.
8232 (fetch_number): Likewise.
8233 (create_tree): Likewise.
8234 (duplicate_tree): Likewise.
8235 * posix/regex.c (BE): New macro.
8236 * posix/regexec.c (re_match): Add __builtin_expect to error
8237 handling conditions.
8238 (re_match_2): Likewise.
8239 (re_search): Likewise.
8240 (re_search_internal): Likewise.
8241 (check_matching): Likewise.
8242 (proceed_next_node): Likewise.
8243 (set_regs): Likewise.
8244 (sift_states_backward): Likewise.
8245 (add_epsilon_backreference): Likewise.
8246 (transit_state): Likewise.
8247 (transit_state_sb): Likewise.
8248 (transit_state_mb): Likewise.
8249 (transit_state_bkref): Likewise.
8250 (transit_state_bkref_loop): Likewise.
8251 (build_trtable): Likewise.
8252 (group_nodes_into_DFAstates): Likewise.
8253 (match_ctx_init): Likewise.
8254 (match_ctx_add_entry): Likewise.
8255 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8256 to error handling conditions.
8257 (re_string_construct_toupper): Likewise.
8258 (build_wcs_buffer): Likewise.
8259 (build_wcs_upper_buffer): Likewise.
8260 (build_upper_buffer): Likewise.
8261 (re_string_translate_buffer): Likewise.
8262 (re_node_set_alloc): Likewise.
8263 (re_node_set_init_1): Likewise.
8264 (re_node_set_init_2): Likewise.
8265 (re_node_set_init_copy): Likewise.
8266 (re_node_set_intersect): Likewise.
8267 (re_node_set_init_union): Likewise.
8268 (re_node_set_merge): Likewise.
8269 (re_node_set_insert): Likewise.
8270 (re_dfa_add_node): Likewise.
8271 (re_acquire_state): Likewise.
8272 (re_acquire_state_context): Likewise.
8273 (create_new_state_common): Likewise.
8274 (register_state): Likewise.
8275 (create_ci_new_state): Likewise.
8276 (create_cd_new_state): Likewise.
8277 (re_string_context_at): Remove redundant condition.
8279 2002-01-16 Roger Sayle <roger@eyesopen.com>
8281 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8283 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8285 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8287 * sysdeps/i386/elf/configure.in: Fix comment.
8289 * sysdeps/sparc/sparc64/configure.in: New file.
8290 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8291 if .dynamic comes before .got.
8292 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8294 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8295 HP_TIMING_ACCUM): Fix typos.
8297 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8299 * string/strfry.c: Add some more randomness to the seed.
8300 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8302 * po/es.po: Update from translation team.
8303 * po/fr.po: Likewise.
8305 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8307 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8308 when determining type of format.
8309 Patch by James Antill <james@anqd.org> [PR libc/2787].
8311 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8313 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8315 2002-03-11 Roland McGrath <roland@frob.com>
8317 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8319 * Versions.def (libc): Add GLIBC_2.2.6.
8320 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8321 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8322 __errno_location instead of __hurd_errno_location, and don't inline it.
8323 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8324 * hurd/errno.c: New file.
8325 * hurd/Makefile (routines): Add errno.
8327 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8329 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8330 ridiculously large widths and precisions [PR libc/3026].
8332 2002-03-11 Andreas Jaeger <aj@suse.de>
8334 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8336 Patch by Susanne Oberhauser <froh@SuSE.de>.
8338 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8340 * inet/rexec.c (ahostbuf): Define as static.
8342 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8343 (__ctype32_wctrans): Likewise.
8344 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8345 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8346 (__ctype32_wctrans): Likewise.
8347 (__ctype32_width): Likewise.
8349 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8350 They were never exported anyway.
8352 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8353 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8355 * include/sys/gmon.h: Declare _gmonparam.
8357 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8358 symbols for getdents64. They were never exported.
8360 2002-03-09 Roland McGrath <roland@frob.com>
8362 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8363 Reported by Jon Arney <jarney1@cox.net>.
8365 2002-02-23 Roland McGrath <roland@frob.com>
8367 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8369 (__hurd_errno_location): Function removed.
8371 2002-03-06 Andreas Jaeger <aj@suse.de>
8373 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8376 2002-03-04 Andreas Jaeger <aj@suse.de>
8378 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8380 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8383 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8385 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8387 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8389 * sysdeps/x86_64/bits/setjmp.h: New file.
8391 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8393 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8395 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8397 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8398 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8400 2002-02-28 Bo Thorsen <bo@suse.de>
8402 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8405 2002-03-03 Andreas Jaeger <aj@suse.de>
8407 * sysdeps/x86_64/bits/wordsize.h: New file.
8409 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8410 * elf/tst-tlsmod1.c: Likewise.
8412 * posix/regcomp.c: Get regex.h from include dir for internal
8415 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8416 to libc-internal.h and include it.
8417 * include/libc-internal.h: Add __init_misc.
8419 * misc/init-misc.c: Include libc-internal.h for prototypes.
8421 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8423 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8426 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8428 * posix/regcomp.c: Compatibility changes to allow using the code
8431 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8433 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8436 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8438 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8439 of .str elements in the returned data structure.
8441 * elf/elf.h: Add Alpha TLS bits.
8443 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8445 * sysdeps/unix/sysv/linux/nice.c: New file.
8447 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8449 * elf/Makefile (dl-routines): Add dl-origin.
8450 (elide-routines.os): Add dl-origin.
8451 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8452 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8454 * include/libc-symbols.c: Define attribute_hidden depending on
8455 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8457 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8458 * elf/dl-load.c: Likewise.
8459 * elf/rtld.c: Likewise.
8460 * include/unistd.h: Declare __libc_enable_secure_internal.
8461 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8462 Use INTUSE with __libc_enable_secure.
8463 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8465 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8466 * elf/dl-error.c: Likewise,
8467 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8469 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8470 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8471 function definition. Use INTDEF with _dl_get_origin.
8472 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8474 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8475 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8477 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8478 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8479 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8481 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8482 * elf/dl-deps.c: Likewise.
8483 * elf/dl-error.c: Likewise.
8484 * elf/dl-fini.c: Likewise.
8485 * elf/dl-init.c: Likewise.
8486 * elf/dl-load.c: Likewise.
8487 * elf/dl-lookup.c: Likewise.
8488 * elf/dl-reloc.c: Likewise.
8489 * elf/dl-version.c: Likewise.
8490 * elf/do-lookup.h: Likewise.
8491 * sysdeps/arm/dl-machine.h: Likewise.
8492 * sysdeps/cris/dl-machine.h: Likewise.
8493 * sysdeps/hppa/dl-machine.h: Likewise.
8494 * sysdeps/i386/dl-machine.h: Likewise.
8495 * sysdeps/m68k/dl-machine.h: Likewise.
8496 * sysdeps/powerpc/dl-machine.h: Likewise.
8497 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8498 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8499 * sysdeps/sh/dl-machine.h: Likewise.
8500 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8501 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8502 * sysdeps/x86_64/dl-machine.h: Likewise.
8503 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8504 _dl_argv[0]. Use INTUSE with _dl_argv.
8505 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8506 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8508 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8510 * elf/rtld.c (_rtld_global): Remove .protected.
8511 (_rtld_local): Strong alias to _rtld_global.
8512 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8514 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8515 _rtld_local instead of _rtld_global.
8516 (_rtld_local): Add hidden extern, possibly in .sdata section.
8517 * configure.in: Add tests for visibility attribute and .sdata.
8518 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8519 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8520 * sysdeps/arm/dl-machine.h: Likewise.
8521 * sysdeps/generic/ldsodefs.h: Likewise.
8522 * sysdeps/hppa/dl-machine.h: Likewise.
8523 * sysdeps/cris/dl-machine.h: Likewise.
8524 * sysdeps/i386/dl-machine.h: Likewise.
8525 * sysdeps/ia64/dl-machine.h: Likewise.
8526 * sysdeps/m68k/dl-machine.h: Likewise.
8527 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8528 * sysdeps/mips/dl-machine.h: Likewise.
8529 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8530 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8531 * sysdeps/sh/dl-machine.h: Likewise.
8532 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8533 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8534 * sysdeps/x86_64/dl-machine.h: Likewise.
8536 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8538 * login/login.c (login): Always initialize ut_line field
8541 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8543 * sysdeps/i386/Makefile (sysdep_routines): Add
8545 (shared-only-routines): Likewise.
8546 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8547 (shared-only-routines): Likewise.
8548 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8549 (shared-only-routines): Likewise.
8550 * sysdeps/wordsize-32/divdi3.c: New file.
8552 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8554 * locale/iso-4217.def: Remove obsolete currencies for countries
8557 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8559 * posix/regcomp.c (regcomp): Remove a redundant condition.
8560 (init_word_char): Add a check on malloc failure.
8561 (create_initial_state): Likewise.
8562 (duplicate_node): Likewise.
8563 (calc_eclosure): Likewise.
8564 (calc_eclosure_iter): Likewise.
8565 (parse_expression): Likewise.
8566 (parse_bracket_exp): Remove unnecessary malloc invocations.
8567 (build_equiv_class): Likewise.
8568 (build_charclass): Likewise.
8569 * posix/regex_internal.c (re_node_set_intersect): Add a check
8571 (re_node_set_add_intersect): Likewise.
8572 (re_node_set_merge): Likewise.
8573 (re_acquire_state): Likewise.
8574 (re_acquire_state_context): Likewise.
8575 (create_newstate_common): Likewise.
8576 (register_state): Likewise.
8577 (create_ci_newstate): Likewise.
8578 (create_cd_newstate): Likewise.
8579 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8580 and re_acquire_state_context.
8581 * posix/regexec.c (regexec): Suit it to the error handling of
8583 (re_match): Likewise.
8584 (re_search): Likewise.
8585 (re_search_internal): Add a check on malloc failure.
8586 (acquire_init_state_context): Likewise.
8587 (check_matching): Likewise.
8588 (proceed_next_node): Likewise.
8589 (set_regs): Likewise.
8590 (sift_states_backward): Likewise.
8591 (sift_states_iter_bkref): Likewise.
8592 (add_epsilon_backreference): Likewise.
8593 (transit_state): Likewise.
8594 (transit_state_sb): Likewise.
8595 (transit_state_mb): Likewise.
8596 (transit_state_bkref_loop): Likewise.
8597 (build_trtable): Likewise.
8598 (group_nodes_into_DFAstates): Likewise.
8599 (match_ctx_init): Likewise.
8600 (match_ctx_add_entry): Likewise.
8602 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8604 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8605 l_libname if profiling is enabled [PR libc/2916].
8607 * sysdeps/ia64/dl-tls.h: New file.
8609 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8611 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8612 Work around an Alpha gas bug.
8614 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8616 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8617 uses read to load the catalog.
8618 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8620 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8622 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8623 regex_internal.c, and regex_internal.h.
8624 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8625 * posix/regex.c: Complete rewrite.
8626 * posix/regexec.c: New file.
8627 * posix/regcomp.c: New file.
8628 * posix/regex_internal.c: New file.
8629 * posix/regex_internal.h: New file.
8630 * posix/regex.h (RE_ICASE): New macro.
8631 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8633 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8634 ungetwc. It's a macro.
8635 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8637 Reported by Jason Merrill <jason@redhat.com>.
8639 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8641 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8642 position to fp->_offset if it is set.
8643 * stdio-common/Makefile (tests): Add tst-fdopen.
8644 * stdio-common/tst-fdopen.c: New test.
8646 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8648 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8649 * stdio-common/tst-ungetc.c (main): Add another test.
8651 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8653 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8654 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8655 aliases. Add prototypes for the new aliases.
8656 * assert/assert.c: Likewise.
8657 * include/libc-symbols.h: Likewise.
8658 * include/stdio.h: Likewise.
8659 * include/netinet/in.h: Likewise.
8660 * include/rpc/auth.h: Likewise.
8661 * include/rpc/auth_unix.h: Likewise.
8662 * include/rpc/key_prot.h: Likewise.
8663 * include/rpc/pmap_prot.h: Likewise.
8664 * include/rpc/pmap_rmt.h: Likewise.
8665 * include/rpc/rpc_msg.h: Likewise.
8666 * include/rpc/xdr.h: Likewise.
8667 * inet/gethstbyad_r.c: Likewise.
8668 * inet/gethstbynm2_r.c: Likewise.
8669 * inet/gethstbynm_r.c: Likewise.
8670 * inet/gethstent_r.c: Likewise.
8671 * inet/in6_addr.c: Likewise.
8672 * libio/__fpurge.c: Likewise.
8673 * libio/filedoalloc.c: Likewise.
8674 * libio/fileops.c: Likewise.
8675 * libio/ftello.c: Likewise.
8676 * libio/ftello64.c: Likewise.
8677 * libio/genops.c: Likewise.
8678 * libio/iofclose.c: Likewise.
8679 * libio/iofdopen.c: Likewise.
8680 * libio/iofflush.c: Likewise.
8681 * libio/iofflush_u.c: Likewise.
8682 * libio/iofgetpos.c: Likewise.
8683 * libio/iofgetpos64.c: Likewise.
8684 * libio/iofgets.c: Likewise.
8685 * libio/iofgets_u.c: Likewise.
8686 * libio/iofopen.c: Likewise.
8687 * libio/iofopncook.c: Likewise.
8688 * libio/iofputs.c: Likewise.
8689 * libio/iofread.c: Likewise.
8690 * libio/iofread_u.c: Likewise.
8691 * libio/iofsetpos.c: Likewise.
8692 * libio/iofsetpos64.c: Likewise.
8693 * libio/ioftell.c: Likewise.
8694 * libio/iofwrite.c: Likewise.
8695 * libio/iogetline.c: Likewise.
8696 * libio/iogets.c: Likewise.
8697 * libio/iogetwline.c: Likewise.
8698 * libio/iolibio.h: Likewise.
8699 * libio/iopadn.c: Likewise.
8700 * libio/iopopen.c: Likewise.
8701 * libio/ioseekoff.c: Likewise.
8702 * libio/ioseekpos.c: Likewise.
8703 * libio/iosetbuffer.c: Likewise.
8704 * libio/iosetvbuf.c: Likewise.
8705 * libio/ioungetc.c: Likewise.
8706 * libio/ioungetwc.c: Likewise.
8707 * libio/iovdprintf.c: Likewise.
8708 * libio/iovsprintf.c: Likewise.
8709 * libio/iovsscanf.c: Likewise.
8710 * libio/libioP.h: Likewise.
8711 * libio/memstream.c: Likewise.
8712 * libio/obprintf.c: Likewise.
8713 * libio/oldfileops.c: Likewise.
8714 * libio/oldiofclose.c: Likewise.
8715 * libio/oldiofdopen.c: Likewise.
8716 * libio/oldiofgetpos.c: Likewise.
8717 * libio/oldiofgetpos64.c: Likewise.
8718 * libio/oldiofopen.c: Likewise.
8719 * libio/oldiofsetpos.c: Likewise.
8720 * libio/oldiofsetpos64.c: Likewise.
8721 * libio/oldiopopen.c: Likewise.
8722 * libio/oldstdfiles.c: Likewise.
8723 * libio/putc.c: Likewise.
8724 * libio/setbuf.c: Likewise.
8725 * libio/setlinebuf.c: Likewise.
8726 * libio/stdfiles.c: Likewise.
8727 * libio/stdio.c: Likewise.
8728 * libio/strops.c: Likewise.
8729 * libio/vasprintf.c: Likewise.
8730 * libio/vscanf.c: Likewise.
8731 * libio/vsnprintf.c: Likewise.
8732 * libio/vswprintf.c: Likewise.
8733 * libio/wfiledoalloc.c: Likewise.
8734 * libio/wfileops.c: Likewise.
8735 * libio/wgenops.c: Likewise.
8736 * libio/wstrops.c: Likewise.
8737 * malloc/mtrace.c: Likewise.
8738 * misc/error.c: Likewise.
8739 * misc/syslog.c: Likewise.
8740 * nss/getXXbyYY_r.c: Likewise.
8741 * nss/getXXent_r.c: Likewise.
8742 * nss/hosts-lookup.c: Likewise.
8743 * stdio-common/getw.c
8744 * stdio-common/printf-prs.c: Likewise.
8745 * stdio-common/printf_fp.c: Likewise.
8746 * stdio-common/printf_size.c: Likewise.
8747 * stdio-common/putw.c: Likewise.
8748 * stdio-common/scanf.c: Likewise.
8749 * stdio-common/sprintf.c: Likewise.
8750 * stdio-common/tmpfile64.c: Likewise.
8751 * stdio-common/vfprintf.c: Likewise.
8752 * stdio-common/vfscanf.c: Likewise.
8753 * stdlib/strfmon.c: Likewise.
8754 * sunrpc/auth_des.c: Likewise.
8755 * sunrpc/auth_none.c: Likewise.
8756 * sunrpc/auth_unix.c: Likewise.
8757 * sunrpc/authdes_prot.c: Likewise.
8758 * sunrpc/authuxprot.c: Likewise.
8759 * sunrpc/clnt_perr.c: Likewise.
8760 * sunrpc/clnt_raw.c: Likewise.
8761 * sunrpc/clnt_tcp.c: Likewise.
8762 * sunrpc/clnt_udp.c: Likewise.
8763 * sunrpc/clnt_unix.c: Likewise.
8764 * sunrpc/key_call.c: Likewise.
8765 * sunrpc/key_prot.c: Likewise.
8766 * sunrpc/openchild.c: Likewise.
8767 * sunrpc/pm_getmaps.c: Likewise.
8768 * sunrpc/pm_getport.c: Likewise.
8769 * sunrpc/pmap_clnt.c: Likewise.
8770 * sunrpc/pmap_prot.c: Likewise.
8771 * sunrpc/pmap_prot2.c: Likewise.
8772 * sunrpc/pmap_rmt.c: Likewise.
8773 * sunrpc/rpc_cmsg.c: Likewise.
8774 * sunrpc/rpc_prot.c: Likewise.
8775 * sunrpc/svc_authux.c: Likewise.
8776 * sunrpc/svc_raw.c: Likewise.
8777 * sunrpc/svc_simple.c: Likewise.
8778 * sunrpc/svc_tcp.c: Likewise.
8779 * sunrpc/svc_udp.c: Likewise.
8780 * sunrpc/svc_unix.c: Likewise.
8781 * sunrpc/xdr.c: Likewise.
8782 * sunrpc/xdr_array.c: Likewise.
8783 * sunrpc/xdr_mem.c: Likewise.
8784 * sunrpc/xdr_rec.c: Likewise.
8785 * sunrpc/xdr_ref.c: Likewise.
8786 * sunrpc/xdr_stdio.c: Likewise.
8787 * sysdeps/generic/_strerror.c: Likewise.
8788 * sysdeps/generic/printf_fphex.c: Likewise.
8789 * sysdeps/generic/tmpfile.c: Likewise.
8790 * sysdeps/gnu/errlist.awk: Likewise.
8791 * sysdeps/gnu/errlist.c: Likewise.
8793 * libio/Makefile (routines): Remove iosprint.
8794 * libio/iosprintf.c: Removed
8797 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8799 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8800 non_dynamic_init and exported now.
8801 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8802 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8804 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8805 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8806 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8808 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8810 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8813 * locale/iso-639.def: Add language codes for Walloon.
8815 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8816 total number of relocations performed.
8818 * elf/sprof.c (load_profdata): If do_test provide information as
8819 to why loading failed.
8820 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8823 * csu/set-init.c: Moved to...
8824 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8825 * csu/Makefile: Don't compile set-init.
8826 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8827 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8829 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8830 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8831 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8833 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8836 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8838 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8839 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8840 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8841 (_dl_deallocate_tls): New function.
8842 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8845 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8847 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8848 * stdio-common/tst-fseek.c (main): Add test for this.
8850 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8852 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8854 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8856 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8857 pointer before dereferencing.
8859 2002-02-18 Roland McGrath <roland@frob.com>
8861 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8863 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8864 Use task_policy in place of task_priority.
8866 * sysdeps/generic/bits/mman.h
8867 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8868 * sysdeps/mach/msync.c: New file.
8870 * sysdeps/mach/powerpc/syscall.S: New file.
8872 * mach/msg.c [MACH_MSG_OVERWRITE]
8873 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8874 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8876 * sysdeps/mach/configure.in: Check for clock.defs to put into
8877 mach_interface_list.
8878 * sysdeps/mach/configure: Regenerated.
8880 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8881 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8882 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8883 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8884 (mach-shortcuts): Add device_read_overwrite_request,
8885 device_read_overwrite, vm_read_overwrite, thread_switch.
8887 * configure.in (base_machine): Set to $machine by default.
8888 * configure: Regenerated.
8890 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8891 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8892 * sysdeps/mach/configure: Regenerated.
8893 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8895 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8897 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8899 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8900 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8902 2002-02-17 Roland McGrath <roland@frob.com>
8904 * sysdeps/mach/hurd/times.c
8905 [NO_CREATION_TIME] (startup_time): New static variable.
8906 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8907 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8908 creation_time from task_basic_info.
8909 (__times): Use __gettimeofday instead of __host_get_time.
8911 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8912 Use untyped Mach IPC message format.
8914 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8916 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8917 _S_catch_exception_raise_state_identity,
8918 _hurdsig_fault_catch_exception_raise_state,
8919 _hurdsig_fault_catch_exception_raise_state_identity.
8921 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8923 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8924 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8926 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8927 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8929 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8930 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8931 them as no-op macros.
8932 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8933 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8935 * sysdeps/powerpc/dl-machine.h
8936 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8938 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8939 Use untyped Mach IPC message format.
8941 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8942 Handle untyped Mach IPC message formats.
8944 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8945 Expect different argument conventions when this is defined.
8946 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8947 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8948 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8949 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8950 for OSF Mach variant.
8951 (faulted): Use mig_reply_error_t for REPLY.
8952 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8953 in __thread_set_exception_ports call.
8954 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8955 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8957 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
8958 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
8959 on Darwin, which includes bogons.
8961 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
8962 variable LOADBASE so it's not declared when it's not used.
8964 2002-02-16 Roland McGrath <roland@frob.com>
8966 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
8967 to use BI.creation_time.
8969 * mach/Machrules (MIG): Add -x c to CPP value passed down.
8971 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
8972 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
8973 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
8974 host_page_size instead of vm_statistics.
8976 * sysdeps/mach/Makefile (mach-before-compile): Don't include
8977 mach_interface.h here, since not all variants use that name.
8979 * sysdeps/mach/configure.in: Add some checks for Mach headers
8980 to ensure a sane installation.
8981 (mach_interface_list): Define this variable by checking for .defs
8982 files found in various variants.
8983 * configure.in (mach_interface_list): AC_SUBST this.
8984 * config.make.in (mach-interface-list): New substituted variable.
8985 * mach/Makefile (user-interfaces): Define this using the value
8986 of $(mach-interface-list) instead of mach, mach4.
8987 Updated other references to mach_interface to use it as well.
8989 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
8991 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
8992 mig_reply_error_t for OSF Mach variant.
8994 * mach/Makefile (routines): Remove bootprivport.
8995 * mach/bootprivport.c: File removed. It has never been used.
8997 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
8998 Grok the OSF flavor of message format.
8999 (mach_msg_destroy_port): For MAKE_SEND and
9000 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9001 no-senders notification.
9003 2002-02-06 Roland McGrath <roland@frob.com>
9005 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9006 to here if 2.0 compatibility enabled ...
9007 (libc: GLIBC_2.1.3): ... from here.
9009 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9011 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9013 * elf/dl-close.c (_dl_close): Likewise.
9015 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9017 * elf/Makefile: Add rules to build and run tst-tls8.
9018 * elf/tst-tls8.c: New file.
9019 * elf/tst-tlsmod4.c: New file.
9021 * stdlib/test-a64l.c (tests): Add more test cases.
9023 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9024 Reported by Walter Harms <WHarms@bfs.de>.
9026 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9028 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9029 definitions for struct sigcontext.
9030 Suggested by David Mosberger-Tang.
9032 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9034 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9035 for removing reference of module in slotinfo list.
9036 (_dl_close): Use remove_slotinfo.
9037 * sysdeps/generic/dl-tls.c: General pretty printing.
9038 (oom): Define only if SHARED.
9039 (_dl_next_tls_modid): Correct starting point for the case we assume
9040 there is a gap. Add missing instruction grouping (doh!). Correct
9041 tests for reaching maximum index.
9042 * elf/Makefile: Add rules to build and run tst-tls7.
9043 * elf/tst-tls7.c: New file.
9044 * elf/tst-tlsmod3.c: New file.
9046 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9048 * elf/tst-tlsmod2.c: Likewise.
9050 * elf/dl-close.c (_dl_close): When closing an object using TLS
9051 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9052 true. Increment dl_tls_generation only if we closed any TLS-using
9054 * elf/tst-tls6.c: New file.
9055 * elf/Makefile: Add rules to build and run tst-tls6.
9057 * po/da.po: Update from translation team.
9059 * locale/categories.def: Fix typo [PR libc/2948].
9060 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9062 * locale/iso-4217.def: Update from official version [PR libc/2950].
9063 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9064 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9065 message if input is too confusion instead of using assert.
9066 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9067 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9069 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9070 * elf/tst-tls2.c: Likewise.
9071 * elf/tst-tls3.c: Likewise.
9073 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9075 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9077 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9079 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9080 if this is really necessary.
9082 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9084 (free_mem): Free memory for the slotinfo array if possible.
9086 2002-02-12 Andreas Schwab <schwab@suse.de>
9088 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9090 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9092 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9094 (oom): New function.
9095 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9096 (_dl_determine_tlsoffset): Likewise.
9097 (_dl_allocate_tls): Likewise.
9098 (__TLS_GET_ADDR): Define if not already defined.
9099 (_dl_tls_symaddr): New function.
9100 (allocate_and_init): New function.
9101 (__tls_get_addr): Actually implement handling of generation counter
9102 and deferred allocation.
9103 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9104 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9106 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9107 Declare _dl_tls_symaddr.
9108 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9110 * include/link.h (struct link_map): Remove l_tls_nextimage and
9112 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9113 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9114 (_dl_vsym): Likewise.
9115 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9117 (dl_main): Allow PT_TLS be present for empty segment. Remove
9118 nextimage list handling. Instead add all modules using TLS to
9119 dl_tls_dtv_slotinfo_list.
9120 * elf/dl-open.c (dl_open_worker): After successfully loading all
9121 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9122 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9123 empty segment don't do anything. Remove handling of initimage list.
9124 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9125 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9126 * elf/dl-minimal.c: Define __libc_memalign.
9127 * elf/dl-support.c: Remove _dl_initimage_list. Add
9128 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9130 * include/stdlib.h: Declare __libc_memalign.
9132 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9133 * elf/tst-tls4.c: New file.
9134 * elf/tst-tls5.c: New file.
9135 * elf/tst-tlsmod2.c: New file.
9137 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9139 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9141 * elf/tst-tls1.c: Use test-skeleton.c.
9142 * elf/tst-tls2.c: Likewise.
9143 * elf/tst-tls3.c: Likewise.
9145 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9147 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9149 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9151 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9153 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9155 * elf/tst-tls3.c: New file.
9156 * elf/tst-tlsmod1.c: New file.
9157 * elf/Makefile: Add rules to build and run tst-tls3.
9159 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9160 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9163 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9165 * po/fr.po: Update from translation team.
9167 * elf/tls-macros.h: Add alternative macros for use in PIC.
9169 * elf/dl-lookup.c: Include <tls.h>.
9170 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9172 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9173 required by passing pointer to last element of the list.
9175 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9176 l_tls_initimage to a place where it actually is performed.
9178 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9179 after globfree() calls.
9181 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9182 (openaux): Pass open_mode as new last argument to _dl_map_object.
9183 (_dl_map_object_deps): Add new argument open_mode. Initialize
9184 open_mode element of args variable with it.
9185 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9186 _dl_map_object_deps.
9187 * elf/rtld.c (dl_main): Add zero as last parameter to
9188 _dl_map_object_deps call.
9189 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9190 * elf/nodlopen2.c: New file.
9191 * elf/nodlopenmod2.c: New file.
9192 * elf/Makefile: Add rules to build and run nodlopen2.
9194 * elf/tst-tls1.c: Move TLS helper macros to...
9195 * elf/tls-macros.h: ...here. New file.
9196 * elf/tst-tls2.c: New file.
9197 * elf/Makefile (tests): Add tst-tls2.
9198 (distribute): Add tls-macros.h.
9200 * po/sv.po: Update from translation team.
9202 * elf/tst-tls1.c (main): Add complete set of tests. Split
9203 architecture specific definitions from the actual test code.
9205 * po/tr.po: Update from translation team.
9207 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9209 * elf/Makefile (tests): Add tst-tls1.
9210 * elf/tst-tls1.c: New file.
9212 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9213 alignment of TCB for now.
9215 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9216 initialization image for the application itself.
9218 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9219 loop to initialize TLS block.
9221 2002-02-08 Richard Henderson <rth@redhat.com>
9223 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9224 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9226 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9228 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9230 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9232 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9234 * po/ca.po: Update from translation team.
9235 * po/sk.po: Likewise.
9237 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9238 (dl_main): Move dtv/static TLS handling before relocation.
9239 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9240 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9241 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9242 so far uses TLS initialize GL(dl_tls_static_size) and
9243 GL(dl_tls_static_align) to account for the TCB.
9244 (_dl_allocate_tls): New function.
9245 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9246 _dl_initial_dtv_malloced.
9248 * configure.in: Test for __builtin_memset more realistically.
9250 * csu/version.c (banner): If TLS support is available say so.
9252 2002-02-04 H.J. Lu <hjl@gnu.org>
9254 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9256 (__dl_runtime_resolve): Likewise.
9258 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9261 2001-11-15 H.J. Lu <hjl@gnu.org>
9263 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9264 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9266 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9268 2002-02-07 H.J. Lu <hjl@gnu.org>
9270 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9272 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9275 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9277 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9279 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9280 ___tls_get_addr_internal.
9281 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9283 * po/ko.po: Update from translation team.
9285 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9287 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9288 attribute, change __pad{1,2} type to unsigned int.
9289 (struct stat64): Remove packed attribute.
9291 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9293 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9295 2002-02-07 Andreas Schwab <schwab@suse.de>
9297 * configure.in: Fix check for -zcombreloc.
9299 2002-02-06 H.J. Lu <hjl@gnu.org>
9301 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9302 * configure.in: Check if __builtin_memset really works.
9303 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9304 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9306 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9308 * io/bug-ftw3.c (main): Don't try the test if root.
9310 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9312 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9314 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9315 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9316 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9318 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9319 a weak alias for __clone.
9320 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9321 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9322 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9323 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9324 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9325 a weak alias for __mmap64.
9327 2002-02-05 H.J. Lu <hjl@gnu.org>
9329 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9330 (atomic_add): Likewise.
9331 (compare_and_swap): Likewise.
9332 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9334 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9336 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9338 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9339 alignment of the TCB and store total size and alignment of static
9340 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9341 tls_index is a typedef.
9342 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9343 _dl_tls_static_align.
9344 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9345 * elf/dl-support.c: Define _dl_tls_static_size and
9346 _dl_tls_static_align.
9348 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9350 * configure.in: Add --without-tls option.
9351 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9352 --without-tls is given.
9354 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9356 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9358 2002-02-06 Roland McGrath <roland@frob.com>
9360 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9361 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9363 * scripts/versions.awk: Improve error message for missing version.
9364 Each version inherits from the last one only if they have the same
9365 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9366 but not GLIBC_x and FOO_y.
9368 * scripts/firstversions.awk: Handle libraries that don't have each
9369 particular version named in the third column of shlib-versions.
9371 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9373 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9375 * Versions.def [ld]: Add GLIBC_2.3.
9376 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9377 * elf/Makefile (dl-routines): Add dl-tls.
9378 (distribute): Add dl-tls.h.
9379 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9380 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9381 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9382 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9383 along with the other info in the link map. Change queueing of init
9384 images for double linked list. Use _dl_next_tls_modid to compute
9386 * elf/rtld.c (_dl_start_final): Store alignment requirement
9387 along with the other info in rtld map and executable map.
9388 (dl_main): Add ld.so to the init image list if necessary. Compute
9389 final module ID with _dl_next_tls_modid.
9390 * include/link.h (struct link_map): Add l_tls_previmage and
9392 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9393 * sysdeps/i386/elf/Versions: New file.
9394 * sysdeps/generic/dl-tls.c: New file.
9395 * sysdeps/generic/dl-tls.h: New file.
9396 * sysdeps/i386/dl-tls.h: New file.
9398 2002-02-06 Roland McGrath <roland@frob.com>
9400 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9401 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9403 2002-01-05 Roland McGrath <roland@frob.com>
9405 * sysdeps/mach/configure.in: New file.
9406 * sysdeps/mach/configure: New generated file.
9408 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9409 It has never been used by anything.
9411 2002-02-06 H.J. Lu <hjl@gnu.org>
9413 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9416 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9418 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9419 attribute((packed)) to counter stupid people misusing gcc options.
9420 (struct stat64): Likewise.
9422 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9424 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9425 the variables which are used as booleans.
9427 2002-02-06 Andreas Jaeger <aj@suse.de>
9429 * include/libc-symbols.h (INTUSE): Renamed from INT.
9430 * elf/dl-deps.c: Change users.
9431 * sysdeps/generic/dl-sysdep.c: Likewise.
9432 * sysdeps/generic/dl-cache.c: Likewise.
9433 * elf/dl-reloc.c: Likewise.
9434 * elf/rtld.c: Likewise.
9435 * elf/dl-version.c: Likewise.
9436 * elf/dl-load.c: Likewise.
9437 * elf/dl-dst.h: Likewise.
9438 * elf/dl-init.c: Likewise.
9439 * elf/dl-error.c: Likewise.
9440 * elf/dl-fini.c: Likewise.
9441 * elf/dl-runtime.c: Likewise.
9442 * elf/do-lookup.h: Likewise.
9444 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9446 * stdio-common/_itowa.h: Likewise.
9448 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9450 * elf/dl-minimal.c: Define _itoa_lower_digits.
9452 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9455 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9456 loading modules with the DF_STATIC_TLS flag set.
9457 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9459 * include/link.h (struct link_map): Add l_flags field.
9460 * elf/elf.h (DF_STATIC_TLS): New definition.
9462 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9463 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9465 * elf/rtld.c (process_dl_debug): Correct printing help message.
9466 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9469 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9470 definition and pass &errno in use of this variable.
9471 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9473 2002-02-04 Andreas Schwab <schwab@suse.de>
9475 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9476 * locale/programs/charmap-dir.c: Wrap calls that output messages
9477 with WITH_CUR_LOCALE. Include "localedef.h" first.
9478 * locale/programs/charmap.c: Likewise.
9479 * locale/programs/ld-address.c: Likewise.
9480 * locale/programs/ld-collate.c: Likewise.
9481 * locale/programs/ld-ctype.c: Likewise.
9482 * locale/programs/ld-identification.c: Likewise.
9483 * locale/programs/ld-measurement.c: Likewise.
9484 * locale/programs/ld-messages.c: Likewise.
9485 * locale/programs/ld-monetary.c: Likewise.
9486 * locale/programs/ld-name.c: Likewise.
9487 * locale/programs/ld-numeric.c: Likewise.
9488 * locale/programs/ld-paper.c: Likewise.
9489 * locale/programs/ld-telephone.c: Likewise.
9490 * locale/programs/ld-time.c: Likewise.
9491 * locale/programs/linereader.c: Likewise.
9492 * locale/programs/linereader.h: Likewise.
9493 * locale/programs/localedef.c: Likewise.
9494 * locale/programs/locfile.c: Likewise.
9495 * locale/programs/repertoire.c: Likewise.
9497 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9499 * elf/rtld.c (_dl_start_final): Determine load address to locate
9500 ehdr with GL(dl_rtld_map).l_map_start.
9502 * po/ca.po: Update from translation team.
9504 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9505 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9507 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9509 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9511 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9513 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9514 * include/link.h (struct link_map): Add various members for TLS
9516 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9517 _rtld_tlsoffset, add _dl_initimage_list.
9518 * sysdeps/i386/dl-lookupcfg.h: New file.
9519 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9520 TLS relocation. When using TLS we now use RESOLVE_MAP.
9521 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9524 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9527 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9528 thread-pointer as soon as possible.
9529 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9530 elements in rtld_global.
9531 * sysdeps/generic/tls.h: New file.
9532 * elf/Makefile (distribute): Add tls.h.
9533 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9534 relocations. Not complete yet.
9536 * resolv/resolv.h: Allow user to define __need_res_state and only
9537 define __res_start structure then.
9538 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9540 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9541 dl_cpuclock_offset initialization to _dl_start_final.
9542 (_dl_show_auxv): Avoid unnecessary sign extension.
9543 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9545 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9547 * config.h.in: Add HAVE_TLS_SUPPORT.
9548 * sysdeps/i386/elf/configure.in: New file.
9550 2002-02-03 Andreas Schwab <schwab@suse.de>
9552 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9553 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9555 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9557 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9558 alloca if the memory reqirements are too high.
9560 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9562 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9563 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9564 the former is available anyway and speed isn't important here.
9565 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9566 * elf/dl-version.c (match_symbol): Likewise.
9567 (_dl_check_map_versions): Likewise.
9568 * elf/rtld.c (process_envvars): Likewise.
9569 (print_statistics): Likewise.
9570 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9571 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9572 bases. Add assert to catch uses of unimplemented features.
9573 (__strsep): Add assert to catch uses of unimplemented features.
9574 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9575 and avoid inline optimization.
9576 * elf/rtld.c (process_envvars): Likewise.
9577 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9578 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9579 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9581 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9583 * stdio-common/_itoa.h: Minor simplifications of the code.
9584 * stdio-common/_itoa.c: Likewise.
9586 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9587 instead of _dl_printf for debugging info output.
9589 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9590 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9592 2002-02-01 H.J. Lu <hjl@gnu.org>
9594 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9595 (atomic_add): Likewise.
9596 (compare_and_swap): Return 0 only when failed to compare. Use
9599 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9602 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9604 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9606 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9608 * elf/dl-minimal.c (__strsep): New minimal implementation.
9610 2002-02-02 Paul Eggert <eggert@twinsun.com>
9612 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9613 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9614 with tm_isdst > 0 when the requested time falls within a
9615 spring-forward gap [PR libc/2894].
9617 2002-02-03 Andreas Schwab <schwab@suse.de>
9619 * stdio-common/tst-rndseek.c: Increase timeout.
9621 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9623 Change ld.so to not use functions which are exported. One cannot
9624 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9626 * include/libc-symbols.h: Define INT and INTDEF.
9627 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9628 _dl_signal_error_internal, _dl_map_object_internal,
9629 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9630 _dl_lookup_versioned_symbol_internal,
9631 _dl_relocate_object_internal, _dl_debug_state_internal,
9632 _dl_start_profile_internal, and _dl_unload_cache_internal.
9633 * include/dlfcn.h: Declare _dl_catch_error_internal.
9634 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9635 above. Add INTDEF to function definitions.
9636 * elf/dl-debug.c: Likewise.
9637 * elf/dl-deps.c: Likewise.
9638 * elf/dl-dst.h: Likewise.
9639 * elf/dl-error.c: Likewise.
9640 * elf/dl-fini.c: Likewise.
9641 * elf/dl-init.c: Likewise.
9642 * elf/dl-load.c: Likewise.
9643 * elf/dl-lookup.c: Likewise.
9644 * elf/dl-misc.c: Likewise.
9645 * elf/dl-open.c: Likewise.
9646 * elf/dl-profile.c: Likewise.
9647 * elf/dl-reloc.c: Likewise.
9648 * elf/dl-runtime.c: Likewise.
9649 * elf/dl-version.c: Likewise.
9650 * elf/do-lookup.h: Likewise.
9651 * sysdeps/generic/dl-cache.c: Likewise.
9652 * sysdeps/generic/dl-sysdep.c: Likewise.
9653 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9654 instead of _dl_init.
9655 * sysdeps/arm/dl-machine.h: Likewise.
9656 * sysdeps/cris/dl-machine.h: Likewise.
9657 * sysdeps/hppa/dl-machine.h: Likewise.
9658 * sysdeps/i386/dl-machine.h: Likewise.
9659 * sysdeps/ia64/dl-machine.h: Likewise.
9660 * sysdeps/m68k/dl-machine.h: Likewise.
9661 * sysdeps/mips/dl-machine.h: Likewise.
9662 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9663 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9664 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9665 * sysdeps/sh/dl-machine.h: Likewise.
9666 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9667 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9668 * sysdeps/x86_64/dl-machine.h: Likewise.
9669 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9671 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9672 and _dl_debug_initialize.
9674 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9676 * elf/rtld.c (dl_main): Avoid strrchr.
9677 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9678 result of readlink. Search from the back for '/'.
9680 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9681 strncpy if possible.
9683 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9685 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9686 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9687 strspn, and strcspn.
9688 (process_envvars): Don't use strcspn.
9690 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9691 (_dl_dst_substitute): Likewise.
9693 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9695 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9696 code which is never used when relocating ld.so itself.
9698 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9699 starting ld.so itself. Move l_addr variable initialization closer
9701 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9703 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9705 * Versions.def (libc): Add GLIBC_PRIVATE.
9706 (libdb, libnss_db, libdb1): Remove.
9707 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9708 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9709 (libpthread): Add GLIBC_PRIVATE.
9710 (libresolv): Likewise, remove GLIBC_2.1.
9711 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9712 GLIBC_2.2.3, GLIBC_2.3.
9713 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9714 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9715 _dl_sym, _dl_vsym): Likewise.
9716 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9717 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9718 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9719 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9720 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9721 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9722 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9723 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9725 (_dl_object_relocation_scope): Remove.
9726 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9727 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9728 __gconv_cache): Move to GLIBC_PRIVATE.
9729 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9730 __internal_setnetgrent): Likewise.
9731 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9732 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9733 * locale/Versions (__collate_element_hash, __collate_element_strings,
9734 __collate_symbol_classes, __collate_symbol_hash,
9735 __collate_symbol_strings, _nl_current_LC_COLLATE,
9736 _nl_current_LC_CTYPE): Likewise.
9737 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9738 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9739 (libnss_nis, libnss_nisplus): Likewise.
9740 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9741 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9742 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9743 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9744 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9745 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9746 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9747 __ns_get16, __ns_samename): Likewise.
9748 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9749 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9751 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9752 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9753 __libc_connect): Likewise.
9754 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9756 * stdlib/Versions (__libc_system): Likewise.
9757 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9758 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9759 * sysdeps/ia64/fpu/Versions: Likewise.
9760 * sysdeps/ia64/Versions: Likewise.
9761 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9762 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9764 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9765 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9766 __libc_sigaction): Likewise.
9767 * termios/Versions (__libc_tcdrain): Likewise.
9769 * misc/sys/cdefs (__attribute_noinline__): Define.
9770 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9771 __attribute_noinline__.
9773 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9774 * elf/dl-xstat64.c: New file.
9775 * elf/dl-fxstat64.c: New file.
9776 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9777 don't export __fxstat64 at multiple versions.
9778 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9779 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9781 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9783 * locale/program/ld-collate.c (collate_finish): Assign a wide
9784 char collation sequence value to multi character collating
9785 elements, and avoid over writing by non-character elements.
9787 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9789 * elf/Makefile (distribute): Add dl-procinfo.c.
9790 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9791 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9793 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9795 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9797 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9798 _rtld_global struct.
9799 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9800 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9801 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9802 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9803 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9804 _dl_fpu_control_set): Remove unused externs.
9805 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9806 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9807 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9808 related variables in _rtld_global struct.
9809 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9810 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9813 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9815 * sysdeps/generic/dl-procinfo.c: New file.
9817 2002-02-01 Andreas Schwab <schwab@suse.de>
9819 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9821 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9823 * elf/rtld.c (_dl_start): Mark as internal_function.
9824 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9826 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9827 General pretty printing.
9829 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9831 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9832 * elf/dl-reloc.c: Pretty printing.
9833 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9834 procinfo-related variables in rtld_global struct.
9835 * elf/dl-support.c: Likewise.
9836 * elf/rtld.c: Likewise.
9837 * sysdeps/i386/i686/Makefile: Likewise.
9838 * sysdeps/i386/i686/hp-timing.c: Likewise.
9839 * sysdeps/i386/i686/hp-timing.h: Likewise.
9840 * sysdeps/ia64/Makefile: Likewise.
9841 * sysdeps/ia64/hp-timing.c: Likewise.
9842 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9843 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9844 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9845 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9846 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9847 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9848 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9849 * sysdeps/x86_64/Makefile: Likewise.
9851 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9852 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9853 _dl_debug_fd to rtld_global.
9854 * elf/Versions: Likewise.
9855 * elf/dl-close.c: Likewise.
9856 * elf/dl-iteratephdr.c: Likewise.
9857 * elf/dl-lookup.c: Likewise.
9858 * elf/dl-misc.c: Likewise.
9859 * elf/dl-open.c: Likewise.
9860 * elf/dl-support.c: Likewise.
9861 * elf/do-lookup.h: Likewise.
9862 * elf/rtld.c: Likewise.
9863 * sysdeps/generic/dl-cache.c: Likewise.
9864 * sysdeps/generic/dl-sysdep.c: Likewise.
9865 * sysdeps/ia64/Versions: Likewise.
9866 * sysdeps/unix/clock_gettime.c: Likewise.
9867 * sysdeps/unix/clock_settime.c: Likewise.
9868 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9869 * sysdeps/sparc/Versions: Removed.
9870 * sysdeps/i386/i686/Versions : Removed.
9871 * sysdeps/x86_64/Versions: Removed.
9872 * configure.in: Define HAVE_PROTECTED if .protected is available.
9873 * config.h.in: Add entry for HAVE_PROTECTED.
9875 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9877 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9878 code in struct _rtld_global. Export this struct, remove all
9879 exports for the signal variables.
9880 * sysdeps/arm/dl-machine: Likewise.
9881 * sysdeps/generic/dl-origin: Likewise.
9882 * sysdeps/generic/dl-sysdep: Likewise.
9883 * sysdeps/generic/dl-cache: Likewise.
9884 * sysdeps/hppa/dl-fptr: Likewise.
9885 * sysdeps/hppa/dl-machine: Likewise.
9886 * sysdeps/cris/dl-machine: Likewise.
9887 * sysdeps/i386/dl-machine: Likewise.
9888 * sysdeps/ia64/dl-machine: Likewise.
9889 * sysdeps/m68k/dl-machine: Likewise.
9890 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9891 * sysdeps/mips/mips64/dl-machine: Likewise.
9892 * sysdeps/mips/dl-machine: Likewise.
9893 * sysdeps/powerpc/elf/libc-start: Likewise.
9894 * sysdeps/powerpc/dl-machine: Likewise.
9895 * sysdeps/powerpc/dl-start: Likewise.
9896 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9897 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9898 * sysdeps/sh/dl-machine: Likewise.
9899 * sysdeps/s390/s390-32/dl-machine: Likewise.
9900 * sysdeps/s390/s390-64/dl-machine: Likewise.
9901 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9902 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9903 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9904 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9905 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9906 * sysdeps/x86_64/dl-machine: Likewise.
9908 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9910 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9913 2002-01-31 Andreas Schwab <schwab@suse.de>
9915 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9917 2002-01-31 Andreas Schwab <schwab@suse.de>
9919 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9920 reference to _dl_pagesize.
9922 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9924 * Versions.def [ld]: Add GLIBC_2.3.
9925 * elf/dl-addr.c: Move global variables for SHARED code in struct
9926 _rtld_global. Export this struct, remove all exports for the
9928 * elf/dl-close.c: Likewise.
9929 * elf/dl-conflict.c: Likewise.
9930 * elf/dl-debug.c: Likewise.
9931 * elf/dl-deps.c: Likewise.
9932 * elf/dl-dst.h: Likewise.
9933 * elf/dl-error.c: Likewise.
9934 * elf/dl-fini.c: Likewise.
9935 * elf/dl-init.c: Likewise.
9936 * elf/dl-iteratephdr.c: Likewise.
9937 * elf/dl-libc.c: Likewise.
9938 * elf/dl-load.c: Likewise.
9939 * elf/dl-lookup.c: Likewise.
9940 * elf/dl-minimal.c: Likewise.
9941 * elf/dl-object.c: Likewise.
9942 * elf/dl-open.c: Likewise.
9943 * elf/dl-profile.c: Likewise.
9944 * elf/dl-profstub.c: Likewise.
9945 * elf/dl-reloc.c: Likewise.
9946 * elf/dl-runtime.c: Likewise.
9947 * elf/dl-support.c: Likewise.
9948 * elf/dl-sym.c: Likewise.
9949 * elf/dl-version.c: Likewise.
9950 * elf/do-lookup.h: Likewise.
9951 * elf/do-rel.h: Likewise.
9952 * elf/dynamic-link.h: Likewise.
9953 * elf/rtld.c: Likewise.
9954 * sysdeps/generic/dl-cache.c: Likewise.
9955 * sysdeps/generic/dl-sysdep.c: Likewise.
9956 * sysdeps/generic/ldsodefs.h: Likewise.
9957 * sysdeps/generic/libc-start.c: Likewise.
9958 * sysdeps/i386/dl-machine.h: Likewise.
9959 * sysdeps/ia64/dl-fptr.c: Likewise.
9960 * sysdeps/ia64/dl-machine.h: Likewise.
9961 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
9962 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9963 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
9964 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
9965 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
9966 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9967 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
9968 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
9970 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9972 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
9974 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
9976 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
9978 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
9980 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
9982 2002-01-29 Ben Collins <bcollins@debian.org>
9984 * string/bits/string2.h (__mempcpy): Protect size arg for
9985 addition when using __builtin_memcpy.
9987 2002-01-29 Ulrich Drepper <drepper@redhat.com>
9989 * stdlib/Makefile (tests): Add tst-qsort.
9990 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
9992 * manual/signal.texi (Process Signal Mask): Document that
9993 pthread_sigmask, not sigprocmask, must be used in MT programs.
9994 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
9996 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
9998 * misc/Makefile (tests): Add tst-hsearch.
9999 * misc/tst-hsearch.c: New file.
10001 2002-01-18 Wolfram Gloger <wg@malloc.de>
10003 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10004 * malloc/malloc.h: Likewise.
10005 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10006 * malloc/arena.c: New file.
10007 * malloc/hooks.c: New file.
10008 * malloc/tst-mallocstate.c: New file.
10009 * malloc/Makefile: Add new testcase tst-mallocstate.
10010 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10012 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10014 * stdlib/msort.c: Remove last patch. The optimization violates the
10015 same rule which qsort.c had problems with.
10017 2002-01-27 Paul Eggert <eggert@twinsun.com>
10019 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10020 to a pivot element that lies outside the array to be sorted, as
10021 ISO C99 requires that the comparison function be called only with
10022 addresses of array elements [PR libc/2880].
10024 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10026 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10027 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10029 * timezone/asia: Update from tzdata2002b.
10030 * timezone/australasia: Likewise.
10031 * timezone/backward: Likewise.
10032 * timezone/europe: Likewise.
10033 * timezone/leapseconds: Likewise.
10034 * timezone/iso3166.tab: Likewise.
10035 * timezone/zone.tab: Likewise.
10037 2002-01-23 Richard Henderson <rth@redhat.com>
10039 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10041 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10043 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10044 this element [PR libc/2855].
10046 * string/strcoll.c: Handle zero-length arguments specially
10049 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10051 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10052 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10053 short lengths and constant src.
10054 (strcpy): Don't optimize for gcc 3.0+.
10055 (__stpcpy): For gcc 3.0+, don't use
10056 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10057 for short string literal src.
10059 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10061 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10064 2001-01-22 Paul Eggert <eggert@twinsun.com>
10066 * manual/llio.texi (Linked Channels, Cleaning Streams):
10067 Make it clearer that a just-opened input stream might need cleaning.
10069 2002-01-21 H.J. Lu <hjl@gnu.org>
10071 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10072 Don't use label at end of compound statement.
10074 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10076 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10077 Remove test for negative integer arg; sin_pi does it correctly.
10079 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10081 * nscd/Makefile (distribute): Filter out xmalloc.c.
10083 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10085 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10086 Set offset if read end wasn't the buffer end.
10087 (_IO_file_seekoff_mmap): New function.
10088 (_IO_file_xsgetn_mmap): New function.
10089 (_IO_file_jumps_mmap): Use the two new functions.
10090 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10092 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10093 _IO_file_underflow_mmap.
10094 * libio/iofopen.c: Don't position file descriptor at end of file.
10095 * libio/tst-widetext.c: Improve error messages.
10096 * stdio-common/tst-rndseek.c: Likewise.
10098 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10100 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10101 end of enum for !_GNU_SOURCE.
10102 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10103 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10104 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10105 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10106 values unless _GNU_SOURCE.
10108 * iconvdata/tcvn5712-1.c: Minor cleanups.
10110 2002-01-18 Andreas Schwab <schwab@suse.de>
10112 * sysdeps/unix/sysv/linux/configure.in
10113 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10115 2002-01-16 Roger Sayle <roger@eyesopen.com>
10117 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10118 more efficient "Towers of Hanoi" mergesort.
10119 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10120 for generic, sizeof(int) and sizeof(long) variants respectively.
10122 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10124 * manual/syslog.texi (openlog): Describe possible problems with
10126 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10128 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10129 * nscd/connections.c (begin_drop_privileges): New function.
10130 (finish_drop_privileges): New function.
10131 (nscd_init): Call the new functions which also install all groups
10132 for the server user.
10133 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10134 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10136 2002-01-17 H.J. Lu <hjl@gnu.org>
10138 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10139 `const' from `got'.
10141 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10143 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10144 instructions for pointer operations.
10145 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10147 2002-01-17 Andreas Jaeger <aj@suse.de>
10149 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10150 __uint128_t build-in.
10152 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10153 PowerPC, sync with 2.2 branch.
10155 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10157 * posix/getconf.c: Update copyright year.
10158 * nss/getent.c: Likewise.
10159 * nscd/nscd_nischeck.c: Likewise.
10160 * iconv/iconvconfig.c: Likewise.
10161 * iconv/iconv_prog.c: Likewise.
10162 * elf/ldconfig.c: Likewise.
10163 * catgets/gencat.c: Likewise.
10164 * csu/version.c: Likewise.
10165 * elf/ldd.bash.in: Likewise.
10166 * elf/sprof.c (print_version): Likewise.
10167 * locale/programs/locale.c: Likewise.
10168 * locale/programs/localedef.c: Likewise.
10169 * nscd/nscd.c (print_version): Likewise.
10170 * debug/xtrace.sh: Likewise.
10171 * malloc/memusage.sh: Likewise.
10172 * malloc/mtrace.pl: Likewise.
10174 2002-01-16 Andreas Schwab <schwab@suse.de>
10176 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10177 reliably remove "-ia64" from rtld name.
10179 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10181 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10182 Patch by Yu Shao <yshao@redhat.com>.
10184 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10186 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10187 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10188 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10190 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10192 * sysdeps/s390/fpu/libm-test-ulps: Update.
10194 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10196 * elf/elf.h: Update x86 relocations.
10198 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10200 * locale/programs/charmap.c (new_width): Check whether byte
10201 sequences for both ends of range have the same length.
10203 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10205 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10207 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10209 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10211 (__full_ieee754_sqrt): Add __attribute_used__.
10213 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10215 * sysdeps/generic/group_member.c (__group_member): Also check
10216 groups[0] [PR libc/2781].
10218 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10220 * Makefile (distribute): Add scripts/cpp.
10221 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10222 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10223 unwind-dw2-fde.h, and dwarf2.h.
10224 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10225 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10226 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10227 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10229 2002-01-07 Roland McGrath <roland@frob.com>
10231 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10232 volatile on type of ARGC so the compiler doesn't get clever.
10234 2002-01-07 Andreas Jaeger <aj@suse.de>
10236 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10237 * sysdeps/i386/bits/byteswap.h: Likewise.
10238 * sysdeps/ia64/bits/byteswap.h: Likewise.
10239 * sysdeps/m68k/bits/byteswap.h: Likewise.
10240 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10241 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10243 2002-01-02 Bruno Haible <bruno@clisp.org>
10245 * intl/plural.y: Fix %expect count.
10247 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10249 * elf/Makefile (routines, shared-only-routines): Add
10250 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10251 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10252 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10253 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10254 Optimize if .eh_frame section contains no FDEs.
10255 (__register_frame, __deregister_frame_info_bases,
10256 __deregister_frame): Likewise.
10257 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10258 DW_CFA_restore handling.
10260 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10262 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10264 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10265 for x < 0.25 and restore original range reduction method.
10266 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10268 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10270 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10271 (_IO_file_close_mmap): New function.
10272 (_IO_file_jumps_mmap): New variable.
10273 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10274 trying to convert rest of byte buffer.
10275 (_IO_wfile_underflow_mmap): New function.
10276 (_IO_wfile_jumps_mmap): New variable.
10277 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10278 (__fopen_internal): New function. Split out from _IO_new_fopen.
10279 (_IO_new_fopen): Call __fopen_internal.
10280 * libio/iofopen64.c: Just call __fopen_internal.
10281 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10283 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10284 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10285 _IO_file_close_mmap.
10287 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10288 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10290 * stdio-common/Makefile (tests): Add tst-rndseek.
10291 * stdio-common/tst-rndseek.c: New file.
10293 2002-01-05 Roland McGrath <roland@frob.com>
10295 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10296 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10297 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10298 * sysdeps/mach/hurd/configure: Regenerated.
10300 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10302 * elf/elf.h: Add more TLS definitions.
10304 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10306 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10308 2002-01-02 Roland McGrath <roland@frob.com>
10310 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10311 __sigisemptyset. Don't use MASK uninitialized.
10313 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10314 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10315 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10316 __sigdelset, __sigaddset, __sigorset.
10318 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10319 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10321 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10322 _hurd_ports is null.
10324 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10325 for old CMU and new OSF Mach interface flavors.
10326 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10327 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10329 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10331 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10332 Pass extra arguments to task_create for OSF variant.
10333 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10335 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10336 conditional on [HAVE_AUX_VECTOR].
10338 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10339 mach_msg_timeout_t as type of final argument.
10341 * hurd/privports.c (__get_privileged_ports):
10342 Change host_priv_t to mach_port_t in argument type.
10343 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10346 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10347 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10348 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10349 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10350 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10351 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10353 2002-01-01 Roland McGrath <roland@frob.com>
10355 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10357 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10359 * include/stdlib.h: Define inlines for the _l variants of the strto*
10362 2002-01-01 Roland McGrath <roland@frob.com>
10364 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10366 * mach/Machrules (MIG): Set CPP as well as CC.
10368 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10370 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10371 locale to parse /proc/loadavg [PR libc/2760].
10373 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10375 * elf/dl-conflict.c: Include sys/param.h.
10376 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10377 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10379 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10380 literals to avoid warnings.
10382 2001-12-31 Andreas Jaeger <aj@suse.de>
10384 * configure.in: Don't check for gsed since we do not use it anywhere.
10386 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10388 * io/fts.c: Update from BSD to fix memory leaks.
10390 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10392 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10393 * elf/chroot_canon.c: Likewise.
10394 * elf/dl-object.c: Likewise.
10395 * iconv/iconv_charmap.c: Likewise.
10396 * iconv/iconv_prog.c: Likewise.
10397 * libio/iogetdelim.c: Likewise.
10398 * locale/lc-time.c: Likewise.
10399 * stdlib/canonicalize.c: Likewise.
10400 * sunrpc/svc.c: Likewise.
10401 * sysdeps/generic/glob.c: Likewise.
10403 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10405 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10406 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10407 remove high order bit from the program counter.
10408 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10410 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10412 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10413 unnecessary code and add missing reloc types.
10414 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10415 case for reloc type R_390_NONE.
10417 2001-12-28 Andreas Jaeger <aj@suse.de>
10419 * io/bug-ftw3.c: Include string.h for prototypes.
10421 * crypt/md5test.c (main): Remove unused variable.
10423 * dlfcn/modstatic.c: Add prototype to avoid warning.
10425 2001-12-26 Roland McGrath <roland@frob.com>
10427 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10428 check only (SS->pending & MASK) for the signal to return.
10429 From Jeroen Dekkers <jeroen@dekkers.cx>.
10431 2001-12-22 Roland McGrath <roland@frob.com>
10433 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10434 Use preprocessor #if conditionals instead of `if' to avoid
10435 warnings about divide by zero in dead code.
10437 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10438 _hurd_port_init, and __hurd_self_sigstate.
10440 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10442 2001-12-21 Andreas Jaeger <aj@suse.de>
10444 * elf/dblloadmod1.c: Add prototype to avoid warning.
10445 * elf/dblloadmod2.c: Likewise.
10446 * elf/dblloadmod3.c: Likewise.
10447 * elf/reldepmod5.c: Likewise.
10448 * elf/reldepmod6.c: Likewise.
10450 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10451 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10452 used on all architectures.
10454 * sunrpc/svc_tcp.c: Add noreturn attribute for
10455 svctcp_rendezvous_abort.
10456 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10458 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10461 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10463 * manual/llio.texi (aio_fsync): Fix a typo.
10464 Patch by Tammy Fox <tfox@redhat.com>.
10466 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10468 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10469 stack bias from child stack pointer before passing it to clone syscall.
10471 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10473 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10475 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10476 Reported by Thorsten Kukuk <kukuk@suse.de>.
10478 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10481 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10483 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10485 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10486 conforming: return EBADF if file descriptor is invalid and EINVAL
10487 if file descriptor is no valid tty.
10488 * login/tst-grantpt.c: New file.
10489 * login/Makefile (tests): Add tst-grantpt.
10491 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10493 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10494 different than implemented in last patch.
10495 * io/bug-ftw3.c: Adjust test for changed handling of
10496 inaccessibility of toplevel dir.
10498 2001-12-16 Roland McGrath <roland@frob.com>
10500 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10501 * grp/initgroups.c (internal_getgrouplist): Likewise.
10503 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10504 `default:' to silence new GCC warning.
10505 Rewrite cast of lvalue to silence new GCC warning.
10507 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10509 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10510 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10512 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10514 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10515 Patch by Stephen R. van den Berg.
10517 * crypt/md5.h: Define md5_uintptr.
10519 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10521 * libio/tst_swprintf.c (main): Add test for string argument with
10523 * stdio-common/Makefile (tests): Add tst-sprintf.
10524 * stdio-common/tst-sprintf.c: New file.
10526 2001-12-13 Andreas Schwab <schwab@suse.de>
10528 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10529 zero precision with wide character string format.
10531 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10533 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10534 but have a user supplied buffer, return the empty buffer, not NULL.
10536 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10538 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10539 Patch by Eric Sharkey <sharkey@netrics.com>.
10541 * crypt/md5test.c (main): Add test for multiple calls to
10542 __md5_process_bytes to itererate over input string.
10544 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10546 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10547 from __nis_findfastest. Take timeout value from parameter.
10548 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10549 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10550 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10552 2001-12-12 Andreas Jaeger <aj@suse.de>
10554 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10555 combreloc test so that it works in this case.
10557 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10559 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10561 * sysdeps/sh/Makefile: New file.
10562 * sysdeps/sh/_mcount.S: New file.
10563 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10564 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10566 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10568 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10569 limitation [PR libc/2564].
10571 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10573 * elf/Makefile (dl-routines): Add conflict.
10574 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10575 (ld.so): Add _begin local symbol.
10576 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10578 * elf/dl-deps.c (_dl_build_local_scope): New function.
10579 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10581 * elf/do-rel.h (VALIDX): Define.
10582 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10583 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10585 * elf/dl-conflict.c: New file.
10586 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10587 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10589 (_dl_lookup_symbol_skip): Likewise.
10590 (_dl_lookup_versioned_symbol): Likewise.
10591 (_dl_lookup_versioned_symbol_skip): Likewise.
10592 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10593 define to ElfW(Rel).
10594 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10595 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10597 Don't adjust address dynamic tags if l_addr is 0.
10598 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10599 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10600 (VALIDX, ADDRIDX): Define.
10601 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10602 (dl_main): Print library list for LD_TRACE_PRELINKING.
10603 If prelinking information can be used, skip relocating libraries and
10604 call _dl_resolve_conflicts instead.
10605 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10606 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10607 if LD_TRACE_PRELINKING.
10608 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10610 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10611 (DL_DEBUG_PRELINK): Define.
10612 (_dl_resolve_conflicts): Add prototype.
10614 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10615 .plt for prelinked libraries where prelinking info cannot be used.
10616 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10617 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10618 * sysdeps/arm/bits/link.h: New file.
10619 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10620 content of .got[1].
10621 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10622 (ELF_MACHINE_PLT_REL): Define.
10623 (elf_machine_rela, elf_machine_rela_relative): New functions.
10624 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10625 of adjusting it if prelinked and prelinking cannot be used.
10626 * sysdeps/i386/bits/link.h: New file.
10627 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10628 content of .got[1].
10629 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10630 (ELF_MACHINE_PLT_REL): Define.
10631 (elf_machine_rela, elf_machine_rela_relative): New functions.
10632 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10633 of adjusting it if prelinked and prelinking cannot be used.
10634 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10635 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10636 to find out map for R_PPC_JMP_SLOT relocs.
10637 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10638 (OPCODE_BA): Define.
10639 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10640 libraries where prelinking info cannot be used.
10641 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10642 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10643 (elf_machine_rela): Set value to 0 if relocating conflicts.
10644 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10645 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10646 (sparc64_fixup_plt): Fix a typo.
10647 (elf_machine_rela): Set value to 0 if relocating conflicts.
10648 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10649 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10650 libraries where prelinking info cannot be used.
10651 * sysdeps/sh/bits/link.h: New file.
10652 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10653 content of .got[1].
10654 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10655 of adjusting it if prelinked and prelinking cannot be used.
10656 * sysdeps/s390/s390-32/bits/link.h: New file.
10657 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10658 Save original content of .got[1].
10659 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10660 of adjusting it if prelinked and prelinking cannot be used.
10661 * sysdeps/s390/s390-64/bits/link.h: New file.
10662 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10663 Save original content of .got[1].
10664 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10665 of adjusting it if prelinked and prelinking cannot be used.
10666 * sysdeps/x86_64/bits/link.h: New file.
10667 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10668 Save original content of .got[1].
10669 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10670 of adjusting it if prelinked and prelinking cannot be used.
10672 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10674 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10675 where appropriate instead of numbers. Little optimizations.
10677 2001-12-10 Roland McGrath <roland@frob.com>
10679 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10682 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10683 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10685 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10686 Fix conditionals so this is set by default for stdio and not for libio.
10687 * sysdeps/mach/hurd/configure: Regenerated.
10689 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10691 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10693 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10695 * io/Makefile (tests): Add bug-ftw3.
10696 * io/bug-ftw3.c: New file.
10698 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10699 matches and GLOB_NOCHECK is set.
10700 * posix/globtest.sh: Correct expected result for NOCHECK test.
10702 * po/ca.po: Update from translation team.
10704 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10706 Implement transliteration of characters in strings of the locale
10708 * locale/programs/linereader.c: Adjust for additional parameter to
10710 (get_string): If character <Uxxxx> is not found try to transliterate
10712 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10713 lr_token. Add const to charmap parameter of all functions.
10714 (find_translit, find_translit2): New functions.
10715 * locale/programs/charmap.c: Adjust for additional parameter to
10717 * locale/programs/repertoire.c: Likewise.
10718 * locale/programs/linereader.h: Likewise.
10719 * locale/programs/ld-address.c: Likewise. Add const to charmap
10720 parameter of all functions.
10721 * locale/programs/ld-collate.c: Likewise.
10722 * locale/programs/ld-identification.c: Likewise.
10723 * locale/programs/ld-measurement.c: Likewise.
10724 * locale/programs/ld-messages.c: Likewise.
10725 * locale/programs/ld-monetary.c: Likewise.
10726 * locale/programs/ld-name.c: Likewise.
10727 * locale/programs/ld-numeric.c: Likewise.
10728 * locale/programs/ld-paper.c: Likewise.
10729 * locale/programs/ld-paper.c: Likewise.
10730 * locale/programs/ld-telephone.c: Likewise.
10731 * locale/programs/ld-time.c: Likewise.
10732 * locale/programs/locfile.c: Likewise.
10733 * locale/programs/localedef.c: Likewise.
10734 * locale/programs/localedef.h: Likewise.
10735 * locale/programs/locfile.h: Likewise. Add declaration for
10737 * locale/programs/simple-hash.c: Add const to first parameter of
10738 find_entry, iterate_table, and lookup.
10739 * locale/programs/simple-hash.h: Likewise.
10740 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10742 * include/locale.h: Define __LC_LAST.
10743 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10745 2001-12-07 Geoff Keating <geoffk@redhat.com>
10747 * sysdeps/powerpc/Dist: Update for recent FP changes.
10748 * sysdeps/powerpc/fpu/Dist: Likewise.
10750 2001-12-07 Andreas Schwab <schwab@suse.de>
10752 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10754 2001-12-06 Geoff Keating <geoffk@redhat.com>
10756 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10757 save/restore functions here.
10758 (libm-support): Don't define these functions here.
10759 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10761 * sysdeps/powerpc/fe_nomask.c: Move to...
10762 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10763 * sysdeps/powerpc/fprrest.S: Move to...
10764 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10765 * sysdeps/powerpc/fprsave.S: Move to...
10766 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10768 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10770 * sysdeps/unix/sysv/linux/opensock.c: New file.
10772 2001-12-06 Geoff Keating <geoffk@redhat.com>
10774 * config.make.in (with-fp): Define from configure.
10775 * configure.in: Substitute with_fp.
10776 * configure: Regenerate.
10777 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10778 specified, and don't change FPU environment.
10780 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10782 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10783 * assert/assert.c: Check result of __asprintf call and don't use
10784 string if it failed.
10785 * assert/assert-perr.c: Likewise.
10786 * inet/rcmd.c: Likewise.
10787 * locale/programs/localedef.c (main): Check result of
10788 construct_output_path and exit if it failed.
10789 (construct_output_path): Check result of asprintf and mkdir calls and
10790 fail if they failed.
10791 * posix/getopt.c: Check result of __asprintf calls and fail if
10793 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10795 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10797 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10799 * sysdeps/generic/strncase.c: Likewise.
10800 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10802 2001-12-05 Geoff Keating <geoffk@redhat.com>
10804 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10806 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10807 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10808 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10809 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10810 * sysdeps/powerpc/fclrexcpt.c: Move to...
10811 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10812 * sysdeps/powerpc/fpu_control.h: Move to...
10813 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10815 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10817 * iconvdata/ibm1129.h: Remove duplicate mappings.
10818 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10819 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10820 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10822 * timezone/zic.c: Fix handling of turnaround times.
10823 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10825 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10827 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10830 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10832 * posix/regex.c: For use outside glibc defined bounded pointer
10833 macros here. Patch by Jim Meyering <jim@meyering.net>.
10835 * iconvdata/Makefile (modules): Add TCVN5712-1.
10836 * iconvdata/TESTS: Add TCVN5712-1.
10837 * iconvdata/gconv-modules: Likewise.
10838 * iconvdata/tcvn5712-1.c: New file.
10839 * iconvdata/testdata/TCVN-5712: New file.
10840 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10842 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10844 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10846 2001-12-02 Roland McGrath <roland@frob.com>
10848 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10850 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10851 Reported by Jeff Bailey <jbailey@nisa.net>.
10853 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10854 Reported by Jeff Bailey <jbailey@nisa.net>.
10856 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10857 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10858 Reported by Jeff Bailey <jbailey@nisa.net>.
10860 2001-12-01 Roland McGrath <roland@frob.com>
10862 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10863 missing backslash in test arguments.
10864 * sysdeps/mach/hurd/configure: Regenerated.
10866 2001-11-26 Roland McGrath <roland@frob.com>
10868 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10869 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10871 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10873 * iconvdata/Makefile (modules): Add ARMSCII-8.
10874 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10875 * iconvdata/armscii-8.c: New file.
10877 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10879 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10880 don't match, fix {{a,b},c} globbing, clean up.
10881 Patch by Flavio Veloso <flaviovs@magnux.com>.
10882 * posix/globtest.sh: Add new tests.
10884 2001-11-29 Andreas Jaeger <aj@suse.de>
10886 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10887 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10889 * sysdeps/generic/abort.c: Include libioP.h for
10890 _IO_flush_all_lockp prototype.
10892 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10894 * posix/regex.h: Define __restrict_arr correctly.
10896 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10898 * iconvdata/ibm1163.c: New file.
10899 * iconvdata/ibm1163.h: New file.
10900 * iconvdata/ibm1164.c: New file.
10901 * iconvdata/ibm1164.h: New file.
10902 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10903 * iconvdata/Makefile: Likewise.
10904 * iconvdata/testdata/IBM1163: New file.
10905 * iconvdata/testdata/IBM1163..UTF8: New file.
10906 * iconvdata/testdata/IBM1164: New file.
10907 * iconvdata/testdata/IBM1164..UTF8: New file.
10908 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10910 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10911 * iconvdata/ibm1124.h: Likewise.
10912 * iconvdata/ibm1132.h: Likewise.
10913 * iconvdata/ibm1133.h: Likewise.
10914 * iconvdata/ibm1160.h: Likewise.
10915 * iconvdata/ibm1161.h: Likewise.
10916 * iconvdata/ibm1162.h: Likewise.
10917 * iconvdata/ibm856.h: Likewise.
10918 * iconvdata/ibm922.h: Likewise.
10919 * iconvdata/ibm930.h: Likewise.
10920 * iconvdata/ibm932.h: Likewise.
10921 * iconvdata/ibm933.h: Likewise.
10922 * iconvdata/ibm935.h: Likewise.
10923 * iconvdata/ibm937.h: Likewise.
10924 * iconvdata/ibm939.h: Likewise.
10925 * iconvdata/ibm943.h: Likewise.
10926 * iconvdata/ibm930.c: Pretty printing.
10927 * iconvdata/ibm937.c: Avoid access accross array boundary.
10929 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10930 the current locale's codeset.
10931 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10932 empty input string.
10933 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10934 and from-charset. Don't determine locale's charset here.
10936 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10937 as the old _IO_flush_all but lock only if parameter is nonzero.
10938 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10939 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10940 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10941 if libio is used [PR libc/2575].
10943 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10945 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10946 __signbitl): Only define for ISO C99.
10948 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10950 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10951 herrnop to NETDB_INTERNAL if we run out of buffer space.
10953 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10955 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10956 overflow test for platforms with signed char.
10957 Reported by Andrew Haley <aph@cambridge.redhat.com>.
10959 2001-11-28 Bruno Haible <bruno@clisp.org>
10961 * locale/programs/simple-hash.c (lookup_2): Remove function.
10962 (insert_entry_2): Call lookup instead of lookup_2.
10964 2001-03-04 Bruno Haible <bruno@clisp.org>
10966 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
10968 2001-10-31 Bruno Haible <bruno@clisp.org>
10970 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
10972 2001-03-21 Bruno Haible <bruno@clisp.org>
10974 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
10975 chokes on empty macro arguments.
10976 * intl/plural.y: Add #pragma for alloca on AIX 3.
10978 2001-11-27 Ulrich Drepper <drepper@redhat.com>
10980 * intl/dcigettext.c (guess_category_value): Only implement for
10981 glibc. Otherwise rely on function _nl_locale_name which isn't
10982 present in the glibc sources.
10984 2001-09-24 Bruno Haible <bruno@clisp.org>
10986 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
10987 transliteration when building on a glibc system but outside glibc.
10989 2001-09-22 Bruno Haible <bruno@clisp.org>
10991 * intl/plural-eval.c: New file, extracted from dcigettext.c.
10992 * intl/dcigettext.c (plural_eval): Remove function, moved to
10993 intl/plural-eval.c.
10994 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
10995 Include plural-eval.c.
10997 2001-09-22 Bruno Haible <bruno@clisp.org>
10999 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11000 don't start with a digit; nplurals must be positive.
11002 2001-09-02 Bruno Haible <bruno@clisp.org>
11004 * intl/plural-exp.h: New file, extracted from gettextP.h.
11005 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11006 * intl/gettextP.h (struct expression, struct parse_args,
11007 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11008 * intl/loadmsgcat.c: Include plural-exp.h.
11009 (PLURAL_PARSE): Move macro to plural-exp.h.
11010 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11012 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11013 EXTRACT_PLURAL_EXPRESSION.
11014 (_nl_unload_domain): Update.
11015 * intl/dcigettext.c: Include plural-exp.h.
11016 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11017 (FREE_EXPRESSION): Move macro to plural-exp.h.
11018 * intl/Makefile (routines): Add plural-exp.
11019 (distribute): Add plural-exp.h.
11021 2001-07-28 Bruno Haible <bruno@clisp.org>
11023 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11024 isdigit, tolower argument to 'unsigned char'.
11025 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11027 * intl/localealias.c (read_alias_file): Cast isspace argument to
11030 2001-10-20 Bruno Haible <bruno@clisp.org>
11032 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11034 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11035 with the variable 'index' in plural_lookup.
11036 * intl/l10nflist.c (strchr): Likewise.
11037 * intl/localealias.c (strchr): Likewise.
11039 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11040 * intl/bindtextdom.c: Likewise.
11041 * intl/dcigettext.c: Likewise.
11042 * intl/dgettext.c: Likewise.
11043 * intl/dngettext.c: Likewise.
11044 * intl/explodename.c: Likewise.
11045 * intl/finddomain.c: Likewise.
11046 * intl/gettext.c: Likewise.
11047 * intl/l10nflist.c: Likewise.
11048 * intl/loadmsgcat.c: Likewise.
11049 * intl/localealias.c: Likewise.
11050 * intl/ngettext.c: Likewise.
11051 * intl/textdomain.c: Likewise.
11052 * intl/gettext.h: Assume <limits.h> exists.
11054 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11056 * stdio-common/Makefile (tests): Add scanf11.
11057 * stdio-common/scanf11.c: New file.
11059 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11061 * version.h (RELEASE): Define as development.
11062 (VERSION): Set to 2.2.90.
11064 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11066 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11067 * nis/nss_nis/nis-grp.c: Likewise.
11068 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11070 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11071 * nis/nss_nis/nis-pwd.c: Likewise.
11072 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11074 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11075 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11076 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11078 * nscd/grpcache.c: Use strtoul instead of atol.
11079 * nscd/pwdcache.c: Likewise.
11080 * nss/getent.c: Likewise.
11082 2001-11-27 Paul Eggert <eggert@twinsun.com>
11084 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11085 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11087 2001-11-19 Bruno Haible <bruno@clisp.org>
11089 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11091 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11092 improves the quality of the hash function, especially for short
11095 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11097 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11098 are found call conv_error and not input_error [PR libc/2669].
11100 * math/bits/mathcalls.h: Mark ceil and floor as const.
11101 Reported by David Mosberger.
11103 2001-11-21 Jim Meyering <meyering@lucent.com>
11105 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11106 Define to be __-prefixed.
11107 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11109 2001-11-26 Andreas Jaeger <aj@suse.de>
11111 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11114 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11116 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11119 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11120 unused variables. Fix threshold for returning 1.0.
11122 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11125 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11126 remove unused variables.
11128 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11130 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11131 include local math header files.
11133 2001-11-22 Andreas Jaeger <aj@suse.de>
11135 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11138 2001-11-21 Andreas Jaeger <aj@suse.de>
11140 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11142 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11145 2001-11-15 Andreas Jaeger <aj@suse.de>
11147 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11148 compilers that support it.
11150 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11151 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11152 * stdlib/stdlib.h: Likewise.
11154 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11156 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11157 statement with gotos.
11158 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11160 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11162 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11164 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11166 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11168 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11169 H.J. Lu <hjl@gnu.org>
11171 * Versions.def (libc): Add GCC_3.0.
11172 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11173 if gcc supports this flag.
11174 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11175 (gcc3): Allow glibc to be compiled with gcc 3.x.
11176 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11177 * config.make.in (static-libgcc, unwind-find-fde): Add.
11178 * Makerules (build-shlib-helper, build-module-helper): Use it.
11179 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11180 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11182 (_fini): Call __deregister_frame_info_bases if
11183 __register_frame_info_bases was used to register.
11184 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11186 (__register_frame_info_bases, __register_frame_info_table_bases,
11187 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11188 * elf/Makefile (routines): Add unwind-dw2-fde.
11189 (shared-only-routines): Add unwind-dw2-fde.
11190 * sysdeps/alpha/gccframe.h: New file.
11191 * sysdeps/arm/gccframe.h: New file.
11192 * sysdeps/generic/framestate.c: New file.
11193 * sysdeps/generic/dwarf2.h: New file.
11194 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11195 * sysdeps/generic/unwind-dw2-fde.c: New file.
11196 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11197 * sysdeps/generic/unwind-dw2-fde.h: New file.
11198 * sysdeps/generic/unwind-dw2.c: New file.
11199 * sysdeps/generic/unwind-pe.h: New file.
11200 * sysdeps/generic/unwind.h: New file.
11201 * sysdeps/hppa/gccframe.h: New file.
11202 * sysdeps/i386/gccframe.h: New file.
11203 * sysdeps/m68k/gccframe.h: New file.
11204 * sysdeps/mips/gccframe.h: New file.
11205 * sysdeps/powerpc/gccframe.h: New file.
11206 * sysdeps/s390/gccframe.h: New file.
11207 * sysdeps/sh/gccframe.h: New file.
11208 * sysdeps/sparc/gccframe.h: New file.
11209 * sysdeps/vax/gccframe.h: New file.
11210 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11211 Set on all architectures except ia64.
11212 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11214 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11215 __deregister_frame_info): Move to elf/Versions.
11216 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11217 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11218 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11219 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11220 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11221 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11222 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11223 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11224 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11225 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11226 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11227 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11228 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11229 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11230 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11231 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11232 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11233 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11235 2001-11-15 Jeff Law <law@redhat.com>
11237 * posix/regex.c (uintptr_t): Do not provide a definition if the
11238 system provided one.
11240 2001-11-13 Roland McGrath <roland@frob.com>
11242 * stdio-common/tmpfile.c: Moved to ...
11243 * sysdeps/generic/tmpfile.c: ... here.
11244 * sysdeps/mach/hurd/tmpfile.c: New file.
11246 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11247 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11248 (fopenport): Define as weak alias.
11250 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11251 * libio/libioP.h: ... to here.
11253 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11255 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11256 program header twice. Construct list with the needed information.
11258 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11260 * po/ca.po: Update from translation team.
11262 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11263 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11264 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11265 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11267 2001-11-10 Andreas Jaeger <aj@suse.de>
11269 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11270 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11271 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11273 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11275 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11277 * elf/dl-load.c (is_dst): New function.
11278 (_dl_dst_count): Use is_dst to check for DST variable.
11279 (_dl_dst_substitute): Likewise.
11281 2001-11-09 Roland McGrath <roland@frob.com>
11283 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11284 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11285 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11286 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11287 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11288 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11289 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11290 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11291 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11292 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11293 * sysdeps/mach/hurd/powerpc/Dist: New file.
11295 * hurd/privports.c (__get_privileged_ports):
11296 Only contact the proc server if necessary for this call.
11297 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11298 Check error return for mach_port_mod_refs.
11300 2001-11-09 Andreas Schwab <schwab@suse.de>
11302 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11304 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11306 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11307 object is always the last in the list.
11308 (_dl_map_object_from_fd): Delete code to remove from object list
11309 when DF_1_NOOPEN is seen. This is done in lose.
11311 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11313 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11315 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11317 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11318 HWCAP_CHECK macro code.
11320 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11321 Now returns MAP_FAILED on error.
11322 * elf/rtld.c: Adjust caller.
11323 * sysdeps/generic/dl-cache.c: Likewise.
11324 * sysdeps/generic/ldsodefs.h: Adjust description.
11326 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11327 (_dl_check_map_versions): Likewise.
11329 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11331 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11332 _dl_signal_error directly, always use lose. Set fd to -1 after
11334 (lose): Don't call close if fd == -1.
11336 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11338 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11339 Also fix typo @code {mbsinit} to @code{mbsinit}.
11341 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11343 * elf/dl-profile.c: Replace state variable with simple flag named
11344 running. Remove commented-out code.
11346 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11347 (_dl_init_paths): Likewise.
11348 (_dl_map_object_from_fd): Likewise.
11349 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11351 2001-11-06 Roland McGrath <roland@frob.com>
11353 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11354 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11356 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11357 sysdeps/powerpc/elf/sysdep.h.
11358 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11360 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11362 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11364 (process_envvars): Some more optimizations.
11365 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11367 * elf/elf.h: Add dynamic tag definitions for prelinking.
11369 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11370 Rewrite code to remove environment varables for SUID binaries.
11371 Small optimization in LD_PROFILE handling.
11372 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11374 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11376 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11378 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11379 strings. Change type of second parameter.
11380 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11383 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11385 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11387 * manual/string.texi: Fix typos.
11388 * manual/examples/argp-ex2.c: Likewise.
11390 2001-11-05 Roland McGrath <roland@frob.com>
11392 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11393 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11394 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11395 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11396 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11397 here, put under [__ELF__].
11399 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11401 * manual/charset.texi: Extensive editing work.
11402 * manual/nss.texi: Likewise.
11403 Changes by Dennis Grace <dgrace@us.ibm.com>.
11405 2001-11-04 Roland McGrath <roland@frob.com>
11407 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11408 parameter to dir_mkfile.
11410 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11412 * string/bits/string2.h (__strndup): If n is smaller than len, set
11414 * string/tester.c (test_strndup): New function.
11417 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11419 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11421 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11422 * scripts/cpp: New file.
11424 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11425 for rtld_search_dirs content. Minor optimizations.
11427 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11429 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11430 avoiding unnecessary duplication.
11432 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11434 * elf/dl-load.c (_dl_map_object): If library was found using
11435 LD_LIBRARY_PATH, don't try RUNPATH list.
11437 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11439 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11440 Correct second argument of register_dump call.
11441 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11444 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11446 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11448 * iconvdata/TESTS: Likewise.
11449 * iconvdata/gconv-modules: Likewise.
11450 * iconvdata/ibm1132.c: New file.
11451 * iconvdata/ibm1132.h: New file.
11452 * iconvdata/ibm1133.c: New file.
11453 * iconvdata/ibm1133.h: New file.
11454 * iconvdata/ibm1162.c: New file.
11455 * iconvdata/ibm1162.h: New file.
11456 * iconvdata/testdata/IBM1132: New file.
11457 * iconvdata/testdata/IBM1132..UTF8: New file.
11458 * iconvdata/testdata/IBM1133: New file.
11459 * iconvdata/testdata/IBM1133..UTF8: New file.
11460 * iconvdata/testdata/IBM1162: New file.
11461 * iconvdata/testdata/IBM1162..UTF8: New file.
11462 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11464 * string/string.h: Fix typo in comment.
11465 * wcsmbs/wchar.h: Likewise.
11467 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11469 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11470 const in type of longopts parameter.
11472 2001-10-29 Andreas Jaeger <aj@suse.de>
11474 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11476 2001-10-29 Kevin Ryde <user42@zip.com.au>
11478 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11479 output, clarify `#' behaviour on 0.
11480 (Floating-Point Conversions): Clarify that %g only uses %e when
11481 the exponent would be greater than 1.
11483 2001-10-28 Roland McGrath <roland@frob.com>
11485 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11486 * sysdeps/mach/powerpc/machine-sp.h: New file.
11487 * sysdeps/mach/powerpc/sysdep.h: New file.
11488 * sysdeps/mach/powerpc/thread_state.h: New file.
11490 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11491 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11492 expect to need the same thing on every platform.
11494 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11495 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11497 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11498 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11499 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11500 Move all these assembly-related definitions to ...
11501 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11503 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11504 by Peter Bruin <pjbruin@dds.nl>.
11506 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11507 packing results for a `poll' call.
11509 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11511 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11513 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11514 bracket expression.
11516 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11518 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11520 2001-10-24 H.J. Lu <hjl@gnu.org>
11522 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11523 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11524 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11526 2001-10-21 Jim Meyering <meyering@lucent.com>
11528 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11529 this code would end up calling gettext even in packages built
11530 with --disable-nls.
11531 * posix/getopt.c (_): Likewise.
11532 * posix/regex.c (_): Likewise.
11534 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11536 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11537 lookup not ip6.int.
11538 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11539 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11541 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11543 * misc/sys/cdefs.h (__attribute_used__): Define.
11544 * elf/rtld.c (_dl_start): Add __attribute_used__.
11545 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11547 2001-10-25 Andreas Schwab <schwab@suse.de>
11549 * stdlib/a64l.c: Expect least significant digit first.
11550 * stdlib/l64a.c: Produce least significant digit first.
11551 * stdlib/Makefile (tests): Add test-a64l.
11552 * stdlib/test-a64l.c: New file.
11553 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11555 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11557 * po/sk.po: Update from translation team.
11559 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11561 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11563 2001-10-18 Andreas Schwab <schwab@suse.de>
11565 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11567 (print_function_ulps): Likewise.
11568 (print_complex_function_ulps): Likewise.
11569 (print_max_error): Likewise.
11570 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11572 2001-10-16 Andreas Schwab <schwab@suse.de>
11574 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11577 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11578 BSD_SETJMP or BSD__SETJMP is defined, resp.
11579 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11580 a tail call to __sigsetjmp that would require extending the
11582 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11583 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11584 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11585 Reported by Jes Sorensen <jes@trained-monkey.org>.
11587 2001-10-16 Andreas Jaeger <aj@suse.de>
11589 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11590 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11591 close PR libc/2589.
11593 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11595 * po/ca.po: New file. Contributed by the translation team.
11597 2001-10-15 Ralf Baechle <ralf@gnu.org>
11599 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11600 a varargs prototype. Remove dependency from kernel header files.
11602 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11603 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11605 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11607 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11608 to generate hexadecimal identifier.
11609 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11611 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11613 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11615 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11617 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11618 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11619 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11621 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11622 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11623 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11624 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11625 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11626 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11628 * timezone/africa: Update from tzdata2001d.
11629 * timezone/asia: Likewise.
11630 * timezone/australasia: Likewise.
11631 * timezone/backward: Likewise.
11632 * timezone/europe: Likewise.
11633 * timezone/leapseconds: Likewise.
11634 * timezone/northamerica: Likewise.
11635 * timezone/southamerica: Likewise.
11636 * timezone/zone.tab: Likewise.
11638 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11640 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11641 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11643 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11645 * elf/elf.h (PT_TLS): New definition.
11647 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11649 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11652 2001-10-07 Roland McGrath <roland@frob.com>
11654 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11656 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11658 * elf/elf.h: Add more ELFOSABI_* constants.
11660 2001-10-04 Ben Collins <bcollins@debian.org>
11662 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11663 decleration of __need_wchar_t.
11665 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11667 * string/bits/string2.h (__strsep_g): Add prototype.
11668 (__strsep): Use it.
11669 * string/Versions (__strsep): Remove.
11670 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11672 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11674 * manua/llio.texi: Clarify file references added by mmap.
11675 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11677 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11679 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11680 Add sc_loadrs and sc_rbs_bas to match current kernel.
11682 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11684 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11686 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11688 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11690 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11691 object has been bumped because of relocation dependency, avoid
11692 duplicates in l_scope.
11693 (show_scope): Fix typos.
11694 * elf/Makefile: Add rules to build and run reldep6.
11695 * elf/reldep6.c: New file.
11696 * elf/reldep6mod0.c: New file.
11697 * elf/reldep6mod1.c: New file.
11698 * elf/reldep6mod2.c: New file.
11699 * elf/reldep6mod3.c: New file.
11700 * elf/reldep6mod4.c: New file.
11702 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11704 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11706 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11707 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11708 for non-lazy binding. Fix .plt[32768+] handling.
11709 (elf_machine_plt_value): Don't add addend.
11710 (elf_machine_rela): Call sparc64_fixup_plt instead of
11711 elf_machine_fixup_plt.
11712 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11713 dynamic linker at 0xfffff800XXXXXXXX.
11715 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11717 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11719 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11721 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11723 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11724 declare __cmsg_data field if its size would be bigger than 0.
11725 (CMSG_DATA): Adjust accordingly.
11726 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11727 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11728 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11729 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11730 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11731 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11732 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11734 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11736 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11737 * iconvdata/testdata/IBM1160: New file.
11738 * iconvdata/testdata/IBM1160..UTF8: New file.
11739 * iconvdata/testdata/IBM1161: New file.
11740 * iconvdata/testdata/IBM1161..UTF8: New file.
11741 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11743 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11745 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11746 UL_SETFSIZE computations better.
11748 * rt/Makefile: Remove use of filter for librt again.
11750 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11751 UL_SETFSIZE computations better.
11753 * string/Versions: Export __strsep for GLIBC_2.2.5.
11754 * string/bits/string2.h: Define all __STRING_INLINE functions if
11755 _FORCE_INLINES is defined.
11756 Use int instead of char of parameter types.
11757 (__strsep): Don't use __strsep_g. Don't define it.
11758 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11759 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11761 (__stpcpy_a_small): Renamed from __stpcpy_small.
11762 (__strcspn_c1): Don't define if _FORCE_INLINES.
11763 (__strspn_c1): Likewise.
11765 2001-09-22 Ben Collins <bcollins@debian.org>
11767 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11768 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11769 * sysdeps/ia64/bits/sigaction.h: Likewise.
11770 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11772 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11774 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11776 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11778 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11780 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11782 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11784 2001-09-20 H.J. Lu <hjl@gnu.org>
11786 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11787 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11789 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11790 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11792 2001-09-20 H.J. Lu <hjl@gnu.org>
11794 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11797 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11799 * nss/getent.c: Accept -s parameter to overwrite rules in
11800 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11802 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11803 with as many ".0" as necessary to form a complete address
11804 inet_network understands.
11806 * nss/getent.c: Various cleanups. Use simpler and fewer function
11809 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11811 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11813 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11815 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11817 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11819 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11820 * iconvdata/ibm1160.c: New file.
11821 * iconvdata/ibm1160.h: New file.
11822 * iconvdata/ibm1161.c: New file.
11823 * iconvdata/ibm1161.h: New file.
11824 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11826 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11828 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11829 difference between base address and first PT_LOAD's virtual address,
11830 not the base address.
11832 2001-09-11 Tom Rix <trix@redhat.com>
11834 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11835 ifdef for __getopt_clean_environment.
11836 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11838 2001-09-22 Andreas Jaeger <aj@suse.de>
11840 * elf/reldep4.c (main): Add proper prototype to fix warning.
11842 * elf/reldep5.c (main): Remove unused variable.
11844 * math/math_private.h: Add prototypes.
11846 2001-09-21 Andreas Jaeger <aj@suse.de>
11848 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11849 * sysdeps/x86_64/Dist: New file.
11850 * sysdeps/x86_64/soft-fp/Dist: New file.
11852 * sysdeps/gnu/Dist: Remove eval.c.
11854 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11856 * malloc/memusage.c (realloc): Don't count already allocated
11857 memory in the sums.
11858 (me): Always use dlsym() to find the real implementations.
11860 * malloc/memusage.sh: Make -n option actually do something.
11862 2001-09-20 Andreas Jaeger <aj@suse.de>
11864 * elf/elf.h (R_390_NUM): Correct value.
11866 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11869 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11870 for x86-64, install x86-64 into */lib64.
11872 * shlib-versions: Add x86-64.
11874 * elf/elf.h: Add x86-64 relocations.
11876 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11878 * po/fr.po: Update from translation team.
11880 2001-09-19 Andreas Jaeger <aj@suse.de>
11882 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11883 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11884 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11885 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11886 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11887 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11888 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11889 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11890 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11891 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11892 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11893 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11894 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11895 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11896 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11897 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11898 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11899 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11900 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11901 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11902 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11903 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11904 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11905 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11906 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11907 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11908 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11909 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11910 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11911 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11912 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11913 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11914 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11915 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11916 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11917 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11918 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11919 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11920 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11921 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11922 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11923 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11924 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11925 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11926 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11927 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11928 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11929 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11930 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11931 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11932 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11933 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11934 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11935 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11936 * sysdeps/unix/x86_64/sysdep.S: New file.
11937 * sysdeps/unix/x86_64/sysdep.h: New file.
11938 * sysdeps/x86_64/Implies: New file.
11939 * sysdeps/x86_64/Makefile: New file.
11940 * sysdeps/x86_64/Versions: New file.
11941 * sysdeps/x86_64/__longjmp.S: New file.
11942 * sysdeps/x86_64/abort-instr.h: New file.
11943 * sysdeps/x86_64/atomicity.h: New file.
11944 * sysdeps/x86_64/bits/endian.h: New file.
11945 * sysdeps/x86_64/bits/setjmp.h: New file.
11946 * sysdeps/x86_64/bits/string.h: New file.
11947 * sysdeps/x86_64/bp-asm.h: New file.
11948 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11949 * sysdeps/x86_64/bsd-setjmp.S: New file.
11950 * sysdeps/x86_64/dl-machine.h: New file.
11951 * sysdeps/x86_64/elf/initfini.c: New file.
11952 * sysdeps/x86_64/elf/start.S: New file.
11953 * sysdeps/x86_64/ffs.c: New file.
11954 * sysdeps/x86_64/ffsll.c: New file.
11955 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11956 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11957 * sysdeps/x86_64/fpu/e_acosl.c: New file.
11958 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
11959 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
11960 * sysdeps/x86_64/fpu/e_expl.c: New file.
11961 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
11962 * sysdeps/x86_64/fpu/e_log10l.S: New file.
11963 * sysdeps/x86_64/fpu/e_log2l.S: New file.
11964 * sysdeps/x86_64/fpu/e_logl.S: New file.
11965 * sysdeps/x86_64/fpu/e_powl.S: New file.
11966 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
11967 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
11968 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
11969 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
11970 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
11971 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
11972 * sysdeps/x86_64/fpu/fegetenv.c: New file.
11973 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
11974 * sysdeps/x86_64/fpu/fegetround.c: New file.
11975 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
11976 * sysdeps/x86_64/fpu/fesetenv.c: New file.
11977 * sysdeps/x86_64/fpu/fesetround.c: New file.
11978 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
11979 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
11980 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
11981 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
11982 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
11983 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
11984 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
11985 * sysdeps/x86_64/fpu/s_atanl.c: New file.
11986 * sysdeps/x86_64/fpu/s_cosl.S: New file.
11987 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
11988 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
11989 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
11990 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
11991 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
11992 * sysdeps/x86_64/fpu/s_logbl.c: New file.
11993 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
11994 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
11995 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
11996 * sysdeps/x86_64/fpu/s_rintl.c: New file.
11997 * sysdeps/x86_64/fpu/s_significandl.c: New file.
11998 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
11999 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12000 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12001 * sysdeps/x86_64/gmp-mparam.h: New file.
12002 * sysdeps/x86_64/hp-timing.c: New file.
12003 * sysdeps/x86_64/hp-timing.h: New file.
12004 * sysdeps/x86_64/htonl.S: New file.
12005 * sysdeps/x86_64/memusage.h: New file.
12006 * sysdeps/x86_64/setjmp.S: New file.
12007 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12008 * sysdeps/x86_64/stackinfo.h: New file.
12009 * sysdeps/x86_64/sysdep.h: New file.
12010 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12012 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12015 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12017 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12018 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12020 2001-09-18 Andreas Schwab <schwab@suse.de>
12022 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12023 list, now that l_scope is a pointer.
12025 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12028 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12030 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12031 (elf_machine_rela_relative): Add a missing declaration.
12033 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12035 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12036 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12037 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12038 ldd-rewrite scripts.
12040 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12042 * elf/ldd.bash.in: Update copyright message.
12044 2001-09-17 H.J. Lu <hjl@gnu.org>
12046 * hurd/hurdmalloc.c (bcopy): Removed.
12047 (realloc): Replace bcopy with memcpy.
12048 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12049 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12050 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12052 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12053 (gethostbyaddr): Likewise.
12054 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12056 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12058 * sysdeps/gnu/eval.c: Removed.
12060 2001-09-18 Andreas Jaeger <aj@suse.de>
12062 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12063 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12065 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12066 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12068 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12069 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12071 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12073 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12076 2001-09-14 H.J. Lu <hjl@gnu.org>
12078 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12080 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12082 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12083 Patch by Florian La Roche <laroche@redhat.com>.
12085 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12087 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12090 2001-09-14 Andreas Schwab <schwab@suse.de>
12092 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12093 Sumner <bls@sgi.com>.
12094 * posix/execlp.c: Likewise.
12096 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12098 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12099 is already found earlier in the search scope.
12101 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12103 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12106 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12108 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12110 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12112 * config.h.in: Enforce optimization to be used.
12113 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12114 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12115 * posix/Makefile (annexc-CFLAGS): Define to -O.
12116 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12118 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12120 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12121 Patch by Stephan Kulow.
12123 2001-09-08 Ben Collins <bcollins@debian.org>
12125 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12126 usage of RESOLVE() (r_type, not reloc->r_type).
12128 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12130 * elf/dl-object.c: Avoid allocating extra memory block for name.
12131 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12132 allocated separately.
12133 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12135 2001-09-08 H.J. Lu <hjl@gnu.org>
12137 * po/zh_TW.po: Fix a typo.
12139 2001-09-07 Tom Rix <trix@redhat.com>
12141 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12143 2001-08-26 Tom Rix <trix@redhat.com>
12145 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12146 command line options.
12147 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12148 * sysdeps/unix/sysv/aix/start.c: Removed.
12149 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12150 * sysdeps/unix/sysv/aix/init-first.c: New file.
12151 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12153 2001-09-08 Ben Collins <bcollins@debian.org>
12155 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12156 * sysdeps/generic/dl-machine.h: Likewise.
12157 * sysdeps/hppa/dl-fptr.c: Likewise.
12158 * sysdeps/ia64/dl-fptr.c: Likewise.
12159 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12160 * sysdeps/mips/dl-machine.h: Likewise.
12161 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12162 * sysdeps/powerpc/dl-machine.c: Likewise.
12164 2001-09-07 Ben Collins <bcollins@debian.org>
12166 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12168 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12170 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12172 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12173 dependencies if necessary.
12175 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12176 loaded directly) determine length if l_initfini list by iterating
12177 over its elements. Minor optimizations.
12178 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12179 for dependency objects.
12180 If object was already loaded check whether any of the dependencies
12181 is already on the relocation dependency list. If yes, remove the
12182 latter. Minor optimizations.
12183 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12184 maps here. Search l_initfini list only if the object was loaded
12185 directly and not only as a dependency.
12186 (_dl_lookup_symbol): Add relocation dependency also if object
12187 is not in global scope. Remove test for self-reference here.
12188 (_dl_lookup_versioned_symbol): Likewise.
12189 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12190 element of first name record.
12191 * elf/loadtest.c: Add some more test to recognize early if an object
12193 * elf/Makefile: Add rules to build and run reldep5.
12194 * elf/reldep5.c: New file.
12195 * elf/reldepmod5.c: New file.
12196 * elf/reldepmod6.c: New file.
12198 * elf/reldep2.c: Fix typo.
12200 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12202 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12203 elements. Change l_scope to be a pointer only.
12204 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12205 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12206 here add searchlist of newly open file to the dependency's scope.
12207 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12208 only searchlist from its scope. Free own scope array if necessary.
12209 * elf/Makefile (tests): Add dblload and dblunload now.
12211 2001-09-06 Andreas Jaeger <aj@suse.de>
12213 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12216 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12218 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12220 * elf/dblload.c: New file.
12221 * elf/dblloadmod1.c: New file.
12222 * elf/dblloadmod2.c: New file.
12223 * elf/dblloadmod3.c: New file.
12224 * elf/dblunload.c: New file.
12226 2001-09-04 Richard Henderson <rth@redhat.com>
12228 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12229 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12231 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12233 Correct very misleading message for error in failed runtime relocation.
12234 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12235 place of the error.
12236 (_dl_signal_cerror): Likewise.
12237 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12238 * elf/dl-close.c: Likewise.
12239 * elf/dl-deps.c: Likewise.
12240 * elf/dl-load.c: Likewise.
12241 * elf/dl-lookup.c: Likewise.
12242 * elf/dl-open.c: Likewise.
12243 * elf/dl-reloc.c: Likewise.
12244 * elf/dl-sym.c: Likewise.
12245 * elf/dl-version.c: Likewise.
12246 * sysdeps/generic/dl-sysdep.c: Likewise.
12248 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12250 * iconv/strtab.c (strtabinit): Initialize null Strent.
12251 (newstring): Move len == 0 handling...
12252 (strtabadd): ...here.
12253 If len == 1, return null Strent.
12254 When inserting a suffix of an existing string, check if
12255 it is not equal to some suffix already recorded.
12256 Copy left and right members over if adding longer string.
12258 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12260 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12262 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12263 (__syscall_gethostname): Add prototype.
12265 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12267 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12269 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12271 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12273 2001-08-27 Roland McGrath <roland@frob.com>
12275 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12276 short, copy that much into NAME anyway before returning error.
12278 2001-09-01 Richard Henderson <rth@redhat.com>
12280 * sysdeps/alpha/elf/Dist: Remove file.
12281 * sysdeps/alpha/elf/Makefile: Remove file.
12282 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12283 * sysdeps/alpha/elf/crtend.S: Remove file.
12284 * sysdeps/alpha/elf/initfini.c: New file.
12286 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12288 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12289 * iconv/tst-iconv3.c: Likewise.
12291 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12293 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12295 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12297 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12299 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12300 * iconv/iconv_prog.c (insert_cache): New function.
12301 (print_known_names): If cache is used call insert_cache to use the
12302 information from the cache [PR libc/2509].
12304 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12306 * time/strptime.c (strptime_internal): Recognize 'l' format and
12307 handle it like 'I' for symmetry with strftime.
12309 2001-08-31 Richard Henderson <rth@redhat.com>
12311 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12312 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12313 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12314 (print_statistics): Make scalar unsigned long long.
12315 * sysdeps/alpha/hp-timing.h: New file.
12317 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12319 * stdio-common/perror.c (perror): Save errno early, pass it
12320 down to perror_internal.
12321 (perror_internal): Add errnum argument.
12323 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12325 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12326 Don't add old memory content for R_ALPHA_REFQUAD.
12328 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12330 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12333 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12334 instead of open, __close instead of close, __getpagesize instead
12337 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12338 instead of strnlen.
12339 * include/string.h (strndupa): Redefine here to use __strnlen
12340 instead of strnlen.
12341 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12343 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12346 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12348 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12349 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12350 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12351 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12352 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12353 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12354 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12356 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12358 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12360 2001-08-30 Andreas Jaeger <aj@suse.de>
12362 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12363 contributed Stephen L Moshier.
12365 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12367 * sunrpc/etc.rpc (sgi_fam): Add.
12369 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12371 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12373 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12375 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12376 first is from a previous call.
12377 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12379 2001-08-29 Andreas Schwab <schwab@suse.de>
12381 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12383 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12385 * config.make.in (INSTALL_SCRIPT): Define.
12386 * Makeconfig (INSTALL_SCRIPT): Define.
12387 * Makerules (do-install-script): New macro to install scripts using
12389 (install-bin-script): New rule to install scripts with
12391 (install-bin-script-nosubdir): New rule.
12392 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12393 (distinfo-vars): Add $(install-bin-script).
12394 * Rules (others): Likewise.
12395 * Makefile (glibcbug): Install with install-bin-script.
12396 * debug/Makefile (xtrace): Likewise.
12397 (catchsegv): Likewise.
12398 * elf/Makefile (ldd): Likewise.
12399 * malloc/Makefile (mtrace): Likewise.
12400 * timezone/Makefile (tzselect): Likewise.
12402 2001-08-29 H.J. Lu <hjl@gnu.org>
12404 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12405 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12406 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12408 2001-08-29 Andreas Schwab <schwab@suse.de>
12410 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12412 2001-08-28 H.J. Lu <hjl@gnu.org>
12414 * Makeconfig (combreloc-LDFLAGS): New variable.
12415 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12416 * config.make.in (have-z-combreloc): New variable.
12417 * configure.in: Substitute libc_cv_z_combreloc.
12419 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12421 * po/sv.po: Update from translation team.
12422 * po/fr.po: Likewise.
12423 * po/da.po: Likewise.
12425 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12427 * Makerules: Fix a typo: MD% -> MD5.
12429 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12431 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12432 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12434 2001-08-28 Andreas Jaeger <aj@suse.de>
12436 * manual/libc-texinfo.sh: Add entry about free manuals.
12438 * manual/contrib.texi (Contributors): Fix cross reference.
12440 * manual/libc.texinfo (Copying): Include freemanuals.
12442 * manual/Makefile (appendices): Add freemanuals.
12444 * manual/freemanuals.texi: New file.
12445 Patch by Brian Youmans <3diff@gnu.org>.
12447 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12450 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12451 table on separate page.
12452 Patch by Brian Youmans <3diff@gnu.org>.
12454 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12456 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12457 the connection went down after we first used it try to connect
12458 again and resend the message before printing to the console.
12459 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12461 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12463 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12464 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12467 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12469 * iconv/strtab.c (searchstring): Use correct length for comparison.
12470 (strtabadd): Account total size correct if new string has old string as
12473 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12475 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12477 2001-08-27 Andreas Jaeger <aj@suse.de>
12479 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12481 * math/libm-test.inc (j0_test): Add extra tests.
12482 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12483 not x, in Hankel approximation.
12484 Patches by Stephen L Moshier.
12486 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12488 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12491 * configure.in: Fix test for .rela.dyn section.
12493 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12495 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12497 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12498 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12499 Pass type_class to _dl_lookup_*.
12500 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12501 Pass around just type_class instead of noexec, noplt pair.
12502 (_dl_lookup_versioned_symbol): Likewise.
12503 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12504 noexec, noplt pair.
12505 (_dl_lookup_versioned_symbol_skip): Likewise.
12506 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12507 * elf/do-lookup.h (do_lookup): Likewise.
12508 * include/link.h (struct link_map): Replace noexec and noplt fields
12509 in l_lookup_cache with type_class field.
12510 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12511 ELF_RTYPE_CLASS_COPY): Define.
12512 Adjust prototypes for _dl_lookup_symbol and
12513 _dl_lookup_versioned_symbol.
12514 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12515 elf_machine_lookup_noexec_p): Remove.
12516 (elf_machine_type_class): Define.
12517 * sysdeps/arm/dl-machine.h: Likewise.
12518 * sysdeps/hppa/dl-machine.h: Likewise.
12519 * sysdeps/cris/dl-machine.h: Likewise.
12520 * sysdeps/i386/dl-machine.h: Likewise.
12521 * sysdeps/ia64/dl-machine.h: Likewise.
12522 * sysdeps/m68k/dl-machine.h: Likewise.
12523 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12524 * sysdeps/mips/dl-machine.h: Likewise.
12525 * sysdeps/powerpc/dl-machine.h: Likewise.
12526 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12527 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12528 * sysdeps/sh/dl-machine.h: Likewise.
12529 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12530 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12532 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12534 * manual/message.texi (Advanced gettext functions): Change
12535 description of plural forms for Slovak.
12536 Reported by Marcel Telka <marcel@telka.sk>.
12538 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12539 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12541 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12543 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12544 typo. Patch by Florian La Roche <laroche@redhat.com>.
12546 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12548 * include/link.h (struct link_map): Add l_lookup_cache element.
12549 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12550 (RESOLVE_MAP): Likewise.
12551 (_dl_relocate_object): Remove cache initialization.
12552 * elf/dl-lookup.c: Rip out cache handling code.
12553 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12556 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12557 remove some __builtin_expect.
12558 (_dl_lookup_versioned_symbol): Likewise.
12560 * config.h.in: Add HAVE_Z_COMBRELOC.
12561 * configure.in: Add test for -z combreloc.
12563 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12564 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12565 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12566 case to almost no code.
12568 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12570 * po/tr.po: Update from translation team.
12572 2001-08-24 Andreas Jaeger <aj@suse.de>
12574 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12577 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12579 * elf/rtld.c (print_statistics): Printf % after percent values.
12580 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12582 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12583 don't have to compute the hash value and initialize current_value.
12584 Move reference_name variable to where it is needed.
12585 (_dl_lookup_versioned_symbol): Likewise.
12587 2001-08-24 Roland McGrath <roland@frob.com>
12589 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12590 Just test that strerror returns non-null for a few errno codes.
12592 2001-08-23 Roland McGrath <roland@frob.com>
12594 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12595 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12597 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12599 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12602 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12604 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12607 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12608 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12610 * elf/rtld.c: Include <sys/param.h>.
12611 * elf/dl-reloc.c: Likewise.
12613 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12615 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12616 empty to prevent junk from being generated.
12617 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12619 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12621 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12622 records. Rename endrel to relative, initialize it to r, and use it
12623 in elf_machine_rel_relative calls. Point r after relative relocs.
12625 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12627 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12630 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12632 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12633 necessary. Undefine newly defined macros at the end.
12634 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12635 Rename from elf_machine_rel_relative.
12636 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12637 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12638 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12639 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12641 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12643 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12644 Fix argument types.
12645 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12646 Fix argument types.
12647 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12648 Likewise. Fix argument types.
12649 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12650 Likewise. Fix argument types.
12651 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12652 Fix argument types.
12653 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12654 ElfW(Rel) in argument.
12655 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12658 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12660 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12662 2001-08-24 Andreas Jaeger <aj@suse.de>
12664 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12665 Stephen L Moshier <moshier@mediaone.net>.
12667 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12669 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12670 first if RELCOUNT is set.
12672 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12673 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12674 elf_machine_rel_relative.
12675 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12676 Minor optimizations.
12677 * sysdeps/arm/dl-machine.h: Likewise.
12678 * sysdeps/cris/dl-machine.h: Likewise.
12679 * sysdeps/hppa/dl-machine.h: Likewise.
12680 * sysdeps/i386/dl-machine.h: Likewise.
12681 * sysdeps/ia64/dl-machine.h: Likewise.
12682 * sysdeps/m68k/dl-machine.h: Likewise.
12683 * sysdeps/mips/dl-machine.h: Likewise.
12684 * sysdeps/powerpc/dl-machine.h: Likewise.
12685 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12686 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12687 * sysdeps/sh/dl-machine.h: Likewise.
12688 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12689 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12691 2001-08-23 Roland McGrath <roland@frob.com>
12693 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12695 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12696 sysdeps/mach version. Implement counting ("recursive") mutexes
12697 on top of cthreads mutexes.
12698 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12700 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12701 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12702 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12703 __libc_clean_end): Define these to call the cleanup function after
12704 normal exit when they're supposed to.
12706 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12707 Take new first arg DOIT, a boolean saying whether to really install
12708 any cleanup handler.
12709 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12710 (__libc_cleanup_end): Likewise.
12711 * sysdeps/generic/bits/libc-lock.h: Same changes.
12712 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12713 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12714 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12716 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12717 * sysdeps/generic/bits/stdio-lock.h
12718 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12720 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12722 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12724 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12726 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12728 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12730 (_dl_lookup_versioned_symbol): Likewise.
12731 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12733 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12734 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12735 (lookup_cache, lookup_cache_versioned): Add declarations.
12737 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12739 * stdlib/tst-random.c (main): Swap parameters in fail call.
12740 Patch by Pete Bevin <pete@petebevin.com>.
12742 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12744 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12746 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12748 * malloc/obstack.c: Indent preprocessor directives.
12749 Patch by Jim Meyering <meyering@ascend.com>.
12751 * po/ja.po: Update from translation team.
12753 2001-08-23 Roland McGrath <roland@frob.com>
12755 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12757 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12758 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12760 2001-08-22 Roland McGrath <roland@frob.com>
12762 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12763 __libc_lock_define_recursive.
12764 * elf/dl-open.c: Don't declare it here any more.
12765 * elf/dl-close.c: Likewise.
12766 * elf/dl-lookup.c: Likewise.
12767 * elf/dl-iteratephdr.c: Likewise.
12768 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12769 __libc_lock_unlock_recursive.
12770 * elf/dl-close.c (_dl_close): Likewise
12771 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12772 * elf/dl-open.c (_dl_open): Likewise
12774 * sysdeps/generic/bits/libc-lock.h
12775 (__libc_lock_define_recursive): New macro.
12776 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12777 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12778 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12780 * conform/conformtest.pl (checknamespace): Sort the output list.
12782 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12783 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12784 definitions conditional on [__USE_XOPEN].
12786 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12787 these unconditionally, not only use [__USE_BSD], so as to match
12788 the sysdeps/unix/sysv/linux files.
12790 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12792 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12795 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12798 2001-08-22 Roland McGrath <roland@frob.com>
12800 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12801 conditionalization of sa_handler/sa_sigaction member types to
12802 match the sysdeps/unix/sysv/linux file.
12804 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12806 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12807 symbol sizes a bit better.
12809 * sysdeps/ia64/strncpy.S: Complete rewrite.
12810 Contributed by Jakub Jelinek <jakub@redhat.com>.
12812 * string/stratcliff.c (main): Add strncpy test.
12814 2001-08-22 Roland McGrath <roland@frob.com>
12816 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12817 and don't declare unsetenv or _environ directly.
12818 (unsetenv): Return int, not void. Use __environ instead of _environ.
12820 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12822 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12823 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12824 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12825 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12826 test for cmsg struct size.
12828 2001-04-23 Paul Eggert <eggert@twinsun.com>
12830 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12831 Rename __argc to ___argc in prototypes to avoid compatibility
12832 problems with systems that reserve the identifier "__argc".
12833 Similarly for __argv.
12835 2001-08-21 Roland McGrath <roland@frob.com>
12837 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12839 * mach/Makefile (tests): Removed.
12840 * mach/hello.c: File removed.
12842 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12844 * po/sv.po: Update from translation team.
12846 * stdio-common/vfscanf.c: Fix handling of %l[].
12847 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12849 * libio/Makefile (tests): Add tst-sscanf.
12850 * libio/tst-sscanf.c: New file.
12852 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12853 * malloc/mtrace.c (tr_where): dli_sname always points to a
12854 non-empty string if != NULL.
12855 Reported by Tim Janik <timj@gtk.org>.
12857 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12859 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12860 buf. Free resources on failure.
12861 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12862 (makefd_xprt): Likewise.
12863 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12864 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12865 * sunrpc/auth_unix.c (authunix_create): Likewise.
12867 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12869 * string/strnlen.c: Remove.
12870 * sysdeps/generic/strnlen.c: New file.
12871 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12873 2001-08-21 Roland McGrath <roland@frob.com>
12875 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12876 as a macro, not an extern inline function.
12878 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12879 * Versions.def (libc): Add GLIBC_2.2.5 set.
12880 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12881 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12883 2001-08-20 Roland McGrath <roland@frob.com>
12885 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12886 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12888 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12890 * string/bits/string2.h: Remove strnlen optimization here.
12891 * sysdeps/i386/i486/bits/string.h: Add it here.
12893 2001-08-21 Wolfram Gloger <wg@malloc.de>
12895 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12897 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12899 * po/gl.po: Update from translation team.
12901 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12903 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12904 * misc/err.c (convert_and_print): Likewise.
12906 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12909 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12911 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12912 change of the gregset_t type.
12913 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12915 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12917 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12919 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12921 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12923 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12925 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12927 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12928 before calling the cthreads initialization code.
12930 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12932 * argp/argp-help.c: Fix two problems introduced in last change.
12934 * include/dirent.h: Include <dirstream.h> first.
12936 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12938 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12940 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12941 * sunrpc/xdr_rec.c: Likewise.
12942 * sunrpc/xdr_mem.c: Likewise.
12943 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12944 * sunrpc/rpc_cmsg.c: Likewise.
12945 * sunrpc/getrpcport.c (getrpcport): Likewise.
12946 * sunrpc/clnt_simp.c (callrpc): Likewise.
12947 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12948 * string/envz.c: Likewise.
12950 * po/ko.po: Update from translation team.
12952 * argp/argp-help.c: Handle wide oriented stderr stream.
12954 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12956 * sysdeps/generic/strtol.c: Little optimizations. Add some
12959 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
12961 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
12962 * wcsmbs/wcwidth.c (wcwdith): Likewise.
12963 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
12965 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
12967 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
12969 * time/time.h (struct timespec): Use __time_t for tv_sec element.
12971 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
12972 wchar_t for function declarations and defintions.
12974 * misc/sys/select.h: Define __need_time_t before including <time.h>.
12975 Define suseconds_t if it hasn't happened yet.
12977 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
12979 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
12981 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
12984 * conform/data/stddef.h-data: Remove wint_t.
12986 * conform/conformtest.pl: Change namespace test to take #undef
12987 lines into account.
12989 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
12991 * conform/data/sys/socket.h-data: Add sockatmark.
12993 2001-08-17 Ulrich Drepper <drepper@redhat.com>
12995 * io/fts.c: Update from recent BSD source.
12997 2001-08-17 Roland McGrath <roland@frob.com>
12999 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13000 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13003 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13005 * locale/duplocale.c (__duplocale): Also initialize the special
13006 __ctype_* elements.
13008 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13010 2001-08-17 Andreas Jaeger <aj@suse.de>
13012 * misc/getpass.c: Include wchar.h for prototypes.
13013 * malloc/obstack.c: Likewise.
13015 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13017 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13019 * wcsmbs/wcscoll.c: Also define __wcscoll.
13020 * include/wchar.h: Declare __wcscoll.
13022 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13023 * libio/vwprintf.c: Likewise.
13024 * libio/wprintf.c: Likewise.
13026 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13028 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13030 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13031 instead of mbrtowc.
13032 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13033 wcslen, and __wcscoll instead of wcscoll.
13035 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13037 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13038 __getuid instead of getuid.
13040 * stdio-common/perror.c (perror): Use __close instead of close.
13041 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13042 * libio/freopen.c (freopen): Likewise.
13043 * libio/freopen64.c (freopen64): Likewise.
13045 * libio/tst-ungetwc2.c (main): Define str const.
13047 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13048 * libio/fwprintf.c: Also define __fwprintf.
13049 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13050 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13051 * assert/assert-perr.c: Likewise.
13052 * assert/assert.c: Likewise.
13053 * gmon/gmon.c: Likewise.
13054 * inet/rcmd.c: Likewise.
13055 * malloc/obstack.c: Likewise.
13056 * misc/err.c: Likewise.
13057 * misc/error.c: Likewise.
13058 * misc/getpass.c: Likewise.
13059 * posix/getopt.c: Likewise.
13060 * resolv/res_hconf.c: Likewise.
13061 * stdio-common/perror.c: Likewise.
13062 * stdio-common/psignal.c: Likewise.
13063 * stdlib/fmtmsg.c: Likewise.
13064 * sunrpc/auth_unix.c: Likewise.
13065 * sunrpc/clnt_perr.c: Likewise.
13066 * sunrpc/clnt_tcp.c: Likewise.
13067 * sunrpc/clnt_udp.c: Likewise.
13068 * sunrpc/clnt_unix.c: Likewise.
13069 * sunrpc/svc_simple.c: Likewise.
13070 * sunrpc/svc_tcp.c: Likewise.
13071 * sunrpc/svc_udp.c: Likewise.
13072 * sunrpc/svc_unix.c: Likewise.
13073 * sunrpc/xdr.c: Likewise.
13074 * sunrpc/xdr_array.c: Likewise.
13075 * sunrpc/xdr_rec.c: Likewise.
13076 * sunrpc/xdr_ref.c: Likewise.
13077 * sysdeps/generic/wordexp.c: Likewise.
13079 * po/it.po: Update from translation team.
13081 * misc/err.c: Handle wide oriented stderr stream.
13083 2001-08-14 Tom Rix <trix@redhat.com>
13085 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13086 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13088 2001-08-13 Tom Rix <trix@redhat.com>
13090 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13091 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13094 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13096 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13097 Store the access registers to the ucontext structure.
13098 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13101 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13102 Load the access registers from the ucontext structure.
13103 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13106 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13107 offsets to the new ucontext layout.
13108 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13110 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13111 of the ucontext structure.
13112 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13114 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13116 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13117 (error_at_line): Likewise.
13119 * stdio-common/perror.c (perror): Implement according to standard.
13120 The stream orientation must not be changed if the stream was not
13121 oriented before the call.
13122 * stdio-common/Makefile (tests): Add tst-perror.
13123 * stdio-common/tst-perror.c: New file.
13126 See ChangeLog.12 for earlier changes.