1 2002-09-22 Bruno Haible <bruno@clisp.org>
3 * iconv/iconv_prog.c (main): Provide an error message that identifies
6 2002-09-22 Bruno Haible <bruno@clisp.org>
8 * iconvdata/tscii.c: New file.
9 * iconvdata/testdata/TSCII: New file.
10 * iconvdata/testdata/TSCII..UTF8: New file.
11 * iconvdata/TSCII.precomposed: New file.
12 * iconvdata/TSCII.irreversible: New file.
13 * iconvdata/gconv-modules (TSCII): New module.
14 * iconvdata/Makefile (modules): Add TSCII.
15 (distribute): Add tscii.c.
16 * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
18 * iconvdata/tst-tables.sh: Add TSCII.
19 * iconvdata/TESTS: Add TSCII.
21 2002-09-22 Bruno Haible <bruno@clisp.org>
23 Revert 2002-04-18 patch.
24 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
25 FROM_DIRECTION): Make the FROM direction stateful again.
26 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
27 FROM_DIRECTION): Likewise.
29 2002-09-22 Bruno Haible <bruno@clisp.org>
31 * iconvdata/tst-e2big.c: New file.
32 * iconvdata/Makefile (tests): Add tst-e2big.
34 2002-09-23 Roland McGrath <roland@redhat.com>
36 * elf/Makefile (test-extras): Define this instead of test-srcs.
37 * Makerules (all-nonlib): Include $(test-extras) too.
39 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
41 * sysdeps/hppa/abort-instr.h: New file.
43 2002-09-22 Roland McGrath <roland@frob.com>
45 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
47 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
49 2002-09-22 Andreas Schwab <schwab@suse.de>
51 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
53 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
54 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
57 2002-09-21 Roland McGrath <roland@redhat.com>
59 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
60 Correct the value so it covers all platforms, and is computed
61 from _DL_PLATFORMS_COUNT rather than hard-wired.
62 From Andrew Suffield <asuffield@debian.org>.
64 2002-09-20 Ulrich Drepper <drepper@redhat.com>
66 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
67 locking when using mount tab file.
68 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
69 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
70 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
72 * elf/dl-init.c (_dl_init): Fix test of the size of the
73 preinit_array section.
74 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
75 Reported by Brian Cabral <cabral@ikuni.com>.
77 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
79 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
80 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
81 specific macros copied from sysdeps/powerpc/sysdep.h.
82 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
84 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
85 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
86 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
88 2002-09-19 Bruno Haible <bruno@clisp.org>
90 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
93 2002-09-17 Bruno Haible <bruno@clisp.org>
95 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
96 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
97 also on platforms with !HAVE_UT_TYPE.
98 (proc_utmp_eq): Remove function.
99 (internal_getut_r, pututline_file): Call __utmp_equal instead.
101 2002-09-20 Bruno Haible <bruno@clisp.org>
103 * abi-tags: Add support for FreeBSD with ABI OS value 3.
104 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
106 2002-09-20 Roland McGrath <roland@redhat.com>
108 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
109 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
111 * sysdeps/x86_64/gmp-mparam.h: File removed.
112 * sysdeps/sparc/gmp-mparam.h: File removed.
113 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
114 * sysdeps/ia64/gmp-mparam.h: File removed.
115 * sysdeps/alpha/gmp-mparam.h: File removed.
117 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
119 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
120 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
121 casts. Align __libc_stack_end to 8 bytes.
123 2002-09-20 Roland McGrath <roland@redhat.com>
125 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
126 instead of asm for lrintf, __lrintf aliases.
128 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
129 int array for 32-/64-bit compatibility.
130 From Steven Munroe <sjmunroe@us.ibm.com>.
132 2002-09-17 Bruno Haible <bruno@clisp.org>
134 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
135 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
136 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
137 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
138 for iterating through the list of interfaces.
139 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
141 2002-09-20 Roland McGrath <roland@redhat.com>
143 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
144 Reported by Bruno Haible <bruno@clisp.org>.
146 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
148 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
149 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
150 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
152 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
154 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
155 * sysdeps/powerpc/bits/wordsize.h: New file.
156 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
157 array to int array for 32-/64-bit compatibility.
159 2002-09-20 Roland McGrath <roland@redhat.com>
161 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
163 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
164 Reported by Bruno Haible <bruno@clisp.org>.
166 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
167 before doubling RQ_LEN.
168 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
169 Reported by Bruno Haible <bruno@clisp.org>.
171 2002-09-18 Bruno Haible <bruno@clisp.org>
173 * login/logout.c (logout): Don't assume ut_time has the same size as
175 * login/logwtmp.c (logwtmp): Likewise.
177 * sysdeps/pthread/configure: New file, moved here from
178 linuxthreads/sysdeps/unix/sysv/linux/configure.
180 2002-09-19 Ulrich Drepper <drepper@redhat.com>
182 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
183 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
184 Reported by Glen Nakamura <glen@imodulo.com>.
186 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
188 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
189 thread's sigstate data structure if it has been allocated.
191 2002-09-19 Roland McGrath <roland@redhat.com>
193 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
194 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
196 2002-09-18 Ulrich Drepper <drepper@redhat.com>
198 * version.h (VERSION): Bump to 2.2.94.
200 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
201 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
202 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
205 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
207 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
209 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
213 2002-09-19 Jakub Jelinek <jakub@redhat.com>
215 * sysdeps/wordsize-32/Makefile: New file.
216 * sysdeps/arm/Makefile: Removed.
217 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
218 Don't add divdi3 here.
219 * sysdeps/m68k/Makefile: Likewise.
220 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
221 * sysdeps/sh/Makefile: Likewise.
222 * sysdeps/s390/s390-32/Makefile: Likewise.
224 2002-09-18 Roland McGrath <roland@redhat.com>
226 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
227 the __ctype_* compat symbols, so the relocs generated bind to the
228 right versioned global symbol in the shared object.
230 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
231 from the value taken from the DT_VERSYM table.
232 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
233 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
234 (RESOLVE_GOTSYM): Likewise.
236 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
238 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
239 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
240 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
241 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
242 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
243 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
244 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
245 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
247 2002-09-18 Ulrich Drepper <drepper@redhat.com>
249 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
251 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
252 define sigaction and __sigaction as wrappers around
253 __libc_sigaction which rejects changing SIGCANCEL.
254 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
256 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
259 * signal/allocrtsig.c: Move to...
260 * sysdeps/generic/allocrtsig.c: ...here. New file.
262 2002-09-17 Jakub Jelinek <jakub@redhat.com>
264 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
266 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
267 R_386_TLS_LE): Define.
268 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
270 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
271 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
272 (elf_machine_rel): Handle R_386_TLS_TPOFF.
273 (elf_machine_rela): Likewise.
274 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
276 2002-09-17 Roland McGrath <roland@redhat.com>
278 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
279 file-specific variable override so it compiles properly when using
282 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
284 Ported to PowerPC64 running Linux.
285 * sysdeps/powerpc/powerpc64/Dist: New file.
286 * sysdeps/powerpc/powerpc64/Implies: New file.
287 * sysdeps/powerpc/powerpc64/Makefile: New file.
288 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
289 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
290 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
291 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
292 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
293 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
294 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
295 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
296 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
297 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
298 * sysdeps/powerpc/powerpc64/memset.S: New file.
299 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
300 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
301 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
302 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
303 * sysdeps/powerpc/powerpc64/strchr.S: New file.
304 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
305 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
306 * sysdeps/powerpc/powerpc64/strlen.S: New file.
307 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
308 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
309 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
310 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
319 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
320 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
321 various gcc versions. Dot names required for powerpc64.
322 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
323 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
324 C_SYMBOL_DOT_NAME(alias).
325 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
326 original strong_alias macro.
327 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
328 C_SYMBOL_DOT_NAME(alias).
329 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
330 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
332 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
333 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
334 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
335 (hidden_def): Append hidden_dot_def1 macro to definition.
336 (hidden_ver): Append hidden_dot_def1 macro to definition.
337 (hidden_data_def): New macro. Same as original hidden_def macro.
338 (hidden_data_ver): New macro. Same as original hidden_ver macro.
339 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
340 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
341 (hidden_weak): Append hidden_dot_weak1 macro to definition.
342 (hidden_data_weak): New macro. Same as original hidden_weak macro.
343 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
344 Otherwise defined as __GI_name.
345 (libc_hidden_data_def): New macro. Use hidden_data_def.
346 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
347 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
348 (rtld_hidden_data_def): New macro. Use hidden_data_def.
349 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
350 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
351 (libm_hidden_data_def): New macro. Use hidden_data_def.
352 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
353 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
354 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
356 2002-09-17 Ulrich Drepper <drepper@redhat.com>
358 * include/libc-symbols.h: Change *hidden_proto macros to accept
359 option parameters and pass those to the attribute definition.
360 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
362 * include/unistd.h: Declare __libc_pause.
364 * include/sys/socket.h: Declare __libc_send, __libc_recv,
365 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
367 * include/unistd.h: Declare __libc_fork.
369 2002-09-17 Roland McGrath <roland@redhat.com>
371 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
372 (passwd2des): Define it as an alias.
373 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
375 2002-09-12 Bruno Haible <bruno@clisp.org>
377 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
378 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
380 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
381 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
383 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
385 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
386 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
387 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
388 PowerPC64 does not have separate 64-bit syscalls.
390 2002-09-16 Roland McGrath <roland@redhat.com>
392 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
397 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
399 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
400 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
401 * sysdeps/generic/_exit.c: Likewise.
403 2002-09-12 Jakub Jelinek <jakub@redhat.com>
405 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
407 * elf/rtld.c (struct dl_start_final_info): New.
408 (_dl_start_final): Change second argument to struct
409 dl_start_final_info *. Set start_time from info.
410 (_dl_start): Remove bootstrap_map variable, add info.
411 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
412 store HP_TIMING_NOW result into info.start_time.
414 2002-09-16 Andreas Jaeger <aj@suse.de>
416 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
418 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
420 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
422 * sysdeps/powerpc/abort-instr.h: New file.
424 2002-09-14 Ulrich Drepper <drepper@redhat.com>
426 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
429 * test-skeleton.c (main): Provide more information in case waitpid
432 * include/unistd.h: Declare __exit_thread.
433 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
434 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
435 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
436 * sysdeps/unix/sysv/linux/_exit.c: New file.
437 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
438 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
441 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
443 2002-09-12 Jakub Jelinek <jakub@redhat.com>
445 * sysdeps/i386/dl-machine.h (elf_machine_rel)
446 (case R_386_TLS_DTPMOD32): Don't use addend.
447 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
448 (elf_machine_rela): Add support for TLS relocs.
450 2002-09-14 Roland McGrath <roland@redhat.com>
452 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
454 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
456 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
457 specific asm macros for multiple percision integer math.
459 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
461 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
462 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
463 Remove per-machine conditionals for FLAG_* cases.
464 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
465 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
468 2002-09-10 Alan Modra <amodra@bigpond.net.au>
470 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
472 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
473 lowest address for profiling in __monstartup call.
474 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
476 2002-09-14 Roland McGrath <roland@redhat.com>
478 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
479 instead of __NR_pread.
480 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
481 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
482 instead of __NR_pwrite.
483 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
485 2002-09-13 Roland McGrath <roland@redhat.com>
487 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
489 2002-09-13 Andreas Jaeger <aj@suse.de>
491 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
492 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
494 2002-09-12 Ulrich Drepper <drepper@redhat.com>
496 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
498 2002-09-10 Ulrich Drepper <drepper@redhat.com>
500 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
503 2002-09-12 Roland McGrath <roland@redhat.com>
505 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
506 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
509 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
510 executable if needed, in case it's actually a shared object.
512 2002-09-11 Roland McGrath <roland@redhat.com>
514 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
515 l_map_start to adjust l_tls_initimage.
517 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
518 when using h_errno and it's not set to NETDB_INTERNAL.
519 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
521 * Makefile ($(common-objpfx)testrun.sh): New target.
522 (others): Depend on it.
523 (postclean-generated): Append it.
525 * nss/bug-erange.c: New file.
526 * nss/Makefile (tests): Add it.
528 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
529 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
531 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
532 strncmp, keeps the code smaller for a non-performance-critical case.
534 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
535 no longer wrongly matches arbitrary prefixes of NAME.
536 Reported by Jakub Jelinek <jakub@redhat.com>.
538 2002-09-11 Jakub Jelinek <jakub@redhat.com>
540 * posix/bug-regex11.c (tests): New array.
541 (main): Rewritten to run more different tests.
543 2002-09-10 Roland McGrath <roland@redhat.com>
545 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
546 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
547 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
549 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
550 well so we don't get it declared by include/math.h's hidden_proto.
551 Then do hidden_proto for __isnanf locally so hidden_def works right.
553 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
554 a cast to turn nl_langinfo return value into an integer.
556 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
558 * posix/regexec.c (build_trtable): Fix the destination of
559 newline to prevent wrong states from overwriting.
560 Append break statements to optimization.
562 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
564 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
565 (build_range_exp): Add castings to strlen invocations.
566 (build_collating_symbol): Restore the type of characters from "char"
567 to "unsigned char", and supplement castings.
568 (build_collating_symbol): Likewise.
569 (build_equiv_class): Likewise.
570 (build_charclass): Likewise.
571 (seek_collating_symbol_entry): Likewise.
572 (parse_bracket_exp): Likewise.
573 (build_word_op): Supplement a casting.
574 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
575 (re_string_allocate): Fix castings.
576 (re_string_construct): Likewise.
577 (re_string_construct_common): Likewise.
578 (re_string_realloc_buffers): Likewise.
579 (build_wcs_buffer): Likewise.
580 (build_wcs_upper_buffer): Likewise.
581 (re_string_skip_chars): Likewise.
582 (re_string_reconstruct): Likewise.
583 * posix/regex_internal.h: Restore the type of characters in
584 re_string_t and bracket_elem_t from "char" to "unsigned char".
585 (re_string_elem_size_at): Fix castings.
586 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
587 (transit_state_bkref_loop): Restore the type of characters from
588 "char" to "unsigned char", and append a cast to "char*" pointer in
590 (check_node_accept_bytes): Likewise.
591 (find_collation_sequence_value): Likewise.
593 2002-09-10 Hartvig Ekner <hartvige@mips.com>
595 * sysdeps/mips/memcpy.S: New file.
596 * sysdeps/mips/memset.S: New file.
597 * sysdeps/mips/fpu/e_sqrt.c: New file.
598 * sysdeps/mips/fpu/e_sqrtf.c: New file.
600 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
601 functional before. Also removed all SHLIB_COMPAT stuff.
602 * fpu/fegetenv.c: Likewise.
603 * fpu/fesetenv.c:: Likewise.
604 * fpu/feupdateenv.c: Likewise.
605 * fpu/fgetexcptflg.c: Likewise.
606 * fpu/fraiseexcpt.c: Likewise.
608 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
610 2002-09-09 Jakub Jelinek <jakub@redhat.com>
612 * include/math.h (__finite_internal, __finitef_internal,
613 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
615 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
616 __isinfl, __isnanl): Add hidden_proto.
617 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
619 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
620 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
622 * stdio-common/printf_size.c (printf_size): Likewise.
623 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
624 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
625 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
626 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
627 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
628 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
629 (__finite): Add hidden_def.
630 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
631 (__finitef): Add hidden_def.
632 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
633 (__finitel): Add hidden_def.
634 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
636 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
637 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
639 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
640 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
642 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
643 (__isinfl): Remove INTDEF.
644 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
646 (__isnanl): Remove INTDEF.
647 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
649 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
650 instead of sin and cos.
651 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
653 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
654 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
655 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
657 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
659 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
660 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
661 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
663 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
665 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
667 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
668 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
669 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
671 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
672 __finitel_internal): Remove aliases.
673 (__finite, __finitef, __finitel): Add hidden_def.
674 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
675 __isnanl_internal): Remove aliases.
676 (__isnan, __isnanf, __isnanl): Add hidden_def.
677 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
678 __isinfl_internal): Remove aliases.
679 (__isinf, __isinff, __isinfl): Add hidden_def.
680 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
681 __fpclassifyl): Add libm_hidden_def.
682 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
683 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
684 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
685 (hidden_defx): Define and use.
686 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
688 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
689 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
690 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
692 (__isnan, __isnanf): Add hidden_def.
693 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
694 (__finitel): Add libm_hidden_def.
695 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
697 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
698 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
699 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
700 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
701 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
702 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
703 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
704 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
705 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
706 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
707 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
708 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
709 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
710 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
711 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
712 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
713 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
714 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
715 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
716 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
717 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
718 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
719 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
720 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
721 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
722 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
723 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
725 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
727 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
729 2002-09-09 Jakub Jelinek <jakub@redhat.com>
731 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
732 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
734 2002-09-09 Ulrich Drepper <drepper@redhat.com>
736 * string/stratcliff.c: Some more strncpy tests.
737 Patch by Daniel Jacobowitz <drow@mvista.com>.
739 2002-09-08 Roland McGrath <roland@redhat.com>
741 * resolv/resolv.h: Include <sys/types.h> for u_long even in
742 the [__need_res_state] case.
743 Reported by Bruno Haible <bruno@clisp.org>.
745 2002-09-04 Bruno Haible <bruno@clisp.org>
747 * sysdeps/generic/bits/ustat.h: Comment fix.
748 * io/sys/sendfile.h: Comment fix.
749 * sysdeps/posix/pread.c: Comment fix.
750 * sysdeps/posix/pread64.c: Comment fix.
751 * sysdeps/posix/pwrite.c: Comment fix.
752 * sysdeps/posix/pwrite64.c: Comment fix.
754 2002-09-06 Roland McGrath <roland@redhat.com>
756 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
757 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
758 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
759 (_UTSNAME_MACHINE_LENGTH): Likewise.
760 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
762 2002-09-06 Ulrich Drepper <drepper@redhat.com>
764 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
765 test for filesystem type name of mount points.
767 * include/errno.h: Use errno definition with __thread for now only
770 * test-skeleton.c (main): Improve error message for unexpected
773 2002-09-05 Roland McGrath <roland@redhat.com>
775 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
776 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
778 2002-09-05 Jakub Jelinek <jakub@redhat.com>
780 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
783 2002-09-04 Bruno Haible <bruno@clisp.org>
785 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
786 sigset_get_old_mask): Turn into inline functions.
787 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
788 sigset_get_old_mask): Likewise.
789 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
790 sigset_get_old_mask): Likewise.
791 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
794 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
796 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
798 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
799 _sys_nerr_internal instead of _sys_nerr.
801 * nscd/connections.c (handle_request): Declare CALLER inside #if.
803 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
805 * sysdeps/powerpc/__longjmp.S: Moved to...
806 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
807 * sysdeps/powerpc/add_n.S: Moved to...
808 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
809 * sysdeps/powerpc/addmul_1.S: Moved to...
810 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
811 * sysdeps/powerpc/atomicity.h: Moved to...
812 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
813 * sysdeps/powerpc/backtrace.c: Moved to...
814 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
815 * sysdeps/powerpc/bp-asm.h: Moved to...
816 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
817 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
818 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
819 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
820 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
821 * sysdeps/powerpc/dl-machine.c: Moved to...
822 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
823 * sysdeps/powerpc/dl-machine.h: Moved to...
824 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
825 * sysdeps/powerpc/dl-start.S: Moved to...
826 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
827 * sysdeps/powerpc/gprrest0.S: Moved to...
828 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
829 * sysdeps/powerpc/gprrest1.S: Moved to...
830 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
831 * sysdeps/powerpc/gprsave0.S: Moved to...
832 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
833 * sysdeps/powerpc/gprsave1.S: Moved to...
834 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
835 * sysdeps/powerpc/lshift.S: Moved to...
836 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
837 * sysdeps/powerpc/memset.S: Moved to...
838 * sysdeps/powerpc/powerpc32/memset.S: ...here.
839 * sysdeps/powerpc/mul_1.S: Moved to...
840 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
841 * sysdeps/powerpc/ppc-mcount.S: Moved to...
842 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
843 * sysdeps/powerpc/register-dump.h: Moved to...
844 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
845 * sysdeps/powerpc/rshift.S: Moved to...
846 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
847 * sysdeps/powerpc/setjmp.S: Moved to...
848 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
849 * sysdeps/powerpc/stpcpy.S: Moved to...
850 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
851 * sysdeps/powerpc/strchr.S: Moved to...
852 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
853 * sysdeps/powerpc/strcmp.S: Moved to...
854 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
855 * sysdeps/powerpc/strcpy.S: Moved to...
856 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
857 * sysdeps/powerpc/strlen.S: Moved to...
858 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
859 * sysdeps/powerpc/sub_n.S: Moved to...
860 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
861 * sysdeps/powerpc/submul_1.S: Moved to...
862 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
863 * sysdeps/powerpc/elf/bzero.S: Moved to...
864 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
865 * sysdeps/powerpc/elf/start.S: Moved to...
866 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
867 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
868 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
869 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
870 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
871 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
872 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
873 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
874 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
875 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
876 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
877 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
878 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
879 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
881 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
883 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
885 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
887 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
889 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
891 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
893 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
896 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
898 * FAQ.in: Add powerpc64 to supported targets list. Also state the
899 minimum gcc version is 3.2
900 * README: Add powerpc64 to supported targets list.
901 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
902 Add powerpc64 and machine=powerpc/powerpc64.
903 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
904 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
905 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
906 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
907 * sysdeps/powerpc/powerpc32/Dist: New file.
908 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
909 * sysdeps/powerpc/powerpc32/Implies: New file.
910 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
911 ($(with-fp) = no): Move test to powerpc32/Makefile.
912 ($(subdir) = misc): Move to powerpc32/Makefile.
913 ($(build-shared) = yes): Move to powerpc32/Makefile.
914 ($(subdir) = csu): Move to powerpc32/Makefile.
915 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
916 * sysdeps/powerpc/powerpc32/Makefile: New file.
917 * sysdeps/powerpc/Versions: Remove libgcc functions.
918 * sysdeps/powerpc/powerpc32/Versions: New file.
919 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
920 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
921 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
922 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
923 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
924 ($machine): Add powerpc/powerpc64 to if ... | for
925 libc_cv_slibdir=/libc64.
926 (powerpc*): Set ldd_rewrite_script.
927 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
928 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
931 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
932 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
933 functions. Remove GLIBC_2.2 functions except getrlimit and
934 setrlimit. Moved them to ...
935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
937 2002-09-04 Ulrich Drepper <drepper@redhat.com>
939 * libio/tst-atime.c: Include <errno.h>.
940 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
942 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
944 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
945 warnings of some compilers.
946 (build_collating_symbol): Change the type of characters from
947 "unsigned char" to "char", and append a cast to "char*" pointer in
949 (build_collating_symbol): Likewise.
950 (build_equiv_class): Likewise.
951 (build_charclass): Likewise.
952 (re_compile_pattern): Remove incorrect cast.
953 (re_compile_fastmap_iter): Change the type of characters from
954 "unsigned char" to "char", and append a cast to "char*" pointer
956 (parse_bracket_exp): Likewise.
957 * posix/regex_internal.c (re_string_construct_common): Likewise.
958 (re_string_allocate): Likewise.
959 (re_string_construct): Likewise.
960 (re_string_realloc_buffers): Likewise.
961 (build_wcs_buffer): Likewise.
962 (re_string_reconstruct): Likewise.
963 * posix/regex_internal.h: Change the type of characters in
964 re_string_t and bracket_elem_t from "unsigned char" to "char".
965 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
966 warnings of some compilers.
967 (transit_state_bkref_loop): Change the type of characters from
968 "unsigned char" to "char", and append a cast to "char*" pointer in
970 (check_node_accept_bytes): Likewise.
971 (find_collation_sequence_value): Likewise.
973 2002-09-04 Roland McGrath <roland@redhat.com>
975 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
976 from 1024 to 65536, to avoid buffer overrun.
978 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
980 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
982 2002-09-04 Ulrich Drepper <drepper@redhat.com>
984 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
987 2002-09-04 Jakub Jelinek <jakub@redhat.com>
989 * posix/bug-regex11.c: New test.
990 * posix/Makefile (tests): Add bug-regex11.
992 2002-09-03 Jakub Jelinek <jakub@redhat.com>
994 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
997 2002-09-02 Roland McGrath <roland@redhat.com>
999 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1000 __pthread_initialize_minimal and __libc_check_standard_fds to
1001 match the generic version.
1003 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1004 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1006 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1007 warnings on platorms where char is unsigned.
1009 2002-09-02 Ulrich Drepper <drepper@redhat.com>
1011 * version.h (VERSION): Bump to 2.2.93.
1013 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1015 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1017 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1020 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
1022 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1024 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1026 * locale/localeinfo.h (struct locale_data): Add private.ctype.
1027 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1028 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1029 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1030 (__wcsmbs_load_conv): Remove const from argument.
1031 (_nl_cleanup_ctype): New proto.
1032 (get_gconv_fcts): New function.
1033 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1034 (__wcsmbs_to_wc): Rename back to...
1036 (__wcsmbs_gconv_fcts): Rename to...
1037 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
1039 (__libc_setlocale_lock): New extern.
1040 (__wcsmbs_load_conv): Remove const from argument.
1041 Initialize new_category->private.ctype instead of a global
1043 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1044 update_function_ptrs. No locking is necessary.
1045 (_nl_cleanup_ctype): New function.
1046 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1047 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1048 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1049 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1050 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1051 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1052 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1053 * wcsmbs/wctob.c (wctob): Likewise.
1054 * stdlib/mblen.c (mblen): Likewise.
1055 * stdlib/mbtowc.c (mbtowc): Likewise.
1056 * stdlib/wctomb.c (wctomb): Likewise.
1057 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1058 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1059 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1062 2002-09-02 Roland McGrath <roland@frob.com>
1064 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1066 2002-09-01 Roland McGrath <roland@redhat.com>
1068 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1069 Variable declarations removed.
1070 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1071 these functions to replace them.
1072 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1073 functions plus an indirection rather than the old global variables.
1074 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1076 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1078 * ctype/ctype-info.c: Revert last reversion back the other way.
1079 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1080 Define real function versions of include/ctype.h inlines here.
1081 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1082 __ctype_tolower_loc, __ctype_toupper_loc.
1083 * locale/lc-ctype.c: Revert last reversion back the other way.
1084 (_nl_postload_ctype): If current thread uses the global locale,
1085 update its tsd vars.
1086 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1087 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1088 CTYPE_TOLOWER, CTYPE_TOUPPER.
1090 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1091 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1092 from __libc_tsd_threadvar_location.
1093 (__libc_tsd_set, __libc_tsd_get): Update uses.
1095 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1097 * ctype/ctype.h: Undo the patch before the last one. Put back the
1098 macro definitions for the standard functions to access the
1099 classification and mapping arrays.
1100 * include/ctype.h: Partly revert last patch. Move the macro
1101 definitions for the exported functions back to the public header.
1102 #undef all the macros defined here before redefining.
1103 * ctype/ctype-info.c: Revert last patch.
1104 * locale/lc-ctype.c: Revert last patch.
1106 * ctype/Makefile (routines): Add isctype.
1107 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1108 * ctype/ctype.h: Add declaration of isctype.
1109 * include/ctype.h: Declare __isctype.
1110 * ctype/isctype.c: New file.
1112 2002-09-01 Roland McGrath <roland@redhat.com>
1114 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1115 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1117 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1119 * locale/findlocale.c (_nl_remove_locale): Don't search in
1120 _nl_locale_file_list if DATA->alloc is ld_archive.
1121 Use _nl_unload_locale to do the rest of the work.
1123 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1124 of new structure to UNDELETABLE.
1126 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1127 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1128 towlower, towupper): Macros removed.
1129 * ctype/ctype.h (__tobody): Put parens around macro argument.
1130 (__isctype): Macro removed.
1131 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1132 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1133 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1134 tolower, toupper): Macros and inlines removed.
1135 * include/ctype.h [! NOT_IN_libc]
1136 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1137 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1138 tolower, toupper): Define here instead, using _NL_CURRENT.
1139 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1141 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1142 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1143 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1144 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1145 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1146 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1147 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1148 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1149 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1150 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1151 (ISSORTMASK): Update use.
1152 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1153 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1154 (_nss_files_getENTNAME_r): Likewise.
1155 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1158 * Makerules (all-nonlib): Renamed from all-tests.
1159 Include $(others) here too.
1160 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1161 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1162 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1163 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1164 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1165 the program modules via cppflags-iterator.mk.
1166 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1167 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1169 2002-08-31 Roland McGrath <roland@redhat.com>
1171 * posix/tst-getconf.sh: If no third arg, work with static linking.
1173 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1175 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1176 [_NL_CURRENT_INDIRECT].
1178 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1180 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1182 2002-08-31 Roland McGrath <roland@redhat.com>
1184 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1185 Instead, make the single allocation of the structure larger to hold
1187 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1188 Instead, calculate size for a single allocation and copy into it.
1189 * locale/freelocale.c (__freelocale): Don't free names individually.
1191 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1193 * locale/xlocale.h (__locale_struct): Move __names member last,
1194 for binary compatibility.
1196 * locale/duplocale.c (__duplocale): Free names from the right array.
1198 * locale/uselocale.c (__uselocale): Return previous locale when
1201 * locale/newlocale.c: Commit changes from 2002-08-30
1202 batch where I failed to commit this file:
1203 (__newlocale): Fill in __names array.
1205 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1207 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1208 errlist-compat.c if versioning==yes.
1210 2002-08-31 Andreas Jaeger <aj@suse.de>
1212 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1213 external functions with hidden attribute.
1214 (elf_machine_rela): Optimize.
1216 * sysdeps/x86_64/memset.S: New file.
1217 * sysdeps/x86_64/bzero.S: New file.
1218 * sysdeps/x86_64/stpcpy.S: New file.
1219 * sysdeps/x86_64/strcat.S: New file.
1220 * sysdeps/x86_64/strchr.S: New file.
1221 * sysdeps/x86_64/strcpy.S: New file.
1222 * sysdeps/x86_64/strcspn.S: New file.
1223 * sysdeps/x86_64/strlen.S: New file.
1224 * sysdeps/x86_64/strpbrk.S: New file.
1225 * sysdeps/x86_64/strspn.S: New file.
1226 * sysdeps/x86_64/strcmp.S: New file.
1227 * sysdeps/x86_64/strtok_r.S: New file.
1228 * sysdeps/x86_64/strtok.S: New file.
1229 * sysdeps/x86_64/memcpy.S: New file.
1230 * sysdeps/x86_64/mempcpy.S: New file.
1232 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1234 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1236 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1238 * stdio-common/Makefile (generated): Add errlist-compat.c.
1240 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1242 * locale/localeinfo.h: Pretty printing.
1244 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1245 form_number handling.
1247 2002-08-31 Andreas Jaeger <aj@suse.de>
1249 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1252 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1255 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1257 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1259 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1260 registers used for passing args.
1262 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1263 all needed registers.
1265 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1268 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1271 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1273 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1274 always_inline attribute.
1276 2002-08-30 Roland McGrath <roland@redhat.com>
1278 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1279 presume it's the stub and bail without error.
1281 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1282 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1284 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1286 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1287 macros replace the i686 versions for 64-bit mode.
1289 * locale/duplocale.c: Include <string.h>.
1291 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1292 [_LIBC] (category_to_name): Don't define the function. Instead
1293 define a macro using _nl_category_names.
1295 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1296 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1297 * locale/global-locale.c (_nl_global_locale): Likewise.
1298 * locale/duplocale.c (__duplocale): strdup __names elements.
1299 * locale/freelocale.c (__freelocale): Free __names elements.
1300 * locale/localename.c (_nl_current_names): Variable removed.
1301 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1302 * locale/localeinfo.h (_nl_current_names): Removed decl.
1303 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1304 _nl_current_names throughout.
1306 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1308 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1309 and sys_nerr in the output file.
1311 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1312 * scripts/cpp: Just use the environment variable.
1314 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1315 * libio/tst-mmap-offend.c (do_test): Likewise.
1316 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1317 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1318 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1320 * locale/localename.c: If the current locale is the global locale, use
1321 _nl_current_names; otherwise use the locale object.
1323 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1325 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1326 'm' to enable mmap I/O.
1327 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1328 former wasn't used (anymore?).
1329 (_IO_FLAGS2_MMAP): New define.
1330 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1331 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1332 _IO_FLAGS2_MMAP bit is set.
1333 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1334 Enable mmap-using mode only if 'm' was set.
1336 2002-08-29 Roland McGrath <roland@frob.com>
1338 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1340 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1341 Change argument type from int to intptr_t.
1343 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1344 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1345 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1346 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1347 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1349 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1351 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1353 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1355 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1356 * assert/assert-perr.c: Add libc_hidden_def.
1357 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1359 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1361 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1362 sys_errlist stuff to ...
1363 * sysdeps/unix/sysv/linux/Versions: ... here.
1365 * mach/mach.h: Include <features.h>.
1367 2002-08-29 Roland McGrath <roland@redhat.com>
1369 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1370 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1371 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1373 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1375 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1376 (norm_add_slashes): alloca -> __alloca
1378 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1380 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1381 string_malloced, it is unlikely to be set.
1382 Only call free with non-NULL workspace.
1383 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1384 -mcpu=ultrasparc, not only tune for it.
1385 (ASFLAGS*): Set unconditionally.
1387 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1388 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1389 p_vaddr/p_offset when computing LOADADDR.
1391 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1393 * version.h (VERSION): Bump to 2.2.92.
1395 * time/Makefile (tst-ftime_l-ENV): New variable.
1397 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1399 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1400 <U017A>, <U017D> and <U0179>. Add missing mappings.
1401 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1403 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1404 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1405 (struct tostruct): Use ACRINDEX as type for link field.
1406 (statuc gmonparam): Likewise for froms.
1407 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1409 (write_call_graph): Use correct type for from_index and to_index.
1410 * gmon/mcount.c: Use correct types for frompcindex and toindex
1412 Patches by Dan Kegel <dank@kegel.com>.
1414 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1417 * time/strptime.c (ISSPACE): New #define. Use isspace or
1418 __isspace_l. Replace calls to isspace.
1419 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1421 2002-08-29 Roland McGrath <roland@redhat.com>
1423 * string/tst-strxfrm.c: Remove __ from function names.
1425 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1427 * include/wchar.h: Declare __mbsrtowcs_l.
1428 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1429 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1430 USE_IN_EXTENDED_LOCALE_MODEL.
1431 * wcsmbs/mbsrtowcs_l: New file.
1432 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1433 define as static. Change all uses.
1434 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1436 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1437 * time/strftime.c: When translating for the extended locale model
1438 use the _l functions.
1439 * time/Makefile (tests): Add tst-ftime_l.
1440 * time/tst-ftime_l.c: New file.
1442 2002-08-28 Roland McGrath <roland@redhat.com>
1444 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1445 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1446 from _nl_find_locale ok if for _nl_C_name.
1448 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1449 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1450 we know they are all linked in.
1452 * NEWS: Added 2.2.6 text from 2.2 branch version.
1454 * time/strptime.c (strptime_internal): Remove spurious const.
1456 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1457 _nl_select_era_entry): Moved to ...
1458 * time/era.c: ... here, new file.
1459 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1460 Add internal_function to definitions. Take an additional argument
1461 giving the `struct locale_data *' to use.
1462 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1463 _nl_parse_alt_digit): Moved to ...
1464 * time/alt_digit.c: ... here, new file.
1465 * time/lc-time-cleanup.c: New file.
1466 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1467 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1468 (_nl_cleanup_time): Declare it.
1469 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1470 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1471 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1472 * time/strftime.c: Pass locale data to helper functions.
1473 * time/strptime.c: Likewise.
1475 * locale/localeinfo.h (struct locale_data): New member `private'
1476 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1477 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1478 * locale/C-collate.c: Update initializer.
1479 * locale/C-identification.c: Likewise.
1480 * locale/C-measurement.c: Likewise.
1481 * locale/C-telephone.c: Likewise.
1482 * locale/C-address.c: Likewise.
1483 * locale/C-name.c: Likewise.
1484 * locale/C-paper.c: Likewise.
1485 * locale/C-time.c: Likewise.
1486 * locale/C-numeric.c: Likewise.
1487 * locale/C-monetary.c: Likewise.
1488 * locale/C-messages.c : Likewise.
1489 * locale/C-ctype.c: Likewise.
1491 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1494 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1496 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1497 (_rtld_global): Use it.
1499 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1500 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1501 object directory. Pass all Versions files to the awk script.
1502 * sysdeps/gnu/errlist-compat.c: Removed.
1503 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1504 first Versions file in the search path which has them.
1505 Allow multiple errlist symbol versions to have the same count of
1507 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1508 of "errlist-compat.c".
1509 * sysdeps/gnu/errlist.c: Regenerated.
1510 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1511 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1512 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1513 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1514 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1515 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1516 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1517 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1518 ECANCELLED if not defined by kernel headers.
1519 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1520 already defined by kernel headers.
1521 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1522 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1523 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1525 * Versions.def (GLIBC_2.3) [librt]: Add.
1527 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1529 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1531 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1532 missing comma to .type directive.
1534 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1536 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1538 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1540 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1542 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1544 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1545 check to close_and_out close. Replace return NULL statements where
1546 fd might be >= 0 with goto close_and_out. Close the file descriptor
1547 when it is no longer needed.
1549 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1551 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1553 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1554 * sysdeps/arm/dl-machine.h: Likewise.
1555 * sysdeps/cris/dl-machine.h: Likewise.
1556 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1557 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1559 2002-08-28 Roland McGrath <roland@redhat.com>
1561 * Makeconfig (default_cflags): Revert unintended change.
1563 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1565 * version.h (VERSION): Bump to 2.2.91.
1567 * configure.in: Disable TLS support by default for now.
1569 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1571 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1574 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1576 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1577 fprintf/fwprintf calls.
1579 2002-08-28 Roland McGrath <roland@redhat.com>
1581 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1582 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1584 * locale/setlocale.c: Declare postload functions weak.
1586 * elf/tst-tls1-static.c: New file.
1587 * elf/tst-tls2-static.c: New file.
1588 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1590 Make uselocale support static linking.
1591 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1592 This file again just defines _nl_C_locobj.
1593 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1594 * locale/global-locale.c: New file. Define _nl_global_locale here,
1595 using all weak references in the initializer.
1596 * locale/Makefile (aux): Add global-locale.
1597 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1598 these unconditional, along with the tsd decl.
1599 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1600 Define it under these conditions.
1601 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1602 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1603 `extern __thread struct locale_data *const *'.
1604 [NL_CURRENT_INDIRECT]
1605 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1606 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1607 the thread variable _nl_current_LC_FOO and also a special absolute
1608 symbol _nl_current_LC_FOO_used.
1609 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1610 Set each _nl_current_LC_FOO symbol to point into the new locale,
1611 using weak references to test if _nl_current_LC_FOO_used was linked in.
1612 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1613 [NL_CURRENT_INDIRECT]: ... with this one.
1614 (_nl_current, _nl_C): Variables removed.
1615 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1616 weak references to _nl_current_LC_FOO_used.
1617 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1618 (free_category): New function, broken out of ...
1619 (free_mem): ... here. Call that.
1620 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1623 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1624 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1625 it is already absolute.
1627 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1628 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1629 [$(build-static) = yes] (tests-static): New variable.
1630 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1632 2002-08-26 Christoph Hellwig <hch@lst.de>
1634 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1635 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1637 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1639 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1641 * sysdeps/s390/Dist: Add bits/link.h.
1643 * sysdeps/sh/Dist: New file.
1645 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1647 * sysdeps/wordsize-32/Dist: New file.
1649 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1650 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1651 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1653 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1656 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1659 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1661 * sysdeps/unix/bsd/sun/Dist: New file.
1663 * sysdeps/unix/bsd/osf/Dist: New file.
1665 * sysdeps/unix/bsd/hp/Dist: New file.
1667 * sysdeps/unix/arm/Dist: New file.
1669 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1671 * sysdeps/mach/hurd/Dist: Add set-init.c.
1673 * sysdeps/i386/Dist: Add bits/link.h.
1675 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1677 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1679 * locale/Makefile (distribute): Add hashval.h.
1681 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1683 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1685 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1686 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1687 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1688 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1690 * libio/stdio.h: Likewise.
1691 * locale/locale.h: Likewise.
1692 * math/math.h: Likewise.
1693 * math/bits/mathcalls.h: Likewise.
1694 * setjmp/setjmp.h: Likewise.
1695 * signal/signal.h: Likewise.
1696 * stdlib/stdlib.h: Likewise.
1697 * string/string.h: Likewise.
1698 * time/time.h: Likewise.
1699 * wcsmbs/wchar.h: Likewise.
1700 * wctype/wctype.h: Likewise.
1702 2002-08-28 Roland McGrath <roland@redhat.com>
1704 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1706 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1707 Roland McGrath <roland@redhat.com>
1709 * locale/hashval.h (compute_hashval): Use prototype defn.
1710 (hashval_t): New macro, defined to unsigned long int
1711 if not already defined.
1712 (compute_hashval): Return hashval_t instead of unsigned long int.
1713 * locale/loadarchive.c (hashval_t): New macro.
1714 * locale/programs/locarchive.c: Include hashval.h directly instead
1716 (compute_hashval, hashval_t): Define these macros first.
1717 (insert_name): Use archive_hashval instead of compute_hashval.
1718 (add_locale, delete_locales_from_archive): Likewise.
1720 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1722 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1723 hash collisions if be_quiet.
1725 2002-08-27 Roland McGrath <roland@redhat.com>
1727 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1728 __uselocale): Don't declare these any more.
1729 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1731 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1732 and treat it as an EOF return.
1733 * sysdeps/unix/readdir_r.c: Likewise.
1735 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1736 From Alexandre Oliva <aoliva@redhat.com>.
1737 * sysdeps/gnu/errlist-compat.c: Regenerated.
1739 2002-08-27 Brian Youmans <3diff@gnu.org>
1741 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1742 wording at request of copyright holder Stephen Moshier.
1743 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1744 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1745 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1746 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1747 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1748 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1749 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1750 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1751 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1752 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1753 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1754 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1755 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1756 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1758 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1760 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1761 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1762 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1763 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1764 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1765 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1766 * wctype/iswctype_l.c (iswctype_l): Likewise.
1768 2002-08-27 Roland McGrath <roland@redhat.com>
1770 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1772 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1773 * stdlib/stdlib.h: Don't declare __*_l names.
1774 * include/stdlib.h: Declare them here instead.
1775 * include/string.h: Don't declare __*_l names.
1776 * string/string.h: Declare them here instead.
1777 * time/time.h: Don't declare __*_l names.
1778 * include/time.h: Declare them here instead.
1779 * wcsmbs/wchar.h: Don't declare __*_l names.
1780 * include/wchar.h: Declare them here instead.
1781 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1782 Don't declare __*_l names.
1783 * include/wctype.h: Declare them here instead.
1784 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1785 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1786 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1787 * include/langinfo.h: Declare it here with __typeof.
1789 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1790 instead, taking an extra __locale_t argument.
1791 * time/Makefile (routines): Add strptime_l.
1792 * time/time.h (__strptime_l, strptime_l): Declare them.
1793 * time/strptime_l.c: New file.
1795 * time/time.h (__strftime_l, strftime_l): Declare them.
1796 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1797 * time/strftime_l.c: New file.
1798 * time/wcsftime_l.c: New file.
1799 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1800 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1801 strftime_l, wcsftime_l.
1802 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1803 or __wcsftime_l instead, taking an extra __locale_t argument.
1805 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1806 (libc: GLIBC_2.3): ... here.
1808 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1810 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1812 * Makefile (distribute): Add LICENSES.
1814 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1817 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1819 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1821 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1823 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1825 * sysdeps/mach/hurd/alpha/Dist: New file.
1827 * sysdeps/arm/Dist: Add bits/link.h.
1829 * sunrpc/Makefile: Distribute thrsvc.
1831 * stdio-common/Makefile: Remove more left-overs from old stdio.
1833 * include/linewrap.h: Removed.
1835 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1837 * intl/Makefile (distribute): Add plural-eval.c.
1839 2002-08-27 Roland McGrath <roland@redhat.com>
1841 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1842 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1843 Say mtab is in either /var/run or /etc.
1845 2002-08-26 Roland McGrath <roland@redhat.com>
1847 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1848 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1850 * sysdeps/gnu/Versions: New file.
1851 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1852 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1853 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1854 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1855 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1856 and _sys_nerr_internal instead of anything else. Make it include
1857 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1858 Make it emit some asm magic if [EMIT_ERR_MAX].
1859 * sysdeps/gnu/errlist.c: Regenerated.
1860 * sysdeps/gnu/errlist-compat.awk: New file.
1861 * sysdeps/gnu/errlist-compat.c: New file (generated).
1862 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1863 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1864 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1865 (SYS_ERRLIST, SYS_NERR): Macros removed.
1866 (sys_nerr, _sys_nerr): Remove these weak aliases.
1867 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1868 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1869 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1871 * include/libc-symbols.h (declare_symbol): New macro.
1872 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1873 * configure.in: New check to define it.
1874 * configure: Regenerated.
1876 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1878 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1879 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1881 * Make-dist: Remove traces of old stdio.
1882 * Makeconfig: Likewise.
1884 * locale/Makefile (localedef-aux): New variable. Only md5
1885 assigned to it. These files are not ddistributed in this directory.
1887 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1888 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1889 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1891 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1893 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1894 set h_errno to NO_RECOVERY [PR libc/4360].
1896 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1898 * libio/Makefile (tests): Add bug-fopena+.
1899 * libio/bug-fopena+.c: New file.
1900 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1901 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1903 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1905 * locale/xlocale.c: Fix the last change. The variable still has
1907 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1908 (__libc_tsd_set): Add _data prefix to variable name.
1910 2002-08-26 Roland McGrath <roland@redhat.com>
1912 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1913 macro with inline function.
1914 (sigset_get_old_mask): Likewise.
1915 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1916 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1917 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1918 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1919 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1920 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1922 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1923 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1925 2002-07-06 Bruno Haible <bruno@clisp.org>
1927 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1928 sigset_get_old_mask): Make it work with larger sigset_t.
1929 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1930 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1931 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1933 2002-08-26 Roland McGrath <roland@redhat.com>
1935 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1936 * manual/filesys.texi (File Times): Document lutimes and futimes.
1937 * misc/Makefile (routines): Add them.
1938 * misc/Versions (libc: GLIBC_2.3): Likewise.
1939 * sysdeps/generic/lutimes.c: New file.
1940 * sysdeps/generic/futimes.c: New file.
1941 * sysdeps/mach/hurd/lutimes.c: New file.
1942 * sysdeps/mach/hurd/futimes.c: New file.
1944 * manual/filesys.texi (File Times): Add explicit note about null
1945 pointer argument to utimes.
1947 2002-08-26 Roland McGrath <roland@frob.com>
1949 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1950 (__ifreq): Add a cast. Remove an unused variable.
1952 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1953 _HURD_THREADVAR_LOCALE.
1955 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1957 * posix/regexec.c (re_search_stub): Return correct match length
1959 * posix/bug-regex10.c: New test.
1960 * posix/Makefile (tests): Add bug-regex10.
1962 2002-08-26 Brian Youmans <3diff@gnu.org>
1964 * COPYING.LIB: Replaced with fresh copy from
1965 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1966 suggested copying permission notice now says version 2.1 instead
1969 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1971 * crypt/crypt_util.c: Likewise.
1972 * crypt/ufc.c: Likewise.
1973 * elf/dl-conflict.c: Likewise.
1974 * elf/dl-iteratephdr.c: Likewise.
1975 * iconv/iconvconfig.h: Likewise.
1976 * malloc/arena.c: Likewise.
1977 * malloc/hooks.c: Likewise.
1978 * malloc/malloc.c: Likewise.
1979 * posix/glob/Makefile.ami: Likewise.
1980 * posix/glob/Makefile.in: Likewise.
1981 * stdlib/gmp-impl.h: Likewise.
1982 * stdlib/gmp.h: Likewise.
1983 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1984 * sysdeps/generic/strnlen.c: Likewise.
1985 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1986 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1987 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1988 * sysdeps/mach/hurd/spawni.c: Likewise.
1989 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1990 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1991 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1992 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1993 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1994 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1996 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1997 Lesser GPL copying permission notice from 2 to 2.1.
1998 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1999 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2000 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2001 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2002 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2003 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2004 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2005 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2006 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2007 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2008 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2009 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2010 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2011 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2012 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2013 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2014 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2015 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2016 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2017 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2018 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2019 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2020 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2021 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2022 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2023 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2024 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2025 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2026 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2027 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2028 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2029 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2030 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2031 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2032 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2033 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2034 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2035 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2036 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2037 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2038 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2039 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2040 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2041 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2042 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2043 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2044 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2045 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2046 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2047 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2048 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2049 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2050 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2051 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2052 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2054 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2055 Moshier and Lesser GPL copying permission notice, per license from
2057 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2058 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2059 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2060 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2061 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2062 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2063 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2064 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2065 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2066 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2067 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2068 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2069 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2070 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2072 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2073 notice, per license from copyright holder Stephen Moshier.
2074 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2075 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2076 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2077 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2078 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2079 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2080 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2081 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2082 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2084 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2086 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2087 (shared-only-routines): Likewise.
2089 2002-08-26 Roland McGrath <roland@redhat.com>
2091 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2092 name of "", store a null pointer instead.
2094 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2095 * configure: Regenerated.
2097 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2098 Initialize this instead of __libc_tsd_LOCALE_data.
2100 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2101 ptsname_r to EINVAL.
2103 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2105 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2106 implementations depend on pthreads.
2107 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2108 * rt/tst-aio64.c (do_test): Likewise.
2109 * rt/tst-aio2.c (do_test): Likewise.
2110 * rt/tst-aio3.c (do_test): Likewise.
2111 * rt/tst-aio4.c (do_test): Likewise.
2112 * rt/tst-aio5.c (do_test): Likewise.
2113 * rt/tst-aio6.c (do_test): Likewise.
2114 * rt/tst-aio7.c (do_test): Likewise.
2116 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2117 void so as to avoid compiler warnings.
2119 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2120 _IO_wide_data_FD, which is never used here.
2123 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2124 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2125 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2127 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2128 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2130 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2131 (closelog): Likewise.
2133 2002-07-06 Bruno Haible <bruno@clisp.org>
2135 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2137 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2138 * sysdeps/unix/alpha/pipe.S: ... here.
2139 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2141 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2143 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2144 * sysdeps/unix/i386/fork.S: Likewise.
2145 * sysdeps/unix/i386/pipe.S: Likewise.
2146 * sysdeps/unix/i386/wait.S: Likewise.
2148 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2149 * sysdeps/unix/arm/fork.S: Likewise.
2151 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2153 (DO_CALL): Swap argument order.
2154 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2156 (DO_CALL): Swap argument order.
2157 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2159 (DO_CALL): Swap argument order.
2160 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2162 (DO_CALL): Swap argument order.
2163 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2165 (DO_CALL): Swap argument order.
2166 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2168 (DO_CALL): Swap argument order.
2169 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2171 (DO_CALL): Swap argument order.
2173 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2174 (L): Define right for ELF.
2175 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2176 Now defined in sysdeps/i386/sysdep.h.
2178 * sysdeps/posix/readv.c: Ansify function definition.
2179 * sysdeps/posix/writev.c: Likewise.
2181 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2182 have the same size. Avoid direct cast from size_t to off_t.
2184 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2185 nul byte in entry[n].ut_user.
2186 (simulate_logout): Likewise.
2188 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2189 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2190 existence of corresponding members of 'struct utmp'.
2191 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2194 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2195 allocate a buffer of at least BUFSIZ bytes, not just of
2196 sizeof (struct dirent).
2198 * sysdeps/generic/glob.c: Include <limits.h>.
2199 (NAME_MAX): Define a fallback.
2200 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2202 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2203 (main): Allocate enough room for a 'struct dirent64' on the stack.
2204 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2207 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2210 * inet/htontest.c: Include <sys/types.h>.
2212 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2214 * include/sys/sysctl.h: Comment fix.
2216 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2218 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2220 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2222 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2223 (__getpeername): New alias.
2224 (__getsockname): New alias.
2225 (__socket): New alias.
2227 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2229 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2230 (__fcntl_internal): New alias.
2231 (__profil): New alias.
2233 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2235 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2236 entry was for getaddr* lookup or not. Add only matching cache
2237 entry. Change all callers [PR libc/4317].
2239 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2240 finding the read position [PR libc/4265].
2241 * libio/Makefile (tests): Add bug-rewind2.
2242 * libio/bug-rewind2.c: New file.
2244 * libio/bug-rewind.c: Fix creation of temp file.
2246 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2248 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2249 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2250 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2251 to ENOENT if no entry is found.
2252 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2254 * nis/nss_compat/compat-initgroups.c: Likewise.
2255 * nis/nss_compat/compat-pwd.c: Likewise.
2256 * nis/nss_compat/compat-spwd.c: Likewise.
2257 * nis/nss_nis/nis-alias.c: Likewise.
2258 * nis/nss_nis/nis-ethers.c: Likewise.
2259 * nis/nss_nis/nis-grp.c: Likewise.
2260 * nis/nss_nis/nis-hosts.c: Likewise.
2261 * nis/nss_nis/nis-initgroups.c: Likewise.
2262 * nis/nss_nis/nis-netgrp.c: Likewise.
2263 * nis/nss_nis/nis-network.c: Likewise.
2264 * nis/nss_nis/nis-proto.c: Likewise.
2265 * nis/nss_nis/nis-publickey.c: Likewise.
2266 * nis/nss_nis/nis-pwd.c: Likewise.
2267 * nis/nss_nis/nis-rpc.c: Likewise.
2268 * nis/nss_nis/nis-service.c: Likewise.
2269 * nis/nss_nis/nis-spwd.c: Likewise.
2270 * resolv/nss_dns/dns-host.c: Likewise.
2271 * resolv/nss_dns/dns-network.c: Likewise.
2272 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2273 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2274 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2275 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2276 * nis/nss_nisplus/nisplus-network.c: Likewise.
2277 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2278 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2279 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2280 * nis/nss_nisplus/nisplus-service.c: Likewise.
2281 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2282 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2283 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2284 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2285 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2287 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2288 declaring __restore and __restore_rt as hidden (if possible).
2290 2002-08-25 Roland McGrath <roland@redhat.com>
2292 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2294 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2295 (getutent_r_file, internal_getut_r): Updated all callers.
2296 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2298 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2300 * locale/programs/locale.c: Don't print aliases for non-existing
2301 locales for 'locale -a'.
2302 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2304 2002-07-19 H.J. Lu <hjl@gnu.org>
2306 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2308 2002-07-16 H.J. Lu <hjl@gnu.org>
2310 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2312 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2314 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2316 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2317 not moved ahead of the fputs call.
2318 * elf/tst-tlsmod2.c (in_dso): Likewise.
2319 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2320 * elf/tst-tlsmod4.c (in_dso): Likewise.
2322 2002-08-25 Andreas Schwab <schwab@suse.de>
2324 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2326 2002-08-25 Roland McGrath <roland@redhat.com>
2328 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2329 resetting handler, to avoid the possibility of a spurious SIGALRM
2330 delivered to the user's handler.
2331 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2333 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2334 set -fkeep-inline-functions, which is not needed for the current file.
2336 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2337 (_dl_setup_hash): Add attribute_hidden.
2338 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2339 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2340 (_dl_new_object, _dl_map_object_deps): Likewise.
2341 (_dl_map_object_deps_internal): Remove decl.
2342 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2344 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2345 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2346 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2347 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2348 instead relying on the compiler to produce only GOTOFF variable refs.
2350 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2352 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2354 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2355 inline to avoid defining it in every file which includes this header.
2357 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2358 defining DONT_USE_BOOTSTRAP_MAP.
2360 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2361 * libio/tst-mmap-setvbuf.c (main): Likewise.
2362 * libio/tst-widetext.c (main): Likewise.
2364 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2366 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2367 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2369 * sysdeps/i386/elf/configure.in: Unconditionally define
2370 PI_STATIC_AND_HIDDEN.
2371 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2372 PI_STATIC_AND_HIDDEN is defined as well.
2373 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2375 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2377 * sysdeps/ia64/bzero.S: Define __bzero as well.
2379 * locale/programs/charmap.c (charmap_new_char): Don't use
2380 ULONG_MAX as maximum UCS4 value.
2382 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2384 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2386 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2387 * malloc/malloc.c (mALLINFo): Likewise.
2389 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2391 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2392 examining result of _IO_do_flush call.
2394 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2395 Use prec not spec when sizing buffers.
2397 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2398 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2399 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2400 * stdio-common/vfscanf.c (inchar): Likewise.
2401 * misc/efgcvt_r.c (fcvt_r): Likewise.
2402 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2403 * elf/readlib.c (process_file): Likewise.
2404 * elf/sprof.c (load_profdata): Likewise.
2405 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2406 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2407 * locale/programs/charmap.c (charmap_read): Likewise.
2408 * libio/fileops.c: Likewise.
2409 * libio/fmemopen.c: Likewise.
2410 * stdlib/strtod.c: Likewise.
2411 * elf/dl-load.c: Likewise.
2412 * iconv/iconvconfig.c: Likewise.
2413 * iconv/iconv_prog.c (process_block): Likewise.
2414 * elf/rtld.c (dl_main): Likewise.
2416 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2417 macro to calm down the compiler.
2419 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2421 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2423 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2424 placement of errno definition.
2425 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2426 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2427 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2428 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2429 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2431 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2432 from 1024 to 65536, to avoid buffer overrun.
2434 2002-08-16 Paul Eggert <eggert@twinsun.com>
2436 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2437 from 1024 to 65536, to avoid buffer overrun.
2438 * resolv/res_query.c (MAXPACKET): Likewise.
2440 2002-08-24 Andreas Jaeger <aj@suse.de>
2442 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2444 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2446 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2449 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2450 Patch by Simon Gee <simong@agile.tv>.
2452 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2453 Prefer reading /proc/stat since it is more uniform across
2456 * manual/texinfo.tex: Update to latest official version.
2458 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2459 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2460 * sysdeps/gnu/bits/shm.h: Likewise.
2461 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2462 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2463 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2464 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2465 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2466 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2467 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2468 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2469 since this is what the kernel says.
2471 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2472 since ssize_t is needed as well. Replace const with __const.
2474 2002-08-23 Roland McGrath <roland@redhat.com>
2476 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2477 __malloc_hook, __realloc_hook, __memalign_hook,
2478 __after_morecore_hook): Variable definitions moved to ...
2479 * malloc/malloc.c: ... here, so as to be before all references.
2481 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2482 global variable reference in an unused asm parameter, to ensure the
2483 compiler has set up the GOT register before we use it.
2485 * malloc/hooks.c: Move variable definitions ahead of uses.
2486 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2487 initializers that make reference to variables they define.
2489 2002-08-23 Andreas Jaeger <aj@suse.de>
2491 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2492 alloca, free, qsort.
2494 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2496 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2497 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2499 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2501 * sysdeps/generic/fgetxattr.c: New file.
2502 * sysdeps/generic/flistxattr.c: New file.
2503 * sysdeps/generic/fremovexattr.c: New file.
2504 * sysdeps/generic/fsetxattr.c: New file.
2505 * sysdeps/generic/getxattr.c: New file.
2506 * sysdeps/generic/listxattr.c: New file.
2507 * sysdeps/generic/lgetxattr.c: New file.
2508 * sysdeps/generic/llistxattr.c: New file.
2509 * sysdeps/generic/lremovexattr.c: New file.
2510 * sysdeps/generic/lsetxattr.c: New file.
2511 * sysdeps/generic/removexattr.c: New file.
2512 * sysdeps/generic/setxattr.c: New file.
2513 * misc/Makefile (headers): Add sys/xattr.h.
2514 (routines): Add *xattr calls.
2515 * misc/Versions: Add *xattr calls with version 2.3.
2516 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2517 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2518 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2519 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2520 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2521 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2522 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2523 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2525 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2527 * sysdeps/powerpc/elf/libc-start.c
2528 (__cache_line_size): Declare.
2529 (__aux_init_cache): New function.
2530 (__libc_start_main): Change type of `auxvec' parameter to
2531 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2533 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2534 (__cache_line_size): Declare.
2535 (__aux_init_cache): New function.
2536 (DL_PLATFORM_INIT): Define.
2537 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2538 value to select the correct stride for dcbz.
2540 2002-08-22 Andreas Jaeger <aj@suse.de>
2542 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2545 2002-08-22 Roland McGrath <roland@redhat.com>
2547 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2548 position indicated by locrectab against file bounds before rounding to
2549 page size. In mapping loop, always set TO before breaking out of
2550 contiguous range coalescing loop.
2552 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2553 (or MAP_COPY if available) instead of MAP_SHARED.
2555 * scripts/firstversions.awk: When encountering a version newer than
2556 the specified earliest version, be sure to emit the specified earliest
2557 version first if any renaming of an older version to that has been.
2559 2002-08-21 Roland McGrath <roland@redhat.com>
2561 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2562 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2563 (Configuring and compiling): Don't mention older GCC versions any more.
2564 * INSTALL: Regenerated.
2566 * manual/install.texi (Configuring and compiling, Installation,
2567 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2569 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2570 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2571 and with noinline otherwise. Remove hack alloca use to prevent
2572 inlining, we can ask for it explicitly nowadays.
2574 * dlfcn/bug-dlsym1.c: New file.
2575 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2576 * dlfcn/Makefile (distribute): Add them.
2577 (tests): Add bug-dlsym1 here.
2578 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2579 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2580 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2582 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2584 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2585 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2587 (_dl_start): Don't use local bootstrap_map variable if
2588 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2589 pass bootstrap_map to _dl_start_final in this case either. Don't
2590 pass start_time to _dl_start_final ever.
2591 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2593 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2594 This cripples the scope lists necessary to search for symbols in
2595 dependencies which are not in the global scope.
2597 * include/setjmp.h (__libc_longjmp): Add declaration.
2599 2002-08-21 Andreas Jaeger <aj@suse.de>
2601 * sysdeps/x86_64/_mcount.S: Fix assembler.
2603 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2604 with biarch support.
2606 2002-08-21 Andreas Jaeger <aj@suse.de>
2608 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2610 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2612 * sysdeps/x86_64/machine-gmon.h: New file.
2613 * sysdeps/x86_64/_mcount.S: New file.
2615 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2617 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2618 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2619 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2620 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2621 to TL_INIT_TP. Otherwise pass 1.
2622 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2623 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2625 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2627 * locale/programs/localedef.c (add_to_readlist): Error about
2628 circular dependencies only if the locale in question hasn't
2630 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2631 CTYPE_LOCALE to load_locale.
2632 * locale/programs/locfile.c (locfile_read): Don't include
2633 unneeded but available locales in locale_mask.
2635 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2636 print any messages about enlarging archive.
2638 2002-08-20 Brian Youmans <3diff@gnu.org>
2640 * manual/contrib.texi: Removed licenses, added acknowledgements
2641 for contributions by Intel, IBM, Craig Metz.
2642 * LICENSES: New file, contains the text of all non-FSF licenses in the
2643 distribution that require putting the notice in the accompanying
2645 * README.template, README: Mention LICENSES.
2647 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2648 new one modelled on the modern BSD license, per recent letter
2649 of permission from CMU.
2650 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2652 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2653 from IBM to FSF, per the recent Software Letter. Changed the
2654 distribution terms from GPL to LGPL.
2656 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2657 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2658 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2659 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2660 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2661 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2662 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2663 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2664 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2665 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2667 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2668 from IBM to FSF, per the recent Software Letter. Corrected the
2669 text of the copying permission notice to say Lesser GPL instead
2670 of GPL in warranty disclaimer paragraph.
2671 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2672 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2673 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2674 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2675 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2676 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2677 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2678 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2679 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2680 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2681 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2682 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2683 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2684 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2685 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2686 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2687 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2688 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2689 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2690 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2691 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2693 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2694 permission notice to say Lesser GPL instead of GPL in warranty
2695 disclaimer paragraph.
2696 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2697 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2698 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2699 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2700 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2701 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2702 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2703 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2704 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2705 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2706 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2707 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2708 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2709 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2710 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2711 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2712 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2713 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2714 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2715 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2716 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2717 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2718 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2720 2002-08-20 Roland McGrath <roland@redhat.com>
2722 Fix ABI compatibility with libc compiled with old tools on powerpc.
2723 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2724 and Jack Howarth <howarth@bromo.med.uc.edu>.
2725 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2726 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2727 pass -DHAVE_DOT_HIDDEN for these files.
2728 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2730 * sysdeps/powerpc/divdi3.c: New file.
2731 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2732 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2734 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2736 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2737 partially overlapping mappings. Remove unneeded (char *) casts.
2738 Never allow duplication of ranges in mapped areas.
2740 2002-08-20 Roland McGrath <roland@redhat.com>
2742 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2743 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2745 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2747 * include/unistd.h: Don't hide _exit.
2749 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2750 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2751 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2752 argument 1 to TLS_INIT_TP.
2753 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2755 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2757 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2758 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2759 memory allocation to...
2760 (allocate_dtv): ...here. New function.
2761 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2762 call allocate_dtv instead of _dl_allocate_tls_storage.
2763 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2764 (_dl_get_tls_static_info): New function.
2765 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2766 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2768 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2770 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2771 immediately if result == NULL.
2773 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2775 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2777 2002-08-18 Roland McGrath <roland@frob.com>
2779 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2780 instead of __file_name_split.
2781 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2783 * sysdeps/mach/hurd/dl-sysdep.c
2784 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2785 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2787 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2789 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2790 in change before last: MAX -> MIN.
2792 2002-08-15 Roland McGrath <roland@redhat.com>
2794 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2795 if seek would go past it.
2796 (mmap_remap_check): If file position is at or past EOF after check,
2797 leave read pointers at EOF and don't seek.
2799 * libio/tst-mmap-offend.c: New file.
2800 * libio/Makefile (tests): Add it.
2802 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2803 the name as passed, rather than the name in the archive dictionary.
2805 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2807 * csu/Makefile: Define elide-routines.os not static-only-routines.
2809 * include/sched.h (__clone): Add varargs at the end.
2811 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2813 (TLS_INIT_HELPER): If defined, use it.
2814 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2816 2002-08-15 Roland McGrath <roland@redhat.com>
2818 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2819 on L->l_prev; it can happen under rtld --verify too.
2821 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2822 header separately, just map an initial window of 2MB from the file
2823 and remap if that is not large enough to cover the whole header.
2825 2002-08-15 Andreas Jaeger <aj@suse.de>
2827 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2829 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2830 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2831 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2832 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2833 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2834 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2835 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2836 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2837 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2838 Patch by Andreas Gruenbacher <agruen@suse.de>.
2840 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2842 2002-08-14 Roland McGrath <roland@redhat.com>
2844 * locale/locarchive.h (struct locale_category_data): Give this name to
2845 the type of locale_data_t's elements.
2846 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2847 (add_locale): Use that to sort the categories by size and put all
2848 those that fit into two pages into the LC_ALL block, instead of
2849 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2850 (show_archive_content): Detect categories inside LC_ALL block
2851 directly, instead of hard-coding.
2852 (oldlocrecentcmp): Compare just on file locations used.
2854 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2856 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2857 (oldlocrecentcmp): New function.
2858 (enlarge_archive): Re-add locales in the order they were added
2860 (add_locale): Put all the small locale files together, if the small
2861 locale file block would occupy less pages if page size aligned, align
2863 (show_archive_content): Adjust for locale archives optimized for speed.
2865 2002-08-14 Roland McGrath <roland@frob.com>
2867 * configure.in: Use "MISSING" as not-found value for MIG.
2868 * sysdeps/mach/configure.in: Fatal if mig not found.
2869 * configure, sysdeps/mach/configure: Regenerated.
2871 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2873 * locale/loadarchive.c (archfname): Add missing slash.
2875 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2876 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2878 2002-08-12 Roland McGrath <roland@redhat.com>
2880 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2881 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2882 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2883 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2884 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2885 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2886 * sysdeps/generic/waitpid.c: Likewise.
2888 * include/net/if.h: New file. Use libc_hidden_proto
2889 for if_nametoindex and if_indextoname.
2890 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2891 * sysdeps/mach/hurd/if_index.c: Likewise.
2892 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2894 * include/grp.h (setgroups): Add libc_hidden_proto.
2895 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2896 * sysdeps/mach/hurd/setgroups.c: Likewise.
2897 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2898 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2900 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2902 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2903 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2904 * sysdeps/generic/setegid.c (setegid): Likewise.
2905 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2906 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2907 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2908 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2909 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2910 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2911 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2912 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2913 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2914 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2915 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2916 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2917 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2919 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2920 __lxstat_internal, __lxstat64_internal): Remove.
2921 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2923 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2924 Remove INTDEF where present, remove #undef at the beginning.
2925 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2926 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2927 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2928 * sysdeps/generic/xstat.c (__xstat): Likewise.
2929 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2930 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2931 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2932 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2933 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2934 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2935 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2936 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2937 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2938 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2939 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2940 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2941 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2942 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2943 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2944 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2945 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2946 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2947 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2948 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2949 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2950 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2951 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2952 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2953 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2954 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2955 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2956 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2957 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2958 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2959 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2960 * sysdeps/unix/xstat.c (__xstat): Likewise.
2962 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2963 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2964 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2965 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2966 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2967 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2968 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2970 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2971 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2972 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2973 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2974 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2975 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2976 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2977 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2979 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2980 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2981 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2982 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2983 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2984 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2985 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2986 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2988 * include/string.h (strcoll): Add libc_hidden_proto.
2989 * string/strcoll.c (strcoll): Add libc_hidden_def.
2991 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2993 2002-08-11 Philip Blundell <philb@gnu.org>
2995 * sysdeps/arm/Makefile: New file.
2997 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2999 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3000 by another '|', end of regex or enclosing ')', clear branch.
3001 * posix/bug-regex9.c: New test.
3002 * posix/Makefile (tests): Add bug-regex9.
3004 2002-08-12 Roland McGrath <roland@redhat.com>
3006 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3007 start count condition, use TOTAL instead of variable that was never
3008 set. Fix outer loop termination condition to TOTAL >= after update.
3010 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3011 dl_tls_static_align and dl_tls_static_nelem.
3013 2002-08-11 Roland McGrath <roland@redhat.com>
3015 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3016 of the TLS macros, otherwise the compiler might not have initialized
3017 the PIC register yet when we use the PLT via asm.
3018 * elf/tst-tlsmod3.c (in_dso2): Likewise.
3019 * elf/tst-tlsmod2.c (in_dso): Likewise.
3021 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3023 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3024 Evaluate argument exactly once. Remove __volatile__ from asm's.
3026 * include/unistd.h: Use libc_hidden_proto for getdomainname
3028 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3029 * sysdeps/mach/hurd/getdomain.c: Likewise.
3030 * sysdeps/unix/getlogin_r.c: Likewise.
3031 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3032 * sysdeps/generic/getlogin_r.c: Likewise.
3034 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3035 * sunrpc/rtime.c: Add libc_hidden_def.
3037 * include/string.h: Use libc_hidden_proto for basename.
3038 * string/basename.c [_LIBC]: Add libc_hidden_def.
3040 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3042 * locale/loadarchive.c: munmap -> __munmap throughout.
3044 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3045 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3046 * sysdeps/generic/gai_strerror.c: Likewise.
3048 * include/sys/errno.h: New file.
3050 * include/signal.h: No libc_hidden_proto for raise,
3051 __libc_current_sigrtmin, __libc_current_sigrtmax.
3052 These need to be overridden by linuxthreads.
3053 * sysdeps/posix/raise.c: Reverted.
3054 * sysdeps/generic/raise.c: Reverted.
3055 * signal/allocrtsig.c: Reverted.
3057 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3059 2002-08-10 Roland McGrath <roland@redhat.com>
3061 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3062 * locale/localeinfo.h: Declare it.
3063 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3064 current locale if it's not in the file list.
3065 Call _nl_archive_subfreeres.
3067 2002-08-10 Andreas Jaeger <aj@suse.de>
3069 * sysdeps/i386/strchr.S: Add comment.
3071 2002-08-10 Roland McGrath <roland@redhat.com>
3073 * include/wchar.h (putwc): Use libc_hidden_proto.
3074 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3075 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3076 * stdio-common/dprintf.c: Add libc_hidden_def.
3077 * stdio-common/fprintf.c: Likewise.
3078 * stdio-common/sprintf.c: Likewise.
3079 * stdio-common/sscanf.c: Likewise.
3080 * libio/iofwrite.c: Likewise.
3081 * libio/memstream.c: Likewise.
3082 * libio/putwc.c: Likewise.
3083 * stdio-common/perror.c: Likewise.
3084 * sysdeps/posix/remove.c: Likewise.
3085 * sysdeps/generic/remove.c: Likewise.
3086 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3087 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3089 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3091 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3092 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3093 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3094 towlower, towupper): Add libc_hidden_weak.
3096 * include/bits/dlfcn.h: New file.
3097 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3099 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3100 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3101 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3102 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3103 * include/shadow.h (_nss_files_parse_spent): Likewise.
3104 * include/netdb.h (_nss_files_parse_protoent,
3105 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3106 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3107 (LINE_PARSER): Use it.
3108 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3109 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3111 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3114 * manual/debug.texi (%MENU%): Remove trailing dot.
3115 Reported by <hayastan132@hotmail.com>.
3117 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3120 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3123 2002-08-09 Roland McGrath <roland@redhat.com>
3125 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3126 name to find codeset name (if any) and normalize it. If the
3127 normalized name differs, look up only that in the archive.
3128 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3129 contains a codeset, normalize the codeset store only the normalized
3130 name in the archive. If not, add an alias containing the locale's
3131 normalized codeset name. Apply codeset name normalization when
3132 matching entries in the alias file.
3134 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3135 decrement HEAD->namehash_used here.
3136 (add_locale): Only need to insert name string when name_offset != 0.
3138 * locale/programs/localedef.c (options): Add -A/--alias-file.
3139 (alias_file): New variable.
3140 (parse_opt): Grok -A, set that.
3141 * locale/programs/localedef.h: Declare it.
3143 * locale/locarchive.h (struct locrecent): Add `refs' member.
3144 * locale/programs/locarchive.c (insert_name): New function, broken out
3146 (add_locale_to_archive): ... here. Call that.
3147 (add_alias): New function.
3148 (add_locale): New static function, add_locale_to_archive renamed.
3149 (add_locale_to_archive): Call that and use add_alias to add an alias
3150 for the name with codeset if the given name lacks it.
3151 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3153 * locale/Makefile (routines): Add loadarchive.
3154 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3155 (_nl_load_locale_from_archive): New function.
3156 * locale/localeinfo.h: Declare it.
3157 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3158 try _nl_load_locale_from_archive first.
3160 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3161 broken out of _nl_load_locale.
3162 (_nl_load_locale): Call that.
3163 * locale/localeinfo.h: Declare it.
3164 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3165 (struct locale_data): Remove unused member `options'.
3166 * locale/findlocale.c (_nl_remove_locale): Update uses.
3167 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3168 * locale/C-collate.c: Update initializer.
3169 * locale/C-identification.c: Likewise.
3170 * locale/C-measurement.c: Likewise.
3171 * locale/C-telephone.c: Likewise.
3172 * locale/C-address.c: Likewise.
3173 * locale/C-name.c: Likewise.
3174 * locale/C-paper.c: Likewise.
3175 * locale/C-time.c: Likewise.
3176 * locale/C-numeric.c: Likewise.
3177 * locale/C-monetary.c: Likewise.
3178 * locale/C-messages.c : Likewise.
3179 * locale/C-ctype.c: Likewise.
3181 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3182 use CHAR_BIT instead of BITSPERBYTE.
3184 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3185 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3186 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3187 (_nl_remove_locale): Likewise.
3188 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3190 * locale/findlocale.c (_nl_default_locale_path): New variable.
3191 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3192 * locale/localeinfo.h: Declare it.
3193 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3194 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3195 * locale/newlocale.c (__newlocale): Likewise.
3197 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3198 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3199 * sysdeps/generic/morecore.c: Likewise.
3200 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3201 (__libc_current_sigrtmax): Likewise.
3203 2002-08-08 Roland McGrath <roland@redhat.com>
3205 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3206 * catgets/open_catalog.c (__open_catalog): Likewise.
3208 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3209 from typo INITIAL_NUM_NANES.
3210 (create_archive): Update use.
3212 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3214 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3216 2002-08-08 Roland McGrath <roland@frob.com>
3218 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3220 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3222 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3223 else and undefine after including wcstol_l.c.
3224 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3226 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3228 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3230 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3232 * configure.in: Make the test for broken_alias_attribute stricter.
3234 2002-05-24 Robert Love <rml@tech9.net>
3236 * posix/Makefile (routines): Add sched_getaffinity and
3238 * posix/sched.h: Add declarations for sched_getaffinity and
3240 * sysdeps/generic/sched_getaffinity.c: New file.
3241 * sysdeps/generic/sched_setaffinity.c: New file.
3242 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3245 2002-08-06 Andreas Schwab <schwab@suse.de>
3247 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3249 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3251 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3254 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3255 It is known to be defined.
3257 * include/string.h: Define index and rindex only if _ISOMAC is not
3260 * elf/rtld.c: Include <errno.h>.
3261 * sysdeps/generic/libc-tls.c: Likewise.
3263 2002-08-07 Roland McGrath <roland@redhat.com>
3265 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3267 (precsize_aton): Likewise.
3269 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3270 the static symbols added in the last change (doofus is me).
3272 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3273 loop to notice missing categories in a composite name.
3275 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3276 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3277 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3278 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3280 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3282 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3284 2002-08-07 Roland McGrath <roland@redhat.com>
3286 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3287 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3288 Reported by Jakub Jelinek <jakub@redhat.com>.
3290 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3292 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3295 2002-08-06 Roland McGrath <roland@redhat.com>
3297 * include/getopt.h: Put private decls inside [_GETOPT_H].
3298 Use libc_hidden_proto for getopt_long, getopt_long_only.
3299 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3300 Add libc_hidden_def.
3302 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3303 Define as a macro for __dl_iterate_phdr.
3305 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3306 made static. Add __ name as a strong alias.
3307 (internal_endnetgrent): Likewise.
3308 (internal_getnetgrent_r): Likewise.
3310 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3312 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3313 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3314 all *_l functions with no __ prefix.
3315 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3316 * ctype/ctype_l.c: Likewise.
3317 * locale/nl_langinfo.c: Likewise.
3318 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3319 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3320 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3321 * wctype/wctype.h [__USE_GNU]: Likewise.
3322 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3323 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3324 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3325 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3326 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3327 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3328 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3329 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3330 (__wcscasecmp_l): Add libc_hidden_def.
3331 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3332 (__wcsncasecmp_l): Add libc_hidden_def.
3333 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3334 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3335 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3336 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3337 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3338 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3339 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3340 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3341 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3342 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3343 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3344 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3345 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3346 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3348 2002-08-05 Roland McGrath <roland@redhat.com>
3350 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3351 netname2user, host2netname, user2netname, key_gendes.
3352 * sunrpc/netname.c: Add libc_hidden_def.
3353 * sunrpc/key_call.c: Likewise.
3355 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3357 * inet/getnameinfo.c: Add libc_hidden_def.
3358 * sysdeps/generic/getaddrinfo.c: Likewise.
3359 * sysdeps/posix/getaddrinfo.c: Likewise.
3361 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3362 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3363 * wcsmbs/wmemset.c: Add libc_hidden_def.
3365 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3366 (index, rindex): Define as macros for strchr, strrchr.
3368 * string/envz.c (envz_strip): index -> strchr
3370 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3371 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3373 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3374 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3376 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3377 * stdlib/wctomb.c: Add libc_hidden_def.
3379 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3380 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3381 * resolv/herror.c: Likewise.
3382 * inet/rcmd.c: Add libc_hidden_def.
3383 * inet/ruserpass.c: Likewise.
3384 * inet/getnetgrent_r.c: Likewise.
3386 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3387 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3388 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3389 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3391 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3392 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3394 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3396 (__libc_system): Call it, putting just the line == NULL test here.
3398 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3399 variables work right.
3401 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3402 * elf/dl-close.c (_dl_close): Likewise.
3404 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3405 in6addr_any, in6addr_loopback. Remove decls for
3406 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3407 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3408 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3409 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3410 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3411 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3412 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3414 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3416 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3418 * inet/ether_aton_r.c: Add libc_hidden_def.
3419 * inet/ether_ntoa_r.c: Likewise.
3421 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3423 * sunrpc/svc.c: Add libc_hidden_def.
3424 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3425 pmap_set, pmap_unset.
3426 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3427 * sunrpc/pm_getport.c: Likewise.
3428 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3429 * sunrpc/publickey.c: Add libc_hidden_def.
3431 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3433 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3434 the other memset call in this function.
3436 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3437 at correct index. Clear BSS region now that memalign is used.
3439 2002-08-05 Roland McGrath <roland@redhat.com>
3441 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3442 * sysdeps/generic/uname.c: Add libc_hidden_def.
3443 * sysdeps/mach/hurd/uname.c: Likewise.
3445 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3447 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3448 wcspbrk): Add libc_hidden_proto.
3449 * time/strftime.c (my_strftime): Add libc_hidden_def.
3450 (strftime): Remove libc_hidden_def.
3451 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3452 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3453 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3454 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3455 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3456 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3458 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3459 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3460 __rpc_thread_createerr): Add libc_hidden_proto.
3461 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3462 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3463 __rpc_thread_createerr): Add libc_hidden_def.
3465 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3466 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3467 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3468 clnt_perror, clnt_sperror): Add libc_hidden_def.
3469 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3471 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3473 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3474 * sunrpc/des_soft.c (des_setparity): Likewise.
3476 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3477 Add libc_hidden_proto.
3478 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3479 Add libc_hidden_def.
3481 2002-08-05 Roland McGrath <roland@redhat.com>
3483 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3484 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3485 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3486 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3487 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3488 old data, abandoning the original memory allocated by rtld at startup,
3489 instead of calling realloc normally.
3491 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3493 * po/fr.po: Update from translation team.
3495 2002-08-04 Roland McGrath <roland@redhat.com>
3497 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3498 then generate a dummy module under the given name, obeying the
3499 normal rules for the "caller" field.
3501 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3502 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3504 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3505 weak here; we declare it weak or strong in the one place we use it.
3506 * sysdeps/generic/libc-start.c: ... which is here.
3507 Don't make the decl weak if [USE_TLS], since static programs need TLS
3508 setup even when single-threaded.
3510 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3512 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3513 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3514 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3515 all these variables.
3517 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3519 * include/stdio.h: Don't define macro magic to redirect function
3520 calls if _ISOMAC is defined.
3522 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3525 2002-08-04 Roland McGrath <roland@redhat.com>
3527 * stdlib/lrand48_r.c: Add libc_hidden_def.
3529 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3530 TCB with __libc_memalign instead of mmap.
3531 (_dl_deallocate_tls): Free it with free instead of munmap.
3533 * Makerules (cpp-srcs-left): When setting this to run
3534 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3535 words. Combine the two loops into one on the concatenated list,
3536 including those as well as $(test-srcs).
3538 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3539 since we align here with optimally minimal waste anyway.
3540 (malloc): Just call that.
3542 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3545 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3546 to compute memory location for l_tls_initimage.
3547 * elf/rtld.c (_dl_start): Likewise.
3548 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3550 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3551 because the .d file is generated in the non-shared case and
3552 so fails to catch them otherwise.
3554 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3555 split out of _dl_allocate_tls.
3556 (_dl_allocate_tls_init): Likewise.
3557 (_dl_allocate_tls): Call those.
3558 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3559 * elf/rtld.c (dl_main): Call them separately instead of calling
3560 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3561 is finished, so that the initializer data has been relocated before we
3562 copy it into the main thread's TLS block.
3564 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3565 loop conditions, prevented the last used module from being initialized.
3567 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3569 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3570 if glob resp. globfree are not macros.
3571 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3572 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3573 Add libc_hidden_ver.
3574 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3576 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3577 instead of libc_hidden_weak.
3578 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3579 libc_hidden_ver instead of libc_hidden_def.
3580 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3581 libc_hidden_ver instead of libc_hidden_def.
3582 (wcstoll, wcstoq): Remove libc_hidden_weak.
3583 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3585 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3587 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3589 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3592 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3594 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3595 to access _sys_siglist.
3596 * string/strsignal.c: Likewise.
3597 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3598 * sysdeps/gnu/siglist.c: Likewise.
3599 * sysdeps/unix/siglist.c: Likewise.
3600 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3602 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3604 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3606 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3608 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3610 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3611 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3612 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3614 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3615 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3617 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3618 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3619 and __gconv_get_cache respectively.
3620 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3621 defined static. Change all users.
3622 (__gconv_get_cache): New function.
3623 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3624 (__gconv_get_alias_db): New function.
3625 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3626 (__conv_modules_db): Likewise.
3627 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3628 and __gconv_get_alias_db.
3629 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3632 * include/stdlib.h: Add prototype and libc_hidden_proto for
3634 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3636 * malloc/obstack.c: Remove fputs macro.
3638 * malloc/mtrace.c: Remove fopen macro.
3640 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3642 * manual/debug.texi: Fix spelling to programmatically.
3643 Reported by <hayastan132@hotmail.com>.
3645 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3647 * include/libio.h: Add libc_hidden_proto for __uflow.
3648 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3649 fgetpos to _IO_* names.
3650 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3651 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3652 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3653 putwc_unlocked, vswscanf.
3654 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3655 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3656 * libio/fseek.c: Likewise.
3657 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3659 * libio/genops.c (__uflow): Add libc_hidden_def.
3660 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3661 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3662 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3663 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3664 * libio/iofread_u.c (fread_unlocked): Likewise.
3665 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3666 * libio/iovswscanf.c (vswscanf): Likewise.
3667 * libio/putwc_u.c (putwc_unlocked): Likewise.
3668 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3669 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3670 * malloc/mtrace.c: Likewise.
3672 * sunrpc/clnt_perr.c: Remove fputs macro.
3673 * sunrpc/svc_simple.c: Likewise.
3674 * sunrpc/svc_tcp.c: Likewise.
3675 * sunrpc/svc_udp.c: Likewise.
3676 * sunrpc/xdr_rec.c: Likewise.
3677 * sunrpc/xdr_ref.c: Likewise.
3679 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3680 iconv_prog, linereader, and charmap-dir.
3681 * locale/Makefile: Likewise for locale and charmap-dir.
3682 * malloc/Makefile: Likewise for memusagestat.
3683 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3684 * sunrpc/Makefile: Likewise for rpc_main.
3685 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3686 * timezone/Makefile: Likewise for zic.
3688 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3690 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3691 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3692 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3693 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3696 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3698 * libio/genops.c (__underflow): Add libc_hidden_def.
3699 * libio/wgenops.c (__wuflow): Likewise.
3700 (__wunderflow): Likewise.
3702 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3703 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3705 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3706 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3708 * include/string.h: Add libc_hidden_proto for __strverscmp.
3709 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3711 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3712 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3713 * sysdeps/posix/sysconf.c: Likewise.
3714 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3715 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3717 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3718 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3719 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3720 __iswxdigit_l, __towlower_l, __towupper_l.
3721 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3722 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3724 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3725 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3726 * sysdeps/mach/hurd/xmknod.c: Likewise.
3727 * sysdeps/unix/xmknod.c: Likewise.
3728 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3729 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3730 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3732 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3734 2002-08-03 Roland McGrath <roland@redhat.com>
3736 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3738 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3739 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3740 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3741 * sysdeps/mach/hurd/setpriority.c: Likewise.
3742 * sysdeps/mach/hurd/getpriority.c: Likewise.
3743 * sysdeps/generic/setpriority.c: Likewise.
3744 * sysdeps/generic/getpriority.c: Likewise.
3746 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3747 * malloc/mcheck.c: Add libc_hidden_def.
3749 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3750 * misc/hsearch_r.c: Add libc_hidden_def.
3752 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3753 * posix/fnmatch.c: Add libc_hidden_weak.
3755 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3756 execl, execle, execlp, execvp, getpid, getsid.
3757 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3758 * sysdeps/unix/alarm.c: Likewise.
3759 * posix/confstr.c: Likewise.
3760 * posix/execvp.c: Likewise.
3761 * posix/execlp.c: Likewise.
3762 * posix/execle.c: Likewise.
3763 * posix/execl.c: Likewise.
3764 * sysdeps/generic/getsid.c: Likewise.
3765 * sysdeps/mach/hurd/getsid.c: Likewise.
3766 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3767 * sysdeps/mach/hurd/getpid.c: Likewise.
3769 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3770 qecvt_r, qfcvt_r, lrand48_r.
3771 * misc/efgcvt_r.c: Add libc_hidden_def.
3773 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3774 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3776 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3777 * locale/nl_langinfo.c: Add libc_hidden_def.
3779 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3780 * sysdeps/generic/glob.c: Add libc_hidden_def.
3781 * sysdeps/generic/glob64.c: Likewise.
3782 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3784 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3786 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3788 * locale/setlocale.c (_nl_current_names): Variable moved ...
3789 * locale/localename.c (_nl_current_names): ... here, new file.
3790 Make it global, with attribute_hidden.
3791 * locale/localeinfo.h: Declare it.
3792 * locale/Makefile (aux): Add localename.
3793 * locale/localename.c (__current_locale_name): New function.
3794 * include/locale.h (__current_locale_name): Declare it.
3795 * intl/dcigettext.c (guess_category_value): Use that instead of
3798 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3799 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3800 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3801 * locale/newlocale.c: Add alias to __ name.
3802 * locale/duplocale.c: Likewise.
3803 * locale/freelocale.c: Likewise.
3804 * locale/uselocale.c: New file.
3805 * locale/Makefile (routines): Add it.
3806 * locale/Versions (libc: GLIBC_2.3): New set.
3807 Add newlocale, duplocale, freelocale, uselocale.
3808 (libc: GLIBC_PRIVATE): Add __uselocale.
3810 * locale/localeinfo.h [SHARED]
3811 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3812 (_NL_CURRENT_DATA): Define using that.
3813 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3814 (_NL_CURRENT_DEFINE): Define to empty.
3815 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3816 conditionalized on this.
3817 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3818 taking initializer of _nl_C_locobj.
3819 [SHARED] (_nl_global_locale): New variable, using that initializer.
3820 (_nl_C_locobj): Use new macro for initialzier.
3821 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3822 [! SHARED] (CATEGORY_USED): New macro.
3823 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3824 (setdata, setlocale): Use that macro instead of examining _nl_current.
3825 (setdata): Set the slot in _nl_global_locale.
3826 Conditionalize setting of _nl_current on [! SHARED].
3827 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3828 declaration as an extern.
3829 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3831 * include/locale.h: Use libc_hidden_proto for setlocale.
3832 * locale/setlocale.c: Add libc_hidden_def.
3834 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3836 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3837 * misc/hsearch_r.c: Add libc_hidden_def.
3838 * misc/lsearch.c: Likewise.
3840 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3842 * misc/getttyent.c: Add libc_hidden_def.
3844 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3845 * malloc/mcheck.c: Add libc_hidden_def.
3847 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3848 * include/argz.h: Use libc_hidden_proto for argz_delete.
3849 * string/argz-delete.c: Add libc_hidden_def.
3850 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3852 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3853 HIDDEN_JUMPTARGET for _exit.
3854 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3855 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3856 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3857 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3859 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3860 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3861 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3862 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3864 * include/stdlib.h: Use libc_hidden_proto for abort,
3865 __strtof_internal, __strtod_internal, __strtold_internal,
3866 __strtol_internal, __strtoll_internal, __strtoul_internal,
3867 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3868 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3869 __strtoul_l_internal, __strtoull_l_internal.
3870 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3871 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3872 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3873 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3874 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3876 * sysdeps/generic/abort.c: Add libc_hidden_def.
3877 * stdlib/strtod.c: Likewise.
3878 * sysdeps/generic/strtol.c: Likewise.
3879 * sysdeps/wordsize-64/strtol.c: Likewise.
3880 * sysdeps/wordsize-64/wcstol.c: Likewise.
3881 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3883 * include/stdlib.h: Use libc_hidden_proto for qsort.
3884 * stdlib/msort.c: Add libc_hidden_def.
3886 * include/utime.h: Use libc_hidden_proto for utime.
3887 * sysdeps/generic/utime.c: Add libc_hidden_def.
3888 * sysdeps/unix/utime.c: Likewise.
3890 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3891 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3892 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3893 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3894 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3896 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3897 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3898 and __libc_current_sigrtmax.
3899 * signal/sigismem.c: Add libc_hidden_def.
3900 * signal/sigfillset.c: Likewise.
3901 * signal/sigempty.c: Likewise.
3902 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3903 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3904 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3905 * sysdeps/posix/raise.c: Likewise.
3906 * sysdeps/generic/raise.c: Likewise.
3908 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3910 * include/string.h: Use libc_hidden_proto for __stpcpy.
3911 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3912 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3913 * sysdeps/generic/stpcpy.c: Likewise.
3914 * sysdeps/i386/stpcpy.S: Likewise.
3915 * sysdeps/i386/i586/stpcpy.S: Likewise.
3916 * sysdeps/powerpc/stpcpy.S: Likewise.
3917 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3918 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3920 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3921 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3922 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3924 * string/strdup.c (__strdup): Likewise.
3925 * string/strndup.c (__strndup): Likewise.
3926 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3927 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3929 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3931 * include/libio.h: New file.
3932 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3933 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3934 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3935 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3936 * sysdeps/unix/common/syscalls.list: Likewise.
3937 * sysdeps/unix/inet/syscalls.list: Likewise.
3938 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3939 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3940 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3941 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3942 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3943 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3944 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3945 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3946 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3947 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3948 * sysdeps/unix/syscalls.list: Likewise.
3950 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3951 Ulrich Drepper <drepper@redhat.com>
3953 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3954 the arguments is big enough to cause an overflow.
3956 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3958 * assert/assert.c: Use hidden_def not INTDEF.
3960 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3962 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3965 2002-08-03 Roland McGrath <roland@redhat.com>
3967 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3968 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3970 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3971 * misc/syslog.c: Add libc_hidden_def.
3972 * misc/err.c: Likewise.
3973 * stdlib/exit.c: Likewise.
3974 * stdlib/bsearch.c: Likewise.
3975 * sysdeps/generic/getenv.c: Likewise.
3977 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3979 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3980 libc_hidden_weak for every system call symbol defined.
3982 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3983 timelocal, localtime, strftime.
3984 * time/asctime.c: Add libc_hidden_def.
3985 * time/mktime.c: Likewise.
3986 * time/localtime.c: Likewise.
3987 * time/strftime.c: Likewise.
3988 * time/strptime.c: Likewise.
3989 * sysdeps/generic/time.c: Likewise.
3990 * sysdeps/unix/time.c: Likewise.
3991 * sysdeps/unix/sysv/i386/time.S: Likewise.
3992 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3994 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3995 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3996 * resolv/inet_ntop.c: Likewise.
3997 * resolv/inet_pton.c: Likewise.
3998 * inet/inet_mkadr.c: Add libc_hidden_def.
3999 * inet/inet_netof.c: Likewise.
4000 * resolv/inet_addr.c: Likewise.
4002 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4003 clauses from conditionals for now. Will have to be fixed later
4004 for older compilers.
4006 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4008 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4010 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4011 broken alias attribute handling.
4012 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4014 2002-08-02 Roland McGrath <roland@frob.com>
4016 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4017 since it sets the variables we use in a -D switch.
4019 2002-08-02 Roland McGrath <roland@redhat.com>
4021 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4022 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4023 matches long int, not int.
4025 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4026 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4027 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4028 * wctype/wctrans.c (wctrans): Likewise.
4029 * wctype/wctype.c (__wctype): Likewise.
4030 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4032 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4034 * assert/assert.c (__assert_fail): Fix typo in comment.
4036 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4037 * sunrpc/rpc_thread.c: Define it without static.
4038 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4040 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4042 * assert/assert.c (__assert_fail): Remove undef.
4043 Replace INTDEF with libc_hidden_def.
4044 * assert/__assert.c (__assert): Remove INTUSE.
4045 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4047 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4048 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4049 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4050 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4051 libm_hiden_ver): Define.
4052 * include/assert.h (__assert_fail_internal): Remove.
4053 (__assert_fail): Add prototype. Add hidden_proto.
4054 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4056 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4057 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4058 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4059 Add libc_hidden_proto.
4060 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4061 __fcntl): Add libc_hidden_proto. Remove macros.
4062 (__open_internal, __fcntl_internal): Remove.
4063 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4064 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4065 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4067 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4069 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4070 Add libc_hidden_def.
4071 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4072 * sysdeps/generic/open.c (__open): Remove undef.
4073 Add libc_hidden_def. Remove INTDEF.
4074 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4075 Add libc_hidden_def.
4076 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4077 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4078 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4079 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4080 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4081 (__libc_fcntl): Add libc_hidden_def.
4082 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4083 (__open): Remove INTDEF2. Add libc_hidden_weak.
4084 (__libc_open): Add libc_hidden_def.
4085 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4086 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4087 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4088 Add libc_hidden_def.
4089 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4090 Add libc_hidden_def.
4091 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4093 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4094 (__libc_fcntl): Add libc_hidden_def.
4095 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4096 __getpgid_internal, __chown_internal): Remove.
4097 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4098 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4100 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4101 __getpid_internal, __open_internal, __write_internal): Remove.
4102 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4103 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4104 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4105 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4106 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4107 Replace INTDEF with libc_hidden_def.
4108 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4109 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4110 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4111 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4112 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4113 Add libc_hidden_proto.
4114 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4115 * include/sys/select.h (__select): Likewise.
4116 * include/sys/socket.h (__send): Likewise.
4117 * include/sys/statfs.h (__statfs): Likewise.
4118 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4119 __getpid, __getpgid, __setpgid, __close, __read, __write,
4120 __getpagesize, __sbrk): Likewise.
4121 (__chown_internal, __dup2_internal, __getpid_internal,
4122 __getpgid_internal, __close_internal, __write_internal,
4123 __getpagesize_internal): Remove.
4124 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4126 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4127 * include/sched.h (__sched_setscheduler): Likewise.
4128 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4129 * include/stdlib.h (__secure_getenv): Likewise.
4130 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4131 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4132 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4133 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4134 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4135 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4136 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4137 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4138 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4139 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4140 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4141 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4142 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4143 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4144 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4145 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4146 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4147 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4148 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4149 * libio/genops.c (__overflow): Add libc_hidden_def.
4150 * libio/iovdprintf.c: Remove libio.h include.
4151 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4152 libc_hidden_weak): Define to nothing if not defined.
4153 (__overflow, __woverflow): Add libc_hidden_proto.
4154 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4155 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4156 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4157 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4158 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4159 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4160 and libc_hidden_def.
4161 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4162 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4163 (__getpgid): Add libc_hidden_proto.
4164 (__bsd_getpgrp): Remove INTUSE.
4165 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4167 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4168 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4169 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4170 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4171 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4172 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4173 __rpc_thread_createerr): Add libc_hidden_def.
4174 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4176 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4177 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4178 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4179 * sysdeps/generic/chown.c (__chown): Likewise.
4180 * sysdeps/generic/close.c (__close): Likewise.
4181 * sysdeps/generic/dup2.c (__dup2): Likewise.
4182 * sysdeps/generic/pipe.c (__pipe): Likewise.
4183 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4184 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4185 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4186 * sysdeps/generic/read.c (__libc_read): Likewise.
4187 (__read): Add libc_hidden_weak.
4188 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4189 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4190 * sysdeps/generic/select.c (__select): Likewise.
4191 * sysdeps/generic/send.c (__send): Likewise.
4192 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4193 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4194 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4195 * sysdeps/generic/statfs.c (__statfs): Likewise.
4196 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4197 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4198 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4199 Remove undef and INTDEF.
4200 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4201 * sysdeps/generic/getpid.c (__getpid): Likewise.
4202 * sysdeps/generic/write.c (__libc_write): Likewise.
4203 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4204 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4205 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4206 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4207 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4208 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4209 Remove undef and INTDEF.
4210 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4211 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4212 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4213 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4214 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4215 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4216 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4217 (__pipe): Add libc_hidden_def.
4218 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4220 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4221 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4222 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4223 (__read): Add libc_hidden_weak.
4224 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4225 (__libc_pwrite64): Add libc_hidden_def.
4226 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4227 * sysdeps/mach/hurd/select.c (__select): Likewise.
4228 * sysdeps/mach/hurd/send.c (__send): Likewise.
4229 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4230 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4231 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4232 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4233 * sysdeps/posix/dup2.c: Likewise.
4234 Remove undef and INTDEF.
4235 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4236 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4237 (__pwrite64): Add libc_hidden_weak.
4238 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4239 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4240 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4241 * sysdeps/standalone/close.c (__close): Likewise.
4242 * sysdeps/standalone/write.c (__libc_write): Likewise.
4243 (__write): Add libc_hidden_weak.
4244 * sysdeps/standalone/read.c (__read): Likewise.
4245 (__libc_read): Add libc_hidden_def.
4246 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4247 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4248 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4249 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4250 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4251 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4252 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4253 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4254 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4255 __GI___sigaction): Add.
4256 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4257 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4258 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4259 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4260 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4261 __GI___setpgid): Add.
4262 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4263 Remove undef and INTDEF.
4264 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4265 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4266 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4267 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4268 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4269 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4270 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4271 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4272 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4273 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4274 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4275 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4276 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4277 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4278 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4279 __GI___statfs, __GI___send): Add.
4280 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4281 libc_hidden_ver resp. libc_hidden_def.
4282 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4284 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4285 Likewise. Remove undef and INTDEF.
4286 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4287 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4288 __GI___statfs, __GI___send): Add.
4289 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4291 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4293 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4294 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4295 libc_hidden_ver resp. libc_hidden_def.
4296 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4298 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4299 Add libc_hidden_weak.
4300 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4301 Add libc_hidden_def.
4302 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4303 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4305 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4306 resp. libc_hidden_def.
4307 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4309 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4311 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4312 Likewise. Remove undef.
4313 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4315 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4316 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4318 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4320 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4321 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4322 Likewise. Remove undef and INTDEF.
4323 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4325 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4327 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4329 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4330 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4331 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4333 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4334 Add libc_hidden_def.
4335 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4336 __GI___statfs): Add.
4337 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4339 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4340 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4341 Remove undef and INTDEF.
4342 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4343 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4345 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4346 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4348 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4350 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4351 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4352 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4354 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4355 libc_hidden_def. Remove undef and INTDEF.
4356 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4357 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4359 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4360 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4361 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4362 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4363 Remove undef and INTDEF.
4364 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4365 broken visibility attribute handling.
4366 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4368 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4370 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4371 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4373 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4376 2002-06-29 Todd Fries <todd@openbsd.org>
4378 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4380 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4382 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4384 2002-07-30 Roland McGrath <roland@redhat.com>
4386 * resolv/resolv.h (_res): Define macro unconditionally.
4387 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4388 * include/resolv.h: ... here.
4389 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4390 as a __thread variable.
4391 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4392 a __thread variable instead of a global.
4393 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4395 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4398 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4400 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4401 decls of memset and memcpy.
4403 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4404 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4406 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4408 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4409 (__libc_tsd_define): Define using __thread.
4411 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4412 (__rpc_thread_variables): Use __libc_tsd_get.
4413 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4414 __rpc_thread_variables, which might allocate what we're about to free.
4416 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4417 thread-local variable.
4418 * resolv/netdb.h (h_errno): Define macro unconditionally.
4419 [_LIBC] (__set_h_errno): Macro moved to ...
4420 * include/netdb.h: ... here.
4421 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4422 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4423 [! _LIBC_REENTRANT]: #undef h_errno here.
4425 * include/errno.h: Protect from multiple inclusion.
4427 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4428 before defining them, since Linux's <linux/posix_types.h> might have
4431 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4433 * malloc/malloc.c (public_cALLOc): Check for overflow on
4435 * sunrpc/xdr_array.c (xdr_array): Likewise.
4436 * sunrpc/rpc/types.h (mem_free): Add comment.
4437 Patch by Solar Designer <solar@openwall.com>.
4439 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4441 * sysdeps/unix/sysv/linux/kernel-features.h
4442 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4444 2002-08-01 Roland McGrath <roland@redhat.com>
4446 * libio/fileops.c (_IO_file_sync_mmap): New function.
4447 (_IO_file_jumps_mmap): Use it.
4448 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4449 repeat the stat check and resize the mapped buffer as necessary.
4451 2002-07-31 Roland McGrath <roland@redhat.com>
4453 * libio/fileops.c (decide_maybe_mmap): New static function.
4454 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4455 mmap the file contents. Then switch the jump tables to the mmap
4456 tables if it worked, or the vanilla file tables if not.
4457 (_IO_file_underflow_maybe_mmap): New function.
4458 (_IO_file_seekoff_maybe_mmap): New function.
4459 (_IO_file_xsgetn_maybe_mmap): New function.
4460 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4461 * libio/libioP.h: Declare those.
4462 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4463 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4464 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4465 If the stream is read-only, set its jump tables to those new ones.
4466 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4467 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4468 We need the tables set before _IO_file_attach.
4470 * libio/tst-mmap-eofsync.c: New file.
4471 * libio/tst-mmap-fflushsync.c: New file.
4472 * libio/bug-mmap-fflush.c: New file.
4473 * libio/tst-mmap2-eofsync.c: New file.
4474 * libio/Makefile (tests): Add them.
4476 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4477 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4479 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4481 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4482 Declarations moved to <bits/sys_errlist.h>. Include that file.
4483 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4484 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4485 declare sys_errlist and sys_nerr.
4486 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4487 provide declarations.
4489 2002-07-31 Roland McGrath <roland@redhat.com>
4491 * elf/rtld.c (dl_main): Fix typo in error message.
4493 2002-07-31 Roland McGrath <roland@frob.com>
4495 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4496 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4497 sysdeps/mach/hurd/dl-sysdep.c change.
4499 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4501 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4502 -r`/build/include for kernel headers.
4504 * po/fi.po: New file.
4506 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4508 * configure.in (static_nss): Set to `yes' if --disable-shared.
4510 2002-07-23 Bruno Haible <bruno@clisp.org>
4512 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4515 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4517 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4518 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4521 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4523 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4526 2002-07-21 Bruno Haible <bruno@clisp.org>
4528 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4529 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4530 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4531 trans_sysdep_tab_offset.
4532 (struct sysdep_segment): New type.
4533 (struct sysdep_string): New type.
4534 (SEGMENTS_END): New macro.
4535 * intl/gettextP.h (struct sysdep_string_desc): New type.
4536 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4537 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4538 orig_tab, trans_tab, hash_tab to const pointers because they point
4539 into read-only memory.
4540 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4541 (PRI*): Define fallback values.
4542 (get_sysdep_segment_value): New function.
4543 (_nl_load_domain): Distinguish major and minor revision parts. Add
4544 support for minor revision 1 with system dependent strings.
4545 (_nl_unload_domain): Also free the 'malloced' field.
4546 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4547 now done in loadmsgcat.c. Add support for system dependent strings.
4549 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4551 * posix/bug-regex7.c: New file.
4552 * posix/bug-regex8.c: New file.
4553 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4555 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4557 * posix/bug-regex4.c (main): Fix typos.
4558 * posix/bug-regex6.c (main): Likewise.
4560 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4562 * posix/bug-regex6.c (main): Fix warnings.
4564 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4566 * iconv/iconv_prog.c (main): Improve error message for the cases
4567 where -t and/or -f parameter are missing.
4569 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4571 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4572 (re_search): Likewise.
4573 (re_match_2): Likewise.
4574 (re_search_2): Likewise.
4575 (re_search_stub): New function.
4576 (re_search_2_stub): New function.
4577 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4579 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4581 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4582 (re_string_eoi): Use STOP instead of LEN.
4583 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4584 (re_string_construct): Likewise.
4585 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4586 * posix/regexec.c (re_search_internal): Add a new argument STOP
4587 so that it can handle the argument STOP of re_search_2 and re_match_2
4589 (regexec): Adapt to new I/F of re_search_internal.
4590 (re_search_stub): Likewise.
4592 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4594 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4596 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4598 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4599 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4602 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4603 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4604 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4605 alias for adjtimex syscall.
4607 * elf/dl-minimal.c: Define __assert_fail_internal.
4608 * assert/assert.c: Likewise.
4609 * include/assert.h: Define __assert_file macro if !SHARED and not
4612 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4614 * locale/Makefile: Likewise.
4615 * nscd/Makefile: Likewise.
4616 * catgets/Makefile: Likewise.
4618 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4620 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4621 compute current position.
4623 * stdio-common/tst-fseek.c (main): Improve error messages.
4625 * libio/tst-freopen.c (main): Remove unused variable.
4627 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4628 succesful seek call. Simplify error checking.
4630 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4632 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4633 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4635 2002-07-19 Roland McGrath <roland@frob.com>
4637 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4638 __libc_enable_secure is set.
4640 2002-07-24 Roland McGrath <roland@frob.com>
4642 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4643 This implementation supports only IPv4.
4644 * inet/ifaddrs.h: New file.
4645 * sysdeps/generic/ifaddrs.c: New file.
4646 * sysdeps/gnu/ifaddrs.c: New file.
4647 * inet/test-ifaddrs.c: New file.
4648 * inet/Makefile (routines): Add ifaddrs.
4649 (headers): Add ifaddrs.h here.
4650 (tests): Add test-ifaddrs.
4651 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4653 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4654 socket call to get an AF_INET socket, instead of using __opensock.
4655 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4657 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4658 if not -1 use it instead of calling __opensock.
4659 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4660 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4661 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4663 * sysdeps/mach/hurd/ifreq.h: New file.
4664 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4665 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4666 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4668 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4669 which gets moved around. Calculate size of mmap'd buffer instead.
4671 2002-07-24 Philip Blundell <philb@gnu.org>
4673 * sysdeps/unix/arm/brk.S: Improve schedule.
4674 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4675 efficient instruction.
4676 (__socket): Optimize return sequence.
4678 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4680 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4681 sockets on old kernels.
4683 2002-07-22 Philip Blundell <philb@gnu.org>
4685 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4686 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4689 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4691 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4692 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4694 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4695 test to detect duplicate locales.
4697 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4698 position would be before beginning of file.
4699 (_IO_file_seekoff_mmap): Likewise.
4700 * libio/Makefile (tests): Add bug-fseek.
4701 * libio/bug-fseek.c: New file.
4703 * intl/explodename.c: Remove support for CEN-style locale variables.
4704 It was never used and shouldn't be since it's not portable.
4705 * intl/finddomain.c: Likewise.
4706 * intl/l10nflist.c: Likewise.
4707 * intl/loadinfo.h: Likewise.
4708 * locale/findlocale.c: Likewise.
4710 2002-07-24 Roland McGrath <roland@frob.com>
4712 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4713 position, calculate it to take into account an active pushback buffer.
4715 * libio/Makefile (tests): Add bug-ungetc.
4716 * libio/bug-ungetc.c: New file.
4718 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4720 * sysdeps/generic/libc-tls.c: New file.
4721 * csu/Makefile (routines): Add libc-tls.
4722 (static-only-routines): Add libc-tls.
4723 * elf/dl-support.c (_dl_phdr): New variable.
4724 (_dl_phnum): New variable.
4725 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4726 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4727 for !SHARED. First look through auxiliary vector. If TLS always
4728 call __pthread_initialize_minimal.
4730 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4731 in mmap call is never zero.
4733 2002-07-23 Andreas Jaeger <aj@suse.de>
4735 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4736 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4738 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4740 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4741 creation and removal of the temp file.
4743 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4745 * test-skeleton.c (create_temp_file): New function.
4747 2002-07-22 Andreas Jaeger <aj@suse.de>
4749 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4752 2002-07-21 Roland McGrath <roland@frob.com>
4754 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4755 put -I../include before -I../stdlib so we get the right errno.h et al.
4756 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4757 (CFLAGS-wcstof.c): Likewise.
4758 (CFLAGS-wcstold.c): Likewise.
4759 (CFLAGS-wcstod_l.c): Likewise.
4760 (CFLAGS-wcstof_l.c): Likewise.
4761 (CFLAGS-wcstold_l.c): Likewise.
4763 2002-07-19 Roland McGrath <roland@frob.com>
4765 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4767 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4769 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4770 __ASSUME_AT_XID is defined.
4771 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4773 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4774 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4776 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4777 (CFLAGS-wcstof.c): Likewise.
4778 (CFLAGS-wcstold.c): Likewise.
4779 (CFLAGS-wcstod_l.c): Likewise.
4780 (CFLAGS-wcstof_l.c): Likewise.
4781 (CFLAGS-wcstold_l.c): Likewise.
4783 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4785 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4786 __priority_which_t): Always typedef to int for C++.
4788 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4790 * configure.in: Add test for __thread support in compiler.
4791 * config.h.in: Add HAVE___THREAD.
4792 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4793 * include/sys/errno.h: Moved to...
4794 * stdlib/sys/errno.h: ...here. New file.
4795 * stdlib/errno.h: New file. Moved from...
4796 * include/errno.h: ...here. Changed into an internal header defining
4797 libc-local things like __set_errno.
4798 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4800 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4801 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4803 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4805 (_dl_start_final): ...here. Add code to initialize tls elements from
4807 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4808 if USE_TLS && HAVE___THREAD.
4809 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4810 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4811 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4812 * sysdeps/standalone/bits/errno.h: Likewise.
4813 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4814 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4815 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4816 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4817 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4818 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4819 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4820 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4821 use GL(dl_rtld_map), use map parameter.
4822 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4823 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4824 USE_TLS && HAVE___THREAD.
4825 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4826 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4828 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4830 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4831 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4832 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4833 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4834 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4835 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4837 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4839 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4840 MS_INVALIDATE values.
4842 2002-07-17 Andreas Schwab <schwab@suse.de>
4843 Ulrich Drepper <drepper@redhat.com>
4845 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4846 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4847 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4848 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4850 2002-07-01 H.J. Lu <hjl@gnu.org>
4852 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4855 * elf/circlemod1.c (circlemod1): Return int.
4856 * elf/circlemod2.c (circlemod2): Likewise.
4857 * elf/circlemod2a.c (circlemod2): Likewise.
4858 * elf/circlemod3.c (circlemod3): Likewise.
4859 (circlemod3a): A new function.
4861 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4863 * catgets/tst-catgets.c (main): Don't expect results for
4864 untranslated messages.
4866 * glibcbug.in: Fix little typo. Remove STDIO.
4868 * config.h.in: Fail if __FAST_MATH__ is defined.
4869 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4870 (CPPFLAGS-test-idouble.c): Likewise.
4871 (CPPFLAGS-test-ildouble.c): Likewise.
4873 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4875 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4876 * intl/tst-gettext.c: Correctly handle untranslated messages in
4879 * po/de.po: Update from translation team.
4881 2002-07-02 H.J. Lu <hjl@gnu.org>
4883 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4885 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4887 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4890 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4892 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4893 TLS fail if USE_TLS is not defined.
4895 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4896 and adjust state for seek position. [PR libc/4070]
4897 * libio/Makefile (tests): Add bug-rewind.
4898 * libio/bug-rewind.c: New file.
4900 2002-07-12 Philip Blundell <philb@gnu.org>
4902 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4903 (__backtrace): Use it.
4904 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4906 2002-07-12 Philip Blundell <philb@gnu.org>
4908 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4909 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4910 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4911 (elf_machine_rela): Remove unused variable.
4913 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4914 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4917 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4919 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4921 2002-07-14 Andreas Jaeger <aj@suse.de>
4923 * sysdeps/x86_64/bits/link.h: Add biarch support.
4925 2002-07-13 Andreas Jaeger <aj@suse.de>
4927 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4928 Use correct indices.
4929 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4931 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4933 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4934 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4935 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4936 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4937 * sysdeps/s390/s390-32/bits/link.h: Remove.
4938 * sysdeps/s390/s390-64/bits/link.h: Remove.
4939 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4940 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4941 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4942 * sysdeps/s390/bits/wordsize.h: New file.
4943 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4945 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4946 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4947 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4948 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4949 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4950 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4951 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4952 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4953 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4954 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4955 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4956 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4958 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4959 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4960 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4961 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4962 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4963 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4964 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4966 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4967 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4969 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4970 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4971 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4973 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4974 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4975 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4976 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4977 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4978 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4979 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4980 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4982 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4983 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4984 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4986 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4987 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4989 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4991 * Versions.def (libc): Add GLIBC_2.3.
4992 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4993 * stdlib/canonicalize.c: Add compatibility version for realpath
4994 and make new code available in GLIBC_2.3.
4996 2002-07-06 Bruno Haible <bruno@clisp.org>
4998 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5000 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5002 * resolv/res_hconf.c (_res_hconf_init): Move code into new
5003 function do_init. Use __libc_once.
5004 (do_init): New function.
5006 * iconvdata/iso8859-11.h: Removed.
5007 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5008 (distribute): Remove iso8859-11.h.
5009 * iconvdata/tst-tables.sh: Add ISO-8859-11.
5011 * stdio-common/vfscanf.c (inchar): Restore errno from previous
5012 underflow operation if c == (W)EOF.
5014 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5016 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5017 non-zero, adjust exponent.
5018 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5019 Remove NO_LONG_DOUBLE aliases.
5020 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5021 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5022 (__log1pl): Raise divide by zero and invalid exceptions when needed.
5023 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5025 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5026 Fix BITS_PER_MP_LIMB 32 extraction.
5027 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5028 exceptions for qNaNs.
5029 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5030 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5031 Raise exceptions when needed. Don't recurse unnecessarily.
5032 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5033 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5034 exceptions for qNaNs.
5035 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5036 to fix *quo return value sign.
5037 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5039 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5041 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5043 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5044 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5047 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5049 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5052 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5053 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5055 * Versions.def (libthread_db): Add GLIBC_2.3.
5057 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5059 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5060 new stream if possible.
5061 * libio/freopen64.c (freopen64): Likewise.
5062 * libio/Makefile (tests): Add tst-freopen.
5063 * libio/tst-freopen.c: New file.
5065 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5067 * libio/stdio.h (obstack_printf): Add format attribute.
5068 (obstack_vprintf): Likewise.
5070 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5072 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5073 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5074 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5077 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5079 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5080 (init_dfa): ...here.
5082 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5084 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5085 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5086 nodes in parse trees.
5087 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5088 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5089 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5090 nodes which can epsilon transit.
5091 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5092 to IS_EPSILON_NODE macro.
5093 * posix/regexec.c (update_regs): New function to update registers
5094 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5095 (proceed_next_node): Use the entities of the nodes to determine
5096 whether the node can transit to.
5097 (set_regs): Use update_regs function to update registers.
5099 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5101 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5102 * posix/bug-regex6.c: New file.
5103 * posix/Makefile (tests): Add bug-regex6.
5104 (bug-regex6-ENV): Set LOCPATH.
5106 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5108 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5109 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5111 2002-07-06 Bruno Haible <bruno@clisp.org>
5113 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5115 2002-07-06 Bruno Haible <bruno@clisp.org>
5117 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5120 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5122 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5124 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5126 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5128 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5129 * sysdeps/generic/bits/ustat.h: Likewise.
5131 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5133 2002-07-08 Andreas Jaeger <aj@suse.de>
5135 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5137 2002-07-08 Andreas Jaeger <aj@suse.de>
5139 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5141 2002-07-06 Andreas Jaeger <aj@suse.de>
5143 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5144 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5145 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5146 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5147 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5148 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5149 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5150 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5151 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5152 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5153 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5155 2002-06-05 Brian Youmans <3diff@gnu.org>
5157 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5158 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5159 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5160 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5161 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5162 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5163 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5164 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5165 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5166 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5167 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5168 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5169 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5170 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5171 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5172 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5173 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5174 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5175 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5176 * sysdeps/ia64/fpu/e_log.S: Likewise.
5177 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5178 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5179 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5180 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5181 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5182 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5183 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5184 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5185 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5186 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5187 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5188 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5189 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5190 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5191 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5192 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5193 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5194 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5195 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5196 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5197 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5198 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5199 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5200 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5201 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5202 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5203 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5204 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5205 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5206 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5207 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5208 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5209 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5210 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5211 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5212 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5213 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5214 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5215 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5216 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5217 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5218 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5219 * sysdeps/ia64/fpu/s_round.S: Likewise.
5220 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5221 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5222 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5223 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5224 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5225 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5226 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5227 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5228 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5229 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5230 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5231 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5232 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5233 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5234 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5235 reflect IBM donation of math library to FSF
5236 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5237 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5238 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5239 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5240 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5241 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5242 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5243 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5244 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5245 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5246 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5247 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5248 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5249 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5250 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5251 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5252 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5253 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5254 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5255 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5256 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5257 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5258 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5259 * sysdeps/vax/__longjmp.c: Likewise.
5260 * sysdeps/vax/setjmp.c: Likewise.
5261 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5262 remove advertising clause
5263 * sysdeps/vax/htonl.s: Likewise.
5264 * sysdeps/vax/htons.s: Likewise.
5265 * libio/wfiledoalloc.c: Likewise.
5266 * stdlib/random.c: Likewise.
5267 * stdlib/random_r.c: Likewise.
5268 * sysdeps/mach/sys/reboot.h: Likewise.
5269 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5270 * sysdeps/posix/getaddrinfo.c: Likewise.
5271 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5272 GPL and corrected pointer to point to the correct license.
5274 2002-07-04 Andreas Jaeger <aj@suse.de>
5276 * scripts/config.guess: New upstream version.
5277 * scripts/config.sub: Likewise.
5279 2002-07-02 Andreas Schwab <schwab@suse.de>
5281 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5282 in parallel to bumping up the buffer pointer.
5284 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5286 * math/libm-test.inc (acos_test): Add missing L suffix for
5288 (cpow_test): Likewise.
5289 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5290 error for acos (0.0625).
5292 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5294 * locale/iso-639.def: Add entry for Ganda.
5295 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5297 (address_finish): Handle entries with two letter ISO 639 code.
5299 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5300 directory if it existed before.
5301 * iconv/iconvconfig.c: Implement --prefix option.
5303 * math/libm-test.inc (cexp_test): Add missing L suffix for
5304 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5305 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5308 2002-05-29 H.J. Lu <hjl@gnu.org>
5310 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5313 2002-05-28 H.J. Lu <hjl@gnu.org>
5315 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5316 are not dlopened on the dependency list of a dlopened object.
5318 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5320 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5321 dependencies if they are created between objects which are created
5322 while processing RTLD_NOW for objects loaded as part of the same
5325 2002-06-14 H.J. Lu <hjl@gnu.org>
5327 * elf/Makefile (tests): Add circleload1.
5328 (modules-names): Add circlemod1, circlemod2, circlemod3,
5329 circlemod1a, circlemod2a and circlemod3a.
5330 ($(objpfx)circleload1): New target.
5331 ($(objpfx)circleload1.out): Likewise.
5332 ($(objpfx)circlemod1.so): Likewise.
5333 ($(objpfx)circlemod2.so): Likewise.
5334 ($(objpfx)circlemod1a.so): Likewise.
5335 ($(objpfx)circlemod2a.so): Likewise.
5336 * elf/circleload1.c: New file.
5337 * elf/circlemod1.c: New file.
5338 * elf/circlemod1a.c: New file.
5339 * elf/circlemod2.c: New file.
5340 * elf/circlemod2a.c: New file.
5341 * elf/circlemod3.c: New file.
5342 * elf/circlemod3a.c: New file.
5344 2002-06-18 Amos Waterland <apw@us.ibm.com>
5346 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5348 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5349 add check for fd not open for writing.
5351 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5352 completed element(s) and do not suspend thread if so. Patch
5353 heavily modified by drepper.
5355 * rt/tst-aio7.c: New file. Regression test for problems which the
5356 above three changes fix.
5357 * rt/Makefile (tests): Add tst-aio7.
5359 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5361 * rt/tst-aio6.c: Fix comment.
5363 * catgets/gencat.c (read_input_file): Handle more than one slash
5364 at end of line correctly [PR libc/3926].
5365 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5367 * catgets/sample.SJIS: Add test case for above bug.
5368 * catgets/test-gencat.c: Adjust test code.
5369 * catgets/test-gencat.sh: Adjust expected results.
5371 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5372 to skip relative relocations.
5373 Patch by Geoff Keating <geoffk@redhat.com>.
5375 2002-05-26 Bruno Haible <bruno@clisp.org>
5377 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5378 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5379 All callers changed.
5380 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5381 STANDARD_FROM_LOOP_ERR_HANDLER.
5382 (utf8_internal_loop): Likewise.
5383 (ucs2_internal_loop): Likewise.
5384 (internal_ucs2_loop): Perform error handling like in
5385 STANDARD_FROM_LOOP_ERR_HANDLER.
5386 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5387 in STANDARD_FROM_LOOP_ERR_HANDLER.
5388 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5390 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5391 in STANDARD_FROM_LOOP_ERR_HANDLER.
5392 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5394 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5395 in STANDARD_FROM_LOOP_ERR_HANDLER.
5396 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5398 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5399 STANDARD_FROM_LOOP_ERR_HANDLER.
5400 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5401 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5402 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5403 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5404 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5405 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5406 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5407 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5408 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5409 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5410 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5411 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5412 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5413 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5414 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5415 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5416 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5417 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5418 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5419 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5420 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5421 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5422 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5423 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5424 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5425 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5426 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5427 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5428 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5429 an error, still set result = __GCONV_ILLEGAL_INPUT.
5430 (BODY for TO_LOOP): Likewise.
5431 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5432 STANDARD_FROM_LOOP_ERR_HANDLER.
5433 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5434 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5435 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5437 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5438 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5439 STANDARD_FROM_LOOP_ERR_HANDLER.
5440 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5441 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5442 STANDARD_FROM_LOOP_ERR_HANDLER.
5443 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5444 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5445 STANDARD_FROM_LOOP_ERR_HANDLER.
5446 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5447 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5448 STANDARD_FROM_LOOP_ERR_HANDLER.
5449 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5450 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5451 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5453 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5454 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5455 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5456 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5458 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5460 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5461 labels in assembler instructions.
5463 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5465 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5466 not enough content is available.
5467 * libio/tst-eof.c: New file.
5468 * libio/Makefile (tests): Add tst-eof.
5470 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5472 * libio/tst-atime.c: New file.
5473 * libio/Makefile (tests): Add tst-atime.
5475 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5476 handling of overly long words.
5478 2002-06-25 Andreas Jaeger <aj@suse.de>
5480 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5481 to not use 32-bit pc relative relocations.
5482 (elf_machine_dynamic): Likewise.
5484 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5486 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5487 (__GETDENTS): Check for failed getdents64 syscall.
5488 * dirent/Makefile (tests): Add bug-readdir1.
5489 * dirent/bug-readdir1.c: New file.
5491 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5493 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5495 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5496 code. Print TLS modid and offset for modules containing PT_TLS
5499 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5501 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5502 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5503 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5504 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5506 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5508 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5509 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5510 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5511 * nss/getXXent_r.c (NEW, NEW1): Define.
5512 (NEW (REENTRANT_GETNAME)): Strong alias to
5513 INTERNAL (REENTRANT_GETNAME).
5514 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5516 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5518 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5519 (_IO_file_jumps_mmap): Use it.
5520 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5521 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5522 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5524 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5525 (_IO_wfile_jumps_mmap): Don't use it anymore.
5526 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5527 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5528 _IO_wdefault_setbuf.
5529 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5530 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5531 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5533 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5535 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5536 * libio/tst-mmap-setvbuf.c: New test.
5538 2002-06-21 Andreas Jaeger <aj@suse.de>
5540 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5542 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5544 * include/unistd.h (__fork_internal): Remove.
5545 (__fork): Don't define to __fork_internal.
5546 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5547 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5548 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5549 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5550 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5552 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5554 * po/hr.po: New file.
5556 2002-06-11 Wolfram Gloger <wg@malloc.de>
5558 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5559 Reported by Michael Meissner <meissner@redhat.com>.
5561 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5563 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5564 Patch by Hans Boehm <hans_boehm@hp.com>.
5566 2002-06-20 Andreas Jaeger <aj@suse.de>
5568 * math/libm-test.inc: Use exact values as input parameters,
5569 compute output parameters with 36 digits for 128-bit long doubles.
5570 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5571 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5572 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5574 2002-06-13 Stephen L Moshier <steve@moshier.net>
5576 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5577 argument or result is subnormal.
5579 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5581 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5583 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5584 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5586 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5588 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5590 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5591 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5592 Reported by Peter A. Buhr.
5594 2002-06-15 Roland McGrath <roland@frob.com>
5596 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5599 * sysdeps/mach/hurd/getcwd.c
5600 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5602 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5603 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5605 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5606 jump to local subroutine.
5608 2002-06-14 Roland McGrath <roland@frob.com>
5610 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5611 * sysdeps/mach/hurd/Makeconfig: ... here.
5613 2002-06-13 Andreas Schwab <schwab@suse.de>
5615 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5616 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5617 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5619 2002-06-13 Roland McGrath <roland@frob.com>
5621 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5622 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5623 Use intptr_t instead of int for argc in stack layout.
5624 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5625 (_dl_init_first): Likewise.
5626 (_hurd_stack_setup): Likewise.
5627 (init1): Add a cast.
5628 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5630 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5631 argument to pfinet_siocgifconf RPC.
5633 2002-06-13 Andreas Schwab <schwab@suse.de>
5635 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5638 2002-06-12 Roland McGrath <roland@frob.com>
5640 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5642 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5643 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5645 2002-06-11 Roland McGrath <roland@frob.com>
5647 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5648 file on [!RTLD_STAT64].
5649 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5651 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5652 (__fdopen): Use INTUSE.
5653 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5655 * stdio-common/tmpfile64.c: File removed.
5656 * sysdeps/generic/tmpfile64.c: New file.
5657 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5658 if not already defined.
5659 (tmpfile): Use it in place of __GT_FILE.
5661 * include/unistd.h: Declare __chown_internal.
5663 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5664 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5666 2002-06-09 Roland McGrath <roland@frob.com>
5668 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5669 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5670 value of HURD_INTERFACE_VERSION >= 20020609.
5671 * sysdeps/mach/hurd/configure: Regenerated.
5672 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5673 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5674 convert a struct stat64 into a struct stat and return 0 or -1
5675 with errno set to EOVERFLOW.
5676 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5677 for struct statfs64 to struct statfs.
5678 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5679 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5680 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5681 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5682 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5683 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5684 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5685 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5686 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5687 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5688 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5689 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5690 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5691 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5692 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5693 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5694 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5695 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5696 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5697 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5698 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5699 Use struct stat64 for io_stat argument.
5700 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5701 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5703 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5704 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5705 * hurd/hurd/fd.h: Update decls.
5706 * sysdeps/mach/hurd/getcwd.c
5707 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5708 and struct dirent64.
5709 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5710 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5711 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5712 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5714 2002-06-08 Roland McGrath <roland@frob.com>
5716 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5717 instead of unsigned long int for __allocation and __size members.
5719 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5721 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5722 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5723 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5724 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5726 2002-06-07 Roland McGrath <roland@frob.com>
5728 * sysdeps/mach/hurd/bits/environments.h: File removed.
5730 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5732 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5733 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5734 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5735 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5736 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5737 (sendfile64): Likewise.
5738 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5739 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5740 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5742 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5744 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5747 2002-06-04 Bruno Haible <bruno@clisp.org>
5749 * sysdeps/cris/stackinfo.h: New file.
5751 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5752 to an integer type before performing bit operations on it.
5754 2002-06-05 Roland McGrath <roland@frob.com>
5756 * sysdeps/generic/sendfile.c: Include <errno.h>.
5757 * sysdeps/generic/sendfile64.c: Likewise.
5759 * io/Makefile (routines): Add sendfile and sendfile64.
5760 (headers): Add sys/sendfile.h to the list.
5761 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5762 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5763 * io/sys/sendfile.h: ... here.
5764 * sysdeps/generic/sendfile.c: New file.
5765 * sysdeps/generic/sendfile64.c: New file.
5767 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5768 Move sendfile, sendfile64 to ...
5769 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5770 * sysdeps/mach/hurd/sendfile.c: New file.
5771 * sysdeps/mach/hurd/sendfile64.c: New file.
5773 * sysdeps/mach/nanosleep.c: New file.
5775 2002-06-04 Roland McGrath <roland@frob.com>
5777 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5778 * sysdeps/alpha/elf/configure: New file (generated).
5780 2002-06-02 Roland McGrath <roland@frob.com>
5782 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5784 2002-06-01 Roland McGrath <roland@frob.com>
5786 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5787 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5789 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5791 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5793 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5794 Remove nstimes setting.
5795 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5796 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5797 there is mix of IPv6 and IPv4 nameservers.
5798 Use nsmap array to find free slots and preserve nameserver ordering.
5801 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5803 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5804 use this header with LFS.
5806 * po/sk.po: Update from translation team.
5808 2002-05-28 Andreas Schwab <schwab@suse.de>
5810 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5811 message when finding object of wrong class.
5813 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5815 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5816 Patch by <radu@netsoft.ro>.
5818 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5820 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5822 * sysdeps/unix/sysv/linux/readahead.c: New file.
5823 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5824 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5825 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5826 Add sendfile64 alias to sendfile syscall.
5827 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5828 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5829 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5830 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5833 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5834 special section for PIC register loading.
5835 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5837 * config.h.in: Define HAVE_HIDDEN.
5838 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5840 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5842 2002-05-28 Roland McGrath <roland@frob.com>
5844 * sysdeps/mach/alpha/setfpucw.c: New file.
5846 2002-05-26 Roland McGrath <roland@frob.com>
5848 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5849 Use integer_t instead of int for IOC_VOID case.
5851 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5853 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5855 2002-05-26 Bruno Haible <bruno@clisp.org>
5857 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5858 end of the ISO-8859-7 from idx table.
5860 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5862 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5864 2002-05-24 David S. Miller <davem@redhat.com>
5866 * string/bits/string2.h (memset): Do not try to optimize when
5867 not _STRING_ARCH_unaligned if GCC will do the right thing.
5869 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5871 * posix/regex.c: Define `inline' as a macro into nothing for the
5872 compilers which lack the keyword.
5873 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5874 for the compatibility of gawk.
5875 * posix/regcomp.c: Add fake implementation of isblank() for the
5876 environments which lack the function.
5877 Don't use free_charset() in case of non-i18n envs.
5878 (build_range_exp): Don't use i18n related code in case of non-i18n
5880 (build_collating_symbol): Likewise.
5881 (build_equiv_class): Likewise.
5882 (build_charclass): Likewise.
5883 (re_compile_fastmap_iter): Likewise.
5884 (parse_bracket_exp): Likewise.
5885 (build_word_op): Likewise.
5886 (regfree): Don't use free_charset() in case of non-i18n envs.
5887 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5888 re_token_type_t in case of non-i18n envs.
5889 Don't define re_charset_t in case of non-i18n envs.
5890 Change the type of wcs of re_string_t from wchar_t to wint_t,
5891 since we store also WEOF.
5892 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5893 the type of wcs of re_string_t from wchar_t to wint_t.
5894 (re_string_reconstruct): Likewise.
5895 (create_ci_newstate): Don't use i18n related code in case of
5897 (create_cd_newstate): Likewise.
5899 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5901 * iconv/loop.c: Fix typo.
5903 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5905 * inet/ether_line.c (ether_line): Fix a typo causing only
5906 lower 4 bits of each ethernet address byte being assigned.
5907 Don't modify what line points to.
5908 * inet/tst-ether_aton.c (main): Add ether_line tests.
5910 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5912 * manual/filesys.texi: Don't make readlink example leak memory
5913 when readlink fails.
5915 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5917 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5918 some more security checks.
5920 2002-05-17 David S. Miller <davem@redhat.com>
5922 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5924 2002-05-16 David S. Miller <davem@redhat.com>
5926 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5927 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5928 (elf_machine_load_address): Likewise.
5929 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5931 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5932 is unaligned, do not forget to fully initialize %g1 magic value.
5934 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5935 register definitions and provide 32-bit variants of structures
5936 during 64-bit builds.
5938 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5939 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5940 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5941 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5942 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5943 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5944 Do not clear implicit one bit here, it must be done post-rounding.
5945 Only pad to the left using left shift if value uses less than the
5946 available fractional bits.
5948 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5950 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5951 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5952 (shared-only-routines): Likewise.
5953 * sysdeps/powerpc/libgcc-compat.c: New file.
5954 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5955 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5956 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5957 * sysdeps/wordsize-32/shdi3.c: Removed.
5959 2002-05-16 Bruno Haible <bruno@clisp.org>
5961 * MakeTAGS (libc.pot): Don't sort the output.
5962 * po/header.pot: Update to match xgettext 0.11 output.
5964 2002-05-16 Bruno Haible <bruno@clisp.org>
5966 * MakeTAGS (subdirs): Remove duplicates.
5968 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5970 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5971 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5974 2002-05-19 Andreas Jaeger <aj@suse.de>
5976 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5977 installation in /usr/local.
5979 2002-05-16 Bruno Haible <bruno@clisp.org>
5981 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5982 string as argument of #error.
5984 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5986 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5987 don't define static. Remove old __realpath function. TC1 of
5988 POSIX 2001 will allow the second parameter to be NULL.
5989 * stdlib/test-canon.c: Comment out test for NULL as second
5990 parameter of realpath.
5992 * time/offtime.c (__offtime): Set errno if overflow is detected.
5994 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5995 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5998 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6001 2002-05-15 Roland McGrath <roland@frob.com>
6003 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6005 2002-05-12 Bruno Haible <bruno@clisp.org>
6007 * iconvdata/testdata/EUC-JISX0213: New file.
6008 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6009 * iconvdata/testdata/SHIFT_JISX0213: New file.
6010 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6011 * iconvdata/testdata/ISO-2022-JP-3: New file.
6012 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6013 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6014 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6015 contains comments indicating precomposed characters.
6017 2002-04-21 Bruno Haible <bruno@clisp.org>
6019 * iconvdata/iso-2022-jp-3.c: New file.
6020 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6021 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6022 (LDFLAGS-ISO-2022-JP-3.so): New variable.
6023 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6024 (distribute): Add iso-2022-jp-3.c.
6026 2002-05-12 Bruno Haible <bruno@clisp.org>
6028 * iconvdata/tst-table-to.c (main): Restore handling of
6029 transliterations, broken by last patch.
6031 2002-05-12 Bruno Haible <bruno@clisp.org>
6033 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6035 2002-05-12 Bruno Haible <bruno@clisp.org>
6037 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6038 when there is not enough room in the output buffer.
6039 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6041 2002-04-20 Bruno Haible <bruno@clisp.org>
6043 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6045 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6046 Also make this macro work if FROM_DIRECTION evaluates to 0.
6047 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6048 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6049 of consume_incomplete.
6050 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6051 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6053 * iconvdata/cp1258.c: Likewise.
6054 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6055 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6057 * iconvdata/ibm933.c: Likewise.
6058 * iconvdata/ibm935.c: Likewise.
6059 * iconvdata/ibm937.c: Likewise.
6060 * iconvdata/ibm939.c: Likewise.
6061 * iconvdata/iso-2022-cn.c: Define
6062 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6063 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6064 * iconvdata/iso-2022-cn-ext.c: Likewise.
6065 * iconvdata/iso-2022-jp.c: Define
6066 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6067 {MIN,MAX}_NEEDED_{FROM,TO}.
6068 * iconvdata/tcvn5712-1.c: Define
6069 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6070 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6071 * iconvdata/euc-jisx0213.c: Define
6072 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6073 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6074 * iconvdata/shift_jisx0213.c: Likewise.
6076 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6078 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6079 shdi3, fixdfdi, fixsfdi in csu dir.
6080 (shared-only-routines): Likewise.
6081 * sysdeps/wordsize-32/cmpdi2.c: New file.
6082 * sysdeps/wordsize-32/shdi3.c: New file.
6083 * sysdeps/wordsize-32/fixdfdi.c: New file.
6084 * sysdeps/wordsize-32/fixsfdi.c: New file.
6085 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6086 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6087 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6089 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6090 Only use va_arg if the argument will be used [PR libc/3259].
6092 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6094 * catgets/catgets.c (catopen): Free buffer if internal catalog
6097 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6099 * debug/xtrace.sh: Make more robust. For realtime tracking use
6100 non-buffering methods.
6101 * debug/pcprofiledump.c: Implement -u option.
6102 Patch by Roger Luethi <rl@hellgate.ch>.
6104 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6106 * include/netinet/in.h (bindresvport_internal): Add prototype.
6107 * include/rpc/auth.h (authunix_create_internal,
6108 authunix_create_default_internal, authnone_create_internal,
6109 authdes_pk_create_internal): Add prototypes.
6110 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6111 clntudp_create_internal, clntudp_bufcreate_internal,
6112 clntunix_create_internal): Add prototypes.
6113 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6114 svc_getreq_internal, svc_getreq_common_internal,
6115 svc_getreqset_internal, svc_getreq_poll_internal,
6116 svc_register_internal, svc_unregister_internal,
6117 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6118 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6119 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6120 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6121 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6122 * inet/rcmd.c (rcmd_af): Use __listen.
6123 (rresvport_af): Use __bind.
6124 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6125 authunix_create, authunix_create_default, authnone_create,
6126 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6127 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6128 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6129 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6130 _authenticate, add INTDEF after such function definitions.
6131 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6132 __setsockopt, __getsockname instead of non-__ variants.
6133 * sunrpc/pmap_rmt.c: Likewise.
6134 * sunrpc/rtime.c: Likewise.
6135 * sunrpc/svc_udp.c: Likewise.
6136 * sunrpc/clnt_unix.c: Likewise.
6137 * sunrpc/svc_unix.c: Likewise.
6138 * sunrpc/bindrsvprt.c: Likewise.
6139 * sunrpc/svc_tcp.c: Likewise.
6140 * sunrpc/auth_none.c: Likewise.
6141 * sunrpc/clnt_raw.c: Likewise.
6142 * sunrpc/clnt_tcp.c: Likewise.
6143 * sunrpc/auth_unix.c: Likewise.
6144 * sunrpc/key_call.c: Likewise.
6145 * sunrpc/clnt_gen.c: Likewise.
6146 * sunrpc/pm_getmaps.c: Likewise.
6147 * sunrpc/clnt_simp.c: Likewise.
6148 * sunrpc/pmap_clnt.c: Likewise.
6149 * sunrpc/svc_run.c: Likewise.
6150 * sunrpc/svc.c: Likewise.
6151 * sunrpc/svc_simple.c: Likewise.
6152 * sunrpc/pm_getport.c: Likewise.
6153 * sunrpc/auth_des.c: Likewise.
6154 * sunrpc/svc_auth.c: Likewise.
6155 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6156 __register_frame_info_table_bases, __deregister_frame_info_bases):
6158 (__register_frame_info_bases_internal,
6159 __register_frame_info_table_bases_internal,
6160 __deregister_frame_info_bases_internal): Add prototypes.
6161 (__register_frame_info, __register_frame): Use INTUSE in call to
6162 __register_frame_info_bases.
6163 (__register_frame_info_table): Similarly.
6164 (__deregister_frame_info, __deregister_frame): Similarly.
6165 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6166 sendto as weak alias.
6167 * sysdeps/mach/hurd/sendto.c: Likewise.
6168 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6169 recvfrom as weak alias.
6170 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6171 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6172 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6173 recvmsg as weak alias.
6174 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6175 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6176 sendmsg as weak alias.
6177 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6178 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6179 setsockopt, add setsockopt as weak alias.
6180 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6181 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6183 * sysdeps/mach/hurd/bind.c: Likewise.
6184 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6186 * sysdeps/mach/hurd/listen.c: Likewise.
6187 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6188 getsockname, add getsockname as weak alias.
6189 * sysdeps/mach/hurd/getsockname.c: Likewise.
6190 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6191 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6192 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6193 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6194 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6195 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6197 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6198 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6199 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6200 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6201 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6202 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6203 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6204 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6205 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6206 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6207 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6208 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6210 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6212 * locale/programs/localedef.h (show_archive_content): Add verbose
6214 * locale/programs/localedef.c (main): Adjust caller.
6215 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6217 (nameentcmp, dataentcmp): New functions.
6219 (show_archive_content): Print verbose listing with --list-archive -v.
6221 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6223 * locale/programs/locarchive.c (open_archive): Take extra argument
6224 readonly. If true open file with O_RDONLY and don't create the
6225 archive if it doesn't exist.
6227 (close_archive): Don't do anything if fd element is -1.
6228 * locale/programs/localedef.h (open_archive): Adjust prototype.
6229 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6232 * malloc/malloc.c (__posix_memalign): Correct check for size of
6233 alignment value [PR libc/3444].
6235 * include/stdio.h: Remove references to old stdio implementation.
6237 * libio/Makefile (bug-ungetwc2-ENV): Define.
6239 2002-05-13 Roland McGrath <roland@frob.com>
6241 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6243 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6245 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6247 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6248 Allocate three, not two, more than LEN when appending '/.'.
6249 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6250 if NAME ends with '/.' if it is shorter than 2 chars.
6252 2002-05-12 Roland McGrath <roland@frob.com>
6254 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6255 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6257 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6258 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6260 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6262 * sysdeps/ia64/Makefile: Remove extra endif.
6263 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6265 2002-05-10 Andreas Schwab <schwab@suse.de>
6267 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6269 2002-05-09 Andreas Jaeger <aj@suse.de>
6271 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6272 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6273 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6275 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6276 * sysdeps/wordsize-64/glob.c: ...here.
6277 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6278 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6279 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6281 2002-05-08 Roland McGrath <roland@frob.com>
6283 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6284 O_NOTRANS flag in "." lookup.
6286 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6288 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6290 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6292 * locale/duplocale.c (__duplocale): Update special members only
6293 when allocation succeeded.
6295 2002-05-03 Roland McGrath <roland@frob.com>
6297 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6298 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6300 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6302 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6303 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6304 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6305 * sysdeps/ia64/ia64libgcc.S: New file.
6307 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6309 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6311 * malloc/memusage.c: Distinguish anonymous mmap.
6313 2002-05-01 Roland McGrath <roland@frob.com>
6315 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6316 and use INTDEF on it.
6317 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6319 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6321 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6323 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6325 * malloc/memusage.c: Add support for tracking mmap & friends.
6326 * malloc/memusage.sh: Implement -m/--mmap option.
6328 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6330 * locale/programs/locarchive.c (create_archive): Add archivefname
6331 argument, create fname from it.
6332 (enlarge_archive): Honour output_prefix.
6333 (open_archive): Likewise.
6335 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6337 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6338 too many stpcpy macros.
6340 2002-04-26 Bruno Haible <bruno@clisp.org>
6342 * locale/programs/ld-collate.c (collate_read): Cast first argument
6345 2002-04-26 Bruno Haible <bruno@clisp.org>
6347 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6348 __dcngettext_internal): New declarations.
6349 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6350 attribute declarations.
6352 2002-04-30 Roland McGrath <roland@frob.com>
6354 Removed old GNU stdio implementation; GNU libio is now the only option.
6355 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6356 Define USE_IN_LIBIO unconditionally.
6357 * configure: Regenerated.
6358 * Makeconfig (stdio): Set to libio by default.
6359 * config.make.in (stdio): Variable removed.
6360 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6361 * sysdeps/unix/sysv/linux/configure: Regenerated.
6362 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6363 * sysdeps/mach/hurd/configure: Regenerated.
6364 * stdio/.cvsignore: File removed.
6365 * stdio/Makefile: File removed.
6366 * stdio/Versions: File removed.
6367 * stdio/__fbufsize.c: File removed.
6368 * stdio/__flbf.c: File removed.
6369 * stdio/__fpending.c: File removed.
6370 * stdio/__fpurge.c: File removed.
6371 * stdio/__freadable.c: File removed.
6372 * stdio/__freading.c: File removed.
6373 * stdio/__fsetlocking.c: File removed.
6374 * stdio/__fwritable.c: File removed.
6375 * stdio/__fwriting.c: File removed.
6376 * stdio/clearerr.c: File removed.
6377 * stdio/fclose.c: File removed.
6378 * stdio/fcloseall.c: File removed.
6379 * stdio/feof.c: File removed.
6380 * stdio/ferror.c: File removed.
6381 * stdio/fflush.c: File removed.
6382 * stdio/fgetc.c: File removed.
6383 * stdio/fgetpos.c: File removed.
6384 * stdio/fgets.c: File removed.
6385 * stdio/fileno.c: File removed.
6386 * stdio/fmemopen.c: File removed.
6387 * stdio/fopen.c: File removed.
6388 * stdio/fopncook.c: File removed.
6389 * stdio/fputc.c: File removed.
6390 * stdio/fputs.c: File removed.
6391 * stdio/fread.c: File removed.
6392 * stdio/freopen.c: File removed.
6393 * stdio/fseek.c: File removed.
6394 * stdio/fsetpos.c: File removed.
6395 * stdio/ftell.c: File removed.
6396 * stdio/fwrite.c: File removed.
6397 * stdio/getc.c: File removed.
6398 * stdio/getchar.c: File removed.
6399 * stdio/getdelim.c: File removed.
6400 * stdio/gets.c: File removed.
6401 * stdio/glue.c: File removed.
6402 * stdio/internals.c: File removed.
6403 * stdio/linewrap.c: File removed.
6404 * stdio/linewrap.h: File removed.
6405 * stdio/memstream.c: File removed.
6406 * stdio/newstream.c: File removed.
6407 * stdio/obstream.c: File removed.
6408 * stdio/putc.c: File removed.
6409 * stdio/putchar.c: File removed.
6410 * stdio/puts.c: File removed.
6411 * stdio/rewind.c: File removed.
6412 * stdio/setbuf.c: File removed.
6413 * stdio/setbuffer.c: File removed.
6414 * stdio/setlinebuf.c: File removed.
6415 * stdio/setvbuf.c: File removed.
6416 * stdio/stdio.h: File removed.
6417 * stdio/ungetc.c: File removed.
6418 * stdio/vasprintf.c: File removed.
6419 * stdio/vscanf.c: File removed.
6420 * stdio/vsnprintf.c: File removed.
6421 * stdio/vsprintf.c: File removed.
6422 * stdio/vsscanf.c: File removed.
6423 * sysdeps/generic/defs.c: File removed.
6424 * sysdeps/generic/fdopen.c: File removed.
6425 * sysdeps/generic/pipestream.c: File removed.
6426 * sysdeps/generic/stdio_init.c: File removed.
6427 * sysdeps/generic/sysd-stdio.c: File removed.
6428 * sysdeps/generic/vdprintf.c: File removed.
6429 * sysdeps/mach/hurd/defs.c: File removed.
6430 * sysdeps/mach/hurd/fdopen.c: File removed.
6431 * sysdeps/mach/hurd/pipestream.c: File removed.
6432 * sysdeps/mach/hurd/stdio_init.c: File removed.
6433 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6434 * sysdeps/mach/hurd/vdprintf.c: File removed.
6435 * sysdeps/posix/defs.c: File removed.
6436 * sysdeps/posix/fdopen.c: File removed.
6437 * sysdeps/posix/pipestream.c: File removed.
6438 * sysdeps/posix/stdio_init.c: File removed.
6439 * sysdeps/posix/vdprintf.c: File removed.
6440 * sysdeps/unix/pipestream.c: File removed.
6441 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6442 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6443 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6445 2002-04-29 Roland McGrath <roland@frob.com>
6447 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6449 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6451 * sysdeps/generic/tls.h: Describe what must be defined.
6453 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6454 glob_in_dir [PR libc/3385].
6455 * posix/globtest.sh: Add test case.
6457 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6460 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6462 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6463 _internal symbol handling.
6464 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6466 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6468 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6469 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6471 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6473 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6474 not _LIBC and RE_ENABLE_I18N.
6475 (build_range_exp): Implement for not _LIBC.
6476 (build_collating_symbol): Likewise.
6477 (parse_bracket_exp): Unify redundant error handlings.
6478 Don't erase mbcset for non matching list in multibyte envs.
6479 (build_word_op): Add '_' to matching list for \w operator.
6480 * posix/regex_internal.c (re_string_construct): Invoke
6481 build_upper_buffer in case of not RE_ENABLE_I18N.
6482 (re_string_reconstruct): Don't touch cur_state in case of not
6484 * posix/regex_internal.h (attribute_hidden): New macro in case of
6486 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6487 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6489 (transit_state_mb): Likewise.
6490 (check_node_accept_bytes): Implement the code evaluating range
6491 expression in case of not _LIBC.
6492 (find_collation_sequence_value): Hide in case of not _LIBC.
6494 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6496 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6498 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6501 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6503 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6505 * sysdeps/ia64/strncpy.S: Fix recovery code.
6506 Patch by David Mosberger <davidm@hpl.hp.com>.
6508 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6510 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6513 2002-04-14 Bruno Haible <bruno@clisp.org>
6515 * posix/regex.c (re_max_failures): Add back symbol for binary
6518 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6520 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6521 of buffer building functions.
6522 * posix/regex_internal.c (re_string_allocate): New function.
6523 (re_string_realloc_buffers): New function.
6524 (re_string_skip_chars): New function.
6525 (re_string_reconstruct): New function.
6526 (re_string_construct): Adapt it to new interface of buffer building
6528 (re_string_construct_common): Likewise.
6529 (build_wcs_buffer): Likewise.
6530 (build_wcs_upper_buffer): Likewise.
6531 (build_upper_buffer): Likewise.
6532 (re_string_translate_buffer): Likewise.
6533 (re_string_context_at): Adapt it to variable length buffers.
6534 * posix/regex_internal.h (re_string_t): Add new fields to handle
6535 variable length buffers.
6536 (re_match_context_t): Likewise.
6537 * posix/regexec.c (re_search_internal): Adapt it to new interface
6538 of re_string_t and re_match_context_t.
6539 (acquire_init_state_context): Likewise.
6540 (check_matching): Likewise.
6541 (check_halt_state_context): Likewise.
6542 (proceed_next_node): Likewise.
6543 (set_regs): Likewise.
6544 (sift_states_backward): Likewise.
6545 (clean_state_log_if_need): Likewise.
6546 (sift_states_iter_mb): Likewise.
6547 (sift_states_iter_bkref): Likewise.
6548 (add_epsilon_backreference): Likewise.
6549 (transit_state): Likewise.
6550 (transit_state_sb): Likewise.
6551 (transit_state_mb): Likewise.
6552 (transit_state_bkref): Likewise.
6553 (transit_state_bkref_loop): Likewise.
6554 (check_node_accept): Likewise.
6555 (match_ctx_init): Likewise.
6556 (extend_buffers): New function.
6558 2002-04-21 Bruno Haible <bruno@clisp.org>
6560 * iconvdata/tst-table.sh: For the second check, use the truncated
6561 GB18030 charmap table, like for the first check.
6563 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6565 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6566 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6568 2002-04-23 H.J. Lu <hjl@gnu.org>
6570 * include/math.h (isfinite): Fix a typo.
6572 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6574 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6575 which is created by the test suite.
6577 2002-04-20 Bruno Haible <bruno@clisp.org>
6579 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6580 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6582 2002-04-20 Bruno Haible <bruno@clisp.org>
6584 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6585 to avoid gcc warning.
6587 2002-04-20 Bruno Haible <bruno@clisp.org>
6589 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6590 of data->__statep->__count.
6592 2002-04-20 Bruno Haible <bruno@clisp.org>
6594 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6596 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6598 2002-04-24 Roland McGrath <roland@frob.com>
6600 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6601 use END macro instead of our own .end directive.
6602 Use `callsys' insn mnemonic instead of `call_pal'.
6604 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6606 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6607 macro; we need this for Hurd.
6609 Log entry was missing for 2002/03/24 commit of rev 1.8,
6610 goes with 2002-03-17 changes.
6611 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6612 (sysdep_routines): Append ioperm here.
6613 (sysdep_headers): Append sys/io.h here.
6615 2002-04-23 Roland McGrath <roland@frob.com>
6617 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6618 * sysdeps/mach/hurd/sendto.c: Likewise.
6619 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6620 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6621 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6623 2002-04-22 Roland McGrath <roland@frob.com>
6625 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6626 failure from i386_io_perm_* RPCs to ENOSYS.
6628 2002-04-22 Andreas Jaeger <aj@suse.de>
6630 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6632 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6634 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6635 register instead of destroying %rbx.
6637 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6639 * string/string.h: Declare strerror_r also for XPG6.
6641 2002-04-19 Roland McGrath <roland@frob.com>
6643 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6645 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6647 * Makefile: Add handling of xtests and xcheck targets.
6648 * MakeTAGS: Likewise.
6649 * Makeconfig: Likewise.
6650 * Makerules: Likewise.
6652 * manual/Makefile: Likewise.
6653 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6654 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6656 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6658 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6660 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6661 Delete #ifdef _RPC_THREAD_SAFE_ block.
6662 (authnone_private): Make a struct, not a pointer to struct.
6663 (authnone_private_guard): New once-control variable.
6664 (authnone_create_once): New function, split out of
6665 authnone_create. No need to allocate memory.
6666 (authnone_create): Just call authnone_create_once via
6667 __libc_once, then return &authnone_private->no_client.
6668 (authnone_marshal): Access private data via CLIENT argument,
6669 not authnone_private pointer.
6670 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6671 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6674 2002-04-12 H.J. Lu <hjl@gnu.org>
6676 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6678 2002-04-18 Bruno Haible <bruno@clisp.org>
6680 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6681 FROM_DIRECTION): Make the FROM direction stateless.
6682 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6683 FROM_DIRECTION): Likewise.
6685 2002-04-15 Bruno Haible <bruno@clisp.org>
6687 * iconvdata/JISX0213.TXT: New file.
6688 * iconvdata/jisx0213.h: New file.
6689 * iconvdata/jisx0213.c: New file.
6690 * iconvdata/euc-jisx0213.c: New file.
6691 * iconvdata/shift_jisx0213.c: New file.
6692 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6693 * iconvdata/EUC-JISX0213.precomposed: New file.
6694 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6695 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6696 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6697 which the "to" direction is stateful.
6698 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6699 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6701 (libJISX0213-routines): New variable.
6702 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6703 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6704 (LDFLAGS-libJISX0213.so): New variable.
6705 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6706 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6707 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6709 2002-04-15 Bruno Haible <bruno@clisp.org>
6711 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6712 uint32_t. Update to Unicode 3.2.
6713 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6714 (BODY for TO_LOOP): Handle the ASCII range specially.
6715 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6716 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6717 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6719 2002-04-15 Bruno Haible <bruno@clisp.org>
6721 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6722 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6724 2002-04-15 Bruno Haible <bruno@clisp.org>
6726 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6727 (ucs4_to_cns11643): Update.
6728 * iconvdata/cns11643.c: Update to Unicode 3.2.
6729 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6730 __cns11643_from_ucs4p2_tab): Regenerated.
6731 (__cns11643_from_ucs4p2c_tab): New array.
6732 * iconvdata/cvs11643l1.c: Update comments.
6733 * iconvdata/EUC-TW.irreversible: Remove two entries.
6735 2002-04-15 Bruno Haible <bruno@clisp.org>
6737 * locale/C-translit.h.in: Update to Unicode 3.2.
6738 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6739 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6741 2002-04-15 Bruno Haible <bruno@clisp.org>
6743 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6744 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6746 2002-04-15 Bruno Haible <bruno@clisp.org>
6748 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6749 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6750 always one byte, not 0 bytes in some cases and 2 bytes in others.
6752 * iconvdata/tst-table-from.c (main): Correct the usage message.
6754 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6756 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6757 (parse_dup_op): Fix error handling like "a{}".
6758 (parse_bracket_exp): Add error handling.
6759 (fetch_number): Add error handling for "a{<very_large_number>}".
6761 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6763 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6764 in case that the symbol name is too long.
6765 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6766 in case of REG_ICASE.
6768 2002-04-19 Andreas Jaeger <aj@suse.de>
6770 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6771 <hartvige@mips.com>.
6773 2002-04-15 H.J. Lu <hjl@gnu.org>
6775 * include/math.h (__finitel_internal): Declare only if
6776 __NO_LONG_DOUBLE_MATH is not defined.
6777 (__isinfl_internal): Likewise.
6778 (__isnanl_internal): Likewise.
6780 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6781 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6782 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6783 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6784 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6785 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6786 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6788 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6791 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6792 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6794 2002-04-15 Bruno Haible <bruno@clisp.org>
6796 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6797 (BODY for TO_LOOP): Likewise.
6798 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6799 * iconvdata/tst-table.sh: Add support for encodings which contain
6800 precomposed Unicode characters, known to the iconv converter in both
6801 directions but not listed in the charmap.
6802 * iconvdata/IBM856.irreversible: New file.
6803 * iconvdata/IBM922.irreversible: New file.
6804 * iconvdata/IBM1132.irreversible: New file.
6805 * iconvdata/IBM1133.irreversible: New file.
6806 * iconvdata/IBM1160.irreversible: New file.
6807 * iconvdata/IBM1161.irreversible: New file.
6808 * iconvdata/IBM1163.irreversible: New file.
6809 * iconvdata/IBM1164.irreversible: New file.
6810 * iconvdata/ARMSCII-8.irreversible: New file.
6811 * iconvdata/TCVN5712-1.precomposed: New file.
6812 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6813 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6814 ARMSCII-8, TCVN5712-1.
6815 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6816 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6817 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6818 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6820 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6822 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6823 for EVENING69. Include offsets in TZ environment variable.
6825 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6827 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6828 avoid compiler warnings.
6830 * locale/programs/localedef.c (main): Always call
6831 construct_output_path.
6833 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6835 * locale/programs/locfile.c (to_archive): New variable. To collect
6836 data which has to be added to the locale archive.
6837 (write_all_categories): Take new third parameter with locale name.
6838 Unless no_archive flag set add new locale data to the archive
6839 (write_locale_data): Unless no-archive flag set store generated data
6840 in to_archive data structure instead of generation output file.
6841 Add new parameter with locale category index.
6842 * locale/programs/locfile.h: Add new parameters in declaractions of
6843 write_all_categories and write_locale_data.
6844 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6845 --add-to-archive, and --delete-from-archive options. Pass extra
6846 parameter to write_all_categories.
6847 * locale/programs/localedef.h: Add prototypes for functions in
6849 * locale/locarchive.h: New file.
6850 * locale/programs/locarchive.c: New file.
6851 * locale/Makefile (distribute): Add programs/locarchive.c and
6853 (localedef-modules): Add md5 and locarchive.
6854 Add vpath to crypt subdir for md5.c.
6856 * locale/programs/ld-address.c: Pass locale category ID as new second
6857 parameter to write_locale_data.
6858 * locale/programs/ld-collate.c: Likewise.
6859 * locale/programs/ld-ctype.c: Likewise.
6860 * locale/programs/ld-identification.c: Likewise.
6861 * locale/programs/ld-measurement.c: Likewise.
6862 * locale/programs/ld-messages.c: Likewise.
6863 * locale/programs/ld-monetary.c: Likewise.
6864 * locale/programs/ld-name.c: Likewise.
6865 * locale/programs/ld-numeric.c: Likewise.
6866 * locale/programs/ld-paper.c: Likewise.
6867 * locale/programs/ld-telephone.c: Likewise.
6868 * locale/programs/ld-time.c: Likewise.
6870 * locale/simple-hash.c: Move compute_hashval function from here...
6871 * locale/hashval.h: ...to here. New file.
6872 * locale/simple-hash.h: Add prototype for compute_hashval.
6874 * include/libintl.h: Minor cleanups.
6876 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6878 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6880 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6882 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6884 2002-04-14 Bruno Haible <bruno@clisp.org>
6886 * locale/programs/charmap.c (charmap_read): Don't access result if
6889 2002-02-17 Andreas Schwab <schwab@suse.de>
6891 * elf/reldep7.c: New file.
6892 * elf/reldep7mod1.c: New file.
6893 * elf/reldep7mod2.c: New file.
6894 * elf/Makefile: Add rules to build and run reldep7.
6896 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6898 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6899 the end of the function. Pass original flags to recursive call if
6900 add_dependency failed.
6901 (_dl_lookup_versioned_symbol): Likewise.
6903 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6905 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6906 early, but check whether it overflowed afterwards.
6907 * time/tst-mktime.c (main): Add new tests.
6909 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6911 * debug/xtrace.sh: Fix program name in help message.
6912 Patch by Roger Luethi <rl@hellgate.ch>.
6914 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6915 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6917 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6918 * sysdeps/mach/hurd/lxstat.c: Likewise.
6919 * sysdeps/unix/common/lxstat.c: Likewise.
6920 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6921 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6922 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6923 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6924 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6925 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6926 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6927 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6928 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6930 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6931 prototypes. Add __mbrlen and __mbrtowc macros.
6932 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6933 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6935 * include/unistd.h: Add prototype for __write_internal and add
6936 __libc_write macro is SHARED.
6937 * sysdeps/generic/write.c: Use INTDEF for __write.
6938 * sysdeps/mach/hurd/write.c: Likewise.
6939 * sysdeps/unix/sysv/aix/write.c: Likewise.
6940 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6942 * assert/assert.c: Replace STR_N_SIZE with something usable in
6944 * assert/assert-perr.c: Likewise.
6946 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6947 SA_LEN macro to use it if not NOT_IN_libc.
6948 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6950 * include/fcntl.h: Declare __open_internal and define __open and
6951 __libc_open macros if not NOT_IN_libc.
6952 * sysdeps/generic/open.c: Use INTDEF for __open.
6953 * sysdeps/mach/hurd/open.c: Likewise.
6954 * sysdeps/unix/sysv/aix/open.c: Likewise.
6955 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6957 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6960 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6961 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6962 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6963 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6965 * include/wctype.h: Declare __iswalpha_l_internal,
6966 __iswdigit_l_internal, __iswspace_l_internal,
6967 __iswxdigit_l_internal, and __iswctype_internal. Define
6968 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6969 __iswxdigit_l macros if not NOT_IN_libc.
6970 * wctype/iswctype.c: Use INTDEF for __iswctype.
6971 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6973 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6974 __isnan_internal, and __isnanl_internal.
6975 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6976 __isnan, and __isnanl.
6977 * stdio-common/printf_size.c: Likewise.
6978 * sysdeps/generic/printf_fphex.c: Likewise.
6979 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6980 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6981 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6982 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6983 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6984 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6985 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6986 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6987 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6988 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6989 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6990 * sysdeps/m68k/s_isinfl.c: Likewise.
6991 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6992 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6994 * include/sys/time.h: Declare __gettimeofday_internal and define
6995 __gettimeofday macro if not NOT_IN_libc.
6996 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6997 * sysdeps/mach/gettimeofday.c: Likewise.
6998 * sysdeps/posix/gettimeofday.c: Likewise.
6999 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7000 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7001 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7002 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7004 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7005 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7006 Remove __lstat and __fstat inline functions.
7007 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7008 * sysdeps/mach/hurd/fxstat.c: Likewise.
7009 * sysdeps/unix/fxstat.c: Likewise.
7010 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7011 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7012 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7013 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7014 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7015 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7016 * sysdeps/mach/hurd/fxstat64.c: Likewise.
7017 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7018 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7020 * include/unistd.h: Declare __getpid_internal and define
7021 __getpid macro if not NOT_IN_libc.
7022 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7023 * sysdeps/generic/getpid.c: Likewise.
7024 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7025 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7027 * include/unistd.h: Declare __getpgid_internal and define
7028 __getpgid macro if not NOT_IN_libc.
7029 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7030 * sysdeps/mach/hurd/getpgid.c: Likewise.
7031 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7032 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7033 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7034 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7036 * include/unistd.h: Declare __getpagesize_internal and define
7037 __getpagesize macro if not NOT_IN_libc.
7038 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7040 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7041 * sysdeps/mach/getpagesize.c: Likewise.
7042 * sysdeps/posix/getpagesize.c: Likewise.
7043 * sysdeps/unix/getpagesize.c: Likewise.
7044 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7045 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7046 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7047 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7049 2002-04-13 Andreas Jaeger <aj@suse.de>
7051 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7052 as clobber to reduce register pressure.
7053 (__strpbrk_cg): Likewise.
7054 (__mempcpy_by4): Likewise.
7055 (__strstr_cg): Likewise.
7056 Add prototype for __memrchr.
7058 2002-04-13 Andreas Schwab <schwab@suse.de>
7060 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7061 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7062 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7064 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7066 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7067 check whether the caller prefers getting the most recent version of
7068 a symbol of the earliest version.
7069 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7070 _dl_do_lookup to also take the new parameter and pass it on.
7071 Change 'explicit' parameter of _dl_lookup_symbol and
7072 _dl_lookup_versioned_symbol to flags. Adjust tests.
7073 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7074 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7075 _dl_lookup_versioned_symbol.
7076 * elf/dl-reloc.c: Likewise.
7077 * elf/dl-runtime.c: Likewise.
7078 * elf/dl-sym.c: Likewise.
7079 * sysdeps/mips/dl-machine.h: Likewise.
7081 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7083 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7085 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7087 2002-04-10 Andreas Jaeger <aj@suse.de>
7089 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7091 * include/argz.h: Remove extra char from last patch.
7093 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7095 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7096 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7097 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7098 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7099 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7100 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7102 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7104 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7105 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7106 * intl/ngettext.c: Likewise.
7108 * include/sys/socket.h: Declare __connect_internal and define
7109 __connect macro if not NOT_IN_libc.
7110 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7111 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7112 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7114 * include/unistd.h: Declare __close_internal and define __close macro
7116 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7117 WJUMP3): Add extra parenthesis to avoid expanding element names with
7118 macors like __close.
7119 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7121 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7123 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7124 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7125 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7127 * include/unistd.h: Declare __fork_internal and define __fork macro
7129 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7130 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7131 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7133 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7134 __fsetlocking macro to use it if not NOT_IN_libc.
7135 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7137 * libio/__fbufsize.c: Correct copyright.
7138 * libio/__flbf.c: Likewise.
7139 * libio/__fpending.c: Likewise.
7140 * libio/__fpurge.c: Likewise.
7141 * libio/__freadable.c: Likewise.
7142 * libio/__freading.c: Likewise.
7143 * libio/__fsetlocking.c: Likewise.
7144 * libio/__fwritable.c: Likewise.
7145 * libio/__fwriting.c: Likewise.
7147 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7148 macro to use it if not NOT_IN_libc.
7149 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7151 * include/mntent.h: Declare __setmntent_internal,
7152 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7153 __getmntent_r, and __endmntent macros to use these functions if not
7155 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7158 * include/math.h: Declare __finite_internal, __finitef_internal, and
7159 __finitel_internal. Redefine isfinite macro if in libc or libm using
7161 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7162 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7163 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7164 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7165 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7166 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7167 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7168 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7169 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7170 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7172 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7173 to use this function if not NOT_IN_libc.
7174 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7175 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7176 * sysdeps/mach/hurd/fcntl.c: Likewise.
7177 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7178 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7180 * include/argz.h: Declare __argz_count_internal and
7181 __argz_stringify_internal.
7182 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7184 * string/argz-count.c: Use INTDEF for __argz_count.
7185 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7187 * include/stdlib.h: Declare __cxa_atexit_internal and define
7188 __cxa_atexit macro if not NOT_IN_libc.
7189 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7190 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7192 * assert/assert.c: Use INTDEF for __assert_fail.
7193 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7194 * include/assert.h: Declare __assert_fail_internal.
7196 * extra-lib.mk: Mark assignment to lib with override.
7198 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7200 * Makerules: Use cppflags-iterator.mk to add defines for all test
7203 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7205 * elf/elf.h: Define R_SH_TLS_xxx macros.
7206 * elf/rtld.c: Remove an extra parenthesis.
7207 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7209 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7210 * sysdeps/sh/dl-lookupcfg.h: New file.
7211 * sysdeps/sh/dl-tls.h: New file.
7212 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7213 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7214 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7215 R_SH_TLS_TPOFF32 relocations.
7217 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7219 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7221 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7222 * include/stdlib.h: Likewise.
7224 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7226 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7227 instead of _RTLD_LOCAL.
7228 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7229 * include/unistd.h: Likewise.
7230 * sysdeps/generic/ldsodefs.h: Likewise.
7232 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7233 if in libc or ld.so.
7235 2002-04-08 Andreas Jaeger <aj@suse.de>
7237 * elf/cache.c (print_entry): Support x86-64.
7239 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7241 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7242 with one accessing the locale data structures directly.
7243 * stdio-common/printf-prs.c: Include localeinfo.h for new
7244 MB_CUR_MAX definition.
7246 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7247 is the name of the source file without extension.
7248 * Makefile (distribute): Add cppflags-iterator.mk.
7249 * cppflags-iterator.mk: New file.
7250 * extra-lib.mk: For the sources of the library run
7251 cppflags-iterator.mk.
7253 * include/libintl.h: Declare __dcgettext_internal and
7254 _libc_intl_domainname_internal. Define __dcgettext using these
7255 two symbols if used in libc itself.
7256 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7257 _libc_intl_domainname_internal.
7258 * argp/argp-parse.c: Likewise.
7259 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7260 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7261 * intl/gettext.c: Likewise.
7262 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7264 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7266 * posix/regex_internal.c (gettext): Likewise.
7268 2002-04-08 Andreas Jaeger <aj@suse.de>
7270 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7272 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7273 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7274 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7275 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7276 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7277 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7279 2002-04-08 Roland McGrath <roland@frob.com>
7281 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7282 widening __hurd_fail value.
7284 2002-04-07 Roland McGrath <roland@frob.com>
7286 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7287 <mach/machine/alpha_instruction.h>.
7288 (_hurd_setup_sighandler): Take proper arguments for current decls.
7289 Update code to use _hurdsig_catch_fault.
7290 Use `callsys' instruction instead of `call_pal'.
7291 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7293 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7294 (ALIGN, at, AT, fp): New macros.
7296 2002-04-06 Roland McGrath <roland@frob.com>
7298 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7300 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7301 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7303 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7304 * sysdeps/mach/hurd/connect.c: Likewise.
7305 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7306 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7308 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7311 * hurd/catch-exc.c: Use integer_t instead of int.
7312 * hurd/hurdfault.c: Likewise.
7314 * sysdeps/mach/hurd/alpha/exc2signal.c
7315 (_hurd_exception2signal): Rewritten.
7316 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7317 (_hurd_longjmp_thread_state): Rewritten.
7319 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7321 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7322 DB_LOOKUP_FCT prototype.
7323 * nss/getXXent_r.c: Likewise.
7324 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7325 * inet/getaliasname_r.c: Likewise.
7326 * inet/getnetbyad_r.c: Likewise.
7327 * inet/getnetbynm_r.c: Likewise.
7328 * inet/getnetent_r.c: Likewise.
7329 * inet/getproto_r.c: Likewise.
7330 * inet/getprtent_r.c: Likewise.
7331 * inet/getprtname_r.c: Likewise.
7332 * inet/getrpcbyname_r.c: Likewise.
7333 * inet/getrpcbynumber_r.c: Likewise.
7334 * inet/getrpcent_r.c: Likewise.
7335 * inet/getservent_r.c: Likewise.
7336 * inet/getsrvbynm_r.c: Likewise.
7337 * inet/getsrvbypt_r.c: Likewise.
7338 * shadow/getspent_r.c: Likewise.
7339 * shadow/getspnam_r.c: Likewise.
7341 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7343 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7344 Use i686-friendly PIC code.
7345 * sysdeps/i386/elf/setjmp.S: Likewise.
7347 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7349 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7351 * elf/Versions: Remove it here.
7353 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7355 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7356 direction. Reported by H . J . Lu <hjl@lucon.org>.
7358 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7360 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7361 test just before the test runs.
7362 * intl/tst-translit.sh: Likewise.
7363 * intl/tst-codeset.sh: Likewise.
7365 * timezone/zic.c: Update from tzcode2002c.
7366 * timezone/asia: Update from tzdata2002c.
7367 * timezone/backward: Likewise.
7368 * timezone/europe: Likewise.
7369 * timezone/northamerica: Likewise.
7370 * timezone/northamerica: Likewise.
7371 * timezone/northamerica: Likewise.
7372 * timezone/southamerica: Likewise.
7373 * timezone/zone.tab: Likewise.
7375 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7377 * sysdeps/generic/brk.c (__curbrk): Declare.
7378 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7379 * sysdeps/generic/dl-sbrk.c: Likewise.
7380 * sysdeps/unix/arm/dl-brk.S: New file.
7381 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7382 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7383 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7384 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7385 * sysdeps/unix/i386/dl-brk.S: New file.
7386 * sysdeps/unix/mips/dl-brk.S: New file.
7387 * sysdeps/unix/sparc/dl-brk.S: New file.
7388 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7389 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7390 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7391 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7393 2002-04-03 Andreas Schwab <schwab@suse.de>
7395 * Makefile (headers): Add gnu/lib-names.h here instead of
7397 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7399 (install-headers): Add dependency on install-headers-nosubdir.
7400 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7401 instead of install-others.
7402 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7405 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7407 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7408 Reported by Sam Roberts <sroberts@uniserve.com>.
7410 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7412 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7413 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7414 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7415 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7417 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7419 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7420 (RTLD_START): Ditto.
7421 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7422 dependency violation.
7424 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7426 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7427 all variable declarations.
7429 2002-04-04 Andreas Schwab <schwab@suse.de>
7431 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7433 2002-04-04 Andreas Jaeger <aj@suse.de>
7435 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7436 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7438 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7439 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7440 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7442 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7444 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7446 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7447 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7449 * configure.in: Handle all mips entries the same.
7451 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7452 * sysdeps/mips/mips3/*: Likewise.
7453 * sysdeps/mips/p40/bits/endian.h: Likewise.
7455 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7457 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7458 non-null result [PR libc/2600].
7460 * misc/tst-dirname.c: Add more tests.
7462 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7464 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7465 define a code_set_name provide one based on the filename.
7467 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7469 2001-12-28 Andreas Jaeger <aj@suse.de>
7471 * time/mktime.c (__mktime_internal): Check for year < 70
7474 2002-04-03 Andreas Jaeger <aj@suse.de>
7476 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7478 Reported by Andi Kleen <ak@suse.de>.
7480 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7482 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7483 * sysdeps/generic/w_lgammaf.c: Likewise.
7484 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7486 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7487 Adjust for new output format of the backtrace functions.
7489 * misc/syslog.c (vsyslog): Only use cleanup handler if
7490 _LIBC_REENTRANT is defined [PR libc/2924].
7492 * libio/Makefile (tests): Add bug-ungetwc2.
7493 * libio/bug-ungetwc2.c: New file.
7495 * manual/install.texi: Typographical and grammatical cleanup.
7496 Patch by Dennis Grace <dgrace@us.ibm.com>.
7498 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7499 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7501 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7502 always "&". Adjust callers.
7503 Add "_" prefix to several generated definitions.
7504 Patch by paul@serice.net [PR libc/3158].
7506 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7508 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7509 size of _dl_arm_cap_flags.
7510 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7512 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7515 2002-03-22 H.J. Lu <hjl@gnu.org>
7517 * scripts/firstversions.awk: Check the first version.
7519 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7521 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7522 dependencies must be stable to work correctly.
7523 Reported by martin.lubich@datacon.at.
7525 * libio/bug-ungetwc1.c: New file.
7526 * libio/Makefile (tests): Add bug-ungetwc1.
7528 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7529 if stream was last used for writing.
7531 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7532 number [PR libc/3111].
7534 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7536 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7538 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7540 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7541 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7542 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7543 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7544 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7546 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7548 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7551 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7553 * sysdeps/i386/fpu/s_fabs.S: New file.
7554 * sysdeps/i386/fpu/s_fabsf.S: New file.
7555 * sysdeps/i386/fpu/s_fabsl.S: New file.
7556 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7557 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7558 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7560 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7562 * rt/tst-shm.c (do_test): Add one more test for size of shared
7565 2002-03-29 Wolfram Gloger <wg@malloc.de>
7567 * malloc/malloc.c: Add short description and prototypes for
7568 malloc_get_state, malloc_set_state and posix_memalign, for
7569 consistency and to avoid warnings with -Wstrict-prototypes.
7570 Reported by Andreas Jaeger <aj@suse.de>.
7572 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7574 * po/gl.po: Update from translation team.
7576 2002-03-31 Roland McGrath <roland@frob.com>
7578 * hurd/hurdselect.c (_hurd_select): Fix
7579 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7580 Use a union rather than casts to compare mach_msg_type_t as int.
7582 2002-03-25 Roland McGrath <roland@frob.com>
7584 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7585 check off the end of NAME when it's shorter than 2 chars.
7586 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7588 2002-03-17 Roland McGrath <roland@frob.com>
7590 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7591 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7592 * sysdeps/mach/hurd/i386/Dist: Add them.
7593 * sysdeps/mach/hurd/i386/Versions
7594 (libc: GLIBC_2.2.6): New set, add ioperm.
7595 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7596 (mach_interface_list): Check for mach_i386.defs.
7597 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7598 * sysdeps/mach/configure: Regenerated.
7600 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7602 * po/fr.po: Update from translation team.
7604 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7606 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7607 getpriority from syscalls list.
7609 2002-03-28 Andreas Jaeger <aj@suse.de>
7611 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7612 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7613 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7614 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7616 2002-03-27 Andreas Jaeger <aj@suse.de>
7618 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7619 sigcontext): Follow further kernel change.
7621 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7624 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7625 Change for struct sigcontext change.
7627 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7628 Follow changes in struct sigcontext.
7630 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7631 sysycall, use wrapper instead.
7633 2002-03-26 Andreas Jaeger <aj@suse.de>
7635 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7636 read and write accesses as detailed as possible.
7637 (__memcpy_by2): Likewise.
7638 (__memcpy_g): Likewise.
7639 (memmove): Likewise.
7641 (__memset_ccn_by4): Likewise.
7642 (__memset_ccn_by2): Likewise.
7643 (__memset_gcn_by4): Likewise.
7644 (__memset_gcn_by2): Likewise.
7646 (__memrchr): Likewise.
7647 (rawmemchr): Likewise.
7648 (__strlen_g): Likewise.
7649 (__strcpy_g): Likewise.
7650 (__mempcpy_by4): Likewise.
7651 (__mempcpy_by2): Likewise.
7652 (__mempcpy_byn): Likewise.
7653 (__stpcpy_g): Likewise.
7654 (__strncpy_by4): Likewise.
7655 (__strncpy_by2): Likewise.
7656 (__strncpy_byn): Likewise.
7657 (__strncpy_gg): Likewise.
7658 (__strcat_c): Likewise.
7659 (__strcat_g): Likewise.
7660 (__strncat_g): Likewise.
7661 (__strcmp_gg): Likewise.
7662 (__strncmp_g): Likewise.
7663 (__strchr_c): Likewise.
7664 (__strchr_g): Likewise.
7665 (__strchrnul_c): Likewise.
7666 (__strchrnul_g): Likewise.
7667 (__strrchr_c): Likewise.
7668 (__strrchr_g): Likewise.
7669 (__strrchr_c): Likewise.
7670 (__strrchr_g): Likewise.
7671 (__strcspn_c1): Likewise.
7672 (__strcspn_cg): Likewise.
7673 (__strcspn_g): Likewise.
7674 (__strcspn_g): Likewise.
7675 (__strspn_c1): Likewise.
7676 (__strspn_cg): Likewise.
7677 (__strspn_g): Likewise.
7678 (__strspn_g): Likewise.
7679 (__strpbrk_cg): Likewise.
7680 (__strpbrk_g): Likewise.
7681 (__strstr_cg): Likewise.
7682 (__strstr_g): Likewise.
7684 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7685 Michal Ludvig <mludvig@suse.cz>.
7687 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7688 compatibilty, adjust for kernel changes.
7690 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7691 sigcontext): Adjust for kernel changes.
7693 2002-03-25 Andreas Jaeger <aj@suse.de>
7695 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7697 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7699 2002-03-24 Andreas Jaeger <aj@suse.de>
7701 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7703 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7705 * iconv/tst-iconv3.c (main): Use correct printf strings.
7707 2002-03-18 Roland McGrath <roland@frob.com>
7709 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7710 (CMGROUP_MAX): New macro.
7712 2002-03-23 Roland McGrath <roland@frob.com>
7714 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7715 * sysdeps/posix/shm_unlink.c: Likewise.
7717 2002-03-22 Roland McGrath <roland@frob.com>
7719 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7720 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7721 under --enable-libio.
7722 * sysdeps/mach/hurd/configure: Regenerated.
7724 2002-03-23 Roland McGrath <roland@frob.com>
7726 * sysdeps/mach/hurd/i386/Makefile
7727 (sysdep_routines, shared-only-routines): Don't add framestate,
7728 reverting 2001-10-02 change.
7729 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7730 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7731 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7732 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7733 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7734 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7735 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7736 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7737 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7738 Do it here instead, only if [$(unwind-find-fde) = yes].
7740 2002-03-23 Andreas Jaeger <aj@suse.de>
7742 * signal/signal.h: Fix typo. Patch by Steve Kemp
7743 <skx@tardis.ed.ac.uk>.
7745 2002-03-22 Andreas Jaeger <aj@suse.de>
7747 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7750 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7751 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7752 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7753 user_fpregs_struct): Rename fwd.
7755 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7756 Follow sigcontext changes.
7758 2002-03-22 Andreas Jaeger <aj@suse.de>
7760 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7761 changes for NaNs on MIPS.
7762 Patch by Hartvig Ekner <hartvige@mips.com>.
7764 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7766 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7767 Use realloc if too large.
7768 (addgrbyid): Likewise.
7769 * nscd/hstcache.c (addhstbyname): Likewise.
7770 (addhstbyaddr): Likewise.
7771 (addhstbynamev6): Likewise.
7772 (addhstbyaddrv6): Likewise.
7773 * nscd/pwdcache.c (addpwbyname): Likewise.
7774 (addpwbyuid): Likewise.
7776 2002-03-21 Andreas Jaeger <aj@suse.de>
7778 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7779 _fpstate): Add separate struct for x86-64.
7781 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7782 user_fpregs_struct): Change member names to follow kernel.
7784 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7786 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7787 Correctly close the UDP connection right away [PR libc/3120].
7789 2002-03-20 Andreas Jaeger <aj@suse.de>
7791 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7792 user_fpregs_struct): Fix for changed kernel struct.
7793 (struct user_regs_struct): Likewise.
7794 (struct user): Likewise.
7795 Add 32-bit x86 compatibility.
7797 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7799 2002-03-19 Andreas Jaeger <aj@suse.de>
7801 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7803 2002-03-18 Andreas Jaeger <aj@suse.de>
7805 * iconvdata/Makefile: Only run tests when shared libs are
7808 2002-03-17 Andreas Jaeger <aj@suse.de>
7810 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7812 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7814 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7817 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7818 (CAUSE_SHIFT): New macro.
7819 Patch by Hartvig Ekner <hartvige@mips.com>.
7821 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7822 * sysdeps/generic/unwind-pe.h: Likewise.
7824 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7827 * libio/stdio.c (AL2): Define variant when visibility attribute is
7830 * include/libc-symbols.h (_INTVARDEF): Define variant when
7831 visibility attribute is not supported.
7833 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7835 * po/fr.po: Update from translation team.
7837 2002-02-25 Bruno Haible <bruno@clisp.org>
7839 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7841 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7843 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7844 buffers if _IO_file_attach failed.
7846 * libio/fileops.c (_IO_file_open): Close file descriptor if
7847 _IO_SEEKOFF call failed.
7849 2002-03-15 H.J. Lu <hjl@gnu.org>
7850 Ulrich Drepper <drepper@redhat.com>
7852 * configure.in: Check for availability of
7853 init_array/fini_array/preinit_array handling in binutils.
7854 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7855 * config.make.in (have-initfini-array): New variable.
7857 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7859 * stdio-common/tst-printf.c (main): Comment out one test which
7860 checked the compiler's ability to fold floating-point constants
7861 but not really printf.
7862 (rfg3): Make s const.
7863 * stdio-common/tst-printf.sh: Adjust for removed test.
7865 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7866 internal function. Adjust for internal_function calling convention.
7867 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7868 as internal_function.
7870 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7873 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7874 declaration and definition.
7875 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7877 * nss/getXXent_r.c: Likewise.
7878 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7881 * include/time.h: Declare __localtime_r as hidden.
7883 * include/aliases.h: Declare __getaliasent_r as hidden.
7884 * include/grp.h: Declare __getgrent_r as hidden.
7885 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7886 __getservent_r, and __getprotoent_r as hidden.
7887 * include/pwd.h: Declare __getpwent_r as hidden.
7888 * include/shadow.h: Declare __getspent_r as hidden.
7889 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7891 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7892 and __gconv_transliterate as hidden.
7893 Add internal_function to __gconv_get_path declaration.
7894 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7895 definition. Add attribute_hidden to __gconv_read_conf definition.
7897 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7899 * elf/rtld.c: Declare _environ as hidden.
7900 * sysdeps/generic/dl-environ.c: Likewise.
7901 * sysdeps/generic/dl-sysdep.c: Likewise.
7903 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7904 _dl_mcount_internal as hidden.
7906 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7907 * sysdeps/generic/dl-brk.c: New file.
7908 * sysdeps/generic/dl-sbrk.c: New file.
7909 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7910 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7912 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7913 (__errno_location): New function. Declare errno as hidden.
7914 * elf/rtld.c (_dl_argc): Define as hidden.
7915 (_dl_skip_args): Define as hidden.
7916 (_begin, _end): Declare as hidden.
7917 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7918 * sysdeps/generic/entry.h (_start): Declare as hidden.
7919 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7920 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7921 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7922 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7924 2002-03-14 Roland McGrath <roland@frob.com>
7926 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7928 * Makeconfig (%.v.i, %.v): New implicit rules.
7929 (preprocess-versions): Variable removed.
7930 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7931 shlib-versions input files as dependencies.
7932 ($(common-objpfx)soversions.i): Depend on that instead of the input
7933 files. Use it as input instead of using a pipeline.
7934 (postclean-generated): Append soversions.i, shlib-versions.v, and
7935 shlib-versions.v.i here.
7936 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7937 the Versions.def input files as dependencies.
7938 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7939 ($(common-objpfx)Versions.all): Depend on that instead of the input
7940 files. Use it as input instead of using a pipeline.
7941 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7942 (postclean-generated): Append those .v and .v.i files here.
7944 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7946 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7947 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7950 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7952 * sysdeps/generic/mp_clz_tab.c: New file.
7953 * sysdeps/i386/mp_clz_tab.c: New file.
7954 * sysdeps/hppa/mp_clz_tab.c: New file.
7955 * sysdeps/powerpc/mp_clz_tab.c: New file.
7956 * stdlib/Makefile (aux): Revert last patch.
7957 * math/Makefile (gmp-objs): Likewise.
7959 2002-03-13 Paul Eggert <eggert@twinsun.com>
7961 * time/strftime.c: Comment fixes for references to obsolescent
7962 standards, In most cases the simplest fix is to remove the
7963 confusing comments. Cross-referencing all the standards properly
7964 is a bit of a pain, and it should be enough to put that info in
7965 the documentation as I did in my recent time.texi patch.
7967 2002-03-13 Paul Eggert <eggert@twinsun.com>
7969 * manual/time.texi (Formatting Calendar Time):
7970 ISO C99 also specifies the E and O modifiers.
7971 %P is a GNU extension, and is not in ISO C99.
7972 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7973 %T is also in ISO C99.
7974 The RFC 822 example is not valid in arbitrary locales.
7975 Reword the POSIX.2 wording slightly, to make it a bit clearer
7976 that POSIX.2 formats are also supported by later POSIX versions.
7977 If a format was introduced in ISO C99 it is also required by
7980 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7982 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7983 _sys_nerr_internal with INTVARDEF2.
7984 * include/libc-symbols.h (INTVARDEF2): New macro.
7985 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7986 (_sys_nerr_internal): Library.
7988 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7989 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7991 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7993 2002-03-13 Wolfram Gloger <wg@malloc.de>
7995 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7997 2002-03-02 Andreas Schwab <schwab@suse.de>
7999 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8000 'h' flag and positional arg.
8001 * stdio-common/tst-printf.c (rfg3): New function to test
8002 positional arguments.
8003 (main): Fix some warnings.
8005 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8007 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8008 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8010 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8012 * grp/initgroups.c (__nss_group_data): Declare as hidden.
8014 * include/locale.h (_nl_C_locobj): Declare as hidden.
8016 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8017 * time/strptime.c (_nl_C_LC_TIME): Likewise.
8019 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8021 * include/sys/gmon.h: Declare _gmonparam as hidden.
8023 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8024 (__ctype32_wctrans): Likewise.
8025 (__ctype32_width): Likewise.
8027 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8030 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8032 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
8033 hidden. Change all users of these variables.
8035 * posix/regex_internal.h (__re_error_msgid): Renamed from
8036 re_error_msgid. Declare as hidden.
8037 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
8040 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8041 (__printf_function_table): Likewise.
8042 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8044 (__printf_function_table): Likewise.
8046 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8047 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8049 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8050 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8052 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8053 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8055 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8057 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8058 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8059 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8060 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8061 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8062 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8063 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8064 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8065 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8066 _nl_C_LC_CTYPE_width: Declare as hidden.
8067 * include/locale.h: Declare _nl_locale_file_list.
8068 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8069 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8070 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8071 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8072 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8073 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8074 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8075 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8076 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8077 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8078 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8079 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8080 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8081 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8082 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8083 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8084 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8085 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8086 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8087 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8088 _nl_C_LC_CTYPE_width, and as hidden.
8089 * locale/findlocale.c: Declare _nl_C as hidden.
8090 * locale/newlocale.c: Likewise.
8091 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8092 _nl_locale_file_list.
8093 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8094 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8095 Define _nl_C_locobj as hidden.
8097 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8098 (_mtrace_line): Likewise.
8100 * include/time.h: Declare __mon_yday as hidden.
8101 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8103 * libio/libioP.h: Declare __libio_codecvt as hidden.
8104 * libio/fileops.c: Declare __libio_translit as hidden.
8105 * libio/iofwide.c: Define __libio_translit as hidden.
8107 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8108 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8109 * login/getutline_r.c: Likewise.
8110 * login/utmpname.c: Likewise.
8112 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8113 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8114 __libc_utmp_file_name as hidden.
8116 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8117 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8118 * locale/freelocale.c: Likewise.
8119 * locale/lc-time.c: Likewise.
8121 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8122 (__libc_ptyname2): Likewise.
8123 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8125 (__libc_ptyname2): Likewise.
8127 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8128 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8129 * sysdeps/generic/init-first.c: Likewise.
8130 * sysdeps/i386/init-first.c: Likewise.
8131 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8132 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8133 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8134 * sysdeps/sh/init-first.c: Likewise.
8135 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8136 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8138 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8139 (_itowa_upper_digits): Likewise.
8141 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8142 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8145 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8146 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8147 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8148 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8150 * gmon/gmon.c (__bb_head): Define as hidden.
8151 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8153 * argp/argp-parse.c (_argp_hang): Define as static.
8155 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8156 handling in latest compilers.
8158 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8160 * libio/fileops.c (_IO_file_jumps): Likewise.
8161 * libio/stdfiles.c (_IO_list_all): Likewise.
8162 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8164 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8166 * include/malloc.h: Add __libc_malloc_initialized declaration
8167 here. Mark variable hidden.
8168 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8170 * elf/dl-open.c (__libc_argc): Declare as hidden.
8171 (__libc_argv): Likewise.
8172 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8173 (__libc_argv): Likewise.
8174 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8175 __libc_argv as hidden.
8176 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8177 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8178 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8179 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8181 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8182 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8183 * stdlib/erand48.c: Likewise.
8184 * stdlib/jrand48.c: Likewise.
8185 * stdlib/lcong48.c: Likewise.
8186 * stdlib/lrand48.c: Likewise.
8187 * stdlib/mrand48.c: Likewise.
8188 * stdlib/nrand48.c: Likewise.
8189 * stdlib/seed48.c: Likewise.
8190 * stdlib/srand48.c: Likewise.
8192 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8193 (_itoa_lower_digits_internal): New declaration.
8194 (_itoa_upper_digits_internal): New declaration.
8195 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8196 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8197 (_itoa_upper_digits_internal): New declaration.
8198 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8200 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8201 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8203 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8204 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8206 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8207 (_itowa_lower_digits): Likewise.
8208 (_itowa_upper_digits): Likewise.
8209 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8210 (_itowa_upper_digits): Likewise.
8212 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8213 not already defined.
8214 (GERMANIC_PLURAL): Declare as hidden.
8216 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8217 (attribute_hidden): Define as empty macro if not already defined.
8219 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8220 (__gconv_max_path_elem_len): Likewise.
8221 (__gconv_path_envvar): Likewise.
8223 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8224 * stdlib/Makefile (aux): Remove mp_clz_tab.
8225 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8227 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8229 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8231 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8232 _nl_category_names, _nl_category_name_sizes, _nl_current,
8233 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8235 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8236 (_nl_current_default_domain): Likewise
8237 (_nl_state_lock): Likewise.
8238 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8239 (_nl_current_default_domain): Likewise
8240 (_nl_state_lock): Likewise.
8241 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8243 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8244 (_fpioconst_pow10): Likewise.
8246 * include/time.h (_tmbuf): Add attribute_hidden.
8248 * time/tzset.c (tzstring_list): Define as static.
8250 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8251 __use_tzfile declaration.
8253 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8254 and __wcsmbs_last_locale declaration.
8256 2002-02-25 Paul Eggert <eggert@twinsun.com>
8258 * timezone/Makefile (tzbases): Move systemv from here...
8259 (tzlinks): to here, since the entries in systemv were all changed
8260 from Zone to Link lines in tz-2001a. Bug reported (and patch
8261 tested) by Peter Breitenlohner.
8263 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8265 * time/tst-posixtz.c (tests): Add new tests.
8266 (main): Test whether tzset() sets daylight properly.
8268 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8270 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8271 __tzname_cur_max setting...
8272 (tzset_internal): ...here.
8274 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8276 * time/tzset.c (compute_change): Don't return any value.
8277 (tz_compute): Likewise. Don't handle southern hemisphere here.
8278 (__tz_convert): But here.
8280 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8282 * manual/examples/mkfsock.c: Include <string.h> as well.
8283 Patch by Alain De Carolis <alaind@wseurope.com>.
8285 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8287 * posix/regexec.c (re_match): Fix incorrect register sizes.
8288 (re_search): Likewise.
8290 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8292 * posix/regcomp.c (regfree): Remove a disused condition.
8293 * posix/regex_internal.c (re_acquire_state): Likewise.
8294 (re_acquire_state_context): Likewise.
8295 (register_state): Remove a redundant malloc invocation.
8296 * posix/regex_internal.h: (re_state_table_entry): Simplify
8299 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8301 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8302 handling conditions.
8303 (regerror): Likewise.
8304 (regfree): Likewise.
8305 (re_compile_internal): Likewise.
8306 (init_dfa): Likewise.
8307 (init_word_char): Likewise.
8308 (create_initial_state): Likewise.
8309 (analyze): Likewise.
8310 (analyze_tree): Likewise.
8311 (duplicate_node): Likewise.
8312 (calc_eclosure): Likewise.
8313 (calc_eclosure_iter): Likewise.
8315 (parse_reg_exp): Likewise.
8316 (parse_branch): Likewise.
8317 (parse_expression): Likewise.
8318 (parse_subexp): Likewise.
8319 (parse_dup_op): Likewise.
8320 (parse_bracket_exp): Likewise.
8321 (build_equiv_class): Likewise.
8322 (build_charclass): Likewise.
8323 (build_word_op): Likewise.
8324 (fetch_number): Likewise.
8325 (create_tree): Likewise.
8326 (duplicate_tree): Likewise.
8327 * posix/regex.c (BE): New macro.
8328 * posix/regexec.c (re_match): Add __builtin_expect to error
8329 handling conditions.
8330 (re_match_2): Likewise.
8331 (re_search): Likewise.
8332 (re_search_internal): Likewise.
8333 (check_matching): Likewise.
8334 (proceed_next_node): Likewise.
8335 (set_regs): Likewise.
8336 (sift_states_backward): Likewise.
8337 (add_epsilon_backreference): Likewise.
8338 (transit_state): Likewise.
8339 (transit_state_sb): Likewise.
8340 (transit_state_mb): Likewise.
8341 (transit_state_bkref): Likewise.
8342 (transit_state_bkref_loop): Likewise.
8343 (build_trtable): Likewise.
8344 (group_nodes_into_DFAstates): Likewise.
8345 (match_ctx_init): Likewise.
8346 (match_ctx_add_entry): Likewise.
8347 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8348 to error handling conditions.
8349 (re_string_construct_toupper): Likewise.
8350 (build_wcs_buffer): Likewise.
8351 (build_wcs_upper_buffer): Likewise.
8352 (build_upper_buffer): Likewise.
8353 (re_string_translate_buffer): Likewise.
8354 (re_node_set_alloc): Likewise.
8355 (re_node_set_init_1): Likewise.
8356 (re_node_set_init_2): Likewise.
8357 (re_node_set_init_copy): Likewise.
8358 (re_node_set_intersect): Likewise.
8359 (re_node_set_init_union): Likewise.
8360 (re_node_set_merge): Likewise.
8361 (re_node_set_insert): Likewise.
8362 (re_dfa_add_node): Likewise.
8363 (re_acquire_state): Likewise.
8364 (re_acquire_state_context): Likewise.
8365 (create_new_state_common): Likewise.
8366 (register_state): Likewise.
8367 (create_ci_new_state): Likewise.
8368 (create_cd_new_state): Likewise.
8369 (re_string_context_at): Remove redundant condition.
8371 2002-01-16 Roger Sayle <roger@eyesopen.com>
8373 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8375 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8377 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8379 * sysdeps/i386/elf/configure.in: Fix comment.
8381 * sysdeps/sparc/sparc64/configure.in: New file.
8382 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8383 if .dynamic comes before .got.
8384 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8386 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8387 HP_TIMING_ACCUM): Fix typos.
8389 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8391 * string/strfry.c: Add some more randomness to the seed.
8392 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8394 * po/es.po: Update from translation team.
8395 * po/fr.po: Likewise.
8397 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8399 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8400 when determining type of format.
8401 Patch by James Antill <james@anqd.org> [PR libc/2787].
8403 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8405 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8407 2002-03-11 Roland McGrath <roland@frob.com>
8409 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8411 * Versions.def (libc): Add GLIBC_2.2.6.
8412 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8413 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8414 __errno_location instead of __hurd_errno_location, and don't inline it.
8415 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8416 * hurd/errno.c: New file.
8417 * hurd/Makefile (routines): Add errno.
8419 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8421 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8422 ridiculously large widths and precisions [PR libc/3026].
8424 2002-03-11 Andreas Jaeger <aj@suse.de>
8426 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8428 Patch by Susanne Oberhauser <froh@SuSE.de>.
8430 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8432 * inet/rexec.c (ahostbuf): Define as static.
8434 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8435 (__ctype32_wctrans): Likewise.
8436 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8437 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8438 (__ctype32_wctrans): Likewise.
8439 (__ctype32_width): Likewise.
8441 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8442 They were never exported anyway.
8444 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8445 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8447 * include/sys/gmon.h: Declare _gmonparam.
8449 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8450 symbols for getdents64. They were never exported.
8452 2002-03-09 Roland McGrath <roland@frob.com>
8454 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8455 Reported by Jon Arney <jarney1@cox.net>.
8457 2002-02-23 Roland McGrath <roland@frob.com>
8459 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8461 (__hurd_errno_location): Function removed.
8463 2002-03-06 Andreas Jaeger <aj@suse.de>
8465 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8468 2002-03-04 Andreas Jaeger <aj@suse.de>
8470 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8472 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8475 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8477 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8479 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8481 * sysdeps/x86_64/bits/setjmp.h: New file.
8483 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8485 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8487 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8489 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8490 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8492 2002-02-28 Bo Thorsen <bo@suse.de>
8494 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8497 2002-03-03 Andreas Jaeger <aj@suse.de>
8499 * sysdeps/x86_64/bits/wordsize.h: New file.
8501 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8502 * elf/tst-tlsmod1.c: Likewise.
8504 * posix/regcomp.c: Get regex.h from include dir for internal
8507 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8508 to libc-internal.h and include it.
8509 * include/libc-internal.h: Add __init_misc.
8511 * misc/init-misc.c: Include libc-internal.h for prototypes.
8513 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8515 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8518 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8520 * posix/regcomp.c: Compatibility changes to allow using the code
8523 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8525 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8528 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8530 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8531 of .str elements in the returned data structure.
8533 * elf/elf.h: Add Alpha TLS bits.
8535 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8537 * sysdeps/unix/sysv/linux/nice.c: New file.
8539 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8541 * elf/Makefile (dl-routines): Add dl-origin.
8542 (elide-routines.os): Add dl-origin.
8543 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8544 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8546 * include/libc-symbols.c: Define attribute_hidden depending on
8547 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8549 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8550 * elf/dl-load.c: Likewise.
8551 * elf/rtld.c: Likewise.
8552 * include/unistd.h: Declare __libc_enable_secure_internal.
8553 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8554 Use INTUSE with __libc_enable_secure.
8555 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8557 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8558 * elf/dl-error.c: Likewise,
8559 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8561 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8562 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8563 function definition. Use INTDEF with _dl_get_origin.
8564 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8566 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8567 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8569 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8570 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8571 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8573 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8574 * elf/dl-deps.c: Likewise.
8575 * elf/dl-error.c: Likewise.
8576 * elf/dl-fini.c: Likewise.
8577 * elf/dl-init.c: Likewise.
8578 * elf/dl-load.c: Likewise.
8579 * elf/dl-lookup.c: Likewise.
8580 * elf/dl-reloc.c: Likewise.
8581 * elf/dl-version.c: Likewise.
8582 * elf/do-lookup.h: Likewise.
8583 * sysdeps/arm/dl-machine.h: Likewise.
8584 * sysdeps/cris/dl-machine.h: Likewise.
8585 * sysdeps/hppa/dl-machine.h: Likewise.
8586 * sysdeps/i386/dl-machine.h: Likewise.
8587 * sysdeps/m68k/dl-machine.h: Likewise.
8588 * sysdeps/powerpc/dl-machine.h: Likewise.
8589 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8590 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8591 * sysdeps/sh/dl-machine.h: Likewise.
8592 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8593 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8594 * sysdeps/x86_64/dl-machine.h: Likewise.
8595 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8596 _dl_argv[0]. Use INTUSE with _dl_argv.
8597 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8598 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8600 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8602 * elf/rtld.c (_rtld_global): Remove .protected.
8603 (_rtld_local): Strong alias to _rtld_global.
8604 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8606 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8607 _rtld_local instead of _rtld_global.
8608 (_rtld_local): Add hidden extern, possibly in .sdata section.
8609 * configure.in: Add tests for visibility attribute and .sdata.
8610 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8611 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8612 * sysdeps/arm/dl-machine.h: Likewise.
8613 * sysdeps/generic/ldsodefs.h: Likewise.
8614 * sysdeps/hppa/dl-machine.h: Likewise.
8615 * sysdeps/cris/dl-machine.h: Likewise.
8616 * sysdeps/i386/dl-machine.h: Likewise.
8617 * sysdeps/ia64/dl-machine.h: Likewise.
8618 * sysdeps/m68k/dl-machine.h: Likewise.
8619 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8620 * sysdeps/mips/dl-machine.h: Likewise.
8621 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8622 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8623 * sysdeps/sh/dl-machine.h: Likewise.
8624 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8625 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8626 * sysdeps/x86_64/dl-machine.h: Likewise.
8628 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8630 * login/login.c (login): Always initialize ut_line field
8633 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8635 * sysdeps/i386/Makefile (sysdep_routines): Add
8637 (shared-only-routines): Likewise.
8638 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8639 (shared-only-routines): Likewise.
8640 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8641 (shared-only-routines): Likewise.
8642 * sysdeps/wordsize-32/divdi3.c: New file.
8644 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8646 * locale/iso-4217.def: Remove obsolete currencies for countries
8649 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8651 * posix/regcomp.c (regcomp): Remove a redundant condition.
8652 (init_word_char): Add a check on malloc failure.
8653 (create_initial_state): Likewise.
8654 (duplicate_node): Likewise.
8655 (calc_eclosure): Likewise.
8656 (calc_eclosure_iter): Likewise.
8657 (parse_expression): Likewise.
8658 (parse_bracket_exp): Remove unnecessary malloc invocations.
8659 (build_equiv_class): Likewise.
8660 (build_charclass): Likewise.
8661 * posix/regex_internal.c (re_node_set_intersect): Add a check
8663 (re_node_set_add_intersect): Likewise.
8664 (re_node_set_merge): Likewise.
8665 (re_acquire_state): Likewise.
8666 (re_acquire_state_context): Likewise.
8667 (create_newstate_common): Likewise.
8668 (register_state): Likewise.
8669 (create_ci_newstate): Likewise.
8670 (create_cd_newstate): Likewise.
8671 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8672 and re_acquire_state_context.
8673 * posix/regexec.c (regexec): Suit it to the error handling of
8675 (re_match): Likewise.
8676 (re_search): Likewise.
8677 (re_search_internal): Add a check on malloc failure.
8678 (acquire_init_state_context): Likewise.
8679 (check_matching): Likewise.
8680 (proceed_next_node): Likewise.
8681 (set_regs): Likewise.
8682 (sift_states_backward): Likewise.
8683 (sift_states_iter_bkref): Likewise.
8684 (add_epsilon_backreference): Likewise.
8685 (transit_state): Likewise.
8686 (transit_state_sb): Likewise.
8687 (transit_state_mb): Likewise.
8688 (transit_state_bkref_loop): Likewise.
8689 (build_trtable): Likewise.
8690 (group_nodes_into_DFAstates): Likewise.
8691 (match_ctx_init): Likewise.
8692 (match_ctx_add_entry): Likewise.
8694 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8696 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8697 l_libname if profiling is enabled [PR libc/2916].
8699 * sysdeps/ia64/dl-tls.h: New file.
8701 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8703 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8704 Work around an Alpha gas bug.
8706 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8708 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8709 uses read to load the catalog.
8710 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8712 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8714 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8715 regex_internal.c, and regex_internal.h.
8716 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8717 * posix/regex.c: Complete rewrite.
8718 * posix/regexec.c: New file.
8719 * posix/regcomp.c: New file.
8720 * posix/regex_internal.c: New file.
8721 * posix/regex_internal.h: New file.
8722 * posix/regex.h (RE_ICASE): New macro.
8723 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8725 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8726 ungetwc. It's a macro.
8727 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8729 Reported by Jason Merrill <jason@redhat.com>.
8731 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8733 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8734 position to fp->_offset if it is set.
8735 * stdio-common/Makefile (tests): Add tst-fdopen.
8736 * stdio-common/tst-fdopen.c: New test.
8738 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8740 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8741 * stdio-common/tst-ungetc.c (main): Add another test.
8743 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8745 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8746 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8747 aliases. Add prototypes for the new aliases.
8748 * assert/assert.c: Likewise.
8749 * include/libc-symbols.h: Likewise.
8750 * include/stdio.h: Likewise.
8751 * include/netinet/in.h: Likewise.
8752 * include/rpc/auth.h: Likewise.
8753 * include/rpc/auth_unix.h: Likewise.
8754 * include/rpc/key_prot.h: Likewise.
8755 * include/rpc/pmap_prot.h: Likewise.
8756 * include/rpc/pmap_rmt.h: Likewise.
8757 * include/rpc/rpc_msg.h: Likewise.
8758 * include/rpc/xdr.h: Likewise.
8759 * inet/gethstbyad_r.c: Likewise.
8760 * inet/gethstbynm2_r.c: Likewise.
8761 * inet/gethstbynm_r.c: Likewise.
8762 * inet/gethstent_r.c: Likewise.
8763 * inet/in6_addr.c: Likewise.
8764 * libio/__fpurge.c: Likewise.
8765 * libio/filedoalloc.c: Likewise.
8766 * libio/fileops.c: Likewise.
8767 * libio/ftello.c: Likewise.
8768 * libio/ftello64.c: Likewise.
8769 * libio/genops.c: Likewise.
8770 * libio/iofclose.c: Likewise.
8771 * libio/iofdopen.c: Likewise.
8772 * libio/iofflush.c: Likewise.
8773 * libio/iofflush_u.c: Likewise.
8774 * libio/iofgetpos.c: Likewise.
8775 * libio/iofgetpos64.c: Likewise.
8776 * libio/iofgets.c: Likewise.
8777 * libio/iofgets_u.c: Likewise.
8778 * libio/iofopen.c: Likewise.
8779 * libio/iofopncook.c: Likewise.
8780 * libio/iofputs.c: Likewise.
8781 * libio/iofread.c: Likewise.
8782 * libio/iofread_u.c: Likewise.
8783 * libio/iofsetpos.c: Likewise.
8784 * libio/iofsetpos64.c: Likewise.
8785 * libio/ioftell.c: Likewise.
8786 * libio/iofwrite.c: Likewise.
8787 * libio/iogetline.c: Likewise.
8788 * libio/iogets.c: Likewise.
8789 * libio/iogetwline.c: Likewise.
8790 * libio/iolibio.h: Likewise.
8791 * libio/iopadn.c: Likewise.
8792 * libio/iopopen.c: Likewise.
8793 * libio/ioseekoff.c: Likewise.
8794 * libio/ioseekpos.c: Likewise.
8795 * libio/iosetbuffer.c: Likewise.
8796 * libio/iosetvbuf.c: Likewise.
8797 * libio/ioungetc.c: Likewise.
8798 * libio/ioungetwc.c: Likewise.
8799 * libio/iovdprintf.c: Likewise.
8800 * libio/iovsprintf.c: Likewise.
8801 * libio/iovsscanf.c: Likewise.
8802 * libio/libioP.h: Likewise.
8803 * libio/memstream.c: Likewise.
8804 * libio/obprintf.c: Likewise.
8805 * libio/oldfileops.c: Likewise.
8806 * libio/oldiofclose.c: Likewise.
8807 * libio/oldiofdopen.c: Likewise.
8808 * libio/oldiofgetpos.c: Likewise.
8809 * libio/oldiofgetpos64.c: Likewise.
8810 * libio/oldiofopen.c: Likewise.
8811 * libio/oldiofsetpos.c: Likewise.
8812 * libio/oldiofsetpos64.c: Likewise.
8813 * libio/oldiopopen.c: Likewise.
8814 * libio/oldstdfiles.c: Likewise.
8815 * libio/putc.c: Likewise.
8816 * libio/setbuf.c: Likewise.
8817 * libio/setlinebuf.c: Likewise.
8818 * libio/stdfiles.c: Likewise.
8819 * libio/stdio.c: Likewise.
8820 * libio/strops.c: Likewise.
8821 * libio/vasprintf.c: Likewise.
8822 * libio/vscanf.c: Likewise.
8823 * libio/vsnprintf.c: Likewise.
8824 * libio/vswprintf.c: Likewise.
8825 * libio/wfiledoalloc.c: Likewise.
8826 * libio/wfileops.c: Likewise.
8827 * libio/wgenops.c: Likewise.
8828 * libio/wstrops.c: Likewise.
8829 * malloc/mtrace.c: Likewise.
8830 * misc/error.c: Likewise.
8831 * misc/syslog.c: Likewise.
8832 * nss/getXXbyYY_r.c: Likewise.
8833 * nss/getXXent_r.c: Likewise.
8834 * nss/hosts-lookup.c: Likewise.
8835 * stdio-common/getw.c
8836 * stdio-common/printf-prs.c: Likewise.
8837 * stdio-common/printf_fp.c: Likewise.
8838 * stdio-common/printf_size.c: Likewise.
8839 * stdio-common/putw.c: Likewise.
8840 * stdio-common/scanf.c: Likewise.
8841 * stdio-common/sprintf.c: Likewise.
8842 * stdio-common/tmpfile64.c: Likewise.
8843 * stdio-common/vfprintf.c: Likewise.
8844 * stdio-common/vfscanf.c: Likewise.
8845 * stdlib/strfmon.c: Likewise.
8846 * sunrpc/auth_des.c: Likewise.
8847 * sunrpc/auth_none.c: Likewise.
8848 * sunrpc/auth_unix.c: Likewise.
8849 * sunrpc/authdes_prot.c: Likewise.
8850 * sunrpc/authuxprot.c: Likewise.
8851 * sunrpc/clnt_perr.c: Likewise.
8852 * sunrpc/clnt_raw.c: Likewise.
8853 * sunrpc/clnt_tcp.c: Likewise.
8854 * sunrpc/clnt_udp.c: Likewise.
8855 * sunrpc/clnt_unix.c: Likewise.
8856 * sunrpc/key_call.c: Likewise.
8857 * sunrpc/key_prot.c: Likewise.
8858 * sunrpc/openchild.c: Likewise.
8859 * sunrpc/pm_getmaps.c: Likewise.
8860 * sunrpc/pm_getport.c: Likewise.
8861 * sunrpc/pmap_clnt.c: Likewise.
8862 * sunrpc/pmap_prot.c: Likewise.
8863 * sunrpc/pmap_prot2.c: Likewise.
8864 * sunrpc/pmap_rmt.c: Likewise.
8865 * sunrpc/rpc_cmsg.c: Likewise.
8866 * sunrpc/rpc_prot.c: Likewise.
8867 * sunrpc/svc_authux.c: Likewise.
8868 * sunrpc/svc_raw.c: Likewise.
8869 * sunrpc/svc_simple.c: Likewise.
8870 * sunrpc/svc_tcp.c: Likewise.
8871 * sunrpc/svc_udp.c: Likewise.
8872 * sunrpc/svc_unix.c: Likewise.
8873 * sunrpc/xdr.c: Likewise.
8874 * sunrpc/xdr_array.c: Likewise.
8875 * sunrpc/xdr_mem.c: Likewise.
8876 * sunrpc/xdr_rec.c: Likewise.
8877 * sunrpc/xdr_ref.c: Likewise.
8878 * sunrpc/xdr_stdio.c: Likewise.
8879 * sysdeps/generic/_strerror.c: Likewise.
8880 * sysdeps/generic/printf_fphex.c: Likewise.
8881 * sysdeps/generic/tmpfile.c: Likewise.
8882 * sysdeps/gnu/errlist.awk: Likewise.
8883 * sysdeps/gnu/errlist.c: Likewise.
8885 * libio/Makefile (routines): Remove iosprint.
8886 * libio/iosprintf.c: Removed
8889 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8891 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8892 non_dynamic_init and exported now.
8893 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8894 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8896 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8897 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8898 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8900 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8902 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8905 * locale/iso-639.def: Add language codes for Walloon.
8907 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8908 total number of relocations performed.
8910 * elf/sprof.c (load_profdata): If do_test provide information as
8911 to why loading failed.
8912 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8915 * csu/set-init.c: Moved to...
8916 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8917 * csu/Makefile: Don't compile set-init.
8918 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8919 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8921 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8922 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8923 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8925 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8928 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8930 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8931 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8932 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8933 (_dl_deallocate_tls): New function.
8934 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8937 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8939 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8940 * stdio-common/tst-fseek.c (main): Add test for this.
8942 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8944 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8946 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8948 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8949 pointer before dereferencing.
8951 2002-02-18 Roland McGrath <roland@frob.com>
8953 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8955 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8956 Use task_policy in place of task_priority.
8958 * sysdeps/generic/bits/mman.h
8959 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8960 * sysdeps/mach/msync.c: New file.
8962 * sysdeps/mach/powerpc/syscall.S: New file.
8964 * mach/msg.c [MACH_MSG_OVERWRITE]
8965 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8966 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8968 * sysdeps/mach/configure.in: Check for clock.defs to put into
8969 mach_interface_list.
8970 * sysdeps/mach/configure: Regenerated.
8972 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8973 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8974 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8975 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8976 (mach-shortcuts): Add device_read_overwrite_request,
8977 device_read_overwrite, vm_read_overwrite, thread_switch.
8979 * configure.in (base_machine): Set to $machine by default.
8980 * configure: Regenerated.
8982 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8983 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8984 * sysdeps/mach/configure: Regenerated.
8985 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8987 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8989 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8991 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8992 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8994 2002-02-17 Roland McGrath <roland@frob.com>
8996 * sysdeps/mach/hurd/times.c
8997 [NO_CREATION_TIME] (startup_time): New static variable.
8998 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8999 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9000 creation_time from task_basic_info.
9001 (__times): Use __gettimeofday instead of __host_get_time.
9003 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9004 Use untyped Mach IPC message format.
9006 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9008 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9009 _S_catch_exception_raise_state_identity,
9010 _hurdsig_fault_catch_exception_raise_state,
9011 _hurdsig_fault_catch_exception_raise_state_identity.
9013 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9015 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9016 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9018 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9019 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9021 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9022 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
9023 them as no-op macros.
9024 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9025 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9027 * sysdeps/powerpc/dl-machine.h
9028 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9030 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9031 Use untyped Mach IPC message format.
9033 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9034 Handle untyped Mach IPC message formats.
9036 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9037 Expect different argument conventions when this is defined.
9038 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9039 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9040 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9041 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9042 for OSF Mach variant.
9043 (faulted): Use mig_reply_error_t for REPLY.
9044 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9045 in __thread_set_exception_ports call.
9046 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9047 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9049 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9050 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9051 on Darwin, which includes bogons.
9053 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9054 variable LOADBASE so it's not declared when it's not used.
9056 2002-02-16 Roland McGrath <roland@frob.com>
9058 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9059 to use BI.creation_time.
9061 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9063 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9064 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9065 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9066 host_page_size instead of vm_statistics.
9068 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9069 mach_interface.h here, since not all variants use that name.
9071 * sysdeps/mach/configure.in: Add some checks for Mach headers
9072 to ensure a sane installation.
9073 (mach_interface_list): Define this variable by checking for .defs
9074 files found in various variants.
9075 * configure.in (mach_interface_list): AC_SUBST this.
9076 * config.make.in (mach-interface-list): New substituted variable.
9077 * mach/Makefile (user-interfaces): Define this using the value
9078 of $(mach-interface-list) instead of mach, mach4.
9079 Updated other references to mach_interface to use it as well.
9081 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9083 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9084 mig_reply_error_t for OSF Mach variant.
9086 * mach/Makefile (routines): Remove bootprivport.
9087 * mach/bootprivport.c: File removed. It has never been used.
9089 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9090 Grok the OSF flavor of message format.
9091 (mach_msg_destroy_port): For MAKE_SEND and
9092 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9093 no-senders notification.
9095 2002-02-06 Roland McGrath <roland@frob.com>
9097 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9098 to here if 2.0 compatibility enabled ...
9099 (libc: GLIBC_2.1.3): ... from here.
9101 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9103 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9105 * elf/dl-close.c (_dl_close): Likewise.
9107 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9109 * elf/Makefile: Add rules to build and run tst-tls8.
9110 * elf/tst-tls8.c: New file.
9111 * elf/tst-tlsmod4.c: New file.
9113 * stdlib/test-a64l.c (tests): Add more test cases.
9115 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9116 Reported by Walter Harms <WHarms@bfs.de>.
9118 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9120 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9121 definitions for struct sigcontext.
9122 Suggested by David Mosberger-Tang.
9124 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9126 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9127 for removing reference of module in slotinfo list.
9128 (_dl_close): Use remove_slotinfo.
9129 * sysdeps/generic/dl-tls.c: General pretty printing.
9130 (oom): Define only if SHARED.
9131 (_dl_next_tls_modid): Correct starting point for the case we assume
9132 there is a gap. Add missing instruction grouping (doh!). Correct
9133 tests for reaching maximum index.
9134 * elf/Makefile: Add rules to build and run tst-tls7.
9135 * elf/tst-tls7.c: New file.
9136 * elf/tst-tlsmod3.c: New file.
9138 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9140 * elf/tst-tlsmod2.c: Likewise.
9142 * elf/dl-close.c (_dl_close): When closing an object using TLS
9143 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9144 true. Increment dl_tls_generation only if we closed any TLS-using
9146 * elf/tst-tls6.c: New file.
9147 * elf/Makefile: Add rules to build and run tst-tls6.
9149 * po/da.po: Update from translation team.
9151 * locale/categories.def: Fix typo [PR libc/2948].
9152 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9154 * locale/iso-4217.def: Update from official version [PR libc/2950].
9155 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9156 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9157 message if input is too confusion instead of using assert.
9158 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9159 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9161 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9162 * elf/tst-tls2.c: Likewise.
9163 * elf/tst-tls3.c: Likewise.
9165 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9167 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9169 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9171 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9172 if this is really necessary.
9174 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9176 (free_mem): Free memory for the slotinfo array if possible.
9178 2002-02-12 Andreas Schwab <schwab@suse.de>
9180 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9182 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9184 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9186 (oom): New function.
9187 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9188 (_dl_determine_tlsoffset): Likewise.
9189 (_dl_allocate_tls): Likewise.
9190 (__TLS_GET_ADDR): Define if not already defined.
9191 (_dl_tls_symaddr): New function.
9192 (allocate_and_init): New function.
9193 (__tls_get_addr): Actually implement handling of generation counter
9194 and deferred allocation.
9195 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9196 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9198 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9199 Declare _dl_tls_symaddr.
9200 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9202 * include/link.h (struct link_map): Remove l_tls_nextimage and
9204 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9205 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9206 (_dl_vsym): Likewise.
9207 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9209 (dl_main): Allow PT_TLS be present for empty segment. Remove
9210 nextimage list handling. Instead add all modules using TLS to
9211 dl_tls_dtv_slotinfo_list.
9212 * elf/dl-open.c (dl_open_worker): After successfully loading all
9213 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9214 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9215 empty segment don't do anything. Remove handling of initimage list.
9216 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9217 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9218 * elf/dl-minimal.c: Define __libc_memalign.
9219 * elf/dl-support.c: Remove _dl_initimage_list. Add
9220 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9222 * include/stdlib.h: Declare __libc_memalign.
9224 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9225 * elf/tst-tls4.c: New file.
9226 * elf/tst-tls5.c: New file.
9227 * elf/tst-tlsmod2.c: New file.
9229 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9231 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9233 * elf/tst-tls1.c: Use test-skeleton.c.
9234 * elf/tst-tls2.c: Likewise.
9235 * elf/tst-tls3.c: Likewise.
9237 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9239 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9241 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9243 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9245 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9247 * elf/tst-tls3.c: New file.
9248 * elf/tst-tlsmod1.c: New file.
9249 * elf/Makefile: Add rules to build and run tst-tls3.
9251 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9252 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9255 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9257 * po/fr.po: Update from translation team.
9259 * elf/tls-macros.h: Add alternative macros for use in PIC.
9261 * elf/dl-lookup.c: Include <tls.h>.
9262 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9264 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9265 required by passing pointer to last element of the list.
9267 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9268 l_tls_initimage to a place where it actually is performed.
9270 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9271 after globfree() calls.
9273 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9274 (openaux): Pass open_mode as new last argument to _dl_map_object.
9275 (_dl_map_object_deps): Add new argument open_mode. Initialize
9276 open_mode element of args variable with it.
9277 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9278 _dl_map_object_deps.
9279 * elf/rtld.c (dl_main): Add zero as last parameter to
9280 _dl_map_object_deps call.
9281 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9282 * elf/nodlopen2.c: New file.
9283 * elf/nodlopenmod2.c: New file.
9284 * elf/Makefile: Add rules to build and run nodlopen2.
9286 * elf/tst-tls1.c: Move TLS helper macros to...
9287 * elf/tls-macros.h: ...here. New file.
9288 * elf/tst-tls2.c: New file.
9289 * elf/Makefile (tests): Add tst-tls2.
9290 (distribute): Add tls-macros.h.
9292 * po/sv.po: Update from translation team.
9294 * elf/tst-tls1.c (main): Add complete set of tests. Split
9295 architecture specific definitions from the actual test code.
9297 * po/tr.po: Update from translation team.
9299 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9301 * elf/Makefile (tests): Add tst-tls1.
9302 * elf/tst-tls1.c: New file.
9304 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9305 alignment of TCB for now.
9307 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9308 initialization image for the application itself.
9310 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9311 loop to initialize TLS block.
9313 2002-02-08 Richard Henderson <rth@redhat.com>
9315 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9316 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9318 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9320 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9322 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9324 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9326 * po/ca.po: Update from translation team.
9327 * po/sk.po: Likewise.
9329 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9330 (dl_main): Move dtv/static TLS handling before relocation.
9331 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9332 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9333 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9334 so far uses TLS initialize GL(dl_tls_static_size) and
9335 GL(dl_tls_static_align) to account for the TCB.
9336 (_dl_allocate_tls): New function.
9337 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9338 _dl_initial_dtv_malloced.
9340 * configure.in: Test for __builtin_memset more realistically.
9342 * csu/version.c (banner): If TLS support is available say so.
9344 2002-02-04 H.J. Lu <hjl@gnu.org>
9346 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9348 (__dl_runtime_resolve): Likewise.
9350 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9353 2001-11-15 H.J. Lu <hjl@gnu.org>
9355 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9356 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9358 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9360 2002-02-07 H.J. Lu <hjl@gnu.org>
9362 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9364 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9367 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9369 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9371 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9372 ___tls_get_addr_internal.
9373 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9375 * po/ko.po: Update from translation team.
9377 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9379 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9380 attribute, change __pad{1,2} type to unsigned int.
9381 (struct stat64): Remove packed attribute.
9383 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9385 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9387 2002-02-07 Andreas Schwab <schwab@suse.de>
9389 * configure.in: Fix check for -zcombreloc.
9391 2002-02-06 H.J. Lu <hjl@gnu.org>
9393 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9394 * configure.in: Check if __builtin_memset really works.
9395 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9396 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9398 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9400 * io/bug-ftw3.c (main): Don't try the test if root.
9402 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9404 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9406 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9407 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9408 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9410 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9411 a weak alias for __clone.
9412 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9413 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9414 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9415 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9416 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9417 a weak alias for __mmap64.
9419 2002-02-05 H.J. Lu <hjl@gnu.org>
9421 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9422 (atomic_add): Likewise.
9423 (compare_and_swap): Likewise.
9424 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9426 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9428 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9430 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9431 alignment of the TCB and store total size and alignment of static
9432 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9433 tls_index is a typedef.
9434 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9435 _dl_tls_static_align.
9436 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9437 * elf/dl-support.c: Define _dl_tls_static_size and
9438 _dl_tls_static_align.
9440 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9442 * configure.in: Add --without-tls option.
9443 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9444 --without-tls is given.
9446 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9448 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9450 2002-02-06 Roland McGrath <roland@frob.com>
9452 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9453 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9455 * scripts/versions.awk: Improve error message for missing version.
9456 Each version inherits from the last one only if they have the same
9457 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9458 but not GLIBC_x and FOO_y.
9460 * scripts/firstversions.awk: Handle libraries that don't have each
9461 particular version named in the third column of shlib-versions.
9463 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9465 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9467 * Versions.def [ld]: Add GLIBC_2.3.
9468 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9469 * elf/Makefile (dl-routines): Add dl-tls.
9470 (distribute): Add dl-tls.h.
9471 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9472 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9473 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9474 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9475 along with the other info in the link map. Change queueing of init
9476 images for double linked list. Use _dl_next_tls_modid to compute
9478 * elf/rtld.c (_dl_start_final): Store alignment requirement
9479 along with the other info in rtld map and executable map.
9480 (dl_main): Add ld.so to the init image list if necessary. Compute
9481 final module ID with _dl_next_tls_modid.
9482 * include/link.h (struct link_map): Add l_tls_previmage and
9484 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9485 * sysdeps/i386/elf/Versions: New file.
9486 * sysdeps/generic/dl-tls.c: New file.
9487 * sysdeps/generic/dl-tls.h: New file.
9488 * sysdeps/i386/dl-tls.h: New file.
9490 2002-02-06 Roland McGrath <roland@frob.com>
9492 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9493 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9495 2002-01-05 Roland McGrath <roland@frob.com>
9497 * sysdeps/mach/configure.in: New file.
9498 * sysdeps/mach/configure: New generated file.
9500 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9501 It has never been used by anything.
9503 2002-02-06 H.J. Lu <hjl@gnu.org>
9505 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9508 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9510 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9511 attribute((packed)) to counter stupid people misusing gcc options.
9512 (struct stat64): Likewise.
9514 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9516 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9517 the variables which are used as booleans.
9519 2002-02-06 Andreas Jaeger <aj@suse.de>
9521 * include/libc-symbols.h (INTUSE): Renamed from INT.
9522 * elf/dl-deps.c: Change users.
9523 * sysdeps/generic/dl-sysdep.c: Likewise.
9524 * sysdeps/generic/dl-cache.c: Likewise.
9525 * elf/dl-reloc.c: Likewise.
9526 * elf/rtld.c: Likewise.
9527 * elf/dl-version.c: Likewise.
9528 * elf/dl-load.c: Likewise.
9529 * elf/dl-dst.h: Likewise.
9530 * elf/dl-init.c: Likewise.
9531 * elf/dl-error.c: Likewise.
9532 * elf/dl-fini.c: Likewise.
9533 * elf/dl-runtime.c: Likewise.
9534 * elf/do-lookup.h: Likewise.
9536 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9538 * stdio-common/_itowa.h: Likewise.
9540 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9542 * elf/dl-minimal.c: Define _itoa_lower_digits.
9544 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9547 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9548 loading modules with the DF_STATIC_TLS flag set.
9549 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9551 * include/link.h (struct link_map): Add l_flags field.
9552 * elf/elf.h (DF_STATIC_TLS): New definition.
9554 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9555 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9557 * elf/rtld.c (process_dl_debug): Correct printing help message.
9558 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9561 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9562 definition and pass &errno in use of this variable.
9563 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9565 2002-02-04 Andreas Schwab <schwab@suse.de>
9567 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9568 * locale/programs/charmap-dir.c: Wrap calls that output messages
9569 with WITH_CUR_LOCALE. Include "localedef.h" first.
9570 * locale/programs/charmap.c: Likewise.
9571 * locale/programs/ld-address.c: Likewise.
9572 * locale/programs/ld-collate.c: Likewise.
9573 * locale/programs/ld-ctype.c: Likewise.
9574 * locale/programs/ld-identification.c: Likewise.
9575 * locale/programs/ld-measurement.c: Likewise.
9576 * locale/programs/ld-messages.c: Likewise.
9577 * locale/programs/ld-monetary.c: Likewise.
9578 * locale/programs/ld-name.c: Likewise.
9579 * locale/programs/ld-numeric.c: Likewise.
9580 * locale/programs/ld-paper.c: Likewise.
9581 * locale/programs/ld-telephone.c: Likewise.
9582 * locale/programs/ld-time.c: Likewise.
9583 * locale/programs/linereader.c: Likewise.
9584 * locale/programs/linereader.h: Likewise.
9585 * locale/programs/localedef.c: Likewise.
9586 * locale/programs/locfile.c: Likewise.
9587 * locale/programs/repertoire.c: Likewise.
9589 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9591 * elf/rtld.c (_dl_start_final): Determine load address to locate
9592 ehdr with GL(dl_rtld_map).l_map_start.
9594 * po/ca.po: Update from translation team.
9596 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9597 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9599 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9601 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9603 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9605 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9606 * include/link.h (struct link_map): Add various members for TLS
9608 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9609 _rtld_tlsoffset, add _dl_initimage_list.
9610 * sysdeps/i386/dl-lookupcfg.h: New file.
9611 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9612 TLS relocation. When using TLS we now use RESOLVE_MAP.
9613 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9616 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9619 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9620 thread-pointer as soon as possible.
9621 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9622 elements in rtld_global.
9623 * sysdeps/generic/tls.h: New file.
9624 * elf/Makefile (distribute): Add tls.h.
9625 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9626 relocations. Not complete yet.
9628 * resolv/resolv.h: Allow user to define __need_res_state and only
9629 define __res_start structure then.
9630 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9632 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9633 dl_cpuclock_offset initialization to _dl_start_final.
9634 (_dl_show_auxv): Avoid unnecessary sign extension.
9635 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9637 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9639 * config.h.in: Add HAVE_TLS_SUPPORT.
9640 * sysdeps/i386/elf/configure.in: New file.
9642 2002-02-03 Andreas Schwab <schwab@suse.de>
9644 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9645 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9647 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9649 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9650 alloca if the memory reqirements are too high.
9652 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9654 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9655 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9656 the former is available anyway and speed isn't important here.
9657 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9658 * elf/dl-version.c (match_symbol): Likewise.
9659 (_dl_check_map_versions): Likewise.
9660 * elf/rtld.c (process_envvars): Likewise.
9661 (print_statistics): Likewise.
9662 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9663 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9664 bases. Add assert to catch uses of unimplemented features.
9665 (__strsep): Add assert to catch uses of unimplemented features.
9666 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9667 and avoid inline optimization.
9668 * elf/rtld.c (process_envvars): Likewise.
9669 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9670 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9671 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9673 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9675 * stdio-common/_itoa.h: Minor simplifications of the code.
9676 * stdio-common/_itoa.c: Likewise.
9678 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9679 instead of _dl_printf for debugging info output.
9681 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9682 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9684 2002-02-01 H.J. Lu <hjl@gnu.org>
9686 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9687 (atomic_add): Likewise.
9688 (compare_and_swap): Return 0 only when failed to compare. Use
9691 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9694 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9696 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9698 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9700 * elf/dl-minimal.c (__strsep): New minimal implementation.
9702 2002-02-02 Paul Eggert <eggert@twinsun.com>
9704 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9705 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9706 with tm_isdst > 0 when the requested time falls within a
9707 spring-forward gap [PR libc/2894].
9709 2002-02-03 Andreas Schwab <schwab@suse.de>
9711 * stdio-common/tst-rndseek.c: Increase timeout.
9713 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9715 Change ld.so to not use functions which are exported. One cannot
9716 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9718 * include/libc-symbols.h: Define INT and INTDEF.
9719 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9720 _dl_signal_error_internal, _dl_map_object_internal,
9721 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9722 _dl_lookup_versioned_symbol_internal,
9723 _dl_relocate_object_internal, _dl_debug_state_internal,
9724 _dl_start_profile_internal, and _dl_unload_cache_internal.
9725 * include/dlfcn.h: Declare _dl_catch_error_internal.
9726 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9727 above. Add INTDEF to function definitions.
9728 * elf/dl-debug.c: Likewise.
9729 * elf/dl-deps.c: Likewise.
9730 * elf/dl-dst.h: Likewise.
9731 * elf/dl-error.c: Likewise.
9732 * elf/dl-fini.c: Likewise.
9733 * elf/dl-init.c: Likewise.
9734 * elf/dl-load.c: Likewise.
9735 * elf/dl-lookup.c: Likewise.
9736 * elf/dl-misc.c: Likewise.
9737 * elf/dl-open.c: Likewise.
9738 * elf/dl-profile.c: Likewise.
9739 * elf/dl-reloc.c: Likewise.
9740 * elf/dl-runtime.c: Likewise.
9741 * elf/dl-version.c: Likewise.
9742 * elf/do-lookup.h: Likewise.
9743 * sysdeps/generic/dl-cache.c: Likewise.
9744 * sysdeps/generic/dl-sysdep.c: Likewise.
9745 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9746 instead of _dl_init.
9747 * sysdeps/arm/dl-machine.h: Likewise.
9748 * sysdeps/cris/dl-machine.h: Likewise.
9749 * sysdeps/hppa/dl-machine.h: Likewise.
9750 * sysdeps/i386/dl-machine.h: Likewise.
9751 * sysdeps/ia64/dl-machine.h: Likewise.
9752 * sysdeps/m68k/dl-machine.h: Likewise.
9753 * sysdeps/mips/dl-machine.h: Likewise.
9754 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9755 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9756 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9757 * sysdeps/sh/dl-machine.h: Likewise.
9758 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9759 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9760 * sysdeps/x86_64/dl-machine.h: Likewise.
9761 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9763 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9764 and _dl_debug_initialize.
9766 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9768 * elf/rtld.c (dl_main): Avoid strrchr.
9769 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9770 result of readlink. Search from the back for '/'.
9772 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9773 strncpy if possible.
9775 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9777 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9778 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9779 strspn, and strcspn.
9780 (process_envvars): Don't use strcspn.
9782 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9783 (_dl_dst_substitute): Likewise.
9785 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9787 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9788 code which is never used when relocating ld.so itself.
9790 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9791 starting ld.so itself. Move l_addr variable initialization closer
9793 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9795 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9797 * Versions.def (libc): Add GLIBC_PRIVATE.
9798 (libdb, libnss_db, libdb1): Remove.
9799 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9800 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9801 (libpthread): Add GLIBC_PRIVATE.
9802 (libresolv): Likewise, remove GLIBC_2.1.
9803 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9804 GLIBC_2.2.3, GLIBC_2.3.
9805 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9806 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9807 _dl_sym, _dl_vsym): Likewise.
9808 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9809 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9810 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9811 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9812 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9813 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9814 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9815 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9817 (_dl_object_relocation_scope): Remove.
9818 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9819 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9820 __gconv_cache): Move to GLIBC_PRIVATE.
9821 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9822 __internal_setnetgrent): Likewise.
9823 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9824 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9825 * locale/Versions (__collate_element_hash, __collate_element_strings,
9826 __collate_symbol_classes, __collate_symbol_hash,
9827 __collate_symbol_strings, _nl_current_LC_COLLATE,
9828 _nl_current_LC_CTYPE): Likewise.
9829 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9830 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9831 (libnss_nis, libnss_nisplus): Likewise.
9832 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9833 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9834 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9835 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9836 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9837 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9838 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9839 __ns_get16, __ns_samename): Likewise.
9840 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9841 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9843 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9844 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9845 __libc_connect): Likewise.
9846 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9848 * stdlib/Versions (__libc_system): Likewise.
9849 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9850 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9851 * sysdeps/ia64/fpu/Versions: Likewise.
9852 * sysdeps/ia64/Versions: Likewise.
9853 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9854 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9856 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9857 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9858 __libc_sigaction): Likewise.
9859 * termios/Versions (__libc_tcdrain): Likewise.
9861 * misc/sys/cdefs (__attribute_noinline__): Define.
9862 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9863 __attribute_noinline__.
9865 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9866 * elf/dl-xstat64.c: New file.
9867 * elf/dl-fxstat64.c: New file.
9868 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9869 don't export __fxstat64 at multiple versions.
9870 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9871 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9873 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9875 * locale/program/ld-collate.c (collate_finish): Assign a wide
9876 char collation sequence value to multi character collating
9877 elements, and avoid over writing by non-character elements.
9879 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9881 * elf/Makefile (distribute): Add dl-procinfo.c.
9882 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9883 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9885 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9887 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9889 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9890 _rtld_global struct.
9891 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9892 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9893 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9894 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9895 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9896 _dl_fpu_control_set): Remove unused externs.
9897 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9898 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9899 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9900 related variables in _rtld_global struct.
9901 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9902 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9905 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9907 * sysdeps/generic/dl-procinfo.c: New file.
9909 2002-02-01 Andreas Schwab <schwab@suse.de>
9911 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9913 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9915 * elf/rtld.c (_dl_start): Mark as internal_function.
9916 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9918 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9919 General pretty printing.
9921 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9923 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9924 * elf/dl-reloc.c: Pretty printing.
9925 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9926 procinfo-related variables in rtld_global struct.
9927 * elf/dl-support.c: Likewise.
9928 * elf/rtld.c: Likewise.
9929 * sysdeps/i386/i686/Makefile: Likewise.
9930 * sysdeps/i386/i686/hp-timing.c: Likewise.
9931 * sysdeps/i386/i686/hp-timing.h: Likewise.
9932 * sysdeps/ia64/Makefile: Likewise.
9933 * sysdeps/ia64/hp-timing.c: Likewise.
9934 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9935 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9936 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9937 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9938 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9939 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9940 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9941 * sysdeps/x86_64/Makefile: Likewise.
9943 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9944 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9945 _dl_debug_fd to rtld_global.
9946 * elf/Versions: Likewise.
9947 * elf/dl-close.c: Likewise.
9948 * elf/dl-iteratephdr.c: Likewise.
9949 * elf/dl-lookup.c: Likewise.
9950 * elf/dl-misc.c: Likewise.
9951 * elf/dl-open.c: Likewise.
9952 * elf/dl-support.c: Likewise.
9953 * elf/do-lookup.h: Likewise.
9954 * elf/rtld.c: Likewise.
9955 * sysdeps/generic/dl-cache.c: Likewise.
9956 * sysdeps/generic/dl-sysdep.c: Likewise.
9957 * sysdeps/ia64/Versions: Likewise.
9958 * sysdeps/unix/clock_gettime.c: Likewise.
9959 * sysdeps/unix/clock_settime.c: Likewise.
9960 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9961 * sysdeps/sparc/Versions: Removed.
9962 * sysdeps/i386/i686/Versions : Removed.
9963 * sysdeps/x86_64/Versions: Removed.
9964 * configure.in: Define HAVE_PROTECTED if .protected is available.
9965 * config.h.in: Add entry for HAVE_PROTECTED.
9967 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9969 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9970 code in struct _rtld_global. Export this struct, remove all
9971 exports for the signal variables.
9972 * sysdeps/arm/dl-machine: Likewise.
9973 * sysdeps/generic/dl-origin: Likewise.
9974 * sysdeps/generic/dl-sysdep: Likewise.
9975 * sysdeps/generic/dl-cache: Likewise.
9976 * sysdeps/hppa/dl-fptr: Likewise.
9977 * sysdeps/hppa/dl-machine: Likewise.
9978 * sysdeps/cris/dl-machine: Likewise.
9979 * sysdeps/i386/dl-machine: Likewise.
9980 * sysdeps/ia64/dl-machine: Likewise.
9981 * sysdeps/m68k/dl-machine: Likewise.
9982 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9983 * sysdeps/mips/mips64/dl-machine: Likewise.
9984 * sysdeps/mips/dl-machine: Likewise.
9985 * sysdeps/powerpc/elf/libc-start: Likewise.
9986 * sysdeps/powerpc/dl-machine: Likewise.
9987 * sysdeps/powerpc/dl-start: Likewise.
9988 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9989 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9990 * sysdeps/sh/dl-machine: Likewise.
9991 * sysdeps/s390/s390-32/dl-machine: Likewise.
9992 * sysdeps/s390/s390-64/dl-machine: Likewise.
9993 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9994 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9995 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9996 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9997 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9998 * sysdeps/x86_64/dl-machine: Likewise.
10000 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10002 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10005 2002-01-31 Andreas Schwab <schwab@suse.de>
10007 * sysdeps/posix/readv.c: Check for ssize_t overflow.
10009 2002-01-31 Andreas Schwab <schwab@suse.de>
10011 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10012 reference to _dl_pagesize.
10014 2002-01-30 Ulrich Drepper <drepper@redhat.com>
10016 * Versions.def [ld]: Add GLIBC_2.3.
10017 * elf/dl-addr.c: Move global variables for SHARED code in struct
10018 _rtld_global. Export this struct, remove all exports for the
10020 * elf/dl-close.c: Likewise.
10021 * elf/dl-conflict.c: Likewise.
10022 * elf/dl-debug.c: Likewise.
10023 * elf/dl-deps.c: Likewise.
10024 * elf/dl-dst.h: Likewise.
10025 * elf/dl-error.c: Likewise.
10026 * elf/dl-fini.c: Likewise.
10027 * elf/dl-init.c: Likewise.
10028 * elf/dl-iteratephdr.c: Likewise.
10029 * elf/dl-libc.c: Likewise.
10030 * elf/dl-load.c: Likewise.
10031 * elf/dl-lookup.c: Likewise.
10032 * elf/dl-minimal.c: Likewise.
10033 * elf/dl-object.c: Likewise.
10034 * elf/dl-open.c: Likewise.
10035 * elf/dl-profile.c: Likewise.
10036 * elf/dl-profstub.c: Likewise.
10037 * elf/dl-reloc.c: Likewise.
10038 * elf/dl-runtime.c: Likewise.
10039 * elf/dl-support.c: Likewise.
10040 * elf/dl-sym.c: Likewise.
10041 * elf/dl-version.c: Likewise.
10042 * elf/do-lookup.h: Likewise.
10043 * elf/do-rel.h: Likewise.
10044 * elf/dynamic-link.h: Likewise.
10045 * elf/rtld.c: Likewise.
10046 * sysdeps/generic/dl-cache.c: Likewise.
10047 * sysdeps/generic/dl-sysdep.c: Likewise.
10048 * sysdeps/generic/ldsodefs.h: Likewise.
10049 * sysdeps/generic/libc-start.c: Likewise.
10050 * sysdeps/i386/dl-machine.h: Likewise.
10051 * sysdeps/ia64/dl-fptr.c: Likewise.
10052 * sysdeps/ia64/dl-machine.h: Likewise.
10053 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10054 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10055 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10056 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10057 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10058 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10059 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10060 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10062 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10064 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10066 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10068 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10070 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10072 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10074 2002-01-29 Ben Collins <bcollins@debian.org>
10076 * string/bits/string2.h (__mempcpy): Protect size arg for
10077 addition when using __builtin_memcpy.
10079 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10081 * stdlib/Makefile (tests): Add tst-qsort.
10082 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10084 * manual/signal.texi (Process Signal Mask): Document that
10085 pthread_sigmask, not sigprocmask, must be used in MT programs.
10086 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10088 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10090 * misc/Makefile (tests): Add tst-hsearch.
10091 * misc/tst-hsearch.c: New file.
10093 2002-01-18 Wolfram Gloger <wg@malloc.de>
10095 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10096 * malloc/malloc.h: Likewise.
10097 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10098 * malloc/arena.c: New file.
10099 * malloc/hooks.c: New file.
10100 * malloc/tst-mallocstate.c: New file.
10101 * malloc/Makefile: Add new testcase tst-mallocstate.
10102 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10104 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10106 * stdlib/msort.c: Remove last patch. The optimization violates the
10107 same rule which qsort.c had problems with.
10109 2002-01-27 Paul Eggert <eggert@twinsun.com>
10111 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10112 to a pivot element that lies outside the array to be sorted, as
10113 ISO C99 requires that the comparison function be called only with
10114 addresses of array elements [PR libc/2880].
10116 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10118 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10119 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10121 * timezone/asia: Update from tzdata2002b.
10122 * timezone/australasia: Likewise.
10123 * timezone/backward: Likewise.
10124 * timezone/europe: Likewise.
10125 * timezone/leapseconds: Likewise.
10126 * timezone/iso3166.tab: Likewise.
10127 * timezone/zone.tab: Likewise.
10129 2002-01-23 Richard Henderson <rth@redhat.com>
10131 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10133 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10135 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10136 this element [PR libc/2855].
10138 * string/strcoll.c: Handle zero-length arguments specially
10141 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10143 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10144 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10145 short lengths and constant src.
10146 (strcpy): Don't optimize for gcc 3.0+.
10147 (__stpcpy): For gcc 3.0+, don't use
10148 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10149 for short string literal src.
10151 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10153 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10156 2001-01-22 Paul Eggert <eggert@twinsun.com>
10158 * manual/llio.texi (Linked Channels, Cleaning Streams):
10159 Make it clearer that a just-opened input stream might need cleaning.
10161 2002-01-21 H.J. Lu <hjl@gnu.org>
10163 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10164 Don't use label at end of compound statement.
10166 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10168 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10169 Remove test for negative integer arg; sin_pi does it correctly.
10171 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10173 * nscd/Makefile (distribute): Filter out xmalloc.c.
10175 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10177 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10178 Set offset if read end wasn't the buffer end.
10179 (_IO_file_seekoff_mmap): New function.
10180 (_IO_file_xsgetn_mmap): New function.
10181 (_IO_file_jumps_mmap): Use the two new functions.
10182 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10184 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10185 _IO_file_underflow_mmap.
10186 * libio/iofopen.c: Don't position file descriptor at end of file.
10187 * libio/tst-widetext.c: Improve error messages.
10188 * stdio-common/tst-rndseek.c: Likewise.
10190 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10192 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10193 end of enum for !_GNU_SOURCE.
10194 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10195 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10196 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10197 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10198 values unless _GNU_SOURCE.
10200 * iconvdata/tcvn5712-1.c: Minor cleanups.
10202 2002-01-18 Andreas Schwab <schwab@suse.de>
10204 * sysdeps/unix/sysv/linux/configure.in
10205 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10207 2002-01-16 Roger Sayle <roger@eyesopen.com>
10209 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10210 more efficient "Towers of Hanoi" mergesort.
10211 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10212 for generic, sizeof(int) and sizeof(long) variants respectively.
10214 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10216 * manual/syslog.texi (openlog): Describe possible problems with
10218 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10220 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10221 * nscd/connections.c (begin_drop_privileges): New function.
10222 (finish_drop_privileges): New function.
10223 (nscd_init): Call the new functions which also install all groups
10224 for the server user.
10225 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10226 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10228 2002-01-17 H.J. Lu <hjl@gnu.org>
10230 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10231 `const' from `got'.
10233 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10235 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10236 instructions for pointer operations.
10237 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10239 2002-01-17 Andreas Jaeger <aj@suse.de>
10241 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10242 __uint128_t build-in.
10244 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10245 PowerPC, sync with 2.2 branch.
10247 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10249 * posix/getconf.c: Update copyright year.
10250 * nss/getent.c: Likewise.
10251 * nscd/nscd_nischeck.c: Likewise.
10252 * iconv/iconvconfig.c: Likewise.
10253 * iconv/iconv_prog.c: Likewise.
10254 * elf/ldconfig.c: Likewise.
10255 * catgets/gencat.c: Likewise.
10256 * csu/version.c: Likewise.
10257 * elf/ldd.bash.in: Likewise.
10258 * elf/sprof.c (print_version): Likewise.
10259 * locale/programs/locale.c: Likewise.
10260 * locale/programs/localedef.c: Likewise.
10261 * nscd/nscd.c (print_version): Likewise.
10262 * debug/xtrace.sh: Likewise.
10263 * malloc/memusage.sh: Likewise.
10264 * malloc/mtrace.pl: Likewise.
10266 2002-01-16 Andreas Schwab <schwab@suse.de>
10268 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10269 reliably remove "-ia64" from rtld name.
10271 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10273 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10274 Patch by Yu Shao <yshao@redhat.com>.
10276 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10278 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10279 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10280 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10282 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10284 * sysdeps/s390/fpu/libm-test-ulps: Update.
10286 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10288 * elf/elf.h: Update x86 relocations.
10290 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10292 * locale/programs/charmap.c (new_width): Check whether byte
10293 sequences for both ends of range have the same length.
10295 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10297 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10299 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10301 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10303 (__full_ieee754_sqrt): Add __attribute_used__.
10305 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10307 * sysdeps/generic/group_member.c (__group_member): Also check
10308 groups[0] [PR libc/2781].
10310 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10312 * Makefile (distribute): Add scripts/cpp.
10313 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10314 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10315 unwind-dw2-fde.h, and dwarf2.h.
10316 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10317 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10318 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10319 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10321 2002-01-07 Roland McGrath <roland@frob.com>
10323 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10324 volatile on type of ARGC so the compiler doesn't get clever.
10326 2002-01-07 Andreas Jaeger <aj@suse.de>
10328 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10329 * sysdeps/i386/bits/byteswap.h: Likewise.
10330 * sysdeps/ia64/bits/byteswap.h: Likewise.
10331 * sysdeps/m68k/bits/byteswap.h: Likewise.
10332 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10333 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10335 2002-01-02 Bruno Haible <bruno@clisp.org>
10337 * intl/plural.y: Fix %expect count.
10339 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10341 * elf/Makefile (routines, shared-only-routines): Add
10342 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10343 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10344 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10345 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10346 Optimize if .eh_frame section contains no FDEs.
10347 (__register_frame, __deregister_frame_info_bases,
10348 __deregister_frame): Likewise.
10349 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10350 DW_CFA_restore handling.
10352 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10354 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10356 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10357 for x < 0.25 and restore original range reduction method.
10358 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10360 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10362 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10363 (_IO_file_close_mmap): New function.
10364 (_IO_file_jumps_mmap): New variable.
10365 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10366 trying to convert rest of byte buffer.
10367 (_IO_wfile_underflow_mmap): New function.
10368 (_IO_wfile_jumps_mmap): New variable.
10369 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10370 (__fopen_internal): New function. Split out from _IO_new_fopen.
10371 (_IO_new_fopen): Call __fopen_internal.
10372 * libio/iofopen64.c: Just call __fopen_internal.
10373 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10375 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10376 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10377 _IO_file_close_mmap.
10379 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10380 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10382 * stdio-common/Makefile (tests): Add tst-rndseek.
10383 * stdio-common/tst-rndseek.c: New file.
10385 2002-01-05 Roland McGrath <roland@frob.com>
10387 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10388 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10389 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10390 * sysdeps/mach/hurd/configure: Regenerated.
10392 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10394 * elf/elf.h: Add more TLS definitions.
10396 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10398 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10400 2002-01-02 Roland McGrath <roland@frob.com>
10402 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10403 __sigisemptyset. Don't use MASK uninitialized.
10405 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10406 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10407 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10408 __sigdelset, __sigaddset, __sigorset.
10410 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10411 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10413 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10414 _hurd_ports is null.
10416 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10417 for old CMU and new OSF Mach interface flavors.
10418 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10419 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10421 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10423 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10424 Pass extra arguments to task_create for OSF variant.
10425 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10427 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10428 conditional on [HAVE_AUX_VECTOR].
10430 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10431 mach_msg_timeout_t as type of final argument.
10433 * hurd/privports.c (__get_privileged_ports):
10434 Change host_priv_t to mach_port_t in argument type.
10435 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10438 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10439 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10440 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10441 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10442 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10443 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10445 2002-01-01 Roland McGrath <roland@frob.com>
10447 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10449 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10451 * include/stdlib.h: Define inlines for the _l variants of the strto*
10454 2002-01-01 Roland McGrath <roland@frob.com>
10456 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10458 * mach/Machrules (MIG): Set CPP as well as CC.
10460 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10462 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10463 locale to parse /proc/loadavg [PR libc/2760].
10465 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10467 * elf/dl-conflict.c: Include sys/param.h.
10468 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10469 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10471 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10472 literals to avoid warnings.
10474 2001-12-31 Andreas Jaeger <aj@suse.de>
10476 * configure.in: Don't check for gsed since we do not use it anywhere.
10478 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10480 * io/fts.c: Update from BSD to fix memory leaks.
10482 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10484 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10485 * elf/chroot_canon.c: Likewise.
10486 * elf/dl-object.c: Likewise.
10487 * iconv/iconv_charmap.c: Likewise.
10488 * iconv/iconv_prog.c: Likewise.
10489 * libio/iogetdelim.c: Likewise.
10490 * locale/lc-time.c: Likewise.
10491 * stdlib/canonicalize.c: Likewise.
10492 * sunrpc/svc.c: Likewise.
10493 * sysdeps/generic/glob.c: Likewise.
10495 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10497 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10498 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10499 remove high order bit from the program counter.
10500 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10502 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10504 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10505 unnecessary code and add missing reloc types.
10506 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10507 case for reloc type R_390_NONE.
10509 2001-12-28 Andreas Jaeger <aj@suse.de>
10511 * io/bug-ftw3.c: Include string.h for prototypes.
10513 * crypt/md5test.c (main): Remove unused variable.
10515 * dlfcn/modstatic.c: Add prototype to avoid warning.
10517 2001-12-26 Roland McGrath <roland@frob.com>
10519 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10520 check only (SS->pending & MASK) for the signal to return.
10521 From Jeroen Dekkers <jeroen@dekkers.cx>.
10523 2001-12-22 Roland McGrath <roland@frob.com>
10525 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10526 Use preprocessor #if conditionals instead of `if' to avoid
10527 warnings about divide by zero in dead code.
10529 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10530 _hurd_port_init, and __hurd_self_sigstate.
10532 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10534 2001-12-21 Andreas Jaeger <aj@suse.de>
10536 * elf/dblloadmod1.c: Add prototype to avoid warning.
10537 * elf/dblloadmod2.c: Likewise.
10538 * elf/dblloadmod3.c: Likewise.
10539 * elf/reldepmod5.c: Likewise.
10540 * elf/reldepmod6.c: Likewise.
10542 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10543 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10544 used on all architectures.
10546 * sunrpc/svc_tcp.c: Add noreturn attribute for
10547 svctcp_rendezvous_abort.
10548 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10550 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10553 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10555 * manual/llio.texi (aio_fsync): Fix a typo.
10556 Patch by Tammy Fox <tfox@redhat.com>.
10558 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10560 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10561 stack bias from child stack pointer before passing it to clone syscall.
10563 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10565 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10567 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10568 Reported by Thorsten Kukuk <kukuk@suse.de>.
10570 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10573 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10575 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10577 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10578 conforming: return EBADF if file descriptor is invalid and EINVAL
10579 if file descriptor is no valid tty.
10580 * login/tst-grantpt.c: New file.
10581 * login/Makefile (tests): Add tst-grantpt.
10583 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10585 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10586 different than implemented in last patch.
10587 * io/bug-ftw3.c: Adjust test for changed handling of
10588 inaccessibility of toplevel dir.
10590 2001-12-16 Roland McGrath <roland@frob.com>
10592 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10593 * grp/initgroups.c (internal_getgrouplist): Likewise.
10595 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10596 `default:' to silence new GCC warning.
10597 Rewrite cast of lvalue to silence new GCC warning.
10599 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10601 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10602 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10604 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10606 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10607 Patch by Stephen R. van den Berg.
10609 * crypt/md5.h: Define md5_uintptr.
10611 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10613 * libio/tst_swprintf.c (main): Add test for string argument with
10615 * stdio-common/Makefile (tests): Add tst-sprintf.
10616 * stdio-common/tst-sprintf.c: New file.
10618 2001-12-13 Andreas Schwab <schwab@suse.de>
10620 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10621 zero precision with wide character string format.
10623 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10625 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10626 but have a user supplied buffer, return the empty buffer, not NULL.
10628 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10630 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10631 Patch by Eric Sharkey <sharkey@netrics.com>.
10633 * crypt/md5test.c (main): Add test for multiple calls to
10634 __md5_process_bytes to itererate over input string.
10636 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10638 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10639 from __nis_findfastest. Take timeout value from parameter.
10640 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10641 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10642 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10644 2001-12-12 Andreas Jaeger <aj@suse.de>
10646 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10647 combreloc test so that it works in this case.
10649 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10651 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10653 * sysdeps/sh/Makefile: New file.
10654 * sysdeps/sh/_mcount.S: New file.
10655 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10656 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10658 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10660 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10661 limitation [PR libc/2564].
10663 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10665 * elf/Makefile (dl-routines): Add conflict.
10666 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10667 (ld.so): Add _begin local symbol.
10668 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10670 * elf/dl-deps.c (_dl_build_local_scope): New function.
10671 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10673 * elf/do-rel.h (VALIDX): Define.
10674 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10675 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10677 * elf/dl-conflict.c: New file.
10678 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10679 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10681 (_dl_lookup_symbol_skip): Likewise.
10682 (_dl_lookup_versioned_symbol): Likewise.
10683 (_dl_lookup_versioned_symbol_skip): Likewise.
10684 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10685 define to ElfW(Rel).
10686 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10687 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10689 Don't adjust address dynamic tags if l_addr is 0.
10690 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10691 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10692 (VALIDX, ADDRIDX): Define.
10693 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10694 (dl_main): Print library list for LD_TRACE_PRELINKING.
10695 If prelinking information can be used, skip relocating libraries and
10696 call _dl_resolve_conflicts instead.
10697 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10698 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10699 if LD_TRACE_PRELINKING.
10700 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10702 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10703 (DL_DEBUG_PRELINK): Define.
10704 (_dl_resolve_conflicts): Add prototype.
10706 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10707 .plt for prelinked libraries where prelinking info cannot be used.
10708 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10709 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10710 * sysdeps/arm/bits/link.h: New file.
10711 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10712 content of .got[1].
10713 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10714 (ELF_MACHINE_PLT_REL): Define.
10715 (elf_machine_rela, elf_machine_rela_relative): New functions.
10716 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10717 of adjusting it if prelinked and prelinking cannot be used.
10718 * sysdeps/i386/bits/link.h: New file.
10719 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10720 content of .got[1].
10721 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10722 (ELF_MACHINE_PLT_REL): Define.
10723 (elf_machine_rela, elf_machine_rela_relative): New functions.
10724 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10725 of adjusting it if prelinked and prelinking cannot be used.
10726 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10727 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10728 to find out map for R_PPC_JMP_SLOT relocs.
10729 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10730 (OPCODE_BA): Define.
10731 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10732 libraries where prelinking info cannot be used.
10733 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10734 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10735 (elf_machine_rela): Set value to 0 if relocating conflicts.
10736 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10737 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10738 (sparc64_fixup_plt): Fix a typo.
10739 (elf_machine_rela): Set value to 0 if relocating conflicts.
10740 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10741 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10742 libraries where prelinking info cannot be used.
10743 * sysdeps/sh/bits/link.h: New file.
10744 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10745 content of .got[1].
10746 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10747 of adjusting it if prelinked and prelinking cannot be used.
10748 * sysdeps/s390/s390-32/bits/link.h: New file.
10749 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10750 Save original content of .got[1].
10751 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10752 of adjusting it if prelinked and prelinking cannot be used.
10753 * sysdeps/s390/s390-64/bits/link.h: New file.
10754 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10755 Save original content of .got[1].
10756 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10757 of adjusting it if prelinked and prelinking cannot be used.
10758 * sysdeps/x86_64/bits/link.h: New file.
10759 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10760 Save original content of .got[1].
10761 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10762 of adjusting it if prelinked and prelinking cannot be used.
10764 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10766 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10767 where appropriate instead of numbers. Little optimizations.
10769 2001-12-10 Roland McGrath <roland@frob.com>
10771 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10774 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10775 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10777 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10778 Fix conditionals so this is set by default for stdio and not for libio.
10779 * sysdeps/mach/hurd/configure: Regenerated.
10781 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10783 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10785 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10787 * io/Makefile (tests): Add bug-ftw3.
10788 * io/bug-ftw3.c: New file.
10790 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10791 matches and GLOB_NOCHECK is set.
10792 * posix/globtest.sh: Correct expected result for NOCHECK test.
10794 * po/ca.po: Update from translation team.
10796 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10798 Implement transliteration of characters in strings of the locale
10800 * locale/programs/linereader.c: Adjust for additional parameter to
10802 (get_string): If character <Uxxxx> is not found try to transliterate
10804 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10805 lr_token. Add const to charmap parameter of all functions.
10806 (find_translit, find_translit2): New functions.
10807 * locale/programs/charmap.c: Adjust for additional parameter to
10809 * locale/programs/repertoire.c: Likewise.
10810 * locale/programs/linereader.h: Likewise.
10811 * locale/programs/ld-address.c: Likewise. Add const to charmap
10812 parameter of all functions.
10813 * locale/programs/ld-collate.c: Likewise.
10814 * locale/programs/ld-identification.c: Likewise.
10815 * locale/programs/ld-measurement.c: Likewise.
10816 * locale/programs/ld-messages.c: Likewise.
10817 * locale/programs/ld-monetary.c: Likewise.
10818 * locale/programs/ld-name.c: Likewise.
10819 * locale/programs/ld-numeric.c: Likewise.
10820 * locale/programs/ld-paper.c: Likewise.
10821 * locale/programs/ld-paper.c: Likewise.
10822 * locale/programs/ld-telephone.c: Likewise.
10823 * locale/programs/ld-time.c: Likewise.
10824 * locale/programs/locfile.c: Likewise.
10825 * locale/programs/localedef.c: Likewise.
10826 * locale/programs/localedef.h: Likewise.
10827 * locale/programs/locfile.h: Likewise. Add declaration for
10829 * locale/programs/simple-hash.c: Add const to first parameter of
10830 find_entry, iterate_table, and lookup.
10831 * locale/programs/simple-hash.h: Likewise.
10832 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10834 * include/locale.h: Define __LC_LAST.
10835 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10837 2001-12-07 Geoff Keating <geoffk@redhat.com>
10839 * sysdeps/powerpc/Dist: Update for recent FP changes.
10840 * sysdeps/powerpc/fpu/Dist: Likewise.
10842 2001-12-07 Andreas Schwab <schwab@suse.de>
10844 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10846 2001-12-06 Geoff Keating <geoffk@redhat.com>
10848 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10849 save/restore functions here.
10850 (libm-support): Don't define these functions here.
10851 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10853 * sysdeps/powerpc/fe_nomask.c: Move to...
10854 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10855 * sysdeps/powerpc/fprrest.S: Move to...
10856 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10857 * sysdeps/powerpc/fprsave.S: Move to...
10858 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10860 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10862 * sysdeps/unix/sysv/linux/opensock.c: New file.
10864 2001-12-06 Geoff Keating <geoffk@redhat.com>
10866 * config.make.in (with-fp): Define from configure.
10867 * configure.in: Substitute with_fp.
10868 * configure: Regenerate.
10869 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10870 specified, and don't change FPU environment.
10872 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10874 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10875 * assert/assert.c: Check result of __asprintf call and don't use
10876 string if it failed.
10877 * assert/assert-perr.c: Likewise.
10878 * inet/rcmd.c: Likewise.
10879 * locale/programs/localedef.c (main): Check result of
10880 construct_output_path and exit if it failed.
10881 (construct_output_path): Check result of asprintf and mkdir calls and
10882 fail if they failed.
10883 * posix/getopt.c: Check result of __asprintf calls and fail if
10885 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10887 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10889 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10891 * sysdeps/generic/strncase.c: Likewise.
10892 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10894 2001-12-05 Geoff Keating <geoffk@redhat.com>
10896 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10898 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10899 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10900 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10901 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10902 * sysdeps/powerpc/fclrexcpt.c: Move to...
10903 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10904 * sysdeps/powerpc/fpu_control.h: Move to...
10905 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10907 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10909 * iconvdata/ibm1129.h: Remove duplicate mappings.
10910 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10911 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10912 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10914 * timezone/zic.c: Fix handling of turnaround times.
10915 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10917 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10919 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10922 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10924 * posix/regex.c: For use outside glibc defined bounded pointer
10925 macros here. Patch by Jim Meyering <jim@meyering.net>.
10927 * iconvdata/Makefile (modules): Add TCVN5712-1.
10928 * iconvdata/TESTS: Add TCVN5712-1.
10929 * iconvdata/gconv-modules: Likewise.
10930 * iconvdata/tcvn5712-1.c: New file.
10931 * iconvdata/testdata/TCVN-5712: New file.
10932 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10934 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10936 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10938 2001-12-02 Roland McGrath <roland@frob.com>
10940 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10942 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10943 Reported by Jeff Bailey <jbailey@nisa.net>.
10945 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10946 Reported by Jeff Bailey <jbailey@nisa.net>.
10948 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10949 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10950 Reported by Jeff Bailey <jbailey@nisa.net>.
10952 2001-12-01 Roland McGrath <roland@frob.com>
10954 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10955 missing backslash in test arguments.
10956 * sysdeps/mach/hurd/configure: Regenerated.
10958 2001-11-26 Roland McGrath <roland@frob.com>
10960 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10961 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10963 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10965 * iconvdata/Makefile (modules): Add ARMSCII-8.
10966 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10967 * iconvdata/armscii-8.c: New file.
10969 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10971 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10972 don't match, fix {{a,b},c} globbing, clean up.
10973 Patch by Flavio Veloso <flaviovs@magnux.com>.
10974 * posix/globtest.sh: Add new tests.
10976 2001-11-29 Andreas Jaeger <aj@suse.de>
10978 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10979 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10981 * sysdeps/generic/abort.c: Include libioP.h for
10982 _IO_flush_all_lockp prototype.
10984 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10986 * posix/regex.h: Define __restrict_arr correctly.
10988 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10990 * iconvdata/ibm1163.c: New file.
10991 * iconvdata/ibm1163.h: New file.
10992 * iconvdata/ibm1164.c: New file.
10993 * iconvdata/ibm1164.h: New file.
10994 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10995 * iconvdata/Makefile: Likewise.
10996 * iconvdata/testdata/IBM1163: New file.
10997 * iconvdata/testdata/IBM1163..UTF8: New file.
10998 * iconvdata/testdata/IBM1164: New file.
10999 * iconvdata/testdata/IBM1164..UTF8: New file.
11000 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11002 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
11003 * iconvdata/ibm1124.h: Likewise.
11004 * iconvdata/ibm1132.h: Likewise.
11005 * iconvdata/ibm1133.h: Likewise.
11006 * iconvdata/ibm1160.h: Likewise.
11007 * iconvdata/ibm1161.h: Likewise.
11008 * iconvdata/ibm1162.h: Likewise.
11009 * iconvdata/ibm856.h: Likewise.
11010 * iconvdata/ibm922.h: Likewise.
11011 * iconvdata/ibm930.h: Likewise.
11012 * iconvdata/ibm932.h: Likewise.
11013 * iconvdata/ibm933.h: Likewise.
11014 * iconvdata/ibm935.h: Likewise.
11015 * iconvdata/ibm937.h: Likewise.
11016 * iconvdata/ibm939.h: Likewise.
11017 * iconvdata/ibm943.h: Likewise.
11018 * iconvdata/ibm930.c: Pretty printing.
11019 * iconvdata/ibm937.c: Avoid access accross array boundary.
11021 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11022 the current locale's codeset.
11023 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11024 empty input string.
11025 * iconv/iconv_prog.c: Pass empty strings as default value for to-
11026 and from-charset. Don't determine locale's charset here.
11028 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
11029 as the old _IO_flush_all but lock only if parameter is nonzero.
11030 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11031 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11032 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11033 if libio is used [PR libc/2575].
11035 2001-11-28 Jakub Jelinek <jakub@redhat.com>
11037 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11038 __signbitl): Only define for ISO C99.
11040 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11042 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11043 herrnop to NETDB_INTERNAL if we run out of buffer space.
11045 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11047 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11048 overflow test for platforms with signed char.
11049 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11051 2001-11-28 Bruno Haible <bruno@clisp.org>
11053 * locale/programs/simple-hash.c (lookup_2): Remove function.
11054 (insert_entry_2): Call lookup instead of lookup_2.
11056 2001-03-04 Bruno Haible <bruno@clisp.org>
11058 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11060 2001-10-31 Bruno Haible <bruno@clisp.org>
11062 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11064 2001-03-21 Bruno Haible <bruno@clisp.org>
11066 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11067 chokes on empty macro arguments.
11068 * intl/plural.y: Add #pragma for alloca on AIX 3.
11070 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11072 * intl/dcigettext.c (guess_category_value): Only implement for
11073 glibc. Otherwise rely on function _nl_locale_name which isn't
11074 present in the glibc sources.
11076 2001-09-24 Bruno Haible <bruno@clisp.org>
11078 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11079 transliteration when building on a glibc system but outside glibc.
11081 2001-09-22 Bruno Haible <bruno@clisp.org>
11083 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11084 * intl/dcigettext.c (plural_eval): Remove function, moved to
11085 intl/plural-eval.c.
11086 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11087 Include plural-eval.c.
11089 2001-09-22 Bruno Haible <bruno@clisp.org>
11091 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11092 don't start with a digit; nplurals must be positive.
11094 2001-09-02 Bruno Haible <bruno@clisp.org>
11096 * intl/plural-exp.h: New file, extracted from gettextP.h.
11097 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11098 * intl/gettextP.h (struct expression, struct parse_args,
11099 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11100 * intl/loadmsgcat.c: Include plural-exp.h.
11101 (PLURAL_PARSE): Move macro to plural-exp.h.
11102 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11104 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11105 EXTRACT_PLURAL_EXPRESSION.
11106 (_nl_unload_domain): Update.
11107 * intl/dcigettext.c: Include plural-exp.h.
11108 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11109 (FREE_EXPRESSION): Move macro to plural-exp.h.
11110 * intl/Makefile (routines): Add plural-exp.
11111 (distribute): Add plural-exp.h.
11113 2001-07-28 Bruno Haible <bruno@clisp.org>
11115 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11116 isdigit, tolower argument to 'unsigned char'.
11117 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11119 * intl/localealias.c (read_alias_file): Cast isspace argument to
11122 2001-10-20 Bruno Haible <bruno@clisp.org>
11124 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11126 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11127 with the variable 'index' in plural_lookup.
11128 * intl/l10nflist.c (strchr): Likewise.
11129 * intl/localealias.c (strchr): Likewise.
11131 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11132 * intl/bindtextdom.c: Likewise.
11133 * intl/dcigettext.c: Likewise.
11134 * intl/dgettext.c: Likewise.
11135 * intl/dngettext.c: Likewise.
11136 * intl/explodename.c: Likewise.
11137 * intl/finddomain.c: Likewise.
11138 * intl/gettext.c: Likewise.
11139 * intl/l10nflist.c: Likewise.
11140 * intl/loadmsgcat.c: Likewise.
11141 * intl/localealias.c: Likewise.
11142 * intl/ngettext.c: Likewise.
11143 * intl/textdomain.c: Likewise.
11144 * intl/gettext.h: Assume <limits.h> exists.
11146 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11148 * stdio-common/Makefile (tests): Add scanf11.
11149 * stdio-common/scanf11.c: New file.
11151 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11153 * version.h (RELEASE): Define as development.
11154 (VERSION): Set to 2.2.90.
11156 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11158 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11159 * nis/nss_nis/nis-grp.c: Likewise.
11160 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11162 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11163 * nis/nss_nis/nis-pwd.c: Likewise.
11164 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11166 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11167 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11168 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11170 * nscd/grpcache.c: Use strtoul instead of atol.
11171 * nscd/pwdcache.c: Likewise.
11172 * nss/getent.c: Likewise.
11174 2001-11-27 Paul Eggert <eggert@twinsun.com>
11176 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11177 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11179 2001-11-19 Bruno Haible <bruno@clisp.org>
11181 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11183 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11184 improves the quality of the hash function, especially for short
11187 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11189 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11190 are found call conv_error and not input_error [PR libc/2669].
11192 * math/bits/mathcalls.h: Mark ceil and floor as const.
11193 Reported by David Mosberger.
11195 2001-11-21 Jim Meyering <meyering@lucent.com>
11197 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11198 Define to be __-prefixed.
11199 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11201 2001-11-26 Andreas Jaeger <aj@suse.de>
11203 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11206 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11208 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11211 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11212 unused variables. Fix threshold for returning 1.0.
11214 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11217 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11218 remove unused variables.
11220 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11222 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11223 include local math header files.
11225 2001-11-22 Andreas Jaeger <aj@suse.de>
11227 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11230 2001-11-21 Andreas Jaeger <aj@suse.de>
11232 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11234 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11237 2001-11-15 Andreas Jaeger <aj@suse.de>
11239 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11240 compilers that support it.
11242 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11243 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11244 * stdlib/stdlib.h: Likewise.
11246 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11248 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11249 statement with gotos.
11250 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11252 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11254 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11256 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11258 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11260 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11261 H.J. Lu <hjl@gnu.org>
11263 * Versions.def (libc): Add GCC_3.0.
11264 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11265 if gcc supports this flag.
11266 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11267 (gcc3): Allow glibc to be compiled with gcc 3.x.
11268 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11269 * config.make.in (static-libgcc, unwind-find-fde): Add.
11270 * Makerules (build-shlib-helper, build-module-helper): Use it.
11271 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11272 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11274 (_fini): Call __deregister_frame_info_bases if
11275 __register_frame_info_bases was used to register.
11276 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11278 (__register_frame_info_bases, __register_frame_info_table_bases,
11279 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11280 * elf/Makefile (routines): Add unwind-dw2-fde.
11281 (shared-only-routines): Add unwind-dw2-fde.
11282 * sysdeps/alpha/gccframe.h: New file.
11283 * sysdeps/arm/gccframe.h: New file.
11284 * sysdeps/generic/framestate.c: New file.
11285 * sysdeps/generic/dwarf2.h: New file.
11286 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11287 * sysdeps/generic/unwind-dw2-fde.c: New file.
11288 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11289 * sysdeps/generic/unwind-dw2-fde.h: New file.
11290 * sysdeps/generic/unwind-dw2.c: New file.
11291 * sysdeps/generic/unwind-pe.h: New file.
11292 * sysdeps/generic/unwind.h: New file.
11293 * sysdeps/hppa/gccframe.h: New file.
11294 * sysdeps/i386/gccframe.h: New file.
11295 * sysdeps/m68k/gccframe.h: New file.
11296 * sysdeps/mips/gccframe.h: New file.
11297 * sysdeps/powerpc/gccframe.h: New file.
11298 * sysdeps/s390/gccframe.h: New file.
11299 * sysdeps/sh/gccframe.h: New file.
11300 * sysdeps/sparc/gccframe.h: New file.
11301 * sysdeps/vax/gccframe.h: New file.
11302 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11303 Set on all architectures except ia64.
11304 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11306 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11307 __deregister_frame_info): Move to elf/Versions.
11308 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11309 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11310 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11311 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11312 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11313 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11314 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11315 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11316 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11317 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11318 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11319 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11320 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11321 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11322 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11323 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11324 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11325 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11327 2001-11-15 Jeff Law <law@redhat.com>
11329 * posix/regex.c (uintptr_t): Do not provide a definition if the
11330 system provided one.
11332 2001-11-13 Roland McGrath <roland@frob.com>
11334 * stdio-common/tmpfile.c: Moved to ...
11335 * sysdeps/generic/tmpfile.c: ... here.
11336 * sysdeps/mach/hurd/tmpfile.c: New file.
11338 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11339 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11340 (fopenport): Define as weak alias.
11342 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11343 * libio/libioP.h: ... to here.
11345 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11347 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11348 program header twice. Construct list with the needed information.
11350 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11352 * po/ca.po: Update from translation team.
11354 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11355 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11356 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11357 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11359 2001-11-10 Andreas Jaeger <aj@suse.de>
11361 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11362 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11363 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11365 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11367 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11369 * elf/dl-load.c (is_dst): New function.
11370 (_dl_dst_count): Use is_dst to check for DST variable.
11371 (_dl_dst_substitute): Likewise.
11373 2001-11-09 Roland McGrath <roland@frob.com>
11375 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11376 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11377 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11378 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11379 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11380 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11381 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11382 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11383 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11384 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11385 * sysdeps/mach/hurd/powerpc/Dist: New file.
11387 * hurd/privports.c (__get_privileged_ports):
11388 Only contact the proc server if necessary for this call.
11389 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11390 Check error return for mach_port_mod_refs.
11392 2001-11-09 Andreas Schwab <schwab@suse.de>
11394 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11396 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11398 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11399 object is always the last in the list.
11400 (_dl_map_object_from_fd): Delete code to remove from object list
11401 when DF_1_NOOPEN is seen. This is done in lose.
11403 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11405 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11407 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11409 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11410 HWCAP_CHECK macro code.
11412 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11413 Now returns MAP_FAILED on error.
11414 * elf/rtld.c: Adjust caller.
11415 * sysdeps/generic/dl-cache.c: Likewise.
11416 * sysdeps/generic/ldsodefs.h: Adjust description.
11418 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11419 (_dl_check_map_versions): Likewise.
11421 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11423 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11424 _dl_signal_error directly, always use lose. Set fd to -1 after
11426 (lose): Don't call close if fd == -1.
11428 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11430 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11431 Also fix typo @code {mbsinit} to @code{mbsinit}.
11433 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11435 * elf/dl-profile.c: Replace state variable with simple flag named
11436 running. Remove commented-out code.
11438 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11439 (_dl_init_paths): Likewise.
11440 (_dl_map_object_from_fd): Likewise.
11441 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11443 2001-11-06 Roland McGrath <roland@frob.com>
11445 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11446 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11448 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11449 sysdeps/powerpc/elf/sysdep.h.
11450 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11452 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11454 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11456 (process_envvars): Some more optimizations.
11457 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11459 * elf/elf.h: Add dynamic tag definitions for prelinking.
11461 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11462 Rewrite code to remove environment varables for SUID binaries.
11463 Small optimization in LD_PROFILE handling.
11464 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11466 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11468 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11470 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11471 strings. Change type of second parameter.
11472 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11475 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11477 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11479 * manual/string.texi: Fix typos.
11480 * manual/examples/argp-ex2.c: Likewise.
11482 2001-11-05 Roland McGrath <roland@frob.com>
11484 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11485 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11486 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11487 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11488 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11489 here, put under [__ELF__].
11491 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11493 * manual/charset.texi: Extensive editing work.
11494 * manual/nss.texi: Likewise.
11495 Changes by Dennis Grace <dgrace@us.ibm.com>.
11497 2001-11-04 Roland McGrath <roland@frob.com>
11499 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11500 parameter to dir_mkfile.
11502 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11504 * string/bits/string2.h (__strndup): If n is smaller than len, set
11506 * string/tester.c (test_strndup): New function.
11509 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11511 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11513 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11514 * scripts/cpp: New file.
11516 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11517 for rtld_search_dirs content. Minor optimizations.
11519 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11521 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11522 avoiding unnecessary duplication.
11524 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11526 * elf/dl-load.c (_dl_map_object): If library was found using
11527 LD_LIBRARY_PATH, don't try RUNPATH list.
11529 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11531 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11532 Correct second argument of register_dump call.
11533 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11536 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11538 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11540 * iconvdata/TESTS: Likewise.
11541 * iconvdata/gconv-modules: Likewise.
11542 * iconvdata/ibm1132.c: New file.
11543 * iconvdata/ibm1132.h: New file.
11544 * iconvdata/ibm1133.c: New file.
11545 * iconvdata/ibm1133.h: New file.
11546 * iconvdata/ibm1162.c: New file.
11547 * iconvdata/ibm1162.h: New file.
11548 * iconvdata/testdata/IBM1132: New file.
11549 * iconvdata/testdata/IBM1132..UTF8: New file.
11550 * iconvdata/testdata/IBM1133: New file.
11551 * iconvdata/testdata/IBM1133..UTF8: New file.
11552 * iconvdata/testdata/IBM1162: New file.
11553 * iconvdata/testdata/IBM1162..UTF8: New file.
11554 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11556 * string/string.h: Fix typo in comment.
11557 * wcsmbs/wchar.h: Likewise.
11559 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11561 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11562 const in type of longopts parameter.
11564 2001-10-29 Andreas Jaeger <aj@suse.de>
11566 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11568 2001-10-29 Kevin Ryde <user42@zip.com.au>
11570 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11571 output, clarify `#' behaviour on 0.
11572 (Floating-Point Conversions): Clarify that %g only uses %e when
11573 the exponent would be greater than 1.
11575 2001-10-28 Roland McGrath <roland@frob.com>
11577 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11578 * sysdeps/mach/powerpc/machine-sp.h: New file.
11579 * sysdeps/mach/powerpc/sysdep.h: New file.
11580 * sysdeps/mach/powerpc/thread_state.h: New file.
11582 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11583 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11584 expect to need the same thing on every platform.
11586 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11587 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11589 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11590 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11591 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11592 Move all these assembly-related definitions to ...
11593 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11595 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11596 by Peter Bruin <pjbruin@dds.nl>.
11598 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11599 packing results for a `poll' call.
11601 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11603 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11605 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11606 bracket expression.
11608 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11610 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11612 2001-10-24 H.J. Lu <hjl@gnu.org>
11614 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11615 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11616 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11618 2001-10-21 Jim Meyering <meyering@lucent.com>
11620 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11621 this code would end up calling gettext even in packages built
11622 with --disable-nls.
11623 * posix/getopt.c (_): Likewise.
11624 * posix/regex.c (_): Likewise.
11626 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11628 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11629 lookup not ip6.int.
11630 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11631 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11633 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11635 * misc/sys/cdefs.h (__attribute_used__): Define.
11636 * elf/rtld.c (_dl_start): Add __attribute_used__.
11637 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11639 2001-10-25 Andreas Schwab <schwab@suse.de>
11641 * stdlib/a64l.c: Expect least significant digit first.
11642 * stdlib/l64a.c: Produce least significant digit first.
11643 * stdlib/Makefile (tests): Add test-a64l.
11644 * stdlib/test-a64l.c: New file.
11645 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11647 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11649 * po/sk.po: Update from translation team.
11651 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11653 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11655 2001-10-18 Andreas Schwab <schwab@suse.de>
11657 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11659 (print_function_ulps): Likewise.
11660 (print_complex_function_ulps): Likewise.
11661 (print_max_error): Likewise.
11662 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11664 2001-10-16 Andreas Schwab <schwab@suse.de>
11666 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11669 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11670 BSD_SETJMP or BSD__SETJMP is defined, resp.
11671 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11672 a tail call to __sigsetjmp that would require extending the
11674 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11675 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11676 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11677 Reported by Jes Sorensen <jes@trained-monkey.org>.
11679 2001-10-16 Andreas Jaeger <aj@suse.de>
11681 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11682 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11683 close PR libc/2589.
11685 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11687 * po/ca.po: New file. Contributed by the translation team.
11689 2001-10-15 Ralf Baechle <ralf@gnu.org>
11691 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11692 a varargs prototype. Remove dependency from kernel header files.
11694 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11695 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11697 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11699 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11700 to generate hexadecimal identifier.
11701 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11703 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11705 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11707 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11709 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11710 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11711 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11713 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11714 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11715 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11716 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11717 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11718 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11720 * timezone/africa: Update from tzdata2001d.
11721 * timezone/asia: Likewise.
11722 * timezone/australasia: Likewise.
11723 * timezone/backward: Likewise.
11724 * timezone/europe: Likewise.
11725 * timezone/leapseconds: Likewise.
11726 * timezone/northamerica: Likewise.
11727 * timezone/southamerica: Likewise.
11728 * timezone/zone.tab: Likewise.
11730 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11732 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11733 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11735 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11737 * elf/elf.h (PT_TLS): New definition.
11739 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11741 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11744 2001-10-07 Roland McGrath <roland@frob.com>
11746 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11748 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11750 * elf/elf.h: Add more ELFOSABI_* constants.
11752 2001-10-04 Ben Collins <bcollins@debian.org>
11754 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11755 decleration of __need_wchar_t.
11757 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11759 * string/bits/string2.h (__strsep_g): Add prototype.
11760 (__strsep): Use it.
11761 * string/Versions (__strsep): Remove.
11762 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11764 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11766 * manua/llio.texi: Clarify file references added by mmap.
11767 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11769 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11771 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11772 Add sc_loadrs and sc_rbs_bas to match current kernel.
11774 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11776 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11778 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11780 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11782 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11783 object has been bumped because of relocation dependency, avoid
11784 duplicates in l_scope.
11785 (show_scope): Fix typos.
11786 * elf/Makefile: Add rules to build and run reldep6.
11787 * elf/reldep6.c: New file.
11788 * elf/reldep6mod0.c: New file.
11789 * elf/reldep6mod1.c: New file.
11790 * elf/reldep6mod2.c: New file.
11791 * elf/reldep6mod3.c: New file.
11792 * elf/reldep6mod4.c: New file.
11794 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11796 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11798 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11799 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11800 for non-lazy binding. Fix .plt[32768+] handling.
11801 (elf_machine_plt_value): Don't add addend.
11802 (elf_machine_rela): Call sparc64_fixup_plt instead of
11803 elf_machine_fixup_plt.
11804 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11805 dynamic linker at 0xfffff800XXXXXXXX.
11807 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11809 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11811 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11813 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11815 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11816 declare __cmsg_data field if its size would be bigger than 0.
11817 (CMSG_DATA): Adjust accordingly.
11818 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11819 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11820 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11821 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11822 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11823 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11824 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11826 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11828 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11829 * iconvdata/testdata/IBM1160: New file.
11830 * iconvdata/testdata/IBM1160..UTF8: New file.
11831 * iconvdata/testdata/IBM1161: New file.
11832 * iconvdata/testdata/IBM1161..UTF8: New file.
11833 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11835 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11837 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11838 UL_SETFSIZE computations better.
11840 * rt/Makefile: Remove use of filter for librt again.
11842 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11843 UL_SETFSIZE computations better.
11845 * string/Versions: Export __strsep for GLIBC_2.2.5.
11846 * string/bits/string2.h: Define all __STRING_INLINE functions if
11847 _FORCE_INLINES is defined.
11848 Use int instead of char of parameter types.
11849 (__strsep): Don't use __strsep_g. Don't define it.
11850 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11851 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11853 (__stpcpy_a_small): Renamed from __stpcpy_small.
11854 (__strcspn_c1): Don't define if _FORCE_INLINES.
11855 (__strspn_c1): Likewise.
11857 2001-09-22 Ben Collins <bcollins@debian.org>
11859 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11860 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11861 * sysdeps/ia64/bits/sigaction.h: Likewise.
11862 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11864 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11866 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11868 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11870 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11872 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11874 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11876 2001-09-20 H.J. Lu <hjl@gnu.org>
11878 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11879 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11881 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11882 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11884 2001-09-20 H.J. Lu <hjl@gnu.org>
11886 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11889 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11891 * nss/getent.c: Accept -s parameter to overwrite rules in
11892 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11894 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11895 with as many ".0" as necessary to form a complete address
11896 inet_network understands.
11898 * nss/getent.c: Various cleanups. Use simpler and fewer function
11901 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11903 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11905 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11907 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11909 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11911 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11912 * iconvdata/ibm1160.c: New file.
11913 * iconvdata/ibm1160.h: New file.
11914 * iconvdata/ibm1161.c: New file.
11915 * iconvdata/ibm1161.h: New file.
11916 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11918 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11920 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11921 difference between base address and first PT_LOAD's virtual address,
11922 not the base address.
11924 2001-09-11 Tom Rix <trix@redhat.com>
11926 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11927 ifdef for __getopt_clean_environment.
11928 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11930 2001-09-22 Andreas Jaeger <aj@suse.de>
11932 * elf/reldep4.c (main): Add proper prototype to fix warning.
11934 * elf/reldep5.c (main): Remove unused variable.
11936 * math/math_private.h: Add prototypes.
11938 2001-09-21 Andreas Jaeger <aj@suse.de>
11940 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11941 * sysdeps/x86_64/Dist: New file.
11942 * sysdeps/x86_64/soft-fp/Dist: New file.
11944 * sysdeps/gnu/Dist: Remove eval.c.
11946 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11948 * malloc/memusage.c (realloc): Don't count already allocated
11949 memory in the sums.
11950 (me): Always use dlsym() to find the real implementations.
11952 * malloc/memusage.sh: Make -n option actually do something.
11954 2001-09-20 Andreas Jaeger <aj@suse.de>
11956 * elf/elf.h (R_390_NUM): Correct value.
11958 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11961 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11962 for x86-64, install x86-64 into */lib64.
11964 * shlib-versions: Add x86-64.
11966 * elf/elf.h: Add x86-64 relocations.
11968 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11970 * po/fr.po: Update from translation team.
11972 2001-09-19 Andreas Jaeger <aj@suse.de>
11974 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11975 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11976 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11977 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11978 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11979 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11980 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11981 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11982 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11983 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11984 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11985 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11986 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11987 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11988 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11989 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11990 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11991 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11992 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11993 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11994 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11995 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11996 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11997 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11998 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11999 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12000 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12001 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12002 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12003 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12004 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12005 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12006 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12007 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12008 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12009 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12010 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12011 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12012 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12013 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12014 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12015 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12016 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12017 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12018 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12019 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12020 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12021 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12022 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12023 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12024 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12025 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12026 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12027 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12028 * sysdeps/unix/x86_64/sysdep.S: New file.
12029 * sysdeps/unix/x86_64/sysdep.h: New file.
12030 * sysdeps/x86_64/Implies: New file.
12031 * sysdeps/x86_64/Makefile: New file.
12032 * sysdeps/x86_64/Versions: New file.
12033 * sysdeps/x86_64/__longjmp.S: New file.
12034 * sysdeps/x86_64/abort-instr.h: New file.
12035 * sysdeps/x86_64/atomicity.h: New file.
12036 * sysdeps/x86_64/bits/endian.h: New file.
12037 * sysdeps/x86_64/bits/setjmp.h: New file.
12038 * sysdeps/x86_64/bits/string.h: New file.
12039 * sysdeps/x86_64/bp-asm.h: New file.
12040 * sysdeps/x86_64/bsd-_setjmp.S: New file.
12041 * sysdeps/x86_64/bsd-setjmp.S: New file.
12042 * sysdeps/x86_64/dl-machine.h: New file.
12043 * sysdeps/x86_64/elf/initfini.c: New file.
12044 * sysdeps/x86_64/elf/start.S: New file.
12045 * sysdeps/x86_64/ffs.c: New file.
12046 * sysdeps/x86_64/ffsll.c: New file.
12047 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12048 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12049 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12050 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12051 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12052 * sysdeps/x86_64/fpu/e_expl.c: New file.
12053 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12054 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12055 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12056 * sysdeps/x86_64/fpu/e_logl.S: New file.
12057 * sysdeps/x86_64/fpu/e_powl.S: New file.
12058 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12059 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12060 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12061 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12062 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12063 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12064 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12065 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12066 * sysdeps/x86_64/fpu/fegetround.c: New file.
12067 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12068 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12069 * sysdeps/x86_64/fpu/fesetround.c: New file.
12070 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12071 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12072 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12073 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12074 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12075 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12076 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12077 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12078 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12079 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12080 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12081 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12082 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12083 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12084 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12085 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12086 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12087 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12088 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12089 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12090 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12091 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12092 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12093 * sysdeps/x86_64/gmp-mparam.h: New file.
12094 * sysdeps/x86_64/hp-timing.c: New file.
12095 * sysdeps/x86_64/hp-timing.h: New file.
12096 * sysdeps/x86_64/htonl.S: New file.
12097 * sysdeps/x86_64/memusage.h: New file.
12098 * sysdeps/x86_64/setjmp.S: New file.
12099 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12100 * sysdeps/x86_64/stackinfo.h: New file.
12101 * sysdeps/x86_64/sysdep.h: New file.
12102 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12104 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12107 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12109 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12110 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12112 2001-09-18 Andreas Schwab <schwab@suse.de>
12114 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12115 list, now that l_scope is a pointer.
12117 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12120 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12122 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12123 (elf_machine_rela_relative): Add a missing declaration.
12125 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12127 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12128 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12129 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12130 ldd-rewrite scripts.
12132 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12134 * elf/ldd.bash.in: Update copyright message.
12136 2001-09-17 H.J. Lu <hjl@gnu.org>
12138 * hurd/hurdmalloc.c (bcopy): Removed.
12139 (realloc): Replace bcopy with memcpy.
12140 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12141 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12142 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12144 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12145 (gethostbyaddr): Likewise.
12146 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12148 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12150 * sysdeps/gnu/eval.c: Removed.
12152 2001-09-18 Andreas Jaeger <aj@suse.de>
12154 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12155 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12157 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12158 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12160 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12161 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12163 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12165 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12168 2001-09-14 H.J. Lu <hjl@gnu.org>
12170 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12172 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12174 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12175 Patch by Florian La Roche <laroche@redhat.com>.
12177 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12179 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12182 2001-09-14 Andreas Schwab <schwab@suse.de>
12184 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12185 Sumner <bls@sgi.com>.
12186 * posix/execlp.c: Likewise.
12188 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12190 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12191 is already found earlier in the search scope.
12193 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12195 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12198 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12200 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12202 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12204 * config.h.in: Enforce optimization to be used.
12205 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12206 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12207 * posix/Makefile (annexc-CFLAGS): Define to -O.
12208 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12210 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12212 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12213 Patch by Stephan Kulow.
12215 2001-09-08 Ben Collins <bcollins@debian.org>
12217 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12218 usage of RESOLVE() (r_type, not reloc->r_type).
12220 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12222 * elf/dl-object.c: Avoid allocating extra memory block for name.
12223 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12224 allocated separately.
12225 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12227 2001-09-08 H.J. Lu <hjl@gnu.org>
12229 * po/zh_TW.po: Fix a typo.
12231 2001-09-07 Tom Rix <trix@redhat.com>
12233 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12235 2001-08-26 Tom Rix <trix@redhat.com>
12237 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12238 command line options.
12239 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12240 * sysdeps/unix/sysv/aix/start.c: Removed.
12241 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12242 * sysdeps/unix/sysv/aix/init-first.c: New file.
12243 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12245 2001-09-08 Ben Collins <bcollins@debian.org>
12247 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12248 * sysdeps/generic/dl-machine.h: Likewise.
12249 * sysdeps/hppa/dl-fptr.c: Likewise.
12250 * sysdeps/ia64/dl-fptr.c: Likewise.
12251 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12252 * sysdeps/mips/dl-machine.h: Likewise.
12253 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12254 * sysdeps/powerpc/dl-machine.c: Likewise.
12256 2001-09-07 Ben Collins <bcollins@debian.org>
12258 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12260 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12262 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12264 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12265 dependencies if necessary.
12267 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12268 loaded directly) determine length if l_initfini list by iterating
12269 over its elements. Minor optimizations.
12270 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12271 for dependency objects.
12272 If object was already loaded check whether any of the dependencies
12273 is already on the relocation dependency list. If yes, remove the
12274 latter. Minor optimizations.
12275 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12276 maps here. Search l_initfini list only if the object was loaded
12277 directly and not only as a dependency.
12278 (_dl_lookup_symbol): Add relocation dependency also if object
12279 is not in global scope. Remove test for self-reference here.
12280 (_dl_lookup_versioned_symbol): Likewise.
12281 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12282 element of first name record.
12283 * elf/loadtest.c: Add some more test to recognize early if an object
12285 * elf/Makefile: Add rules to build and run reldep5.
12286 * elf/reldep5.c: New file.
12287 * elf/reldepmod5.c: New file.
12288 * elf/reldepmod6.c: New file.
12290 * elf/reldep2.c: Fix typo.
12292 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12294 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12295 elements. Change l_scope to be a pointer only.
12296 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12297 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12298 here add searchlist of newly open file to the dependency's scope.
12299 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12300 only searchlist from its scope. Free own scope array if necessary.
12301 * elf/Makefile (tests): Add dblload and dblunload now.
12303 2001-09-06 Andreas Jaeger <aj@suse.de>
12305 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12308 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12310 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12312 * elf/dblload.c: New file.
12313 * elf/dblloadmod1.c: New file.
12314 * elf/dblloadmod2.c: New file.
12315 * elf/dblloadmod3.c: New file.
12316 * elf/dblunload.c: New file.
12318 2001-09-04 Richard Henderson <rth@redhat.com>
12320 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12321 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12323 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12325 Correct very misleading message for error in failed runtime relocation.
12326 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12327 place of the error.
12328 (_dl_signal_cerror): Likewise.
12329 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12330 * elf/dl-close.c: Likewise.
12331 * elf/dl-deps.c: Likewise.
12332 * elf/dl-load.c: Likewise.
12333 * elf/dl-lookup.c: Likewise.
12334 * elf/dl-open.c: Likewise.
12335 * elf/dl-reloc.c: Likewise.
12336 * elf/dl-sym.c: Likewise.
12337 * elf/dl-version.c: Likewise.
12338 * sysdeps/generic/dl-sysdep.c: Likewise.
12340 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12342 * iconv/strtab.c (strtabinit): Initialize null Strent.
12343 (newstring): Move len == 0 handling...
12344 (strtabadd): ...here.
12345 If len == 1, return null Strent.
12346 When inserting a suffix of an existing string, check if
12347 it is not equal to some suffix already recorded.
12348 Copy left and right members over if adding longer string.
12350 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12352 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12354 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12355 (__syscall_gethostname): Add prototype.
12357 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12359 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12361 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12363 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12365 2001-08-27 Roland McGrath <roland@frob.com>
12367 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12368 short, copy that much into NAME anyway before returning error.
12370 2001-09-01 Richard Henderson <rth@redhat.com>
12372 * sysdeps/alpha/elf/Dist: Remove file.
12373 * sysdeps/alpha/elf/Makefile: Remove file.
12374 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12375 * sysdeps/alpha/elf/crtend.S: Remove file.
12376 * sysdeps/alpha/elf/initfini.c: New file.
12378 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12380 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12381 * iconv/tst-iconv3.c: Likewise.
12383 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12385 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12387 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12389 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12391 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12392 * iconv/iconv_prog.c (insert_cache): New function.
12393 (print_known_names): If cache is used call insert_cache to use the
12394 information from the cache [PR libc/2509].
12396 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12398 * time/strptime.c (strptime_internal): Recognize 'l' format and
12399 handle it like 'I' for symmetry with strftime.
12401 2001-08-31 Richard Henderson <rth@redhat.com>
12403 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12404 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12405 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12406 (print_statistics): Make scalar unsigned long long.
12407 * sysdeps/alpha/hp-timing.h: New file.
12409 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12411 * stdio-common/perror.c (perror): Save errno early, pass it
12412 down to perror_internal.
12413 (perror_internal): Add errnum argument.
12415 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12417 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12418 Don't add old memory content for R_ALPHA_REFQUAD.
12420 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12422 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12425 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12426 instead of open, __close instead of close, __getpagesize instead
12429 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12430 instead of strnlen.
12431 * include/string.h (strndupa): Redefine here to use __strnlen
12432 instead of strnlen.
12433 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12435 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12438 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12440 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12441 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12442 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12443 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12444 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12445 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12446 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12448 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12450 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12452 2001-08-30 Andreas Jaeger <aj@suse.de>
12454 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12455 contributed Stephen L Moshier.
12457 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12459 * sunrpc/etc.rpc (sgi_fam): Add.
12461 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12463 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12465 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12467 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12468 first is from a previous call.
12469 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12471 2001-08-29 Andreas Schwab <schwab@suse.de>
12473 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12475 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12477 * config.make.in (INSTALL_SCRIPT): Define.
12478 * Makeconfig (INSTALL_SCRIPT): Define.
12479 * Makerules (do-install-script): New macro to install scripts using
12481 (install-bin-script): New rule to install scripts with
12483 (install-bin-script-nosubdir): New rule.
12484 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12485 (distinfo-vars): Add $(install-bin-script).
12486 * Rules (others): Likewise.
12487 * Makefile (glibcbug): Install with install-bin-script.
12488 * debug/Makefile (xtrace): Likewise.
12489 (catchsegv): Likewise.
12490 * elf/Makefile (ldd): Likewise.
12491 * malloc/Makefile (mtrace): Likewise.
12492 * timezone/Makefile (tzselect): Likewise.
12494 2001-08-29 H.J. Lu <hjl@gnu.org>
12496 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12497 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12498 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12500 2001-08-29 Andreas Schwab <schwab@suse.de>
12502 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12504 2001-08-28 H.J. Lu <hjl@gnu.org>
12506 * Makeconfig (combreloc-LDFLAGS): New variable.
12507 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12508 * config.make.in (have-z-combreloc): New variable.
12509 * configure.in: Substitute libc_cv_z_combreloc.
12511 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12513 * po/sv.po: Update from translation team.
12514 * po/fr.po: Likewise.
12515 * po/da.po: Likewise.
12517 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12519 * Makerules: Fix a typo: MD% -> MD5.
12521 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12523 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12524 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12526 2001-08-28 Andreas Jaeger <aj@suse.de>
12528 * manual/libc-texinfo.sh: Add entry about free manuals.
12530 * manual/contrib.texi (Contributors): Fix cross reference.
12532 * manual/libc.texinfo (Copying): Include freemanuals.
12534 * manual/Makefile (appendices): Add freemanuals.
12536 * manual/freemanuals.texi: New file.
12537 Patch by Brian Youmans <3diff@gnu.org>.
12539 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12542 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12543 table on separate page.
12544 Patch by Brian Youmans <3diff@gnu.org>.
12546 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12548 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12549 the connection went down after we first used it try to connect
12550 again and resend the message before printing to the console.
12551 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12553 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12555 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12556 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12559 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12561 * iconv/strtab.c (searchstring): Use correct length for comparison.
12562 (strtabadd): Account total size correct if new string has old string as
12565 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12567 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12569 2001-08-27 Andreas Jaeger <aj@suse.de>
12571 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12573 * math/libm-test.inc (j0_test): Add extra tests.
12574 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12575 not x, in Hankel approximation.
12576 Patches by Stephen L Moshier.
12578 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12580 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12583 * configure.in: Fix test for .rela.dyn section.
12585 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12587 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12589 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12590 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12591 Pass type_class to _dl_lookup_*.
12592 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12593 Pass around just type_class instead of noexec, noplt pair.
12594 (_dl_lookup_versioned_symbol): Likewise.
12595 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12596 noexec, noplt pair.
12597 (_dl_lookup_versioned_symbol_skip): Likewise.
12598 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12599 * elf/do-lookup.h (do_lookup): Likewise.
12600 * include/link.h (struct link_map): Replace noexec and noplt fields
12601 in l_lookup_cache with type_class field.
12602 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12603 ELF_RTYPE_CLASS_COPY): Define.
12604 Adjust prototypes for _dl_lookup_symbol and
12605 _dl_lookup_versioned_symbol.
12606 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12607 elf_machine_lookup_noexec_p): Remove.
12608 (elf_machine_type_class): Define.
12609 * sysdeps/arm/dl-machine.h: Likewise.
12610 * sysdeps/hppa/dl-machine.h: Likewise.
12611 * sysdeps/cris/dl-machine.h: Likewise.
12612 * sysdeps/i386/dl-machine.h: Likewise.
12613 * sysdeps/ia64/dl-machine.h: Likewise.
12614 * sysdeps/m68k/dl-machine.h: Likewise.
12615 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12616 * sysdeps/mips/dl-machine.h: Likewise.
12617 * sysdeps/powerpc/dl-machine.h: Likewise.
12618 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12619 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12620 * sysdeps/sh/dl-machine.h: Likewise.
12621 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12622 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12624 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12626 * manual/message.texi (Advanced gettext functions): Change
12627 description of plural forms for Slovak.
12628 Reported by Marcel Telka <marcel@telka.sk>.
12630 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12631 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12633 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12635 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12636 typo. Patch by Florian La Roche <laroche@redhat.com>.
12638 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12640 * include/link.h (struct link_map): Add l_lookup_cache element.
12641 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12642 (RESOLVE_MAP): Likewise.
12643 (_dl_relocate_object): Remove cache initialization.
12644 * elf/dl-lookup.c: Rip out cache handling code.
12645 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12648 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12649 remove some __builtin_expect.
12650 (_dl_lookup_versioned_symbol): Likewise.
12652 * config.h.in: Add HAVE_Z_COMBRELOC.
12653 * configure.in: Add test for -z combreloc.
12655 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12656 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12657 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12658 case to almost no code.
12660 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12662 * po/tr.po: Update from translation team.
12664 2001-08-24 Andreas Jaeger <aj@suse.de>
12666 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12669 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12671 * elf/rtld.c (print_statistics): Printf % after percent values.
12672 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12674 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12675 don't have to compute the hash value and initialize current_value.
12676 Move reference_name variable to where it is needed.
12677 (_dl_lookup_versioned_symbol): Likewise.
12679 2001-08-24 Roland McGrath <roland@frob.com>
12681 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12682 Just test that strerror returns non-null for a few errno codes.
12684 2001-08-23 Roland McGrath <roland@frob.com>
12686 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12687 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12689 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12691 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12694 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12696 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12699 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12700 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12702 * elf/rtld.c: Include <sys/param.h>.
12703 * elf/dl-reloc.c: Likewise.
12705 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12707 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12708 empty to prevent junk from being generated.
12709 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12711 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12713 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12714 records. Rename endrel to relative, initialize it to r, and use it
12715 in elf_machine_rel_relative calls. Point r after relative relocs.
12717 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12719 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12722 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12724 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12725 necessary. Undefine newly defined macros at the end.
12726 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12727 Rename from elf_machine_rel_relative.
12728 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12729 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12730 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12731 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12733 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12735 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12736 Fix argument types.
12737 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12738 Fix argument types.
12739 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12740 Likewise. Fix argument types.
12741 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12742 Likewise. Fix argument types.
12743 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12744 Fix argument types.
12745 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12746 ElfW(Rel) in argument.
12747 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12750 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12752 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12754 2001-08-24 Andreas Jaeger <aj@suse.de>
12756 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12757 Stephen L Moshier <moshier@mediaone.net>.
12759 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12761 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12762 first if RELCOUNT is set.
12764 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12765 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12766 elf_machine_rel_relative.
12767 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12768 Minor optimizations.
12769 * sysdeps/arm/dl-machine.h: Likewise.
12770 * sysdeps/cris/dl-machine.h: Likewise.
12771 * sysdeps/hppa/dl-machine.h: Likewise.
12772 * sysdeps/i386/dl-machine.h: Likewise.
12773 * sysdeps/ia64/dl-machine.h: Likewise.
12774 * sysdeps/m68k/dl-machine.h: Likewise.
12775 * sysdeps/mips/dl-machine.h: Likewise.
12776 * sysdeps/powerpc/dl-machine.h: Likewise.
12777 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12778 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12779 * sysdeps/sh/dl-machine.h: Likewise.
12780 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12781 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12783 2001-08-23 Roland McGrath <roland@frob.com>
12785 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12787 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12788 sysdeps/mach version. Implement counting ("recursive") mutexes
12789 on top of cthreads mutexes.
12790 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12792 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12793 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12794 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12795 __libc_clean_end): Define these to call the cleanup function after
12796 normal exit when they're supposed to.
12798 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12799 Take new first arg DOIT, a boolean saying whether to really install
12800 any cleanup handler.
12801 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12802 (__libc_cleanup_end): Likewise.
12803 * sysdeps/generic/bits/libc-lock.h: Same changes.
12804 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12805 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12806 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12808 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12809 * sysdeps/generic/bits/stdio-lock.h
12810 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12812 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12814 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12816 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12818 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12820 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12822 (_dl_lookup_versioned_symbol): Likewise.
12823 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12825 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12826 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12827 (lookup_cache, lookup_cache_versioned): Add declarations.
12829 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12831 * stdlib/tst-random.c (main): Swap parameters in fail call.
12832 Patch by Pete Bevin <pete@petebevin.com>.
12834 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12836 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12838 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12840 * malloc/obstack.c: Indent preprocessor directives.
12841 Patch by Jim Meyering <meyering@ascend.com>.
12843 * po/ja.po: Update from translation team.
12845 2001-08-23 Roland McGrath <roland@frob.com>
12847 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12849 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12850 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12852 2001-08-22 Roland McGrath <roland@frob.com>
12854 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12855 __libc_lock_define_recursive.
12856 * elf/dl-open.c: Don't declare it here any more.
12857 * elf/dl-close.c: Likewise.
12858 * elf/dl-lookup.c: Likewise.
12859 * elf/dl-iteratephdr.c: Likewise.
12860 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12861 __libc_lock_unlock_recursive.
12862 * elf/dl-close.c (_dl_close): Likewise
12863 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12864 * elf/dl-open.c (_dl_open): Likewise
12866 * sysdeps/generic/bits/libc-lock.h
12867 (__libc_lock_define_recursive): New macro.
12868 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12869 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12870 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12872 * conform/conformtest.pl (checknamespace): Sort the output list.
12874 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12875 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12876 definitions conditional on [__USE_XOPEN].
12878 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12879 these unconditionally, not only use [__USE_BSD], so as to match
12880 the sysdeps/unix/sysv/linux files.
12882 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12884 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12887 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12890 2001-08-22 Roland McGrath <roland@frob.com>
12892 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12893 conditionalization of sa_handler/sa_sigaction member types to
12894 match the sysdeps/unix/sysv/linux file.
12896 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12898 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12899 symbol sizes a bit better.
12901 * sysdeps/ia64/strncpy.S: Complete rewrite.
12902 Contributed by Jakub Jelinek <jakub@redhat.com>.
12904 * string/stratcliff.c (main): Add strncpy test.
12906 2001-08-22 Roland McGrath <roland@frob.com>
12908 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12909 and don't declare unsetenv or _environ directly.
12910 (unsetenv): Return int, not void. Use __environ instead of _environ.
12912 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12914 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12915 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12916 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12917 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12918 test for cmsg struct size.
12920 2001-04-23 Paul Eggert <eggert@twinsun.com>
12922 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12923 Rename __argc to ___argc in prototypes to avoid compatibility
12924 problems with systems that reserve the identifier "__argc".
12925 Similarly for __argv.
12927 2001-08-21 Roland McGrath <roland@frob.com>
12929 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12931 * mach/Makefile (tests): Removed.
12932 * mach/hello.c: File removed.
12934 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12936 * po/sv.po: Update from translation team.
12938 * stdio-common/vfscanf.c: Fix handling of %l[].
12939 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12941 * libio/Makefile (tests): Add tst-sscanf.
12942 * libio/tst-sscanf.c: New file.
12944 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12945 * malloc/mtrace.c (tr_where): dli_sname always points to a
12946 non-empty string if != NULL.
12947 Reported by Tim Janik <timj@gtk.org>.
12949 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12951 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12952 buf. Free resources on failure.
12953 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12954 (makefd_xprt): Likewise.
12955 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12956 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12957 * sunrpc/auth_unix.c (authunix_create): Likewise.
12959 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12961 * string/strnlen.c: Remove.
12962 * sysdeps/generic/strnlen.c: New file.
12963 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12965 2001-08-21 Roland McGrath <roland@frob.com>
12967 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12968 as a macro, not an extern inline function.
12970 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12971 * Versions.def (libc): Add GLIBC_2.2.5 set.
12972 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12973 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12975 2001-08-20 Roland McGrath <roland@frob.com>
12977 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12978 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12980 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12982 * string/bits/string2.h: Remove strnlen optimization here.
12983 * sysdeps/i386/i486/bits/string.h: Add it here.
12985 2001-08-21 Wolfram Gloger <wg@malloc.de>
12987 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12989 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12991 * po/gl.po: Update from translation team.
12993 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12995 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12996 * misc/err.c (convert_and_print): Likewise.
12998 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13001 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13003 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13004 change of the gregset_t type.
13005 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13007 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
13009 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13011 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13013 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13015 * string/strnlen.c: Fix the implementation. We cannot use memchr.
13017 2001-08-18 Mark Kettenis <kettenis@gnu.org>
13019 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13020 before calling the cthreads initialization code.
13022 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13024 * argp/argp-help.c: Fix two problems introduced in last change.
13026 * include/dirent.h: Include <dirstream.h> first.
13028 2001-08-19 Ulrich Drepper <drepper@redhat.com>
13030 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13032 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13033 * sunrpc/xdr_rec.c: Likewise.
13034 * sunrpc/xdr_mem.c: Likewise.
13035 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13036 * sunrpc/rpc_cmsg.c: Likewise.
13037 * sunrpc/getrpcport.c (getrpcport): Likewise.
13038 * sunrpc/clnt_simp.c (callrpc): Likewise.
13039 * sunrpc/clnt_gen.c (clnt_create): Likewise.
13040 * string/envz.c: Likewise.
13042 * po/ko.po: Update from translation team.
13044 * argp/argp-help.c: Handle wide oriented stderr stream.
13046 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13048 * sysdeps/generic/strtol.c: Little optimizations. Add some
13051 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13053 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13054 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13055 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13057 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13059 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13061 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13063 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13064 wchar_t for function declarations and defintions.
13066 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13067 Define suseconds_t if it hasn't happened yet.
13069 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13071 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13073 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13076 * conform/data/stddef.h-data: Remove wint_t.
13078 * conform/conformtest.pl: Change namespace test to take #undef
13079 lines into account.
13081 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13083 * conform/data/sys/socket.h-data: Add sockatmark.
13085 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13087 * io/fts.c: Update from recent BSD source.
13089 2001-08-17 Roland McGrath <roland@frob.com>
13091 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13092 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13095 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13097 * locale/duplocale.c (__duplocale): Also initialize the special
13098 __ctype_* elements.
13100 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13102 2001-08-17 Andreas Jaeger <aj@suse.de>
13104 * misc/getpass.c: Include wchar.h for prototypes.
13105 * malloc/obstack.c: Likewise.
13107 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13109 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13111 * wcsmbs/wcscoll.c: Also define __wcscoll.
13112 * include/wchar.h: Declare __wcscoll.
13114 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13115 * libio/vwprintf.c: Likewise.
13116 * libio/wprintf.c: Likewise.
13118 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13120 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13122 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13123 instead of mbrtowc.
13124 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13125 wcslen, and __wcscoll instead of wcscoll.
13127 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13129 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13130 __getuid instead of getuid.
13132 * stdio-common/perror.c (perror): Use __close instead of close.
13133 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13134 * libio/freopen.c (freopen): Likewise.
13135 * libio/freopen64.c (freopen64): Likewise.
13137 * libio/tst-ungetwc2.c (main): Define str const.
13139 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13140 * libio/fwprintf.c: Also define __fwprintf.
13141 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13142 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13143 * assert/assert-perr.c: Likewise.
13144 * assert/assert.c: Likewise.
13145 * gmon/gmon.c: Likewise.
13146 * inet/rcmd.c: Likewise.
13147 * malloc/obstack.c: Likewise.
13148 * misc/err.c: Likewise.
13149 * misc/error.c: Likewise.
13150 * misc/getpass.c: Likewise.
13151 * posix/getopt.c: Likewise.
13152 * resolv/res_hconf.c: Likewise.
13153 * stdio-common/perror.c: Likewise.
13154 * stdio-common/psignal.c: Likewise.
13155 * stdlib/fmtmsg.c: Likewise.
13156 * sunrpc/auth_unix.c: Likewise.
13157 * sunrpc/clnt_perr.c: Likewise.
13158 * sunrpc/clnt_tcp.c: Likewise.
13159 * sunrpc/clnt_udp.c: Likewise.
13160 * sunrpc/clnt_unix.c: Likewise.
13161 * sunrpc/svc_simple.c: Likewise.
13162 * sunrpc/svc_tcp.c: Likewise.
13163 * sunrpc/svc_udp.c: Likewise.
13164 * sunrpc/svc_unix.c: Likewise.
13165 * sunrpc/xdr.c: Likewise.
13166 * sunrpc/xdr_array.c: Likewise.
13167 * sunrpc/xdr_rec.c: Likewise.
13168 * sunrpc/xdr_ref.c: Likewise.
13169 * sysdeps/generic/wordexp.c: Likewise.
13171 * po/it.po: Update from translation team.
13173 * misc/err.c: Handle wide oriented stderr stream.
13175 2001-08-14 Tom Rix <trix@redhat.com>
13177 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13178 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13180 2001-08-13 Tom Rix <trix@redhat.com>
13182 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13183 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13186 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13188 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13189 Store the access registers to the ucontext structure.
13190 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13193 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13194 Load the access registers from the ucontext structure.
13195 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13198 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13199 offsets to the new ucontext layout.
13200 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13202 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13203 of the ucontext structure.
13204 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13206 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13208 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13209 (error_at_line): Likewise.
13211 * stdio-common/perror.c (perror): Implement according to standard.
13212 The stream orientation must not be changed if the stream was not
13213 oriented before the call.
13214 * stdio-common/Makefile (tests): Add tst-perror.
13215 * stdio-common/tst-perror.c: New file.
13218 See ChangeLog.12 for earlier changes.