1 2002-09-22 Roland McGrath <roland@frob.com>
3 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
5 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
7 2002-09-22 Andreas Schwab <schwab@suse.de>
9 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
11 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
12 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
15 2002-09-21 Roland McGrath <roland@redhat.com>
17 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
18 Correct the value so it covers all platforms, and is computed
19 from _DL_PLATFORMS_COUNT rather than hard-wired.
20 From Andrew Suffield <asuffield@debian.org>.
22 2002-09-20 Ulrich Drepper <drepper@redhat.com>
24 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
25 locking when using mount tab file.
26 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
27 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
28 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
30 * elf/dl-init.c (_dl_init): Fix test of the size of the
31 preinit_array section.
32 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
33 Reported by Brian Cabral <cabral@ikuni.com>.
35 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
37 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
38 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
39 specific macros copied from sysdeps/powerpc/sysdep.h.
40 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
42 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
43 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
44 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
46 2002-09-19 Bruno Haible <bruno@clisp.org>
48 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
51 2002-09-17 Bruno Haible <bruno@clisp.org>
53 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
54 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
55 also on platforms with !HAVE_UT_TYPE.
56 (proc_utmp_eq): Remove function.
57 (internal_getut_r, pututline_file): Call __utmp_equal instead.
59 2002-09-20 Bruno Haible <bruno@clisp.org>
61 * abi-tags: Add support for FreeBSD with ABI OS value 3.
62 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
64 2002-09-20 Roland McGrath <roland@redhat.com>
66 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
67 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
69 * sysdeps/x86_64/gmp-mparam.h: File removed.
70 * sysdeps/sparc/gmp-mparam.h: File removed.
71 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
72 * sysdeps/ia64/gmp-mparam.h: File removed.
73 * sysdeps/alpha/gmp-mparam.h: File removed.
75 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
77 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
78 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
79 casts. Align __libc_stack_end to 8 bytes.
81 2002-09-20 Roland McGrath <roland@redhat.com>
83 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
84 instead of asm for lrintf, __lrintf aliases.
86 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
87 int array for 32-/64-bit compatibility.
88 From Steven Munroe <sjmunroe@us.ibm.com>.
90 2002-09-17 Bruno Haible <bruno@clisp.org>
92 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
93 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
94 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
95 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
96 for iterating through the list of interfaces.
97 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
99 2002-09-20 Roland McGrath <roland@redhat.com>
101 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
102 Reported by Bruno Haible <bruno@clisp.org>.
104 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
106 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
107 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
108 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
110 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
112 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
113 * sysdeps/powerpc/bits/wordsize.h: New file.
114 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
115 array to int array for 32-/64-bit compatibility.
117 2002-09-20 Roland McGrath <roland@redhat.com>
119 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
121 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
122 Reported by Bruno Haible <bruno@clisp.org>.
124 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
125 before doubling RQ_LEN.
126 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
127 Reported by Bruno Haible <bruno@clisp.org>.
129 2002-09-18 Bruno Haible <bruno@clisp.org>
131 * login/logout.c (logout): Don't assume ut_time has the same size as
133 * login/logwtmp.c (logwtmp): Likewise.
135 * sysdeps/pthread/configure: New file, moved here from
136 linuxthreads/sysdeps/unix/sysv/linux/configure.
138 2002-09-19 Ulrich Drepper <drepper@redhat.com>
140 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
141 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
142 Reported by Glen Nakamura <glen@imodulo.com>.
144 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
146 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
147 thread's sigstate data structure if it has been allocated.
149 2002-09-19 Roland McGrath <roland@redhat.com>
151 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
152 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
154 2002-09-18 Ulrich Drepper <drepper@redhat.com>
156 * version.h (VERSION): Bump to 2.2.94.
158 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
159 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
160 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
163 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
165 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
167 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
171 2002-09-19 Jakub Jelinek <jakub@redhat.com>
173 * sysdeps/wordsize-32/Makefile: New file.
174 * sysdeps/arm/Makefile: Removed.
175 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
176 Don't add divdi3 here.
177 * sysdeps/m68k/Makefile: Likewise.
178 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
179 * sysdeps/sh/Makefile: Likewise.
180 * sysdeps/s390/s390-32/Makefile: Likewise.
182 2002-09-18 Roland McGrath <roland@redhat.com>
184 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
185 the __ctype_* compat symbols, so the relocs generated bind to the
186 right versioned global symbol in the shared object.
188 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
189 from the value taken from the DT_VERSYM table.
190 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
191 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
192 (RESOLVE_GOTSYM): Likewise.
194 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
196 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
197 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
198 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
199 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
200 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
201 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
202 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
203 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
205 2002-09-18 Ulrich Drepper <drepper@redhat.com>
207 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
209 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
210 define sigaction and __sigaction as wrappers around
211 __libc_sigaction which rejects changing SIGCANCEL.
212 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
214 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
217 * signal/allocrtsig.c: Move to...
218 * sysdeps/generic/allocrtsig.c: ...here. New file.
220 2002-09-17 Jakub Jelinek <jakub@redhat.com>
222 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
224 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
225 R_386_TLS_LE): Define.
226 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
228 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
229 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
230 (elf_machine_rel): Handle R_386_TLS_TPOFF.
231 (elf_machine_rela): Likewise.
232 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
234 2002-09-17 Roland McGrath <roland@redhat.com>
236 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
237 file-specific variable override so it compiles properly when using
240 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
242 Ported to PowerPC64 running Linux.
243 * sysdeps/powerpc/powerpc64/Dist: New file.
244 * sysdeps/powerpc/powerpc64/Implies: New file.
245 * sysdeps/powerpc/powerpc64/Makefile: New file.
246 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
247 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
248 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
249 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
250 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
251 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
252 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
253 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
254 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
255 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
256 * sysdeps/powerpc/powerpc64/memset.S: New file.
257 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
258 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
259 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
260 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
261 * sysdeps/powerpc/powerpc64/strchr.S: New file.
262 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
263 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
264 * sysdeps/powerpc/powerpc64/strlen.S: New file.
265 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
266 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
267 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
268 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
277 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
278 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
279 various gcc versions. Dot names required for powerpc64.
280 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
281 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
282 C_SYMBOL_DOT_NAME(alias).
283 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
284 original strong_alias macro.
285 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
286 C_SYMBOL_DOT_NAME(alias).
287 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
288 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
290 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
291 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
292 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
293 (hidden_def): Append hidden_dot_def1 macro to definition.
294 (hidden_ver): Append hidden_dot_def1 macro to definition.
295 (hidden_data_def): New macro. Same as original hidden_def macro.
296 (hidden_data_ver): New macro. Same as original hidden_ver macro.
297 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
298 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
299 (hidden_weak): Append hidden_dot_weak1 macro to definition.
300 (hidden_data_weak): New macro. Same as original hidden_weak macro.
301 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
302 Otherwise defined as __GI_name.
303 (libc_hidden_data_def): New macro. Use hidden_data_def.
304 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
305 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
306 (rtld_hidden_data_def): New macro. Use hidden_data_def.
307 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
308 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
309 (libm_hidden_data_def): New macro. Use hidden_data_def.
310 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
311 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
312 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
314 2002-09-17 Ulrich Drepper <drepper@redhat.com>
316 * include/libc-symbols.h: Change *hidden_proto macros to accept
317 option parameters and pass those to the attribute definition.
318 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
320 * include/unistd.h: Declare __libc_pause.
322 * include/sys/socket.h: Declare __libc_send, __libc_recv,
323 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
325 * include/unistd.h: Declare __libc_fork.
327 2002-09-17 Roland McGrath <roland@redhat.com>
329 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
330 (passwd2des): Define it as an alias.
331 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
333 2002-09-12 Bruno Haible <bruno@clisp.org>
335 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
336 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
338 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
339 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
341 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
343 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
344 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
345 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
346 PowerPC64 does not have separate 64-bit syscalls.
348 2002-09-16 Roland McGrath <roland@redhat.com>
350 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
355 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
357 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
358 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
359 * sysdeps/generic/_exit.c: Likewise.
361 2002-09-12 Jakub Jelinek <jakub@redhat.com>
363 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
365 * elf/rtld.c (struct dl_start_final_info): New.
366 (_dl_start_final): Change second argument to struct
367 dl_start_final_info *. Set start_time from info.
368 (_dl_start): Remove bootstrap_map variable, add info.
369 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
370 store HP_TIMING_NOW result into info.start_time.
372 2002-09-16 Andreas Jaeger <aj@suse.de>
374 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
376 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
378 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
380 * sysdeps/powerpc/abort-instr.h: New file.
382 2002-09-14 Ulrich Drepper <drepper@redhat.com>
384 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
387 * test-skeleton.c (main): Provide more information in case waitpid
390 * include/unistd.h: Declare __exit_thread.
391 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
392 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
393 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
394 * sysdeps/unix/sysv/linux/_exit.c: New file.
395 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
396 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
399 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
401 2002-09-12 Jakub Jelinek <jakub@redhat.com>
403 * sysdeps/i386/dl-machine.h (elf_machine_rel)
404 (case R_386_TLS_DTPMOD32): Don't use addend.
405 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
406 (elf_machine_rela): Add support for TLS relocs.
408 2002-09-14 Roland McGrath <roland@redhat.com>
410 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
412 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
414 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
415 specific asm macros for multiple percision integer math.
417 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
419 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
420 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
421 Remove per-machine conditionals for FLAG_* cases.
422 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
423 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
426 2002-09-10 Alan Modra <amodra@bigpond.net.au>
428 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
430 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
431 lowest address for profiling in __monstartup call.
432 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
434 2002-09-14 Roland McGrath <roland@redhat.com>
436 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
437 instead of __NR_pread.
438 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
439 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
440 instead of __NR_pwrite.
441 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
443 2002-09-13 Roland McGrath <roland@redhat.com>
445 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
447 2002-09-13 Andreas Jaeger <aj@suse.de>
449 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
450 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
452 2002-09-12 Ulrich Drepper <drepper@redhat.com>
454 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
456 2002-09-10 Ulrich Drepper <drepper@redhat.com>
458 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
461 2002-09-12 Roland McGrath <roland@redhat.com>
463 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
464 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
467 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
468 executable if needed, in case it's actually a shared object.
470 2002-09-11 Roland McGrath <roland@redhat.com>
472 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
473 l_map_start to adjust l_tls_initimage.
475 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
476 when using h_errno and it's not set to NETDB_INTERNAL.
477 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
479 * Makefile ($(common-objpfx)testrun.sh): New target.
480 (others): Depend on it.
481 (postclean-generated): Append it.
483 * nss/bug-erange.c: New file.
484 * nss/Makefile (tests): Add it.
486 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
487 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
489 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
490 strncmp, keeps the code smaller for a non-performance-critical case.
492 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
493 no longer wrongly matches arbitrary prefixes of NAME.
494 Reported by Jakub Jelinek <jakub@redhat.com>.
496 2002-09-11 Jakub Jelinek <jakub@redhat.com>
498 * posix/bug-regex11.c (tests): New array.
499 (main): Rewritten to run more different tests.
501 2002-09-10 Roland McGrath <roland@redhat.com>
503 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
504 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
505 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
507 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
508 well so we don't get it declared by include/math.h's hidden_proto.
509 Then do hidden_proto for __isnanf locally so hidden_def works right.
511 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
512 a cast to turn nl_langinfo return value into an integer.
514 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
516 * posix/regexec.c (build_trtable): Fix the destination of
517 newline to prevent wrong states from overwriting.
518 Append break statements to optimization.
520 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
522 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
523 (build_range_exp): Add castings to strlen invocations.
524 (build_collating_symbol): Restore the type of characters from "char"
525 to "unsigned char", and supplement castings.
526 (build_collating_symbol): Likewise.
527 (build_equiv_class): Likewise.
528 (build_charclass): Likewise.
529 (seek_collating_symbol_entry): Likewise.
530 (parse_bracket_exp): Likewise.
531 (build_word_op): Supplement a casting.
532 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
533 (re_string_allocate): Fix castings.
534 (re_string_construct): Likewise.
535 (re_string_construct_common): Likewise.
536 (re_string_realloc_buffers): Likewise.
537 (build_wcs_buffer): Likewise.
538 (build_wcs_upper_buffer): Likewise.
539 (re_string_skip_chars): Likewise.
540 (re_string_reconstruct): Likewise.
541 * posix/regex_internal.h: Restore the type of characters in
542 re_string_t and bracket_elem_t from "char" to "unsigned char".
543 (re_string_elem_size_at): Fix castings.
544 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
545 (transit_state_bkref_loop): Restore the type of characters from
546 "char" to "unsigned char", and append a cast to "char*" pointer in
548 (check_node_accept_bytes): Likewise.
549 (find_collation_sequence_value): Likewise.
551 2002-09-10 Hartvig Ekner <hartvige@mips.com>
553 * sysdeps/mips/memcpy.S: New file.
554 * sysdeps/mips/memset.S: New file.
555 * sysdeps/mips/fpu/e_sqrt.c: New file.
556 * sysdeps/mips/fpu/e_sqrtf.c: New file.
558 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
559 functional before. Also removed all SHLIB_COMPAT stuff.
560 * fpu/fegetenv.c: Likewise.
561 * fpu/fesetenv.c:: Likewise.
562 * fpu/feupdateenv.c: Likewise.
563 * fpu/fgetexcptflg.c: Likewise.
564 * fpu/fraiseexcpt.c: Likewise.
566 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
568 2002-09-09 Jakub Jelinek <jakub@redhat.com>
570 * include/math.h (__finite_internal, __finitef_internal,
571 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
573 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
574 __isinfl, __isnanl): Add hidden_proto.
575 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
577 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
578 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
580 * stdio-common/printf_size.c (printf_size): Likewise.
581 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
582 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
583 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
584 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
585 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
586 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
587 (__finite): Add hidden_def.
588 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
589 (__finitef): Add hidden_def.
590 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
591 (__finitel): Add hidden_def.
592 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
594 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
595 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
597 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
598 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
600 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
601 (__isinfl): Remove INTDEF.
602 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
604 (__isnanl): Remove INTDEF.
605 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
607 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
608 instead of sin and cos.
609 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
611 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
612 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
613 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
615 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
617 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
618 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
619 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
621 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
623 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
625 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
626 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
627 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
629 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
630 __finitel_internal): Remove aliases.
631 (__finite, __finitef, __finitel): Add hidden_def.
632 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
633 __isnanl_internal): Remove aliases.
634 (__isnan, __isnanf, __isnanl): Add hidden_def.
635 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
636 __isinfl_internal): Remove aliases.
637 (__isinf, __isinff, __isinfl): Add hidden_def.
638 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
639 __fpclassifyl): Add libm_hidden_def.
640 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
641 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
642 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
643 (hidden_defx): Define and use.
644 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
646 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
647 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
648 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
650 (__isnan, __isnanf): Add hidden_def.
651 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
652 (__finitel): Add libm_hidden_def.
653 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
655 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
656 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
657 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
658 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
659 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
660 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
661 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
662 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
663 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
664 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
665 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
666 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
667 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
668 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
669 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
670 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
671 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
672 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
673 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
674 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
675 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
676 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
677 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
678 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
679 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
680 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
681 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
683 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
685 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
687 2002-09-09 Jakub Jelinek <jakub@redhat.com>
689 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
690 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
692 2002-09-09 Ulrich Drepper <drepper@redhat.com>
694 * string/stratcliff.c: Some more strncpy tests.
695 Patch by Daniel Jacobowitz <drow@mvista.com>.
697 2002-09-08 Roland McGrath <roland@redhat.com>
699 * resolv/resolv.h: Include <sys/types.h> for u_long even in
700 the [__need_res_state] case.
701 Reported by Bruno Haible <bruno@clisp.org>.
703 2002-09-04 Bruno Haible <bruno@clisp.org>
705 * sysdeps/generic/bits/ustat.h: Comment fix.
706 * io/sys/sendfile.h: Comment fix.
707 * sysdeps/posix/pread.c: Comment fix.
708 * sysdeps/posix/pread64.c: Comment fix.
709 * sysdeps/posix/pwrite.c: Comment fix.
710 * sysdeps/posix/pwrite64.c: Comment fix.
712 2002-09-06 Roland McGrath <roland@redhat.com>
714 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
715 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
716 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
717 (_UTSNAME_MACHINE_LENGTH): Likewise.
718 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
720 2002-09-06 Ulrich Drepper <drepper@redhat.com>
722 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
723 test for filesystem type name of mount points.
725 * include/errno.h: Use errno definition with __thread for now only
728 * test-skeleton.c (main): Improve error message for unexpected
731 2002-09-05 Roland McGrath <roland@redhat.com>
733 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
734 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
736 2002-09-05 Jakub Jelinek <jakub@redhat.com>
738 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
741 2002-09-04 Bruno Haible <bruno@clisp.org>
743 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
744 sigset_get_old_mask): Turn into inline functions.
745 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
746 sigset_get_old_mask): Likewise.
747 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
748 sigset_get_old_mask): Likewise.
749 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
752 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
754 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
756 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
757 _sys_nerr_internal instead of _sys_nerr.
759 * nscd/connections.c (handle_request): Declare CALLER inside #if.
761 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
763 * sysdeps/powerpc/__longjmp.S: Moved to...
764 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
765 * sysdeps/powerpc/add_n.S: Moved to...
766 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
767 * sysdeps/powerpc/addmul_1.S: Moved to...
768 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
769 * sysdeps/powerpc/atomicity.h: Moved to...
770 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
771 * sysdeps/powerpc/backtrace.c: Moved to...
772 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
773 * sysdeps/powerpc/bp-asm.h: Moved to...
774 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
775 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
776 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
777 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
778 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
779 * sysdeps/powerpc/dl-machine.c: Moved to...
780 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
781 * sysdeps/powerpc/dl-machine.h: Moved to...
782 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
783 * sysdeps/powerpc/dl-start.S: Moved to...
784 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
785 * sysdeps/powerpc/gprrest0.S: Moved to...
786 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
787 * sysdeps/powerpc/gprrest1.S: Moved to...
788 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
789 * sysdeps/powerpc/gprsave0.S: Moved to...
790 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
791 * sysdeps/powerpc/gprsave1.S: Moved to...
792 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
793 * sysdeps/powerpc/lshift.S: Moved to...
794 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
795 * sysdeps/powerpc/memset.S: Moved to...
796 * sysdeps/powerpc/powerpc32/memset.S: ...here.
797 * sysdeps/powerpc/mul_1.S: Moved to...
798 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
799 * sysdeps/powerpc/ppc-mcount.S: Moved to...
800 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
801 * sysdeps/powerpc/register-dump.h: Moved to...
802 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
803 * sysdeps/powerpc/rshift.S: Moved to...
804 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
805 * sysdeps/powerpc/setjmp.S: Moved to...
806 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
807 * sysdeps/powerpc/stpcpy.S: Moved to...
808 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
809 * sysdeps/powerpc/strchr.S: Moved to...
810 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
811 * sysdeps/powerpc/strcmp.S: Moved to...
812 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
813 * sysdeps/powerpc/strcpy.S: Moved to...
814 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
815 * sysdeps/powerpc/strlen.S: Moved to...
816 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
817 * sysdeps/powerpc/sub_n.S: Moved to...
818 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
819 * sysdeps/powerpc/submul_1.S: Moved to...
820 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
821 * sysdeps/powerpc/elf/bzero.S: Moved to...
822 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
823 * sysdeps/powerpc/elf/start.S: Moved to...
824 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
825 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
826 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
827 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
828 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
829 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
830 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
831 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
832 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
833 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
834 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
835 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
836 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
837 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
839 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
841 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
843 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
845 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
847 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
849 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
851 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
854 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
856 * FAQ.in: Add powerpc64 to supported targets list. Also state the
857 minimum gcc version is 3.2
858 * README: Add powerpc64 to supported targets list.
859 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
860 Add powerpc64 and machine=powerpc/powerpc64.
861 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
862 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
863 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
864 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
865 * sysdeps/powerpc/powerpc32/Dist: New file.
866 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
867 * sysdeps/powerpc/powerpc32/Implies: New file.
868 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
869 ($(with-fp) = no): Move test to powerpc32/Makefile.
870 ($(subdir) = misc): Move to powerpc32/Makefile.
871 ($(build-shared) = yes): Move to powerpc32/Makefile.
872 ($(subdir) = csu): Move to powerpc32/Makefile.
873 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
874 * sysdeps/powerpc/powerpc32/Makefile: New file.
875 * sysdeps/powerpc/Versions: Remove libgcc functions.
876 * sysdeps/powerpc/powerpc32/Versions: New file.
877 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
878 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
879 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
880 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
881 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
882 ($machine): Add powerpc/powerpc64 to if ... | for
883 libc_cv_slibdir=/libc64.
884 (powerpc*): Set ldd_rewrite_script.
885 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
886 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
889 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
890 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
891 functions. Remove GLIBC_2.2 functions except getrlimit and
892 setrlimit. Moved them to ...
893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
895 2002-09-04 Ulrich Drepper <drepper@redhat.com>
897 * libio/tst-atime.c: Include <errno.h>.
898 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
900 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
902 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
903 warnings of some compilers.
904 (build_collating_symbol): Change the type of characters from
905 "unsigned char" to "char", and append a cast to "char*" pointer in
907 (build_collating_symbol): Likewise.
908 (build_equiv_class): Likewise.
909 (build_charclass): Likewise.
910 (re_compile_pattern): Remove incorrect cast.
911 (re_compile_fastmap_iter): Change the type of characters from
912 "unsigned char" to "char", and append a cast to "char*" pointer
914 (parse_bracket_exp): Likewise.
915 * posix/regex_internal.c (re_string_construct_common): Likewise.
916 (re_string_allocate): Likewise.
917 (re_string_construct): Likewise.
918 (re_string_realloc_buffers): Likewise.
919 (build_wcs_buffer): Likewise.
920 (re_string_reconstruct): Likewise.
921 * posix/regex_internal.h: Change the type of characters in
922 re_string_t and bracket_elem_t from "unsigned char" to "char".
923 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
924 warnings of some compilers.
925 (transit_state_bkref_loop): Change the type of characters from
926 "unsigned char" to "char", and append a cast to "char*" pointer in
928 (check_node_accept_bytes): Likewise.
929 (find_collation_sequence_value): Likewise.
931 2002-09-04 Roland McGrath <roland@redhat.com>
933 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
934 from 1024 to 65536, to avoid buffer overrun.
936 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
938 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
940 2002-09-04 Ulrich Drepper <drepper@redhat.com>
942 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
945 2002-09-04 Jakub Jelinek <jakub@redhat.com>
947 * posix/bug-regex11.c: New test.
948 * posix/Makefile (tests): Add bug-regex11.
950 2002-09-03 Jakub Jelinek <jakub@redhat.com>
952 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
955 2002-09-02 Roland McGrath <roland@redhat.com>
957 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
958 __pthread_initialize_minimal and __libc_check_standard_fds to
959 match the generic version.
961 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
962 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
964 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
965 warnings on platorms where char is unsigned.
967 2002-09-02 Ulrich Drepper <drepper@redhat.com>
969 * version.h (VERSION): Bump to 2.2.93.
971 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
973 2002-09-02 Jakub Jelinek <jakub@redhat.com>
975 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
978 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
980 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
982 2002-09-02 Jakub Jelinek <jakub@redhat.com>
984 * locale/localeinfo.h (struct locale_data): Add private.ctype.
985 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
986 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
987 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
988 (__wcsmbs_load_conv): Remove const from argument.
989 (_nl_cleanup_ctype): New proto.
990 (get_gconv_fcts): New function.
991 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
992 (__wcsmbs_to_wc): Rename back to...
994 (__wcsmbs_gconv_fcts): Rename to...
995 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
997 (__libc_setlocale_lock): New extern.
998 (__wcsmbs_load_conv): Remove const from argument.
999 Initialize new_category->private.ctype instead of a global
1001 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1002 update_function_ptrs. No locking is necessary.
1003 (_nl_cleanup_ctype): New function.
1004 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1005 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1006 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1007 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1008 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1009 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1010 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1011 * wcsmbs/wctob.c (wctob): Likewise.
1012 * stdlib/mblen.c (mblen): Likewise.
1013 * stdlib/mbtowc.c (mbtowc): Likewise.
1014 * stdlib/wctomb.c (wctomb): Likewise.
1015 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1016 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1017 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1020 2002-09-02 Roland McGrath <roland@frob.com>
1022 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1024 2002-09-01 Roland McGrath <roland@redhat.com>
1026 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1027 Variable declarations removed.
1028 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1029 these functions to replace them.
1030 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1031 functions plus an indirection rather than the old global variables.
1032 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1034 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1036 * ctype/ctype-info.c: Revert last reversion back the other way.
1037 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1038 Define real function versions of include/ctype.h inlines here.
1039 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1040 __ctype_tolower_loc, __ctype_toupper_loc.
1041 * locale/lc-ctype.c: Revert last reversion back the other way.
1042 (_nl_postload_ctype): If current thread uses the global locale,
1043 update its tsd vars.
1044 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1045 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1046 CTYPE_TOLOWER, CTYPE_TOUPPER.
1048 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1049 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1050 from __libc_tsd_threadvar_location.
1051 (__libc_tsd_set, __libc_tsd_get): Update uses.
1053 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1055 * ctype/ctype.h: Undo the patch before the last one. Put back the
1056 macro definitions for the standard functions to access the
1057 classification and mapping arrays.
1058 * include/ctype.h: Partly revert last patch. Move the macro
1059 definitions for the exported functions back to the public header.
1060 #undef all the macros defined here before redefining.
1061 * ctype/ctype-info.c: Revert last patch.
1062 * locale/lc-ctype.c: Revert last patch.
1064 * ctype/Makefile (routines): Add isctype.
1065 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1066 * ctype/ctype.h: Add declaration of isctype.
1067 * include/ctype.h: Declare __isctype.
1068 * ctype/isctype.c: New file.
1070 2002-09-01 Roland McGrath <roland@redhat.com>
1072 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1073 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1075 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1077 * locale/findlocale.c (_nl_remove_locale): Don't search in
1078 _nl_locale_file_list if DATA->alloc is ld_archive.
1079 Use _nl_unload_locale to do the rest of the work.
1081 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1082 of new structure to UNDELETABLE.
1084 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1085 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1086 towlower, towupper): Macros removed.
1087 * ctype/ctype.h (__tobody): Put parens around macro argument.
1088 (__isctype): Macro removed.
1089 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1090 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1091 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1092 tolower, toupper): Macros and inlines removed.
1093 * include/ctype.h [! NOT_IN_libc]
1094 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1095 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1096 tolower, toupper): Define here instead, using _NL_CURRENT.
1097 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1099 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1100 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1101 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1102 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1103 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1104 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1105 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1106 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1107 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1108 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1109 (ISSORTMASK): Update use.
1110 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1111 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1112 (_nss_files_getENTNAME_r): Likewise.
1113 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1116 * Makerules (all-nonlib): Renamed from all-tests.
1117 Include $(others) here too.
1118 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1119 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1120 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1121 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1122 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1123 the program modules via cppflags-iterator.mk.
1124 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1125 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1127 2002-08-31 Roland McGrath <roland@redhat.com>
1129 * posix/tst-getconf.sh: If no third arg, work with static linking.
1131 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1133 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1134 [_NL_CURRENT_INDIRECT].
1136 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1138 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1140 2002-08-31 Roland McGrath <roland@redhat.com>
1142 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1143 Instead, make the single allocation of the structure larger to hold
1145 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1146 Instead, calculate size for a single allocation and copy into it.
1147 * locale/freelocale.c (__freelocale): Don't free names individually.
1149 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1151 * locale/xlocale.h (__locale_struct): Move __names member last,
1152 for binary compatibility.
1154 * locale/duplocale.c (__duplocale): Free names from the right array.
1156 * locale/uselocale.c (__uselocale): Return previous locale when
1159 * locale/newlocale.c: Commit changes from 2002-08-30
1160 batch where I failed to commit this file:
1161 (__newlocale): Fill in __names array.
1163 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1165 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1166 errlist-compat.c if versioning==yes.
1168 2002-08-31 Andreas Jaeger <aj@suse.de>
1170 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1171 external functions with hidden attribute.
1172 (elf_machine_rela): Optimize.
1174 * sysdeps/x86_64/memset.S: New file.
1175 * sysdeps/x86_64/bzero.S: New file.
1176 * sysdeps/x86_64/stpcpy.S: New file.
1177 * sysdeps/x86_64/strcat.S: New file.
1178 * sysdeps/x86_64/strchr.S: New file.
1179 * sysdeps/x86_64/strcpy.S: New file.
1180 * sysdeps/x86_64/strcspn.S: New file.
1181 * sysdeps/x86_64/strlen.S: New file.
1182 * sysdeps/x86_64/strpbrk.S: New file.
1183 * sysdeps/x86_64/strspn.S: New file.
1184 * sysdeps/x86_64/strcmp.S: New file.
1185 * sysdeps/x86_64/strtok_r.S: New file.
1186 * sysdeps/x86_64/strtok.S: New file.
1187 * sysdeps/x86_64/memcpy.S: New file.
1188 * sysdeps/x86_64/mempcpy.S: New file.
1190 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1192 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1194 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1196 * stdio-common/Makefile (generated): Add errlist-compat.c.
1198 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1200 * locale/localeinfo.h: Pretty printing.
1202 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1203 form_number handling.
1205 2002-08-31 Andreas Jaeger <aj@suse.de>
1207 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1210 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1213 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1215 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1217 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1218 registers used for passing args.
1220 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1221 all needed registers.
1223 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1226 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1229 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1231 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1232 always_inline attribute.
1234 2002-08-30 Roland McGrath <roland@redhat.com>
1236 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1237 presume it's the stub and bail without error.
1239 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1240 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1242 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1244 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1245 macros replace the i686 versions for 64-bit mode.
1247 * locale/duplocale.c: Include <string.h>.
1249 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1250 [_LIBC] (category_to_name): Don't define the function. Instead
1251 define a macro using _nl_category_names.
1253 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1254 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1255 * locale/global-locale.c (_nl_global_locale): Likewise.
1256 * locale/duplocale.c (__duplocale): strdup __names elements.
1257 * locale/freelocale.c (__freelocale): Free __names elements.
1258 * locale/localename.c (_nl_current_names): Variable removed.
1259 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1260 * locale/localeinfo.h (_nl_current_names): Removed decl.
1261 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1262 _nl_current_names throughout.
1264 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1266 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1267 and sys_nerr in the output file.
1269 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1270 * scripts/cpp: Just use the environment variable.
1272 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1273 * libio/tst-mmap-offend.c (do_test): Likewise.
1274 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1275 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1276 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1278 * locale/localename.c: If the current locale is the global locale, use
1279 _nl_current_names; otherwise use the locale object.
1281 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1283 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1284 'm' to enable mmap I/O.
1285 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1286 former wasn't used (anymore?).
1287 (_IO_FLAGS2_MMAP): New define.
1288 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1289 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1290 _IO_FLAGS2_MMAP bit is set.
1291 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1292 Enable mmap-using mode only if 'm' was set.
1294 2002-08-29 Roland McGrath <roland@frob.com>
1296 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1298 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1299 Change argument type from int to intptr_t.
1301 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1302 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1303 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1304 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1305 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1307 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1309 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1311 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1313 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1314 * assert/assert-perr.c: Add libc_hidden_def.
1315 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1317 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1319 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1320 sys_errlist stuff to ...
1321 * sysdeps/unix/sysv/linux/Versions: ... here.
1323 * mach/mach.h: Include <features.h>.
1325 2002-08-29 Roland McGrath <roland@redhat.com>
1327 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1328 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1329 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1331 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1333 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1334 (norm_add_slashes): alloca -> __alloca
1336 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1338 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1339 string_malloced, it is unlikely to be set.
1340 Only call free with non-NULL workspace.
1341 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1342 -mcpu=ultrasparc, not only tune for it.
1343 (ASFLAGS*): Set unconditionally.
1345 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1346 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1347 p_vaddr/p_offset when computing LOADADDR.
1349 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1351 * version.h (VERSION): Bump to 2.2.92.
1353 * time/Makefile (tst-ftime_l-ENV): New variable.
1355 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1357 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1358 <U017A>, <U017D> and <U0179>. Add missing mappings.
1359 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1361 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1362 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1363 (struct tostruct): Use ACRINDEX as type for link field.
1364 (statuc gmonparam): Likewise for froms.
1365 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1367 (write_call_graph): Use correct type for from_index and to_index.
1368 * gmon/mcount.c: Use correct types for frompcindex and toindex
1370 Patches by Dan Kegel <dank@kegel.com>.
1372 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1375 * time/strptime.c (ISSPACE): New #define. Use isspace or
1376 __isspace_l. Replace calls to isspace.
1377 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1379 2002-08-29 Roland McGrath <roland@redhat.com>
1381 * string/tst-strxfrm.c: Remove __ from function names.
1383 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1385 * include/wchar.h: Declare __mbsrtowcs_l.
1386 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1387 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1388 USE_IN_EXTENDED_LOCALE_MODEL.
1389 * wcsmbs/mbsrtowcs_l: New file.
1390 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1391 define as static. Change all uses.
1392 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1394 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1395 * time/strftime.c: When translating for the extended locale model
1396 use the _l functions.
1397 * time/Makefile (tests): Add tst-ftime_l.
1398 * time/tst-ftime_l.c: New file.
1400 2002-08-28 Roland McGrath <roland@redhat.com>
1402 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1403 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1404 from _nl_find_locale ok if for _nl_C_name.
1406 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1407 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1408 we know they are all linked in.
1410 * NEWS: Added 2.2.6 text from 2.2 branch version.
1412 * time/strptime.c (strptime_internal): Remove spurious const.
1414 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1415 _nl_select_era_entry): Moved to ...
1416 * time/era.c: ... here, new file.
1417 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1418 Add internal_function to definitions. Take an additional argument
1419 giving the `struct locale_data *' to use.
1420 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1421 _nl_parse_alt_digit): Moved to ...
1422 * time/alt_digit.c: ... here, new file.
1423 * time/lc-time-cleanup.c: New file.
1424 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1425 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1426 (_nl_cleanup_time): Declare it.
1427 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1428 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1429 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1430 * time/strftime.c: Pass locale data to helper functions.
1431 * time/strptime.c: Likewise.
1433 * locale/localeinfo.h (struct locale_data): New member `private'
1434 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1435 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1436 * locale/C-collate.c: Update initializer.
1437 * locale/C-identification.c: Likewise.
1438 * locale/C-measurement.c: Likewise.
1439 * locale/C-telephone.c: Likewise.
1440 * locale/C-address.c: Likewise.
1441 * locale/C-name.c: Likewise.
1442 * locale/C-paper.c: Likewise.
1443 * locale/C-time.c: Likewise.
1444 * locale/C-numeric.c: Likewise.
1445 * locale/C-monetary.c: Likewise.
1446 * locale/C-messages.c : Likewise.
1447 * locale/C-ctype.c: Likewise.
1449 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1452 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1454 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1455 (_rtld_global): Use it.
1457 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1458 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1459 object directory. Pass all Versions files to the awk script.
1460 * sysdeps/gnu/errlist-compat.c: Removed.
1461 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1462 first Versions file in the search path which has them.
1463 Allow multiple errlist symbol versions to have the same count of
1465 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1466 of "errlist-compat.c".
1467 * sysdeps/gnu/errlist.c: Regenerated.
1468 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1469 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1470 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1471 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1472 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1473 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1474 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1475 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1476 ECANCELLED if not defined by kernel headers.
1477 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1478 already defined by kernel headers.
1479 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1480 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1481 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1483 * Versions.def (GLIBC_2.3) [librt]: Add.
1485 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1487 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1489 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1490 missing comma to .type directive.
1492 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1494 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1496 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1498 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1500 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1502 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1503 check to close_and_out close. Replace return NULL statements where
1504 fd might be >= 0 with goto close_and_out. Close the file descriptor
1505 when it is no longer needed.
1507 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1509 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1511 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1512 * sysdeps/arm/dl-machine.h: Likewise.
1513 * sysdeps/cris/dl-machine.h: Likewise.
1514 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1515 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1517 2002-08-28 Roland McGrath <roland@redhat.com>
1519 * Makeconfig (default_cflags): Revert unintended change.
1521 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1523 * version.h (VERSION): Bump to 2.2.91.
1525 * configure.in: Disable TLS support by default for now.
1527 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1529 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1532 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1534 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1535 fprintf/fwprintf calls.
1537 2002-08-28 Roland McGrath <roland@redhat.com>
1539 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1540 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1542 * locale/setlocale.c: Declare postload functions weak.
1544 * elf/tst-tls1-static.c: New file.
1545 * elf/tst-tls2-static.c: New file.
1546 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1548 Make uselocale support static linking.
1549 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1550 This file again just defines _nl_C_locobj.
1551 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1552 * locale/global-locale.c: New file. Define _nl_global_locale here,
1553 using all weak references in the initializer.
1554 * locale/Makefile (aux): Add global-locale.
1555 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1556 these unconditional, along with the tsd decl.
1557 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1558 Define it under these conditions.
1559 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1560 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1561 `extern __thread struct locale_data *const *'.
1562 [NL_CURRENT_INDIRECT]
1563 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1564 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1565 the thread variable _nl_current_LC_FOO and also a special absolute
1566 symbol _nl_current_LC_FOO_used.
1567 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1568 Set each _nl_current_LC_FOO symbol to point into the new locale,
1569 using weak references to test if _nl_current_LC_FOO_used was linked in.
1570 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1571 [NL_CURRENT_INDIRECT]: ... with this one.
1572 (_nl_current, _nl_C): Variables removed.
1573 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1574 weak references to _nl_current_LC_FOO_used.
1575 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1576 (free_category): New function, broken out of ...
1577 (free_mem): ... here. Call that.
1578 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1581 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1582 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1583 it is already absolute.
1585 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1586 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1587 [$(build-static) = yes] (tests-static): New variable.
1588 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1590 2002-08-26 Christoph Hellwig <hch@lst.de>
1592 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1593 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1595 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1597 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1599 * sysdeps/s390/Dist: Add bits/link.h.
1601 * sysdeps/sh/Dist: New file.
1603 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1605 * sysdeps/wordsize-32/Dist: New file.
1607 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1608 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1609 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1611 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1614 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1617 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1619 * sysdeps/unix/bsd/sun/Dist: New file.
1621 * sysdeps/unix/bsd/osf/Dist: New file.
1623 * sysdeps/unix/bsd/hp/Dist: New file.
1625 * sysdeps/unix/arm/Dist: New file.
1627 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1629 * sysdeps/mach/hurd/Dist: Add set-init.c.
1631 * sysdeps/i386/Dist: Add bits/link.h.
1633 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1635 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1637 * locale/Makefile (distribute): Add hashval.h.
1639 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1641 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1643 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1644 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1645 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1646 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1648 * libio/stdio.h: Likewise.
1649 * locale/locale.h: Likewise.
1650 * math/math.h: Likewise.
1651 * math/bits/mathcalls.h: Likewise.
1652 * setjmp/setjmp.h: Likewise.
1653 * signal/signal.h: Likewise.
1654 * stdlib/stdlib.h: Likewise.
1655 * string/string.h: Likewise.
1656 * time/time.h: Likewise.
1657 * wcsmbs/wchar.h: Likewise.
1658 * wctype/wctype.h: Likewise.
1660 2002-08-28 Roland McGrath <roland@redhat.com>
1662 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1664 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1665 Roland McGrath <roland@redhat.com>
1667 * locale/hashval.h (compute_hashval): Use prototype defn.
1668 (hashval_t): New macro, defined to unsigned long int
1669 if not already defined.
1670 (compute_hashval): Return hashval_t instead of unsigned long int.
1671 * locale/loadarchive.c (hashval_t): New macro.
1672 * locale/programs/locarchive.c: Include hashval.h directly instead
1674 (compute_hashval, hashval_t): Define these macros first.
1675 (insert_name): Use archive_hashval instead of compute_hashval.
1676 (add_locale, delete_locales_from_archive): Likewise.
1678 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1680 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1681 hash collisions if be_quiet.
1683 2002-08-27 Roland McGrath <roland@redhat.com>
1685 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1686 __uselocale): Don't declare these any more.
1687 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1689 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1690 and treat it as an EOF return.
1691 * sysdeps/unix/readdir_r.c: Likewise.
1693 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1694 From Alexandre Oliva <aoliva@redhat.com>.
1695 * sysdeps/gnu/errlist-compat.c: Regenerated.
1697 2002-08-27 Brian Youmans <3diff@gnu.org>
1699 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1700 wording at request of copyright holder Stephen Moshier.
1701 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1702 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1703 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1704 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1705 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1706 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1707 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1708 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1709 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1710 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1711 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1712 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1713 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1714 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1716 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1718 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1719 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1720 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1721 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1722 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1723 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1724 * wctype/iswctype_l.c (iswctype_l): Likewise.
1726 2002-08-27 Roland McGrath <roland@redhat.com>
1728 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1730 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1731 * stdlib/stdlib.h: Don't declare __*_l names.
1732 * include/stdlib.h: Declare them here instead.
1733 * include/string.h: Don't declare __*_l names.
1734 * string/string.h: Declare them here instead.
1735 * time/time.h: Don't declare __*_l names.
1736 * include/time.h: Declare them here instead.
1737 * wcsmbs/wchar.h: Don't declare __*_l names.
1738 * include/wchar.h: Declare them here instead.
1739 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1740 Don't declare __*_l names.
1741 * include/wctype.h: Declare them here instead.
1742 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1743 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1744 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1745 * include/langinfo.h: Declare it here with __typeof.
1747 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1748 instead, taking an extra __locale_t argument.
1749 * time/Makefile (routines): Add strptime_l.
1750 * time/time.h (__strptime_l, strptime_l): Declare them.
1751 * time/strptime_l.c: New file.
1753 * time/time.h (__strftime_l, strftime_l): Declare them.
1754 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1755 * time/strftime_l.c: New file.
1756 * time/wcsftime_l.c: New file.
1757 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1758 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1759 strftime_l, wcsftime_l.
1760 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1761 or __wcsftime_l instead, taking an extra __locale_t argument.
1763 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1764 (libc: GLIBC_2.3): ... here.
1766 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1768 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1770 * Makefile (distribute): Add LICENSES.
1772 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1775 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1777 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1779 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1781 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1783 * sysdeps/mach/hurd/alpha/Dist: New file.
1785 * sysdeps/arm/Dist: Add bits/link.h.
1787 * sunrpc/Makefile: Distribute thrsvc.
1789 * stdio-common/Makefile: Remove more left-overs from old stdio.
1791 * include/linewrap.h: Removed.
1793 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1795 * intl/Makefile (distribute): Add plural-eval.c.
1797 2002-08-27 Roland McGrath <roland@redhat.com>
1799 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1800 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1801 Say mtab is in either /var/run or /etc.
1803 2002-08-26 Roland McGrath <roland@redhat.com>
1805 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1806 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1808 * sysdeps/gnu/Versions: New file.
1809 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1810 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1811 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1812 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1813 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1814 and _sys_nerr_internal instead of anything else. Make it include
1815 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1816 Make it emit some asm magic if [EMIT_ERR_MAX].
1817 * sysdeps/gnu/errlist.c: Regenerated.
1818 * sysdeps/gnu/errlist-compat.awk: New file.
1819 * sysdeps/gnu/errlist-compat.c: New file (generated).
1820 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1821 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1822 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1823 (SYS_ERRLIST, SYS_NERR): Macros removed.
1824 (sys_nerr, _sys_nerr): Remove these weak aliases.
1825 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1826 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1827 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1829 * include/libc-symbols.h (declare_symbol): New macro.
1830 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1831 * configure.in: New check to define it.
1832 * configure: Regenerated.
1834 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1836 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1837 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1839 * Make-dist: Remove traces of old stdio.
1840 * Makeconfig: Likewise.
1842 * locale/Makefile (localedef-aux): New variable. Only md5
1843 assigned to it. These files are not ddistributed in this directory.
1845 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1846 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1847 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1849 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1851 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1852 set h_errno to NO_RECOVERY [PR libc/4360].
1854 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1856 * libio/Makefile (tests): Add bug-fopena+.
1857 * libio/bug-fopena+.c: New file.
1858 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1859 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1861 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1863 * locale/xlocale.c: Fix the last change. The variable still has
1865 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1866 (__libc_tsd_set): Add _data prefix to variable name.
1868 2002-08-26 Roland McGrath <roland@redhat.com>
1870 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1871 macro with inline function.
1872 (sigset_get_old_mask): Likewise.
1873 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1874 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1875 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1876 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1877 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1878 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1880 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1881 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1883 2002-07-06 Bruno Haible <bruno@clisp.org>
1885 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1886 sigset_get_old_mask): Make it work with larger sigset_t.
1887 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1888 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1889 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1891 2002-08-26 Roland McGrath <roland@redhat.com>
1893 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1894 * manual/filesys.texi (File Times): Document lutimes and futimes.
1895 * misc/Makefile (routines): Add them.
1896 * misc/Versions (libc: GLIBC_2.3): Likewise.
1897 * sysdeps/generic/lutimes.c: New file.
1898 * sysdeps/generic/futimes.c: New file.
1899 * sysdeps/mach/hurd/lutimes.c: New file.
1900 * sysdeps/mach/hurd/futimes.c: New file.
1902 * manual/filesys.texi (File Times): Add explicit note about null
1903 pointer argument to utimes.
1905 2002-08-26 Roland McGrath <roland@frob.com>
1907 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1908 (__ifreq): Add a cast. Remove an unused variable.
1910 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1911 _HURD_THREADVAR_LOCALE.
1913 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1915 * posix/regexec.c (re_search_stub): Return correct match length
1917 * posix/bug-regex10.c: New test.
1918 * posix/Makefile (tests): Add bug-regex10.
1920 2002-08-26 Brian Youmans <3diff@gnu.org>
1922 * COPYING.LIB: Replaced with fresh copy from
1923 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1924 suggested copying permission notice now says version 2.1 instead
1927 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1929 * crypt/crypt_util.c: Likewise.
1930 * crypt/ufc.c: Likewise.
1931 * elf/dl-conflict.c: Likewise.
1932 * elf/dl-iteratephdr.c: Likewise.
1933 * iconv/iconvconfig.h: Likewise.
1934 * malloc/arena.c: Likewise.
1935 * malloc/hooks.c: Likewise.
1936 * malloc/malloc.c: Likewise.
1937 * posix/glob/Makefile.ami: Likewise.
1938 * posix/glob/Makefile.in: Likewise.
1939 * stdlib/gmp-impl.h: Likewise.
1940 * stdlib/gmp.h: Likewise.
1941 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1942 * sysdeps/generic/strnlen.c: Likewise.
1943 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1944 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1945 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1946 * sysdeps/mach/hurd/spawni.c: Likewise.
1947 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1948 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1949 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1950 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1951 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1952 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1954 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1955 Lesser GPL copying permission notice from 2 to 2.1.
1956 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1957 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1958 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1959 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1960 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1961 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1962 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1963 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1964 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1965 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1966 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1967 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1968 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1969 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1970 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1971 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1972 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1973 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1974 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1975 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1976 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1977 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1978 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1979 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1980 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1981 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1982 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1983 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1984 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1985 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1986 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1987 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1988 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1989 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1990 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1991 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1992 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1993 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1994 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1995 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1996 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1997 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1998 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1999 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2000 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2001 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2002 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2003 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2004 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2005 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2006 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2007 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2008 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2009 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2010 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2012 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2013 Moshier and Lesser GPL copying permission notice, per license from
2015 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2016 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2017 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2018 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2019 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2020 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2021 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2022 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2023 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2024 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2025 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2026 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2027 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2028 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2030 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2031 notice, per license from copyright holder Stephen Moshier.
2032 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2033 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2034 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2035 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2036 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2037 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2038 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2039 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2040 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2042 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2044 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2045 (shared-only-routines): Likewise.
2047 2002-08-26 Roland McGrath <roland@redhat.com>
2049 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2050 name of "", store a null pointer instead.
2052 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2053 * configure: Regenerated.
2055 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2056 Initialize this instead of __libc_tsd_LOCALE_data.
2058 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2059 ptsname_r to EINVAL.
2061 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2063 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2064 implementations depend on pthreads.
2065 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2066 * rt/tst-aio64.c (do_test): Likewise.
2067 * rt/tst-aio2.c (do_test): Likewise.
2068 * rt/tst-aio3.c (do_test): Likewise.
2069 * rt/tst-aio4.c (do_test): Likewise.
2070 * rt/tst-aio5.c (do_test): Likewise.
2071 * rt/tst-aio6.c (do_test): Likewise.
2072 * rt/tst-aio7.c (do_test): Likewise.
2074 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2075 void so as to avoid compiler warnings.
2077 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2078 _IO_wide_data_FD, which is never used here.
2081 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2082 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2083 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2085 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2086 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2088 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2089 (closelog): Likewise.
2091 2002-07-06 Bruno Haible <bruno@clisp.org>
2093 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2095 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2096 * sysdeps/unix/alpha/pipe.S: ... here.
2097 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2099 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2101 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2102 * sysdeps/unix/i386/fork.S: Likewise.
2103 * sysdeps/unix/i386/pipe.S: Likewise.
2104 * sysdeps/unix/i386/wait.S: Likewise.
2106 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2107 * sysdeps/unix/arm/fork.S: Likewise.
2109 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2111 (DO_CALL): Swap argument order.
2112 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2114 (DO_CALL): Swap argument order.
2115 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2117 (DO_CALL): Swap argument order.
2118 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2120 (DO_CALL): Swap argument order.
2121 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2123 (DO_CALL): Swap argument order.
2124 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2126 (DO_CALL): Swap argument order.
2127 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2129 (DO_CALL): Swap argument order.
2131 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2132 (L): Define right for ELF.
2133 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2134 Now defined in sysdeps/i386/sysdep.h.
2136 * sysdeps/posix/readv.c: Ansify function definition.
2137 * sysdeps/posix/writev.c: Likewise.
2139 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2140 have the same size. Avoid direct cast from size_t to off_t.
2142 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2143 nul byte in entry[n].ut_user.
2144 (simulate_logout): Likewise.
2146 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2147 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2148 existence of corresponding members of 'struct utmp'.
2149 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2152 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2153 allocate a buffer of at least BUFSIZ bytes, not just of
2154 sizeof (struct dirent).
2156 * sysdeps/generic/glob.c: Include <limits.h>.
2157 (NAME_MAX): Define a fallback.
2158 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2160 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2161 (main): Allocate enough room for a 'struct dirent64' on the stack.
2162 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2165 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2168 * inet/htontest.c: Include <sys/types.h>.
2170 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2172 * include/sys/sysctl.h: Comment fix.
2174 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2176 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2178 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2180 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2181 (__getpeername): New alias.
2182 (__getsockname): New alias.
2183 (__socket): New alias.
2185 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2187 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2188 (__fcntl_internal): New alias.
2189 (__profil): New alias.
2191 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2193 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2194 entry was for getaddr* lookup or not. Add only matching cache
2195 entry. Change all callers [PR libc/4317].
2197 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2198 finding the read position [PR libc/4265].
2199 * libio/Makefile (tests): Add bug-rewind2.
2200 * libio/bug-rewind2.c: New file.
2202 * libio/bug-rewind.c: Fix creation of temp file.
2204 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2206 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2207 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2208 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2209 to ENOENT if no entry is found.
2210 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2212 * nis/nss_compat/compat-initgroups.c: Likewise.
2213 * nis/nss_compat/compat-pwd.c: Likewise.
2214 * nis/nss_compat/compat-spwd.c: Likewise.
2215 * nis/nss_nis/nis-alias.c: Likewise.
2216 * nis/nss_nis/nis-ethers.c: Likewise.
2217 * nis/nss_nis/nis-grp.c: Likewise.
2218 * nis/nss_nis/nis-hosts.c: Likewise.
2219 * nis/nss_nis/nis-initgroups.c: Likewise.
2220 * nis/nss_nis/nis-netgrp.c: Likewise.
2221 * nis/nss_nis/nis-network.c: Likewise.
2222 * nis/nss_nis/nis-proto.c: Likewise.
2223 * nis/nss_nis/nis-publickey.c: Likewise.
2224 * nis/nss_nis/nis-pwd.c: Likewise.
2225 * nis/nss_nis/nis-rpc.c: Likewise.
2226 * nis/nss_nis/nis-service.c: Likewise.
2227 * nis/nss_nis/nis-spwd.c: Likewise.
2228 * resolv/nss_dns/dns-host.c: Likewise.
2229 * resolv/nss_dns/dns-network.c: Likewise.
2230 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2231 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2232 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2233 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2234 * nis/nss_nisplus/nisplus-network.c: Likewise.
2235 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2236 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2237 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2238 * nis/nss_nisplus/nisplus-service.c: Likewise.
2239 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2240 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2241 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2242 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2243 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2245 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2246 declaring __restore and __restore_rt as hidden (if possible).
2248 2002-08-25 Roland McGrath <roland@redhat.com>
2250 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2252 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2253 (getutent_r_file, internal_getut_r): Updated all callers.
2254 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2256 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2258 * locale/programs/locale.c: Don't print aliases for non-existing
2259 locales for 'locale -a'.
2260 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2262 2002-07-19 H.J. Lu <hjl@gnu.org>
2264 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2266 2002-07-16 H.J. Lu <hjl@gnu.org>
2268 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2270 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2272 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2274 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2275 not moved ahead of the fputs call.
2276 * elf/tst-tlsmod2.c (in_dso): Likewise.
2277 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2278 * elf/tst-tlsmod4.c (in_dso): Likewise.
2280 2002-08-25 Andreas Schwab <schwab@suse.de>
2282 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2284 2002-08-25 Roland McGrath <roland@redhat.com>
2286 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2287 resetting handler, to avoid the possibility of a spurious SIGALRM
2288 delivered to the user's handler.
2289 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2291 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2292 set -fkeep-inline-functions, which is not needed for the current file.
2294 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2295 (_dl_setup_hash): Add attribute_hidden.
2296 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2297 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2298 (_dl_new_object, _dl_map_object_deps): Likewise.
2299 (_dl_map_object_deps_internal): Remove decl.
2300 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2302 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2303 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2304 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2305 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2306 instead relying on the compiler to produce only GOTOFF variable refs.
2308 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2310 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2312 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2313 inline to avoid defining it in every file which includes this header.
2315 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2316 defining DONT_USE_BOOTSTRAP_MAP.
2318 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2319 * libio/tst-mmap-setvbuf.c (main): Likewise.
2320 * libio/tst-widetext.c (main): Likewise.
2322 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2324 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2325 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2327 * sysdeps/i386/elf/configure.in: Unconditionally define
2328 PI_STATIC_AND_HIDDEN.
2329 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2330 PI_STATIC_AND_HIDDEN is defined as well.
2331 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2333 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2335 * sysdeps/ia64/bzero.S: Define __bzero as well.
2337 * locale/programs/charmap.c (charmap_new_char): Don't use
2338 ULONG_MAX as maximum UCS4 value.
2340 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2342 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2344 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2345 * malloc/malloc.c (mALLINFo): Likewise.
2347 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2349 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2350 examining result of _IO_do_flush call.
2352 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2353 Use prec not spec when sizing buffers.
2355 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2356 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2357 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2358 * stdio-common/vfscanf.c (inchar): Likewise.
2359 * misc/efgcvt_r.c (fcvt_r): Likewise.
2360 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2361 * elf/readlib.c (process_file): Likewise.
2362 * elf/sprof.c (load_profdata): Likewise.
2363 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2364 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2365 * locale/programs/charmap.c (charmap_read): Likewise.
2366 * libio/fileops.c: Likewise.
2367 * libio/fmemopen.c: Likewise.
2368 * stdlib/strtod.c: Likewise.
2369 * elf/dl-load.c: Likewise.
2370 * iconv/iconvconfig.c: Likewise.
2371 * iconv/iconv_prog.c (process_block): Likewise.
2372 * elf/rtld.c (dl_main): Likewise.
2374 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2375 macro to calm down the compiler.
2377 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2379 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2381 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2382 placement of errno definition.
2383 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2384 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2385 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2386 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2387 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2389 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2390 from 1024 to 65536, to avoid buffer overrun.
2392 2002-08-16 Paul Eggert <eggert@twinsun.com>
2394 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2395 from 1024 to 65536, to avoid buffer overrun.
2396 * resolv/res_query.c (MAXPACKET): Likewise.
2398 2002-08-24 Andreas Jaeger <aj@suse.de>
2400 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2402 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2404 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2407 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2408 Patch by Simon Gee <simong@agile.tv>.
2410 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2411 Prefer reading /proc/stat since it is more uniform across
2414 * manual/texinfo.tex: Update to latest official version.
2416 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2417 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2418 * sysdeps/gnu/bits/shm.h: Likewise.
2419 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2420 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2421 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2422 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2423 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2424 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2425 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2426 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2427 since this is what the kernel says.
2429 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2430 since ssize_t is needed as well. Replace const with __const.
2432 2002-08-23 Roland McGrath <roland@redhat.com>
2434 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2435 __malloc_hook, __realloc_hook, __memalign_hook,
2436 __after_morecore_hook): Variable definitions moved to ...
2437 * malloc/malloc.c: ... here, so as to be before all references.
2439 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2440 global variable reference in an unused asm parameter, to ensure the
2441 compiler has set up the GOT register before we use it.
2443 * malloc/hooks.c: Move variable definitions ahead of uses.
2444 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2445 initializers that make reference to variables they define.
2447 2002-08-23 Andreas Jaeger <aj@suse.de>
2449 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2450 alloca, free, qsort.
2452 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2454 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2455 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2457 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2459 * sysdeps/generic/fgetxattr.c: New file.
2460 * sysdeps/generic/flistxattr.c: New file.
2461 * sysdeps/generic/fremovexattr.c: New file.
2462 * sysdeps/generic/fsetxattr.c: New file.
2463 * sysdeps/generic/getxattr.c: New file.
2464 * sysdeps/generic/listxattr.c: New file.
2465 * sysdeps/generic/lgetxattr.c: New file.
2466 * sysdeps/generic/llistxattr.c: New file.
2467 * sysdeps/generic/lremovexattr.c: New file.
2468 * sysdeps/generic/lsetxattr.c: New file.
2469 * sysdeps/generic/removexattr.c: New file.
2470 * sysdeps/generic/setxattr.c: New file.
2471 * misc/Makefile (headers): Add sys/xattr.h.
2472 (routines): Add *xattr calls.
2473 * misc/Versions: Add *xattr calls with version 2.3.
2474 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2475 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2476 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2477 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2478 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2479 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2480 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2481 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2483 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2485 * sysdeps/powerpc/elf/libc-start.c
2486 (__cache_line_size): Declare.
2487 (__aux_init_cache): New function.
2488 (__libc_start_main): Change type of `auxvec' parameter to
2489 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2491 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2492 (__cache_line_size): Declare.
2493 (__aux_init_cache): New function.
2494 (DL_PLATFORM_INIT): Define.
2495 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2496 value to select the correct stride for dcbz.
2498 2002-08-22 Andreas Jaeger <aj@suse.de>
2500 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2503 2002-08-22 Roland McGrath <roland@redhat.com>
2505 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2506 position indicated by locrectab against file bounds before rounding to
2507 page size. In mapping loop, always set TO before breaking out of
2508 contiguous range coalescing loop.
2510 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2511 (or MAP_COPY if available) instead of MAP_SHARED.
2513 * scripts/firstversions.awk: When encountering a version newer than
2514 the specified earliest version, be sure to emit the specified earliest
2515 version first if any renaming of an older version to that has been.
2517 2002-08-21 Roland McGrath <roland@redhat.com>
2519 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2520 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2521 (Configuring and compiling): Don't mention older GCC versions any more.
2522 * INSTALL: Regenerated.
2524 * manual/install.texi (Configuring and compiling, Installation,
2525 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2527 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2528 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2529 and with noinline otherwise. Remove hack alloca use to prevent
2530 inlining, we can ask for it explicitly nowadays.
2532 * dlfcn/bug-dlsym1.c: New file.
2533 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2534 * dlfcn/Makefile (distribute): Add them.
2535 (tests): Add bug-dlsym1 here.
2536 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2537 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2538 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2540 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2542 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2543 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2545 (_dl_start): Don't use local bootstrap_map variable if
2546 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2547 pass bootstrap_map to _dl_start_final in this case either. Don't
2548 pass start_time to _dl_start_final ever.
2549 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2551 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2552 This cripples the scope lists necessary to search for symbols in
2553 dependencies which are not in the global scope.
2555 * include/setjmp.h (__libc_longjmp): Add declaration.
2557 2002-08-21 Andreas Jaeger <aj@suse.de>
2559 * sysdeps/x86_64/_mcount.S: Fix assembler.
2561 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2562 with biarch support.
2564 2002-08-21 Andreas Jaeger <aj@suse.de>
2566 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2568 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2570 * sysdeps/x86_64/machine-gmon.h: New file.
2571 * sysdeps/x86_64/_mcount.S: New file.
2573 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2575 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2576 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2577 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2578 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2579 to TL_INIT_TP. Otherwise pass 1.
2580 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2581 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2583 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2585 * locale/programs/localedef.c (add_to_readlist): Error about
2586 circular dependencies only if the locale in question hasn't
2588 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2589 CTYPE_LOCALE to load_locale.
2590 * locale/programs/locfile.c (locfile_read): Don't include
2591 unneeded but available locales in locale_mask.
2593 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2594 print any messages about enlarging archive.
2596 2002-08-20 Brian Youmans <3diff@gnu.org>
2598 * manual/contrib.texi: Removed licenses, added acknowledgements
2599 for contributions by Intel, IBM, Craig Metz.
2600 * LICENSES: New file, contains the text of all non-FSF licenses in the
2601 distribution that require putting the notice in the accompanying
2603 * README.template, README: Mention LICENSES.
2605 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2606 new one modelled on the modern BSD license, per recent letter
2607 of permission from CMU.
2608 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2610 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2611 from IBM to FSF, per the recent Software Letter. Changed the
2612 distribution terms from GPL to LGPL.
2614 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2615 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2616 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2617 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2618 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2619 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2620 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2621 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2622 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2623 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2625 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2626 from IBM to FSF, per the recent Software Letter. Corrected the
2627 text of the copying permission notice to say Lesser GPL instead
2628 of GPL in warranty disclaimer paragraph.
2629 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2630 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2631 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2632 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2633 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2634 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2635 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2636 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2637 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2638 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2639 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2640 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2641 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2642 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2643 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2644 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2645 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2646 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2647 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2648 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2649 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2651 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2652 permission notice to say Lesser GPL instead of GPL in warranty
2653 disclaimer paragraph.
2654 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2655 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2656 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2657 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2658 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2659 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2660 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2661 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2662 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2663 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2664 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2665 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2666 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2667 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2668 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2669 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2670 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2671 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2672 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2673 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2674 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2675 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2676 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2678 2002-08-20 Roland McGrath <roland@redhat.com>
2680 Fix ABI compatibility with libc compiled with old tools on powerpc.
2681 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2682 and Jack Howarth <howarth@bromo.med.uc.edu>.
2683 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2684 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2685 pass -DHAVE_DOT_HIDDEN for these files.
2686 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2688 * sysdeps/powerpc/divdi3.c: New file.
2689 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2690 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2692 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2694 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2695 partially overlapping mappings. Remove unneeded (char *) casts.
2696 Never allow duplication of ranges in mapped areas.
2698 2002-08-20 Roland McGrath <roland@redhat.com>
2700 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2701 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2703 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2705 * include/unistd.h: Don't hide _exit.
2707 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2708 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2709 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2710 argument 1 to TLS_INIT_TP.
2711 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2713 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2715 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2716 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2717 memory allocation to...
2718 (allocate_dtv): ...here. New function.
2719 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2720 call allocate_dtv instead of _dl_allocate_tls_storage.
2721 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2722 (_dl_get_tls_static_info): New function.
2723 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2724 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2726 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2728 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2729 immediately if result == NULL.
2731 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2733 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2735 2002-08-18 Roland McGrath <roland@frob.com>
2737 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2738 instead of __file_name_split.
2739 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2741 * sysdeps/mach/hurd/dl-sysdep.c
2742 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2743 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2745 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2747 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2748 in change before last: MAX -> MIN.
2750 2002-08-15 Roland McGrath <roland@redhat.com>
2752 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2753 if seek would go past it.
2754 (mmap_remap_check): If file position is at or past EOF after check,
2755 leave read pointers at EOF and don't seek.
2757 * libio/tst-mmap-offend.c: New file.
2758 * libio/Makefile (tests): Add it.
2760 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2761 the name as passed, rather than the name in the archive dictionary.
2763 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2765 * csu/Makefile: Define elide-routines.os not static-only-routines.
2767 * include/sched.h (__clone): Add varargs at the end.
2769 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2771 (TLS_INIT_HELPER): If defined, use it.
2772 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2774 2002-08-15 Roland McGrath <roland@redhat.com>
2776 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2777 on L->l_prev; it can happen under rtld --verify too.
2779 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2780 header separately, just map an initial window of 2MB from the file
2781 and remap if that is not large enough to cover the whole header.
2783 2002-08-15 Andreas Jaeger <aj@suse.de>
2785 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2787 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2788 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2789 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2790 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2791 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2792 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2793 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2794 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2795 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2796 Patch by Andreas Gruenbacher <agruen@suse.de>.
2798 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2800 2002-08-14 Roland McGrath <roland@redhat.com>
2802 * locale/locarchive.h (struct locale_category_data): Give this name to
2803 the type of locale_data_t's elements.
2804 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2805 (add_locale): Use that to sort the categories by size and put all
2806 those that fit into two pages into the LC_ALL block, instead of
2807 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2808 (show_archive_content): Detect categories inside LC_ALL block
2809 directly, instead of hard-coding.
2810 (oldlocrecentcmp): Compare just on file locations used.
2812 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2814 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2815 (oldlocrecentcmp): New function.
2816 (enlarge_archive): Re-add locales in the order they were added
2818 (add_locale): Put all the small locale files together, if the small
2819 locale file block would occupy less pages if page size aligned, align
2821 (show_archive_content): Adjust for locale archives optimized for speed.
2823 2002-08-14 Roland McGrath <roland@frob.com>
2825 * configure.in: Use "MISSING" as not-found value for MIG.
2826 * sysdeps/mach/configure.in: Fatal if mig not found.
2827 * configure, sysdeps/mach/configure: Regenerated.
2829 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2831 * locale/loadarchive.c (archfname): Add missing slash.
2833 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2834 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2836 2002-08-12 Roland McGrath <roland@redhat.com>
2838 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2839 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2840 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2841 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2842 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2843 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2844 * sysdeps/generic/waitpid.c: Likewise.
2846 * include/net/if.h: New file. Use libc_hidden_proto
2847 for if_nametoindex and if_indextoname.
2848 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2849 * sysdeps/mach/hurd/if_index.c: Likewise.
2850 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2852 * include/grp.h (setgroups): Add libc_hidden_proto.
2853 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2854 * sysdeps/mach/hurd/setgroups.c: Likewise.
2855 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2856 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2858 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2860 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2861 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2862 * sysdeps/generic/setegid.c (setegid): Likewise.
2863 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2864 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2865 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2866 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2867 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2868 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2869 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2870 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2871 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2872 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2873 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2874 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2875 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2877 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2878 __lxstat_internal, __lxstat64_internal): Remove.
2879 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2881 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2882 Remove INTDEF where present, remove #undef at the beginning.
2883 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2884 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2885 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2886 * sysdeps/generic/xstat.c (__xstat): Likewise.
2887 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2888 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2889 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2890 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2891 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2892 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2893 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2894 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2895 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2896 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2897 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2898 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2899 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2900 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2901 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2902 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2903 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2904 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2905 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2906 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2907 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2908 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2909 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2910 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2911 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2912 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2913 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2914 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2915 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2916 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2917 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2918 * sysdeps/unix/xstat.c (__xstat): Likewise.
2920 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2921 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2922 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2923 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2924 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2925 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2926 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2928 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2929 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2930 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2931 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2932 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2933 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2934 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2935 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2937 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2938 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2939 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2940 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2941 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2942 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2943 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2944 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2946 * include/string.h (strcoll): Add libc_hidden_proto.
2947 * string/strcoll.c (strcoll): Add libc_hidden_def.
2949 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2951 2002-08-11 Philip Blundell <philb@gnu.org>
2953 * sysdeps/arm/Makefile: New file.
2955 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2957 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2958 by another '|', end of regex or enclosing ')', clear branch.
2959 * posix/bug-regex9.c: New test.
2960 * posix/Makefile (tests): Add bug-regex9.
2962 2002-08-12 Roland McGrath <roland@redhat.com>
2964 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2965 start count condition, use TOTAL instead of variable that was never
2966 set. Fix outer loop termination condition to TOTAL >= after update.
2968 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2969 dl_tls_static_align and dl_tls_static_nelem.
2971 2002-08-11 Roland McGrath <roland@redhat.com>
2973 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2974 of the TLS macros, otherwise the compiler might not have initialized
2975 the PIC register yet when we use the PLT via asm.
2976 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2977 * elf/tst-tlsmod2.c (in_dso): Likewise.
2979 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2981 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2982 Evaluate argument exactly once. Remove __volatile__ from asm's.
2984 * include/unistd.h: Use libc_hidden_proto for getdomainname
2986 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2987 * sysdeps/mach/hurd/getdomain.c: Likewise.
2988 * sysdeps/unix/getlogin_r.c: Likewise.
2989 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2990 * sysdeps/generic/getlogin_r.c: Likewise.
2992 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2993 * sunrpc/rtime.c: Add libc_hidden_def.
2995 * include/string.h: Use libc_hidden_proto for basename.
2996 * string/basename.c [_LIBC]: Add libc_hidden_def.
2998 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3000 * locale/loadarchive.c: munmap -> __munmap throughout.
3002 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3003 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3004 * sysdeps/generic/gai_strerror.c: Likewise.
3006 * include/sys/errno.h: New file.
3008 * include/signal.h: No libc_hidden_proto for raise,
3009 __libc_current_sigrtmin, __libc_current_sigrtmax.
3010 These need to be overridden by linuxthreads.
3011 * sysdeps/posix/raise.c: Reverted.
3012 * sysdeps/generic/raise.c: Reverted.
3013 * signal/allocrtsig.c: Reverted.
3015 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3017 2002-08-10 Roland McGrath <roland@redhat.com>
3019 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3020 * locale/localeinfo.h: Declare it.
3021 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3022 current locale if it's not in the file list.
3023 Call _nl_archive_subfreeres.
3025 2002-08-10 Andreas Jaeger <aj@suse.de>
3027 * sysdeps/i386/strchr.S: Add comment.
3029 2002-08-10 Roland McGrath <roland@redhat.com>
3031 * include/wchar.h (putwc): Use libc_hidden_proto.
3032 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3033 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3034 * stdio-common/dprintf.c: Add libc_hidden_def.
3035 * stdio-common/fprintf.c: Likewise.
3036 * stdio-common/sprintf.c: Likewise.
3037 * stdio-common/sscanf.c: Likewise.
3038 * libio/iofwrite.c: Likewise.
3039 * libio/memstream.c: Likewise.
3040 * libio/putwc.c: Likewise.
3041 * stdio-common/perror.c: Likewise.
3042 * sysdeps/posix/remove.c: Likewise.
3043 * sysdeps/generic/remove.c: Likewise.
3044 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3045 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3047 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3049 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3050 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3051 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3052 towlower, towupper): Add libc_hidden_weak.
3054 * include/bits/dlfcn.h: New file.
3055 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3057 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3058 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3059 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3060 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3061 * include/shadow.h (_nss_files_parse_spent): Likewise.
3062 * include/netdb.h (_nss_files_parse_protoent,
3063 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3064 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3065 (LINE_PARSER): Use it.
3066 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3067 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3069 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3072 * manual/debug.texi (%MENU%): Remove trailing dot.
3073 Reported by <hayastan132@hotmail.com>.
3075 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3078 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3081 2002-08-09 Roland McGrath <roland@redhat.com>
3083 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3084 name to find codeset name (if any) and normalize it. If the
3085 normalized name differs, look up only that in the archive.
3086 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3087 contains a codeset, normalize the codeset store only the normalized
3088 name in the archive. If not, add an alias containing the locale's
3089 normalized codeset name. Apply codeset name normalization when
3090 matching entries in the alias file.
3092 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3093 decrement HEAD->namehash_used here.
3094 (add_locale): Only need to insert name string when name_offset != 0.
3096 * locale/programs/localedef.c (options): Add -A/--alias-file.
3097 (alias_file): New variable.
3098 (parse_opt): Grok -A, set that.
3099 * locale/programs/localedef.h: Declare it.
3101 * locale/locarchive.h (struct locrecent): Add `refs' member.
3102 * locale/programs/locarchive.c (insert_name): New function, broken out
3104 (add_locale_to_archive): ... here. Call that.
3105 (add_alias): New function.
3106 (add_locale): New static function, add_locale_to_archive renamed.
3107 (add_locale_to_archive): Call that and use add_alias to add an alias
3108 for the name with codeset if the given name lacks it.
3109 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3111 * locale/Makefile (routines): Add loadarchive.
3112 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3113 (_nl_load_locale_from_archive): New function.
3114 * locale/localeinfo.h: Declare it.
3115 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3116 try _nl_load_locale_from_archive first.
3118 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3119 broken out of _nl_load_locale.
3120 (_nl_load_locale): Call that.
3121 * locale/localeinfo.h: Declare it.
3122 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3123 (struct locale_data): Remove unused member `options'.
3124 * locale/findlocale.c (_nl_remove_locale): Update uses.
3125 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3126 * locale/C-collate.c: Update initializer.
3127 * locale/C-identification.c: Likewise.
3128 * locale/C-measurement.c: Likewise.
3129 * locale/C-telephone.c: Likewise.
3130 * locale/C-address.c: Likewise.
3131 * locale/C-name.c: Likewise.
3132 * locale/C-paper.c: Likewise.
3133 * locale/C-time.c: Likewise.
3134 * locale/C-numeric.c: Likewise.
3135 * locale/C-monetary.c: Likewise.
3136 * locale/C-messages.c : Likewise.
3137 * locale/C-ctype.c: Likewise.
3139 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3140 use CHAR_BIT instead of BITSPERBYTE.
3142 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3143 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3144 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3145 (_nl_remove_locale): Likewise.
3146 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3148 * locale/findlocale.c (_nl_default_locale_path): New variable.
3149 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3150 * locale/localeinfo.h: Declare it.
3151 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3152 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3153 * locale/newlocale.c (__newlocale): Likewise.
3155 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3156 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3157 * sysdeps/generic/morecore.c: Likewise.
3158 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3159 (__libc_current_sigrtmax): Likewise.
3161 2002-08-08 Roland McGrath <roland@redhat.com>
3163 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3164 * catgets/open_catalog.c (__open_catalog): Likewise.
3166 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3167 from typo INITIAL_NUM_NANES.
3168 (create_archive): Update use.
3170 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3172 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3174 2002-08-08 Roland McGrath <roland@frob.com>
3176 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3178 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3180 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3181 else and undefine after including wcstol_l.c.
3182 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3184 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3186 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3188 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3190 * configure.in: Make the test for broken_alias_attribute stricter.
3192 2002-05-24 Robert Love <rml@tech9.net>
3194 * posix/Makefile (routines): Add sched_getaffinity and
3196 * posix/sched.h: Add declarations for sched_getaffinity and
3198 * sysdeps/generic/sched_getaffinity.c: New file.
3199 * sysdeps/generic/sched_setaffinity.c: New file.
3200 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3203 2002-08-06 Andreas Schwab <schwab@suse.de>
3205 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3207 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3209 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3212 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3213 It is known to be defined.
3215 * include/string.h: Define index and rindex only if _ISOMAC is not
3218 * elf/rtld.c: Include <errno.h>.
3219 * sysdeps/generic/libc-tls.c: Likewise.
3221 2002-08-07 Roland McGrath <roland@redhat.com>
3223 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3225 (precsize_aton): Likewise.
3227 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3228 the static symbols added in the last change (doofus is me).
3230 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3231 loop to notice missing categories in a composite name.
3233 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3234 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3235 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3236 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3238 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3240 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3242 2002-08-07 Roland McGrath <roland@redhat.com>
3244 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3245 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3246 Reported by Jakub Jelinek <jakub@redhat.com>.
3248 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3250 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3253 2002-08-06 Roland McGrath <roland@redhat.com>
3255 * include/getopt.h: Put private decls inside [_GETOPT_H].
3256 Use libc_hidden_proto for getopt_long, getopt_long_only.
3257 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3258 Add libc_hidden_def.
3260 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3261 Define as a macro for __dl_iterate_phdr.
3263 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3264 made static. Add __ name as a strong alias.
3265 (internal_endnetgrent): Likewise.
3266 (internal_getnetgrent_r): Likewise.
3268 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3270 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3271 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3272 all *_l functions with no __ prefix.
3273 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3274 * ctype/ctype_l.c: Likewise.
3275 * locale/nl_langinfo.c: Likewise.
3276 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3277 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3278 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3279 * wctype/wctype.h [__USE_GNU]: Likewise.
3280 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3281 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3282 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3283 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3284 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3285 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3286 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3287 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3288 (__wcscasecmp_l): Add libc_hidden_def.
3289 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3290 (__wcsncasecmp_l): Add libc_hidden_def.
3291 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3292 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3293 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3294 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3295 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3296 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3297 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3298 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3299 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3300 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3301 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3302 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3303 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3304 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3306 2002-08-05 Roland McGrath <roland@redhat.com>
3308 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3309 netname2user, host2netname, user2netname, key_gendes.
3310 * sunrpc/netname.c: Add libc_hidden_def.
3311 * sunrpc/key_call.c: Likewise.
3313 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3315 * inet/getnameinfo.c: Add libc_hidden_def.
3316 * sysdeps/generic/getaddrinfo.c: Likewise.
3317 * sysdeps/posix/getaddrinfo.c: Likewise.
3319 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3320 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3321 * wcsmbs/wmemset.c: Add libc_hidden_def.
3323 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3324 (index, rindex): Define as macros for strchr, strrchr.
3326 * string/envz.c (envz_strip): index -> strchr
3328 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3329 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3331 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3332 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3334 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3335 * stdlib/wctomb.c: Add libc_hidden_def.
3337 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3338 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3339 * resolv/herror.c: Likewise.
3340 * inet/rcmd.c: Add libc_hidden_def.
3341 * inet/ruserpass.c: Likewise.
3342 * inet/getnetgrent_r.c: Likewise.
3344 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3345 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3346 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3347 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3349 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3350 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3352 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3354 (__libc_system): Call it, putting just the line == NULL test here.
3356 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3357 variables work right.
3359 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3360 * elf/dl-close.c (_dl_close): Likewise.
3362 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3363 in6addr_any, in6addr_loopback. Remove decls for
3364 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3365 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3366 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3367 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3368 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3369 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3370 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3372 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3374 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3376 * inet/ether_aton_r.c: Add libc_hidden_def.
3377 * inet/ether_ntoa_r.c: Likewise.
3379 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3381 * sunrpc/svc.c: Add libc_hidden_def.
3382 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3383 pmap_set, pmap_unset.
3384 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3385 * sunrpc/pm_getport.c: Likewise.
3386 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3387 * sunrpc/publickey.c: Add libc_hidden_def.
3389 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3391 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3392 the other memset call in this function.
3394 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3395 at correct index. Clear BSS region now that memalign is used.
3397 2002-08-05 Roland McGrath <roland@redhat.com>
3399 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3400 * sysdeps/generic/uname.c: Add libc_hidden_def.
3401 * sysdeps/mach/hurd/uname.c: Likewise.
3403 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3405 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3406 wcspbrk): Add libc_hidden_proto.
3407 * time/strftime.c (my_strftime): Add libc_hidden_def.
3408 (strftime): Remove libc_hidden_def.
3409 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3410 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3411 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3412 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3413 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3414 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3416 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3417 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3418 __rpc_thread_createerr): Add libc_hidden_proto.
3419 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3420 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3421 __rpc_thread_createerr): Add libc_hidden_def.
3423 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3424 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3425 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3426 clnt_perror, clnt_sperror): Add libc_hidden_def.
3427 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3429 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3431 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3432 * sunrpc/des_soft.c (des_setparity): Likewise.
3434 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3435 Add libc_hidden_proto.
3436 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3437 Add libc_hidden_def.
3439 2002-08-05 Roland McGrath <roland@redhat.com>
3441 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3442 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3443 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3444 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3445 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3446 old data, abandoning the original memory allocated by rtld at startup,
3447 instead of calling realloc normally.
3449 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3451 * po/fr.po: Update from translation team.
3453 2002-08-04 Roland McGrath <roland@redhat.com>
3455 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3456 then generate a dummy module under the given name, obeying the
3457 normal rules for the "caller" field.
3459 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3460 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3462 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3463 weak here; we declare it weak or strong in the one place we use it.
3464 * sysdeps/generic/libc-start.c: ... which is here.
3465 Don't make the decl weak if [USE_TLS], since static programs need TLS
3466 setup even when single-threaded.
3468 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3470 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3471 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3472 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3473 all these variables.
3475 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3477 * include/stdio.h: Don't define macro magic to redirect function
3478 calls if _ISOMAC is defined.
3480 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3483 2002-08-04 Roland McGrath <roland@redhat.com>
3485 * stdlib/lrand48_r.c: Add libc_hidden_def.
3487 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3488 TCB with __libc_memalign instead of mmap.
3489 (_dl_deallocate_tls): Free it with free instead of munmap.
3491 * Makerules (cpp-srcs-left): When setting this to run
3492 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3493 words. Combine the two loops into one on the concatenated list,
3494 including those as well as $(test-srcs).
3496 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3497 since we align here with optimally minimal waste anyway.
3498 (malloc): Just call that.
3500 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3503 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3504 to compute memory location for l_tls_initimage.
3505 * elf/rtld.c (_dl_start): Likewise.
3506 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3508 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3509 because the .d file is generated in the non-shared case and
3510 so fails to catch them otherwise.
3512 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3513 split out of _dl_allocate_tls.
3514 (_dl_allocate_tls_init): Likewise.
3515 (_dl_allocate_tls): Call those.
3516 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3517 * elf/rtld.c (dl_main): Call them separately instead of calling
3518 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3519 is finished, so that the initializer data has been relocated before we
3520 copy it into the main thread's TLS block.
3522 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3523 loop conditions, prevented the last used module from being initialized.
3525 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3527 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3528 if glob resp. globfree are not macros.
3529 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3530 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3531 Add libc_hidden_ver.
3532 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3534 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3535 instead of libc_hidden_weak.
3536 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3537 libc_hidden_ver instead of libc_hidden_def.
3538 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3539 libc_hidden_ver instead of libc_hidden_def.
3540 (wcstoll, wcstoq): Remove libc_hidden_weak.
3541 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3543 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3545 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3547 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3550 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3552 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3553 to access _sys_siglist.
3554 * string/strsignal.c: Likewise.
3555 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3556 * sysdeps/gnu/siglist.c: Likewise.
3557 * sysdeps/unix/siglist.c: Likewise.
3558 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3560 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3562 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3564 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3566 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3568 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3569 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3570 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3572 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3573 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3575 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3576 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3577 and __gconv_get_cache respectively.
3578 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3579 defined static. Change all users.
3580 (__gconv_get_cache): New function.
3581 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3582 (__gconv_get_alias_db): New function.
3583 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3584 (__conv_modules_db): Likewise.
3585 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3586 and __gconv_get_alias_db.
3587 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3590 * include/stdlib.h: Add prototype and libc_hidden_proto for
3592 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3594 * malloc/obstack.c: Remove fputs macro.
3596 * malloc/mtrace.c: Remove fopen macro.
3598 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3600 * manual/debug.texi: Fix spelling to programmatically.
3601 Reported by <hayastan132@hotmail.com>.
3603 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3605 * include/libio.h: Add libc_hidden_proto for __uflow.
3606 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3607 fgetpos to _IO_* names.
3608 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3609 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3610 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3611 putwc_unlocked, vswscanf.
3612 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3613 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3614 * libio/fseek.c: Likewise.
3615 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3617 * libio/genops.c (__uflow): Add libc_hidden_def.
3618 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3619 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3620 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3621 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3622 * libio/iofread_u.c (fread_unlocked): Likewise.
3623 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3624 * libio/iovswscanf.c (vswscanf): Likewise.
3625 * libio/putwc_u.c (putwc_unlocked): Likewise.
3626 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3627 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3628 * malloc/mtrace.c: Likewise.
3630 * sunrpc/clnt_perr.c: Remove fputs macro.
3631 * sunrpc/svc_simple.c: Likewise.
3632 * sunrpc/svc_tcp.c: Likewise.
3633 * sunrpc/svc_udp.c: Likewise.
3634 * sunrpc/xdr_rec.c: Likewise.
3635 * sunrpc/xdr_ref.c: Likewise.
3637 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3638 iconv_prog, linereader, and charmap-dir.
3639 * locale/Makefile: Likewise for locale and charmap-dir.
3640 * malloc/Makefile: Likewise for memusagestat.
3641 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3642 * sunrpc/Makefile: Likewise for rpc_main.
3643 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3644 * timezone/Makefile: Likewise for zic.
3646 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3648 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3649 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3650 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3651 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3654 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3656 * libio/genops.c (__underflow): Add libc_hidden_def.
3657 * libio/wgenops.c (__wuflow): Likewise.
3658 (__wunderflow): Likewise.
3660 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3661 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3663 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3664 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3666 * include/string.h: Add libc_hidden_proto for __strverscmp.
3667 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3669 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3670 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3671 * sysdeps/posix/sysconf.c: Likewise.
3672 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3673 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3675 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3676 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3677 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3678 __iswxdigit_l, __towlower_l, __towupper_l.
3679 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3680 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3682 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3683 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3684 * sysdeps/mach/hurd/xmknod.c: Likewise.
3685 * sysdeps/unix/xmknod.c: Likewise.
3686 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3687 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3688 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3690 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3692 2002-08-03 Roland McGrath <roland@redhat.com>
3694 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3696 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3697 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3698 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3699 * sysdeps/mach/hurd/setpriority.c: Likewise.
3700 * sysdeps/mach/hurd/getpriority.c: Likewise.
3701 * sysdeps/generic/setpriority.c: Likewise.
3702 * sysdeps/generic/getpriority.c: Likewise.
3704 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3705 * malloc/mcheck.c: Add libc_hidden_def.
3707 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3708 * misc/hsearch_r.c: Add libc_hidden_def.
3710 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3711 * posix/fnmatch.c: Add libc_hidden_weak.
3713 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3714 execl, execle, execlp, execvp, getpid, getsid.
3715 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3716 * sysdeps/unix/alarm.c: Likewise.
3717 * posix/confstr.c: Likewise.
3718 * posix/execvp.c: Likewise.
3719 * posix/execlp.c: Likewise.
3720 * posix/execle.c: Likewise.
3721 * posix/execl.c: Likewise.
3722 * sysdeps/generic/getsid.c: Likewise.
3723 * sysdeps/mach/hurd/getsid.c: Likewise.
3724 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3725 * sysdeps/mach/hurd/getpid.c: Likewise.
3727 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3728 qecvt_r, qfcvt_r, lrand48_r.
3729 * misc/efgcvt_r.c: Add libc_hidden_def.
3731 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3732 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3734 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3735 * locale/nl_langinfo.c: Add libc_hidden_def.
3737 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3738 * sysdeps/generic/glob.c: Add libc_hidden_def.
3739 * sysdeps/generic/glob64.c: Likewise.
3740 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3742 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3744 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3746 * locale/setlocale.c (_nl_current_names): Variable moved ...
3747 * locale/localename.c (_nl_current_names): ... here, new file.
3748 Make it global, with attribute_hidden.
3749 * locale/localeinfo.h: Declare it.
3750 * locale/Makefile (aux): Add localename.
3751 * locale/localename.c (__current_locale_name): New function.
3752 * include/locale.h (__current_locale_name): Declare it.
3753 * intl/dcigettext.c (guess_category_value): Use that instead of
3756 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3757 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3758 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3759 * locale/newlocale.c: Add alias to __ name.
3760 * locale/duplocale.c: Likewise.
3761 * locale/freelocale.c: Likewise.
3762 * locale/uselocale.c: New file.
3763 * locale/Makefile (routines): Add it.
3764 * locale/Versions (libc: GLIBC_2.3): New set.
3765 Add newlocale, duplocale, freelocale, uselocale.
3766 (libc: GLIBC_PRIVATE): Add __uselocale.
3768 * locale/localeinfo.h [SHARED]
3769 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3770 (_NL_CURRENT_DATA): Define using that.
3771 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3772 (_NL_CURRENT_DEFINE): Define to empty.
3773 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3774 conditionalized on this.
3775 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3776 taking initializer of _nl_C_locobj.
3777 [SHARED] (_nl_global_locale): New variable, using that initializer.
3778 (_nl_C_locobj): Use new macro for initialzier.
3779 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3780 [! SHARED] (CATEGORY_USED): New macro.
3781 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3782 (setdata, setlocale): Use that macro instead of examining _nl_current.
3783 (setdata): Set the slot in _nl_global_locale.
3784 Conditionalize setting of _nl_current on [! SHARED].
3785 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3786 declaration as an extern.
3787 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3789 * include/locale.h: Use libc_hidden_proto for setlocale.
3790 * locale/setlocale.c: Add libc_hidden_def.
3792 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3794 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3795 * misc/hsearch_r.c: Add libc_hidden_def.
3796 * misc/lsearch.c: Likewise.
3798 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3800 * misc/getttyent.c: Add libc_hidden_def.
3802 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3803 * malloc/mcheck.c: Add libc_hidden_def.
3805 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3806 * include/argz.h: Use libc_hidden_proto for argz_delete.
3807 * string/argz-delete.c: Add libc_hidden_def.
3808 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3810 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3811 HIDDEN_JUMPTARGET for _exit.
3812 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3813 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3814 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3815 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3817 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3818 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3819 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3820 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3822 * include/stdlib.h: Use libc_hidden_proto for abort,
3823 __strtof_internal, __strtod_internal, __strtold_internal,
3824 __strtol_internal, __strtoll_internal, __strtoul_internal,
3825 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3826 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3827 __strtoul_l_internal, __strtoull_l_internal.
3828 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3829 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3830 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3831 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3832 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3834 * sysdeps/generic/abort.c: Add libc_hidden_def.
3835 * stdlib/strtod.c: Likewise.
3836 * sysdeps/generic/strtol.c: Likewise.
3837 * sysdeps/wordsize-64/strtol.c: Likewise.
3838 * sysdeps/wordsize-64/wcstol.c: Likewise.
3839 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3841 * include/stdlib.h: Use libc_hidden_proto for qsort.
3842 * stdlib/msort.c: Add libc_hidden_def.
3844 * include/utime.h: Use libc_hidden_proto for utime.
3845 * sysdeps/generic/utime.c: Add libc_hidden_def.
3846 * sysdeps/unix/utime.c: Likewise.
3848 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3849 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3850 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3851 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3852 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3854 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3855 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3856 and __libc_current_sigrtmax.
3857 * signal/sigismem.c: Add libc_hidden_def.
3858 * signal/sigfillset.c: Likewise.
3859 * signal/sigempty.c: Likewise.
3860 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3861 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3862 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3863 * sysdeps/posix/raise.c: Likewise.
3864 * sysdeps/generic/raise.c: Likewise.
3866 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3868 * include/string.h: Use libc_hidden_proto for __stpcpy.
3869 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3870 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3871 * sysdeps/generic/stpcpy.c: Likewise.
3872 * sysdeps/i386/stpcpy.S: Likewise.
3873 * sysdeps/i386/i586/stpcpy.S: Likewise.
3874 * sysdeps/powerpc/stpcpy.S: Likewise.
3875 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3876 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3878 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3879 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3880 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3882 * string/strdup.c (__strdup): Likewise.
3883 * string/strndup.c (__strndup): Likewise.
3884 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3885 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3887 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3889 * include/libio.h: New file.
3890 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3891 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3892 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3893 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3894 * sysdeps/unix/common/syscalls.list: Likewise.
3895 * sysdeps/unix/inet/syscalls.list: Likewise.
3896 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3897 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3898 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3899 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3900 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3901 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3902 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3903 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3904 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3905 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3906 * sysdeps/unix/syscalls.list: Likewise.
3908 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3909 Ulrich Drepper <drepper@redhat.com>
3911 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3912 the arguments is big enough to cause an overflow.
3914 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3916 * assert/assert.c: Use hidden_def not INTDEF.
3918 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3920 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3923 2002-08-03 Roland McGrath <roland@redhat.com>
3925 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3926 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3928 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3929 * misc/syslog.c: Add libc_hidden_def.
3930 * misc/err.c: Likewise.
3931 * stdlib/exit.c: Likewise.
3932 * stdlib/bsearch.c: Likewise.
3933 * sysdeps/generic/getenv.c: Likewise.
3935 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3937 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3938 libc_hidden_weak for every system call symbol defined.
3940 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3941 timelocal, localtime, strftime.
3942 * time/asctime.c: Add libc_hidden_def.
3943 * time/mktime.c: Likewise.
3944 * time/localtime.c: Likewise.
3945 * time/strftime.c: Likewise.
3946 * time/strptime.c: Likewise.
3947 * sysdeps/generic/time.c: Likewise.
3948 * sysdeps/unix/time.c: Likewise.
3949 * sysdeps/unix/sysv/i386/time.S: Likewise.
3950 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3952 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3953 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3954 * resolv/inet_ntop.c: Likewise.
3955 * resolv/inet_pton.c: Likewise.
3956 * inet/inet_mkadr.c: Add libc_hidden_def.
3957 * inet/inet_netof.c: Likewise.
3958 * resolv/inet_addr.c: Likewise.
3960 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3961 clauses from conditionals for now. Will have to be fixed later
3962 for older compilers.
3964 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3966 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3968 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3969 broken alias attribute handling.
3970 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3972 2002-08-02 Roland McGrath <roland@frob.com>
3974 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3975 since it sets the variables we use in a -D switch.
3977 2002-08-02 Roland McGrath <roland@redhat.com>
3979 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3980 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3981 matches long int, not int.
3983 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3984 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3985 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3986 * wctype/wctrans.c (wctrans): Likewise.
3987 * wctype/wctype.c (__wctype): Likewise.
3988 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3990 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3992 * assert/assert.c (__assert_fail): Fix typo in comment.
3994 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3995 * sunrpc/rpc_thread.c: Define it without static.
3996 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3998 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4000 * assert/assert.c (__assert_fail): Remove undef.
4001 Replace INTDEF with libc_hidden_def.
4002 * assert/__assert.c (__assert): Remove INTUSE.
4003 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4005 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4006 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4007 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4008 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4009 libm_hiden_ver): Define.
4010 * include/assert.h (__assert_fail_internal): Remove.
4011 (__assert_fail): Add prototype. Add hidden_proto.
4012 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4014 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4015 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4016 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4017 Add libc_hidden_proto.
4018 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4019 __fcntl): Add libc_hidden_proto. Remove macros.
4020 (__open_internal, __fcntl_internal): Remove.
4021 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4022 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4023 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4025 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4027 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4028 Add libc_hidden_def.
4029 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4030 * sysdeps/generic/open.c (__open): Remove undef.
4031 Add libc_hidden_def. Remove INTDEF.
4032 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4033 Add libc_hidden_def.
4034 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4035 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4036 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4037 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4038 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4039 (__libc_fcntl): Add libc_hidden_def.
4040 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4041 (__open): Remove INTDEF2. Add libc_hidden_weak.
4042 (__libc_open): Add libc_hidden_def.
4043 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4044 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4045 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4046 Add libc_hidden_def.
4047 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4048 Add libc_hidden_def.
4049 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4051 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4052 (__libc_fcntl): Add libc_hidden_def.
4053 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4054 __getpgid_internal, __chown_internal): Remove.
4055 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4056 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4058 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4059 __getpid_internal, __open_internal, __write_internal): Remove.
4060 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4061 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4062 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4063 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4064 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4065 Replace INTDEF with libc_hidden_def.
4066 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4067 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4068 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4069 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4070 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4071 Add libc_hidden_proto.
4072 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4073 * include/sys/select.h (__select): Likewise.
4074 * include/sys/socket.h (__send): Likewise.
4075 * include/sys/statfs.h (__statfs): Likewise.
4076 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4077 __getpid, __getpgid, __setpgid, __close, __read, __write,
4078 __getpagesize, __sbrk): Likewise.
4079 (__chown_internal, __dup2_internal, __getpid_internal,
4080 __getpgid_internal, __close_internal, __write_internal,
4081 __getpagesize_internal): Remove.
4082 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4084 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4085 * include/sched.h (__sched_setscheduler): Likewise.
4086 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4087 * include/stdlib.h (__secure_getenv): Likewise.
4088 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4089 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4090 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4091 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4092 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4093 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4094 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4095 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4096 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4097 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4098 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4099 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4100 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4101 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4102 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4103 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4104 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4105 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4106 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4107 * libio/genops.c (__overflow): Add libc_hidden_def.
4108 * libio/iovdprintf.c: Remove libio.h include.
4109 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4110 libc_hidden_weak): Define to nothing if not defined.
4111 (__overflow, __woverflow): Add libc_hidden_proto.
4112 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4113 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4114 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4115 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4116 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4117 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4118 and libc_hidden_def.
4119 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4120 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4121 (__getpgid): Add libc_hidden_proto.
4122 (__bsd_getpgrp): Remove INTUSE.
4123 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4125 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4126 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4127 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4128 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4129 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4130 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4131 __rpc_thread_createerr): Add libc_hidden_def.
4132 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4134 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4135 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4136 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4137 * sysdeps/generic/chown.c (__chown): Likewise.
4138 * sysdeps/generic/close.c (__close): Likewise.
4139 * sysdeps/generic/dup2.c (__dup2): Likewise.
4140 * sysdeps/generic/pipe.c (__pipe): Likewise.
4141 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4142 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4143 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4144 * sysdeps/generic/read.c (__libc_read): Likewise.
4145 (__read): Add libc_hidden_weak.
4146 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4147 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4148 * sysdeps/generic/select.c (__select): Likewise.
4149 * sysdeps/generic/send.c (__send): Likewise.
4150 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4151 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4152 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4153 * sysdeps/generic/statfs.c (__statfs): Likewise.
4154 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4155 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4156 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4157 Remove undef and INTDEF.
4158 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4159 * sysdeps/generic/getpid.c (__getpid): Likewise.
4160 * sysdeps/generic/write.c (__libc_write): Likewise.
4161 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4162 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4163 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4164 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4165 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4166 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4167 Remove undef and INTDEF.
4168 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4169 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4170 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4171 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4172 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4173 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4174 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4175 (__pipe): Add libc_hidden_def.
4176 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4178 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4179 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4180 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4181 (__read): Add libc_hidden_weak.
4182 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4183 (__libc_pwrite64): Add libc_hidden_def.
4184 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4185 * sysdeps/mach/hurd/select.c (__select): Likewise.
4186 * sysdeps/mach/hurd/send.c (__send): Likewise.
4187 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4188 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4189 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4190 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4191 * sysdeps/posix/dup2.c: Likewise.
4192 Remove undef and INTDEF.
4193 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4194 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4195 (__pwrite64): Add libc_hidden_weak.
4196 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4197 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4198 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4199 * sysdeps/standalone/close.c (__close): Likewise.
4200 * sysdeps/standalone/write.c (__libc_write): Likewise.
4201 (__write): Add libc_hidden_weak.
4202 * sysdeps/standalone/read.c (__read): Likewise.
4203 (__libc_read): Add libc_hidden_def.
4204 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4205 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4206 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4207 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4208 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4209 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4210 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4211 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4212 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4213 __GI___sigaction): Add.
4214 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4215 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4216 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4217 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4218 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4219 __GI___setpgid): Add.
4220 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4221 Remove undef and INTDEF.
4222 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4223 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4224 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4225 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4226 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4227 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4228 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4229 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4230 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4231 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4232 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4233 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4234 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4235 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4236 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4237 __GI___statfs, __GI___send): Add.
4238 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4239 libc_hidden_ver resp. libc_hidden_def.
4240 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4242 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4243 Likewise. Remove undef and INTDEF.
4244 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4245 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4246 __GI___statfs, __GI___send): Add.
4247 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4249 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4251 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4252 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4253 libc_hidden_ver resp. libc_hidden_def.
4254 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4256 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4257 Add libc_hidden_weak.
4258 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4259 Add libc_hidden_def.
4260 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4261 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4263 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4264 resp. libc_hidden_def.
4265 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4267 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4269 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4270 Likewise. Remove undef.
4271 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4273 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4274 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4276 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4278 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4279 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4280 Likewise. Remove undef and INTDEF.
4281 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4283 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4285 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4287 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4288 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4289 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4291 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4292 Add libc_hidden_def.
4293 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4294 __GI___statfs): Add.
4295 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4297 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4298 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4299 Remove undef and INTDEF.
4300 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4301 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4303 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4304 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4306 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4308 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4309 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4310 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4312 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4313 libc_hidden_def. Remove undef and INTDEF.
4314 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4315 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4317 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4318 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4319 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4320 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4321 Remove undef and INTDEF.
4322 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4323 broken visibility attribute handling.
4324 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4326 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4328 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4329 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4331 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4334 2002-06-29 Todd Fries <todd@openbsd.org>
4336 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4338 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4340 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4342 2002-07-30 Roland McGrath <roland@redhat.com>
4344 * resolv/resolv.h (_res): Define macro unconditionally.
4345 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4346 * include/resolv.h: ... here.
4347 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4348 as a __thread variable.
4349 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4350 a __thread variable instead of a global.
4351 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4353 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4356 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4358 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4359 decls of memset and memcpy.
4361 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4362 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4364 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4366 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4367 (__libc_tsd_define): Define using __thread.
4369 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4370 (__rpc_thread_variables): Use __libc_tsd_get.
4371 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4372 __rpc_thread_variables, which might allocate what we're about to free.
4374 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4375 thread-local variable.
4376 * resolv/netdb.h (h_errno): Define macro unconditionally.
4377 [_LIBC] (__set_h_errno): Macro moved to ...
4378 * include/netdb.h: ... here.
4379 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4380 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4381 [! _LIBC_REENTRANT]: #undef h_errno here.
4383 * include/errno.h: Protect from multiple inclusion.
4385 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4386 before defining them, since Linux's <linux/posix_types.h> might have
4389 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4391 * malloc/malloc.c (public_cALLOc): Check for overflow on
4393 * sunrpc/xdr_array.c (xdr_array): Likewise.
4394 * sunrpc/rpc/types.h (mem_free): Add comment.
4395 Patch by Solar Designer <solar@openwall.com>.
4397 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4399 * sysdeps/unix/sysv/linux/kernel-features.h
4400 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4402 2002-08-01 Roland McGrath <roland@redhat.com>
4404 * libio/fileops.c (_IO_file_sync_mmap): New function.
4405 (_IO_file_jumps_mmap): Use it.
4406 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4407 repeat the stat check and resize the mapped buffer as necessary.
4409 2002-07-31 Roland McGrath <roland@redhat.com>
4411 * libio/fileops.c (decide_maybe_mmap): New static function.
4412 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4413 mmap the file contents. Then switch the jump tables to the mmap
4414 tables if it worked, or the vanilla file tables if not.
4415 (_IO_file_underflow_maybe_mmap): New function.
4416 (_IO_file_seekoff_maybe_mmap): New function.
4417 (_IO_file_xsgetn_maybe_mmap): New function.
4418 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4419 * libio/libioP.h: Declare those.
4420 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4421 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4422 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4423 If the stream is read-only, set its jump tables to those new ones.
4424 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4425 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4426 We need the tables set before _IO_file_attach.
4428 * libio/tst-mmap-eofsync.c: New file.
4429 * libio/tst-mmap-fflushsync.c: New file.
4430 * libio/bug-mmap-fflush.c: New file.
4431 * libio/tst-mmap2-eofsync.c: New file.
4432 * libio/Makefile (tests): Add them.
4434 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4435 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4437 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4439 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4440 Declarations moved to <bits/sys_errlist.h>. Include that file.
4441 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4442 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4443 declare sys_errlist and sys_nerr.
4444 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4445 provide declarations.
4447 2002-07-31 Roland McGrath <roland@redhat.com>
4449 * elf/rtld.c (dl_main): Fix typo in error message.
4451 2002-07-31 Roland McGrath <roland@frob.com>
4453 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4454 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4455 sysdeps/mach/hurd/dl-sysdep.c change.
4457 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4459 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4460 -r`/build/include for kernel headers.
4462 * po/fi.po: New file.
4464 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4466 * configure.in (static_nss): Set to `yes' if --disable-shared.
4468 2002-07-23 Bruno Haible <bruno@clisp.org>
4470 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4473 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4475 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4476 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4479 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4481 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4484 2002-07-21 Bruno Haible <bruno@clisp.org>
4486 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4487 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4488 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4489 trans_sysdep_tab_offset.
4490 (struct sysdep_segment): New type.
4491 (struct sysdep_string): New type.
4492 (SEGMENTS_END): New macro.
4493 * intl/gettextP.h (struct sysdep_string_desc): New type.
4494 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4495 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4496 orig_tab, trans_tab, hash_tab to const pointers because they point
4497 into read-only memory.
4498 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4499 (PRI*): Define fallback values.
4500 (get_sysdep_segment_value): New function.
4501 (_nl_load_domain): Distinguish major and minor revision parts. Add
4502 support for minor revision 1 with system dependent strings.
4503 (_nl_unload_domain): Also free the 'malloced' field.
4504 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4505 now done in loadmsgcat.c. Add support for system dependent strings.
4507 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4509 * posix/bug-regex7.c: New file.
4510 * posix/bug-regex8.c: New file.
4511 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4513 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4515 * posix/bug-regex4.c (main): Fix typos.
4516 * posix/bug-regex6.c (main): Likewise.
4518 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4520 * posix/bug-regex6.c (main): Fix warnings.
4522 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4524 * iconv/iconv_prog.c (main): Improve error message for the cases
4525 where -t and/or -f parameter are missing.
4527 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4529 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4530 (re_search): Likewise.
4531 (re_match_2): Likewise.
4532 (re_search_2): Likewise.
4533 (re_search_stub): New function.
4534 (re_search_2_stub): New function.
4535 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4537 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4539 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4540 (re_string_eoi): Use STOP instead of LEN.
4541 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4542 (re_string_construct): Likewise.
4543 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4544 * posix/regexec.c (re_search_internal): Add a new argument STOP
4545 so that it can handle the argument STOP of re_search_2 and re_match_2
4547 (regexec): Adapt to new I/F of re_search_internal.
4548 (re_search_stub): Likewise.
4550 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4552 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4554 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4556 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4557 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4560 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4561 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4562 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4563 alias for adjtimex syscall.
4565 * elf/dl-minimal.c: Define __assert_fail_internal.
4566 * assert/assert.c: Likewise.
4567 * include/assert.h: Define __assert_file macro if !SHARED and not
4570 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4572 * locale/Makefile: Likewise.
4573 * nscd/Makefile: Likewise.
4574 * catgets/Makefile: Likewise.
4576 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4578 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4579 compute current position.
4581 * stdio-common/tst-fseek.c (main): Improve error messages.
4583 * libio/tst-freopen.c (main): Remove unused variable.
4585 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4586 succesful seek call. Simplify error checking.
4588 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4590 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4591 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4593 2002-07-19 Roland McGrath <roland@frob.com>
4595 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4596 __libc_enable_secure is set.
4598 2002-07-24 Roland McGrath <roland@frob.com>
4600 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4601 This implementation supports only IPv4.
4602 * inet/ifaddrs.h: New file.
4603 * sysdeps/generic/ifaddrs.c: New file.
4604 * sysdeps/gnu/ifaddrs.c: New file.
4605 * inet/test-ifaddrs.c: New file.
4606 * inet/Makefile (routines): Add ifaddrs.
4607 (headers): Add ifaddrs.h here.
4608 (tests): Add test-ifaddrs.
4609 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4611 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4612 socket call to get an AF_INET socket, instead of using __opensock.
4613 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4615 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4616 if not -1 use it instead of calling __opensock.
4617 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4618 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4619 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4621 * sysdeps/mach/hurd/ifreq.h: New file.
4622 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4623 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4624 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4626 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4627 which gets moved around. Calculate size of mmap'd buffer instead.
4629 2002-07-24 Philip Blundell <philb@gnu.org>
4631 * sysdeps/unix/arm/brk.S: Improve schedule.
4632 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4633 efficient instruction.
4634 (__socket): Optimize return sequence.
4636 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4638 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4639 sockets on old kernels.
4641 2002-07-22 Philip Blundell <philb@gnu.org>
4643 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4644 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4647 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4649 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4650 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4652 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4653 test to detect duplicate locales.
4655 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4656 position would be before beginning of file.
4657 (_IO_file_seekoff_mmap): Likewise.
4658 * libio/Makefile (tests): Add bug-fseek.
4659 * libio/bug-fseek.c: New file.
4661 * intl/explodename.c: Remove support for CEN-style locale variables.
4662 It was never used and shouldn't be since it's not portable.
4663 * intl/finddomain.c: Likewise.
4664 * intl/l10nflist.c: Likewise.
4665 * intl/loadinfo.h: Likewise.
4666 * locale/findlocale.c: Likewise.
4668 2002-07-24 Roland McGrath <roland@frob.com>
4670 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4671 position, calculate it to take into account an active pushback buffer.
4673 * libio/Makefile (tests): Add bug-ungetc.
4674 * libio/bug-ungetc.c: New file.
4676 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4678 * sysdeps/generic/libc-tls.c: New file.
4679 * csu/Makefile (routines): Add libc-tls.
4680 (static-only-routines): Add libc-tls.
4681 * elf/dl-support.c (_dl_phdr): New variable.
4682 (_dl_phnum): New variable.
4683 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4684 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4685 for !SHARED. First look through auxiliary vector. If TLS always
4686 call __pthread_initialize_minimal.
4688 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4689 in mmap call is never zero.
4691 2002-07-23 Andreas Jaeger <aj@suse.de>
4693 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4694 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4696 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4698 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4699 creation and removal of the temp file.
4701 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4703 * test-skeleton.c (create_temp_file): New function.
4705 2002-07-22 Andreas Jaeger <aj@suse.de>
4707 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4710 2002-07-21 Roland McGrath <roland@frob.com>
4712 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4713 put -I../include before -I../stdlib so we get the right errno.h et al.
4714 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4715 (CFLAGS-wcstof.c): Likewise.
4716 (CFLAGS-wcstold.c): Likewise.
4717 (CFLAGS-wcstod_l.c): Likewise.
4718 (CFLAGS-wcstof_l.c): Likewise.
4719 (CFLAGS-wcstold_l.c): Likewise.
4721 2002-07-19 Roland McGrath <roland@frob.com>
4723 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4725 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4727 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4728 __ASSUME_AT_XID is defined.
4729 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4731 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4732 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4734 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4735 (CFLAGS-wcstof.c): Likewise.
4736 (CFLAGS-wcstold.c): Likewise.
4737 (CFLAGS-wcstod_l.c): Likewise.
4738 (CFLAGS-wcstof_l.c): Likewise.
4739 (CFLAGS-wcstold_l.c): Likewise.
4741 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4743 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4744 __priority_which_t): Always typedef to int for C++.
4746 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4748 * configure.in: Add test for __thread support in compiler.
4749 * config.h.in: Add HAVE___THREAD.
4750 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4751 * include/sys/errno.h: Moved to...
4752 * stdlib/sys/errno.h: ...here. New file.
4753 * stdlib/errno.h: New file. Moved from...
4754 * include/errno.h: ...here. Changed into an internal header defining
4755 libc-local things like __set_errno.
4756 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4758 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4759 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4761 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4763 (_dl_start_final): ...here. Add code to initialize tls elements from
4765 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4766 if USE_TLS && HAVE___THREAD.
4767 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4768 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4769 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4770 * sysdeps/standalone/bits/errno.h: Likewise.
4771 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4772 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4773 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4774 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4775 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4776 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4777 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4778 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4779 use GL(dl_rtld_map), use map parameter.
4780 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4781 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4782 USE_TLS && HAVE___THREAD.
4783 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4784 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4786 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4788 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4789 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4790 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4791 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4792 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4793 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4795 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4797 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4798 MS_INVALIDATE values.
4800 2002-07-17 Andreas Schwab <schwab@suse.de>
4801 Ulrich Drepper <drepper@redhat.com>
4803 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4804 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4805 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4806 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4808 2002-07-01 H.J. Lu <hjl@gnu.org>
4810 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4813 * elf/circlemod1.c (circlemod1): Return int.
4814 * elf/circlemod2.c (circlemod2): Likewise.
4815 * elf/circlemod2a.c (circlemod2): Likewise.
4816 * elf/circlemod3.c (circlemod3): Likewise.
4817 (circlemod3a): A new function.
4819 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4821 * catgets/tst-catgets.c (main): Don't expect results for
4822 untranslated messages.
4824 * glibcbug.in: Fix little typo. Remove STDIO.
4826 * config.h.in: Fail if __FAST_MATH__ is defined.
4827 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4828 (CPPFLAGS-test-idouble.c): Likewise.
4829 (CPPFLAGS-test-ildouble.c): Likewise.
4831 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4833 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4834 * intl/tst-gettext.c: Correctly handle untranslated messages in
4837 * po/de.po: Update from translation team.
4839 2002-07-02 H.J. Lu <hjl@gnu.org>
4841 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4843 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4845 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4848 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4850 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4851 TLS fail if USE_TLS is not defined.
4853 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4854 and adjust state for seek position. [PR libc/4070]
4855 * libio/Makefile (tests): Add bug-rewind.
4856 * libio/bug-rewind.c: New file.
4858 2002-07-12 Philip Blundell <philb@gnu.org>
4860 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4861 (__backtrace): Use it.
4862 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4864 2002-07-12 Philip Blundell <philb@gnu.org>
4866 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4867 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4868 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4869 (elf_machine_rela): Remove unused variable.
4871 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4872 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4875 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4877 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4879 2002-07-14 Andreas Jaeger <aj@suse.de>
4881 * sysdeps/x86_64/bits/link.h: Add biarch support.
4883 2002-07-13 Andreas Jaeger <aj@suse.de>
4885 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4886 Use correct indices.
4887 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4889 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4891 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4892 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4893 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4894 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4895 * sysdeps/s390/s390-32/bits/link.h: Remove.
4896 * sysdeps/s390/s390-64/bits/link.h: Remove.
4897 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4898 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4899 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4900 * sysdeps/s390/bits/wordsize.h: New file.
4901 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4903 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4904 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4905 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4906 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4907 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4908 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4909 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4910 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4911 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4912 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4913 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4914 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4916 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4917 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4918 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4919 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4920 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4921 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4922 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4924 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4925 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4927 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4928 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4929 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4931 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4932 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4933 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4934 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4935 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4936 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4937 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4938 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4940 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4941 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4942 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4944 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4945 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4947 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4949 * Versions.def (libc): Add GLIBC_2.3.
4950 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4951 * stdlib/canonicalize.c: Add compatibility version for realpath
4952 and make new code available in GLIBC_2.3.
4954 2002-07-06 Bruno Haible <bruno@clisp.org>
4956 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4958 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4960 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4961 function do_init. Use __libc_once.
4962 (do_init): New function.
4964 * iconvdata/iso8859-11.h: Removed.
4965 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4966 (distribute): Remove iso8859-11.h.
4967 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4969 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4970 underflow operation if c == (W)EOF.
4972 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4974 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4975 non-zero, adjust exponent.
4976 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4977 Remove NO_LONG_DOUBLE aliases.
4978 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4979 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4980 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4981 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4983 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4984 Fix BITS_PER_MP_LIMB 32 extraction.
4985 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4986 exceptions for qNaNs.
4987 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4988 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4989 Raise exceptions when needed. Don't recurse unnecessarily.
4990 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4991 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4992 exceptions for qNaNs.
4993 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4994 to fix *quo return value sign.
4995 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4997 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4999 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5001 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5002 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5005 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5007 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5010 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5011 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5013 * Versions.def (libthread_db): Add GLIBC_2.3.
5015 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5017 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5018 new stream if possible.
5019 * libio/freopen64.c (freopen64): Likewise.
5020 * libio/Makefile (tests): Add tst-freopen.
5021 * libio/tst-freopen.c: New file.
5023 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5025 * libio/stdio.h (obstack_printf): Add format attribute.
5026 (obstack_vprintf): Likewise.
5028 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5030 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5031 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5032 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5035 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5037 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5038 (init_dfa): ...here.
5040 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5042 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5043 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5044 nodes in parse trees.
5045 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5046 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5047 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5048 nodes which can epsilon transit.
5049 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5050 to IS_EPSILON_NODE macro.
5051 * posix/regexec.c (update_regs): New function to update registers
5052 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5053 (proceed_next_node): Use the entities of the nodes to determine
5054 whether the node can transit to.
5055 (set_regs): Use update_regs function to update registers.
5057 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5059 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5060 * posix/bug-regex6.c: New file.
5061 * posix/Makefile (tests): Add bug-regex6.
5062 (bug-regex6-ENV): Set LOCPATH.
5064 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5066 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5067 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5069 2002-07-06 Bruno Haible <bruno@clisp.org>
5071 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5073 2002-07-06 Bruno Haible <bruno@clisp.org>
5075 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5078 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5080 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5082 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5084 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5086 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5087 * sysdeps/generic/bits/ustat.h: Likewise.
5089 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5091 2002-07-08 Andreas Jaeger <aj@suse.de>
5093 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5095 2002-07-08 Andreas Jaeger <aj@suse.de>
5097 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5099 2002-07-06 Andreas Jaeger <aj@suse.de>
5101 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5102 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5103 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5104 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5105 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5106 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5107 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5108 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5109 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5110 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5111 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5113 2002-06-05 Brian Youmans <3diff@gnu.org>
5115 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5116 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5117 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5118 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5119 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5120 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5121 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5122 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5123 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5124 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5125 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5126 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5127 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5128 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5129 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5130 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5131 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5132 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5133 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5134 * sysdeps/ia64/fpu/e_log.S: Likewise.
5135 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5136 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5137 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5138 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5139 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5140 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5141 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5142 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5143 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5144 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5145 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5146 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5147 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5148 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5149 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5150 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5151 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5152 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5153 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5154 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5155 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5156 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5157 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5158 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5159 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5160 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5161 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5162 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5163 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5164 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5165 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5166 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5167 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5168 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5169 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5170 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5171 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5172 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5173 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5174 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5175 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5176 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5177 * sysdeps/ia64/fpu/s_round.S: Likewise.
5178 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5179 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5180 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5181 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5182 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5183 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5184 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5185 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5186 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5187 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5188 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5189 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5190 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5191 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5192 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5193 reflect IBM donation of math library to FSF
5194 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5195 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5196 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5197 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5198 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5199 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5200 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5201 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5202 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5203 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5204 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5205 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5206 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5207 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5208 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5209 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5210 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5211 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5212 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5213 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5214 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5215 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5216 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5217 * sysdeps/vax/__longjmp.c: Likewise.
5218 * sysdeps/vax/setjmp.c: Likewise.
5219 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5220 remove advertising clause
5221 * sysdeps/vax/htonl.s: Likewise.
5222 * sysdeps/vax/htons.s: Likewise.
5223 * libio/wfiledoalloc.c: Likewise.
5224 * stdlib/random.c: Likewise.
5225 * stdlib/random_r.c: Likewise.
5226 * sysdeps/mach/sys/reboot.h: Likewise.
5227 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5228 * sysdeps/posix/getaddrinfo.c: Likewise.
5229 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5230 GPL and corrected pointer to point to the correct license.
5232 2002-07-04 Andreas Jaeger <aj@suse.de>
5234 * scripts/config.guess: New upstream version.
5235 * scripts/config.sub: Likewise.
5237 2002-07-02 Andreas Schwab <schwab@suse.de>
5239 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5240 in parallel to bumping up the buffer pointer.
5242 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5244 * math/libm-test.inc (acos_test): Add missing L suffix for
5246 (cpow_test): Likewise.
5247 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5248 error for acos (0.0625).
5250 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5252 * locale/iso-639.def: Add entry for Ganda.
5253 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5255 (address_finish): Handle entries with two letter ISO 639 code.
5257 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5258 directory if it existed before.
5259 * iconv/iconvconfig.c: Implement --prefix option.
5261 * math/libm-test.inc (cexp_test): Add missing L suffix for
5262 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5263 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5266 2002-05-29 H.J. Lu <hjl@gnu.org>
5268 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5271 2002-05-28 H.J. Lu <hjl@gnu.org>
5273 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5274 are not dlopened on the dependency list of a dlopened object.
5276 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5278 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5279 dependencies if they are created between objects which are created
5280 while processing RTLD_NOW for objects loaded as part of the same
5283 2002-06-14 H.J. Lu <hjl@gnu.org>
5285 * elf/Makefile (tests): Add circleload1.
5286 (modules-names): Add circlemod1, circlemod2, circlemod3,
5287 circlemod1a, circlemod2a and circlemod3a.
5288 ($(objpfx)circleload1): New target.
5289 ($(objpfx)circleload1.out): Likewise.
5290 ($(objpfx)circlemod1.so): Likewise.
5291 ($(objpfx)circlemod2.so): Likewise.
5292 ($(objpfx)circlemod1a.so): Likewise.
5293 ($(objpfx)circlemod2a.so): Likewise.
5294 * elf/circleload1.c: New file.
5295 * elf/circlemod1.c: New file.
5296 * elf/circlemod1a.c: New file.
5297 * elf/circlemod2.c: New file.
5298 * elf/circlemod2a.c: New file.
5299 * elf/circlemod3.c: New file.
5300 * elf/circlemod3a.c: New file.
5302 2002-06-18 Amos Waterland <apw@us.ibm.com>
5304 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5306 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5307 add check for fd not open for writing.
5309 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5310 completed element(s) and do not suspend thread if so. Patch
5311 heavily modified by drepper.
5313 * rt/tst-aio7.c: New file. Regression test for problems which the
5314 above three changes fix.
5315 * rt/Makefile (tests): Add tst-aio7.
5317 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5319 * rt/tst-aio6.c: Fix comment.
5321 * catgets/gencat.c (read_input_file): Handle more than one slash
5322 at end of line correctly [PR libc/3926].
5323 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5325 * catgets/sample.SJIS: Add test case for above bug.
5326 * catgets/test-gencat.c: Adjust test code.
5327 * catgets/test-gencat.sh: Adjust expected results.
5329 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5330 to skip relative relocations.
5331 Patch by Geoff Keating <geoffk@redhat.com>.
5333 2002-05-26 Bruno Haible <bruno@clisp.org>
5335 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5336 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5337 All callers changed.
5338 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5339 STANDARD_FROM_LOOP_ERR_HANDLER.
5340 (utf8_internal_loop): Likewise.
5341 (ucs2_internal_loop): Likewise.
5342 (internal_ucs2_loop): Perform error handling like in
5343 STANDARD_FROM_LOOP_ERR_HANDLER.
5344 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5345 in STANDARD_FROM_LOOP_ERR_HANDLER.
5346 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5348 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5349 in STANDARD_FROM_LOOP_ERR_HANDLER.
5350 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5352 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5353 in STANDARD_FROM_LOOP_ERR_HANDLER.
5354 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5356 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5357 STANDARD_FROM_LOOP_ERR_HANDLER.
5358 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5359 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5360 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5361 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5362 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5363 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5364 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5365 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5366 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5367 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5368 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5369 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5370 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5371 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5372 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5373 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5374 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5375 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5376 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5377 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5378 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5379 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5380 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5381 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5382 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5383 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5384 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5385 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5386 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5387 an error, still set result = __GCONV_ILLEGAL_INPUT.
5388 (BODY for TO_LOOP): Likewise.
5389 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5390 STANDARD_FROM_LOOP_ERR_HANDLER.
5391 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5392 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5393 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5395 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5396 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5397 STANDARD_FROM_LOOP_ERR_HANDLER.
5398 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5399 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5400 STANDARD_FROM_LOOP_ERR_HANDLER.
5401 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5402 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5403 STANDARD_FROM_LOOP_ERR_HANDLER.
5404 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5405 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5406 STANDARD_FROM_LOOP_ERR_HANDLER.
5407 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5408 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5409 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5411 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5412 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5413 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5414 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5416 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5418 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5419 labels in assembler instructions.
5421 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5423 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5424 not enough content is available.
5425 * libio/tst-eof.c: New file.
5426 * libio/Makefile (tests): Add tst-eof.
5428 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5430 * libio/tst-atime.c: New file.
5431 * libio/Makefile (tests): Add tst-atime.
5433 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5434 handling of overly long words.
5436 2002-06-25 Andreas Jaeger <aj@suse.de>
5438 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5439 to not use 32-bit pc relative relocations.
5440 (elf_machine_dynamic): Likewise.
5442 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5444 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5445 (__GETDENTS): Check for failed getdents64 syscall.
5446 * dirent/Makefile (tests): Add bug-readdir1.
5447 * dirent/bug-readdir1.c: New file.
5449 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5451 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5453 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5454 code. Print TLS modid and offset for modules containing PT_TLS
5457 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5459 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5460 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5461 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5462 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5464 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5466 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5467 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5468 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5469 * nss/getXXent_r.c (NEW, NEW1): Define.
5470 (NEW (REENTRANT_GETNAME)): Strong alias to
5471 INTERNAL (REENTRANT_GETNAME).
5472 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5474 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5476 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5477 (_IO_file_jumps_mmap): Use it.
5478 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5479 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5480 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5482 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5483 (_IO_wfile_jumps_mmap): Don't use it anymore.
5484 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5485 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5486 _IO_wdefault_setbuf.
5487 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5488 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5489 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5491 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5493 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5494 * libio/tst-mmap-setvbuf.c: New test.
5496 2002-06-21 Andreas Jaeger <aj@suse.de>
5498 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5500 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5502 * include/unistd.h (__fork_internal): Remove.
5503 (__fork): Don't define to __fork_internal.
5504 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5505 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5506 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5507 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5508 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5510 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5512 * po/hr.po: New file.
5514 2002-06-11 Wolfram Gloger <wg@malloc.de>
5516 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5517 Reported by Michael Meissner <meissner@redhat.com>.
5519 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5521 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5522 Patch by Hans Boehm <hans_boehm@hp.com>.
5524 2002-06-20 Andreas Jaeger <aj@suse.de>
5526 * math/libm-test.inc: Use exact values as input parameters,
5527 compute output parameters with 36 digits for 128-bit long doubles.
5528 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5529 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5530 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5532 2002-06-13 Stephen L Moshier <steve@moshier.net>
5534 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5535 argument or result is subnormal.
5537 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5539 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5541 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5542 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5544 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5546 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5548 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5549 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5550 Reported by Peter A. Buhr.
5552 2002-06-15 Roland McGrath <roland@frob.com>
5554 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5557 * sysdeps/mach/hurd/getcwd.c
5558 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5560 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5561 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5563 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5564 jump to local subroutine.
5566 2002-06-14 Roland McGrath <roland@frob.com>
5568 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5569 * sysdeps/mach/hurd/Makeconfig: ... here.
5571 2002-06-13 Andreas Schwab <schwab@suse.de>
5573 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5574 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5575 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5577 2002-06-13 Roland McGrath <roland@frob.com>
5579 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5580 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5581 Use intptr_t instead of int for argc in stack layout.
5582 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5583 (_dl_init_first): Likewise.
5584 (_hurd_stack_setup): Likewise.
5585 (init1): Add a cast.
5586 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5588 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5589 argument to pfinet_siocgifconf RPC.
5591 2002-06-13 Andreas Schwab <schwab@suse.de>
5593 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5596 2002-06-12 Roland McGrath <roland@frob.com>
5598 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5600 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5601 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5603 2002-06-11 Roland McGrath <roland@frob.com>
5605 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5606 file on [!RTLD_STAT64].
5607 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5609 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5610 (__fdopen): Use INTUSE.
5611 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5613 * stdio-common/tmpfile64.c: File removed.
5614 * sysdeps/generic/tmpfile64.c: New file.
5615 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5616 if not already defined.
5617 (tmpfile): Use it in place of __GT_FILE.
5619 * include/unistd.h: Declare __chown_internal.
5621 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5622 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5624 2002-06-09 Roland McGrath <roland@frob.com>
5626 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5627 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5628 value of HURD_INTERFACE_VERSION >= 20020609.
5629 * sysdeps/mach/hurd/configure: Regenerated.
5630 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5631 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5632 convert a struct stat64 into a struct stat and return 0 or -1
5633 with errno set to EOVERFLOW.
5634 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5635 for struct statfs64 to struct statfs.
5636 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5637 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5638 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5639 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5640 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5641 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5642 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5643 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5644 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5645 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5646 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5647 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5648 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5649 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5650 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5651 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5652 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5653 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5654 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5655 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5656 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5657 Use struct stat64 for io_stat argument.
5658 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5659 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5661 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5662 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5663 * hurd/hurd/fd.h: Update decls.
5664 * sysdeps/mach/hurd/getcwd.c
5665 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5666 and struct dirent64.
5667 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5668 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5669 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5670 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5672 2002-06-08 Roland McGrath <roland@frob.com>
5674 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5675 instead of unsigned long int for __allocation and __size members.
5677 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5679 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5680 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5681 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5682 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5684 2002-06-07 Roland McGrath <roland@frob.com>
5686 * sysdeps/mach/hurd/bits/environments.h: File removed.
5688 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5690 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5691 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5692 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5693 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5694 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5695 (sendfile64): Likewise.
5696 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5697 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5698 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5700 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5702 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5705 2002-06-04 Bruno Haible <bruno@clisp.org>
5707 * sysdeps/cris/stackinfo.h: New file.
5709 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5710 to an integer type before performing bit operations on it.
5712 2002-06-05 Roland McGrath <roland@frob.com>
5714 * sysdeps/generic/sendfile.c: Include <errno.h>.
5715 * sysdeps/generic/sendfile64.c: Likewise.
5717 * io/Makefile (routines): Add sendfile and sendfile64.
5718 (headers): Add sys/sendfile.h to the list.
5719 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5720 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5721 * io/sys/sendfile.h: ... here.
5722 * sysdeps/generic/sendfile.c: New file.
5723 * sysdeps/generic/sendfile64.c: New file.
5725 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5726 Move sendfile, sendfile64 to ...
5727 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5728 * sysdeps/mach/hurd/sendfile.c: New file.
5729 * sysdeps/mach/hurd/sendfile64.c: New file.
5731 * sysdeps/mach/nanosleep.c: New file.
5733 2002-06-04 Roland McGrath <roland@frob.com>
5735 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5736 * sysdeps/alpha/elf/configure: New file (generated).
5738 2002-06-02 Roland McGrath <roland@frob.com>
5740 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5742 2002-06-01 Roland McGrath <roland@frob.com>
5744 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5745 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5747 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5749 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5751 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5752 Remove nstimes setting.
5753 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5754 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5755 there is mix of IPv6 and IPv4 nameservers.
5756 Use nsmap array to find free slots and preserve nameserver ordering.
5759 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5761 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5762 use this header with LFS.
5764 * po/sk.po: Update from translation team.
5766 2002-05-28 Andreas Schwab <schwab@suse.de>
5768 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5769 message when finding object of wrong class.
5771 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5773 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5774 Patch by <radu@netsoft.ro>.
5776 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5778 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5780 * sysdeps/unix/sysv/linux/readahead.c: New file.
5781 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5782 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5783 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5784 Add sendfile64 alias to sendfile syscall.
5785 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5786 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5787 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5788 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5791 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5792 special section for PIC register loading.
5793 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5795 * config.h.in: Define HAVE_HIDDEN.
5796 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5798 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5800 2002-05-28 Roland McGrath <roland@frob.com>
5802 * sysdeps/mach/alpha/setfpucw.c: New file.
5804 2002-05-26 Roland McGrath <roland@frob.com>
5806 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5807 Use integer_t instead of int for IOC_VOID case.
5809 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5811 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5813 2002-05-26 Bruno Haible <bruno@clisp.org>
5815 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5816 end of the ISO-8859-7 from idx table.
5818 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5820 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5822 2002-05-24 David S. Miller <davem@redhat.com>
5824 * string/bits/string2.h (memset): Do not try to optimize when
5825 not _STRING_ARCH_unaligned if GCC will do the right thing.
5827 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5829 * posix/regex.c: Define `inline' as a macro into nothing for the
5830 compilers which lack the keyword.
5831 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5832 for the compatibility of gawk.
5833 * posix/regcomp.c: Add fake implementation of isblank() for the
5834 environments which lack the function.
5835 Don't use free_charset() in case of non-i18n envs.
5836 (build_range_exp): Don't use i18n related code in case of non-i18n
5838 (build_collating_symbol): Likewise.
5839 (build_equiv_class): Likewise.
5840 (build_charclass): Likewise.
5841 (re_compile_fastmap_iter): Likewise.
5842 (parse_bracket_exp): Likewise.
5843 (build_word_op): Likewise.
5844 (regfree): Don't use free_charset() in case of non-i18n envs.
5845 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5846 re_token_type_t in case of non-i18n envs.
5847 Don't define re_charset_t in case of non-i18n envs.
5848 Change the type of wcs of re_string_t from wchar_t to wint_t,
5849 since we store also WEOF.
5850 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5851 the type of wcs of re_string_t from wchar_t to wint_t.
5852 (re_string_reconstruct): Likewise.
5853 (create_ci_newstate): Don't use i18n related code in case of
5855 (create_cd_newstate): Likewise.
5857 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5859 * iconv/loop.c: Fix typo.
5861 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5863 * inet/ether_line.c (ether_line): Fix a typo causing only
5864 lower 4 bits of each ethernet address byte being assigned.
5865 Don't modify what line points to.
5866 * inet/tst-ether_aton.c (main): Add ether_line tests.
5868 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5870 * manual/filesys.texi: Don't make readlink example leak memory
5871 when readlink fails.
5873 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5875 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5876 some more security checks.
5878 2002-05-17 David S. Miller <davem@redhat.com>
5880 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5882 2002-05-16 David S. Miller <davem@redhat.com>
5884 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5885 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5886 (elf_machine_load_address): Likewise.
5887 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5889 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5890 is unaligned, do not forget to fully initialize %g1 magic value.
5892 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5893 register definitions and provide 32-bit variants of structures
5894 during 64-bit builds.
5896 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5897 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5898 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5899 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5900 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5901 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5902 Do not clear implicit one bit here, it must be done post-rounding.
5903 Only pad to the left using left shift if value uses less than the
5904 available fractional bits.
5906 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5908 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5909 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5910 (shared-only-routines): Likewise.
5911 * sysdeps/powerpc/libgcc-compat.c: New file.
5912 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5913 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5914 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5915 * sysdeps/wordsize-32/shdi3.c: Removed.
5917 2002-05-16 Bruno Haible <bruno@clisp.org>
5919 * MakeTAGS (libc.pot): Don't sort the output.
5920 * po/header.pot: Update to match xgettext 0.11 output.
5922 2002-05-16 Bruno Haible <bruno@clisp.org>
5924 * MakeTAGS (subdirs): Remove duplicates.
5926 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5928 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5929 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5932 2002-05-19 Andreas Jaeger <aj@suse.de>
5934 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5935 installation in /usr/local.
5937 2002-05-16 Bruno Haible <bruno@clisp.org>
5939 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5940 string as argument of #error.
5942 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5944 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5945 don't define static. Remove old __realpath function. TC1 of
5946 POSIX 2001 will allow the second parameter to be NULL.
5947 * stdlib/test-canon.c: Comment out test for NULL as second
5948 parameter of realpath.
5950 * time/offtime.c (__offtime): Set errno if overflow is detected.
5952 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5953 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5956 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5959 2002-05-15 Roland McGrath <roland@frob.com>
5961 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5963 2002-05-12 Bruno Haible <bruno@clisp.org>
5965 * iconvdata/testdata/EUC-JISX0213: New file.
5966 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5967 * iconvdata/testdata/SHIFT_JISX0213: New file.
5968 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5969 * iconvdata/testdata/ISO-2022-JP-3: New file.
5970 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5971 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5972 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5973 contains comments indicating precomposed characters.
5975 2002-04-21 Bruno Haible <bruno@clisp.org>
5977 * iconvdata/iso-2022-jp-3.c: New file.
5978 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5979 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5980 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5981 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5982 (distribute): Add iso-2022-jp-3.c.
5984 2002-05-12 Bruno Haible <bruno@clisp.org>
5986 * iconvdata/tst-table-to.c (main): Restore handling of
5987 transliterations, broken by last patch.
5989 2002-05-12 Bruno Haible <bruno@clisp.org>
5991 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5993 2002-05-12 Bruno Haible <bruno@clisp.org>
5995 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5996 when there is not enough room in the output buffer.
5997 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5999 2002-04-20 Bruno Haible <bruno@clisp.org>
6001 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6003 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6004 Also make this macro work if FROM_DIRECTION evaluates to 0.
6005 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6006 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6007 of consume_incomplete.
6008 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6009 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6011 * iconvdata/cp1258.c: Likewise.
6012 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6013 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6015 * iconvdata/ibm933.c: Likewise.
6016 * iconvdata/ibm935.c: Likewise.
6017 * iconvdata/ibm937.c: Likewise.
6018 * iconvdata/ibm939.c: Likewise.
6019 * iconvdata/iso-2022-cn.c: Define
6020 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6021 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6022 * iconvdata/iso-2022-cn-ext.c: Likewise.
6023 * iconvdata/iso-2022-jp.c: Define
6024 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6025 {MIN,MAX}_NEEDED_{FROM,TO}.
6026 * iconvdata/tcvn5712-1.c: Define
6027 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6028 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6029 * iconvdata/euc-jisx0213.c: Define
6030 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6031 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6032 * iconvdata/shift_jisx0213.c: Likewise.
6034 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6036 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6037 shdi3, fixdfdi, fixsfdi in csu dir.
6038 (shared-only-routines): Likewise.
6039 * sysdeps/wordsize-32/cmpdi2.c: New file.
6040 * sysdeps/wordsize-32/shdi3.c: New file.
6041 * sysdeps/wordsize-32/fixdfdi.c: New file.
6042 * sysdeps/wordsize-32/fixsfdi.c: New file.
6043 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6044 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6045 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6047 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6048 Only use va_arg if the argument will be used [PR libc/3259].
6050 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6052 * catgets/catgets.c (catopen): Free buffer if internal catalog
6055 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6057 * debug/xtrace.sh: Make more robust. For realtime tracking use
6058 non-buffering methods.
6059 * debug/pcprofiledump.c: Implement -u option.
6060 Patch by Roger Luethi <rl@hellgate.ch>.
6062 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6064 * include/netinet/in.h (bindresvport_internal): Add prototype.
6065 * include/rpc/auth.h (authunix_create_internal,
6066 authunix_create_default_internal, authnone_create_internal,
6067 authdes_pk_create_internal): Add prototypes.
6068 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6069 clntudp_create_internal, clntudp_bufcreate_internal,
6070 clntunix_create_internal): Add prototypes.
6071 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6072 svc_getreq_internal, svc_getreq_common_internal,
6073 svc_getreqset_internal, svc_getreq_poll_internal,
6074 svc_register_internal, svc_unregister_internal,
6075 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6076 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6077 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6078 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6079 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6080 * inet/rcmd.c (rcmd_af): Use __listen.
6081 (rresvport_af): Use __bind.
6082 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6083 authunix_create, authunix_create_default, authnone_create,
6084 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6085 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6086 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6087 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6088 _authenticate, add INTDEF after such function definitions.
6089 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6090 __setsockopt, __getsockname instead of non-__ variants.
6091 * sunrpc/pmap_rmt.c: Likewise.
6092 * sunrpc/rtime.c: Likewise.
6093 * sunrpc/svc_udp.c: Likewise.
6094 * sunrpc/clnt_unix.c: Likewise.
6095 * sunrpc/svc_unix.c: Likewise.
6096 * sunrpc/bindrsvprt.c: Likewise.
6097 * sunrpc/svc_tcp.c: Likewise.
6098 * sunrpc/auth_none.c: Likewise.
6099 * sunrpc/clnt_raw.c: Likewise.
6100 * sunrpc/clnt_tcp.c: Likewise.
6101 * sunrpc/auth_unix.c: Likewise.
6102 * sunrpc/key_call.c: Likewise.
6103 * sunrpc/clnt_gen.c: Likewise.
6104 * sunrpc/pm_getmaps.c: Likewise.
6105 * sunrpc/clnt_simp.c: Likewise.
6106 * sunrpc/pmap_clnt.c: Likewise.
6107 * sunrpc/svc_run.c: Likewise.
6108 * sunrpc/svc.c: Likewise.
6109 * sunrpc/svc_simple.c: Likewise.
6110 * sunrpc/pm_getport.c: Likewise.
6111 * sunrpc/auth_des.c: Likewise.
6112 * sunrpc/svc_auth.c: Likewise.
6113 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6114 __register_frame_info_table_bases, __deregister_frame_info_bases):
6116 (__register_frame_info_bases_internal,
6117 __register_frame_info_table_bases_internal,
6118 __deregister_frame_info_bases_internal): Add prototypes.
6119 (__register_frame_info, __register_frame): Use INTUSE in call to
6120 __register_frame_info_bases.
6121 (__register_frame_info_table): Similarly.
6122 (__deregister_frame_info, __deregister_frame): Similarly.
6123 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6124 sendto as weak alias.
6125 * sysdeps/mach/hurd/sendto.c: Likewise.
6126 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6127 recvfrom as weak alias.
6128 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6129 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6130 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6131 recvmsg as weak alias.
6132 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6133 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6134 sendmsg as weak alias.
6135 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6136 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6137 setsockopt, add setsockopt as weak alias.
6138 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6139 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6141 * sysdeps/mach/hurd/bind.c: Likewise.
6142 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6144 * sysdeps/mach/hurd/listen.c: Likewise.
6145 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6146 getsockname, add getsockname as weak alias.
6147 * sysdeps/mach/hurd/getsockname.c: Likewise.
6148 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6149 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6150 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6151 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6152 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6153 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6155 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6156 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6157 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6158 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6159 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6160 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6161 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6162 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6163 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6164 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6165 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6166 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6168 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6170 * locale/programs/localedef.h (show_archive_content): Add verbose
6172 * locale/programs/localedef.c (main): Adjust caller.
6173 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6175 (nameentcmp, dataentcmp): New functions.
6177 (show_archive_content): Print verbose listing with --list-archive -v.
6179 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6181 * locale/programs/locarchive.c (open_archive): Take extra argument
6182 readonly. If true open file with O_RDONLY and don't create the
6183 archive if it doesn't exist.
6185 (close_archive): Don't do anything if fd element is -1.
6186 * locale/programs/localedef.h (open_archive): Adjust prototype.
6187 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6190 * malloc/malloc.c (__posix_memalign): Correct check for size of
6191 alignment value [PR libc/3444].
6193 * include/stdio.h: Remove references to old stdio implementation.
6195 * libio/Makefile (bug-ungetwc2-ENV): Define.
6197 2002-05-13 Roland McGrath <roland@frob.com>
6199 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6201 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6203 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6205 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6206 Allocate three, not two, more than LEN when appending '/.'.
6207 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6208 if NAME ends with '/.' if it is shorter than 2 chars.
6210 2002-05-12 Roland McGrath <roland@frob.com>
6212 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6213 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6215 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6216 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6218 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6220 * sysdeps/ia64/Makefile: Remove extra endif.
6221 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6223 2002-05-10 Andreas Schwab <schwab@suse.de>
6225 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6227 2002-05-09 Andreas Jaeger <aj@suse.de>
6229 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6230 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6231 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6233 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6234 * sysdeps/wordsize-64/glob.c: ...here.
6235 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6236 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6237 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6239 2002-05-08 Roland McGrath <roland@frob.com>
6241 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6242 O_NOTRANS flag in "." lookup.
6244 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6246 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6248 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6250 * locale/duplocale.c (__duplocale): Update special members only
6251 when allocation succeeded.
6253 2002-05-03 Roland McGrath <roland@frob.com>
6255 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6256 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6258 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6260 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6261 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6262 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6263 * sysdeps/ia64/ia64libgcc.S: New file.
6265 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6267 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6269 * malloc/memusage.c: Distinguish anonymous mmap.
6271 2002-05-01 Roland McGrath <roland@frob.com>
6273 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6274 and use INTDEF on it.
6275 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6277 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6279 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6281 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6283 * malloc/memusage.c: Add support for tracking mmap & friends.
6284 * malloc/memusage.sh: Implement -m/--mmap option.
6286 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6288 * locale/programs/locarchive.c (create_archive): Add archivefname
6289 argument, create fname from it.
6290 (enlarge_archive): Honour output_prefix.
6291 (open_archive): Likewise.
6293 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6295 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6296 too many stpcpy macros.
6298 2002-04-26 Bruno Haible <bruno@clisp.org>
6300 * locale/programs/ld-collate.c (collate_read): Cast first argument
6303 2002-04-26 Bruno Haible <bruno@clisp.org>
6305 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6306 __dcngettext_internal): New declarations.
6307 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6308 attribute declarations.
6310 2002-04-30 Roland McGrath <roland@frob.com>
6312 Removed old GNU stdio implementation; GNU libio is now the only option.
6313 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6314 Define USE_IN_LIBIO unconditionally.
6315 * configure: Regenerated.
6316 * Makeconfig (stdio): Set to libio by default.
6317 * config.make.in (stdio): Variable removed.
6318 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6319 * sysdeps/unix/sysv/linux/configure: Regenerated.
6320 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6321 * sysdeps/mach/hurd/configure: Regenerated.
6322 * stdio/.cvsignore: File removed.
6323 * stdio/Makefile: File removed.
6324 * stdio/Versions: File removed.
6325 * stdio/__fbufsize.c: File removed.
6326 * stdio/__flbf.c: File removed.
6327 * stdio/__fpending.c: File removed.
6328 * stdio/__fpurge.c: File removed.
6329 * stdio/__freadable.c: File removed.
6330 * stdio/__freading.c: File removed.
6331 * stdio/__fsetlocking.c: File removed.
6332 * stdio/__fwritable.c: File removed.
6333 * stdio/__fwriting.c: File removed.
6334 * stdio/clearerr.c: File removed.
6335 * stdio/fclose.c: File removed.
6336 * stdio/fcloseall.c: File removed.
6337 * stdio/feof.c: File removed.
6338 * stdio/ferror.c: File removed.
6339 * stdio/fflush.c: File removed.
6340 * stdio/fgetc.c: File removed.
6341 * stdio/fgetpos.c: File removed.
6342 * stdio/fgets.c: File removed.
6343 * stdio/fileno.c: File removed.
6344 * stdio/fmemopen.c: File removed.
6345 * stdio/fopen.c: File removed.
6346 * stdio/fopncook.c: File removed.
6347 * stdio/fputc.c: File removed.
6348 * stdio/fputs.c: File removed.
6349 * stdio/fread.c: File removed.
6350 * stdio/freopen.c: File removed.
6351 * stdio/fseek.c: File removed.
6352 * stdio/fsetpos.c: File removed.
6353 * stdio/ftell.c: File removed.
6354 * stdio/fwrite.c: File removed.
6355 * stdio/getc.c: File removed.
6356 * stdio/getchar.c: File removed.
6357 * stdio/getdelim.c: File removed.
6358 * stdio/gets.c: File removed.
6359 * stdio/glue.c: File removed.
6360 * stdio/internals.c: File removed.
6361 * stdio/linewrap.c: File removed.
6362 * stdio/linewrap.h: File removed.
6363 * stdio/memstream.c: File removed.
6364 * stdio/newstream.c: File removed.
6365 * stdio/obstream.c: File removed.
6366 * stdio/putc.c: File removed.
6367 * stdio/putchar.c: File removed.
6368 * stdio/puts.c: File removed.
6369 * stdio/rewind.c: File removed.
6370 * stdio/setbuf.c: File removed.
6371 * stdio/setbuffer.c: File removed.
6372 * stdio/setlinebuf.c: File removed.
6373 * stdio/setvbuf.c: File removed.
6374 * stdio/stdio.h: File removed.
6375 * stdio/ungetc.c: File removed.
6376 * stdio/vasprintf.c: File removed.
6377 * stdio/vscanf.c: File removed.
6378 * stdio/vsnprintf.c: File removed.
6379 * stdio/vsprintf.c: File removed.
6380 * stdio/vsscanf.c: File removed.
6381 * sysdeps/generic/defs.c: File removed.
6382 * sysdeps/generic/fdopen.c: File removed.
6383 * sysdeps/generic/pipestream.c: File removed.
6384 * sysdeps/generic/stdio_init.c: File removed.
6385 * sysdeps/generic/sysd-stdio.c: File removed.
6386 * sysdeps/generic/vdprintf.c: File removed.
6387 * sysdeps/mach/hurd/defs.c: File removed.
6388 * sysdeps/mach/hurd/fdopen.c: File removed.
6389 * sysdeps/mach/hurd/pipestream.c: File removed.
6390 * sysdeps/mach/hurd/stdio_init.c: File removed.
6391 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6392 * sysdeps/mach/hurd/vdprintf.c: File removed.
6393 * sysdeps/posix/defs.c: File removed.
6394 * sysdeps/posix/fdopen.c: File removed.
6395 * sysdeps/posix/pipestream.c: File removed.
6396 * sysdeps/posix/stdio_init.c: File removed.
6397 * sysdeps/posix/vdprintf.c: File removed.
6398 * sysdeps/unix/pipestream.c: File removed.
6399 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6400 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6401 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6403 2002-04-29 Roland McGrath <roland@frob.com>
6405 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6407 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6409 * sysdeps/generic/tls.h: Describe what must be defined.
6411 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6412 glob_in_dir [PR libc/3385].
6413 * posix/globtest.sh: Add test case.
6415 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6418 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6420 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6421 _internal symbol handling.
6422 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6424 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6426 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6427 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6429 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6431 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6432 not _LIBC and RE_ENABLE_I18N.
6433 (build_range_exp): Implement for not _LIBC.
6434 (build_collating_symbol): Likewise.
6435 (parse_bracket_exp): Unify redundant error handlings.
6436 Don't erase mbcset for non matching list in multibyte envs.
6437 (build_word_op): Add '_' to matching list for \w operator.
6438 * posix/regex_internal.c (re_string_construct): Invoke
6439 build_upper_buffer in case of not RE_ENABLE_I18N.
6440 (re_string_reconstruct): Don't touch cur_state in case of not
6442 * posix/regex_internal.h (attribute_hidden): New macro in case of
6444 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6445 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6447 (transit_state_mb): Likewise.
6448 (check_node_accept_bytes): Implement the code evaluating range
6449 expression in case of not _LIBC.
6450 (find_collation_sequence_value): Hide in case of not _LIBC.
6452 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6454 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6456 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6459 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6461 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6463 * sysdeps/ia64/strncpy.S: Fix recovery code.
6464 Patch by David Mosberger <davidm@hpl.hp.com>.
6466 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6468 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6471 2002-04-14 Bruno Haible <bruno@clisp.org>
6473 * posix/regex.c (re_max_failures): Add back symbol for binary
6476 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6478 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6479 of buffer building functions.
6480 * posix/regex_internal.c (re_string_allocate): New function.
6481 (re_string_realloc_buffers): New function.
6482 (re_string_skip_chars): New function.
6483 (re_string_reconstruct): New function.
6484 (re_string_construct): Adapt it to new interface of buffer building
6486 (re_string_construct_common): Likewise.
6487 (build_wcs_buffer): Likewise.
6488 (build_wcs_upper_buffer): Likewise.
6489 (build_upper_buffer): Likewise.
6490 (re_string_translate_buffer): Likewise.
6491 (re_string_context_at): Adapt it to variable length buffers.
6492 * posix/regex_internal.h (re_string_t): Add new fields to handle
6493 variable length buffers.
6494 (re_match_context_t): Likewise.
6495 * posix/regexec.c (re_search_internal): Adapt it to new interface
6496 of re_string_t and re_match_context_t.
6497 (acquire_init_state_context): Likewise.
6498 (check_matching): Likewise.
6499 (check_halt_state_context): Likewise.
6500 (proceed_next_node): Likewise.
6501 (set_regs): Likewise.
6502 (sift_states_backward): Likewise.
6503 (clean_state_log_if_need): Likewise.
6504 (sift_states_iter_mb): Likewise.
6505 (sift_states_iter_bkref): Likewise.
6506 (add_epsilon_backreference): Likewise.
6507 (transit_state): Likewise.
6508 (transit_state_sb): Likewise.
6509 (transit_state_mb): Likewise.
6510 (transit_state_bkref): Likewise.
6511 (transit_state_bkref_loop): Likewise.
6512 (check_node_accept): Likewise.
6513 (match_ctx_init): Likewise.
6514 (extend_buffers): New function.
6516 2002-04-21 Bruno Haible <bruno@clisp.org>
6518 * iconvdata/tst-table.sh: For the second check, use the truncated
6519 GB18030 charmap table, like for the first check.
6521 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6523 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6524 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6526 2002-04-23 H.J. Lu <hjl@gnu.org>
6528 * include/math.h (isfinite): Fix a typo.
6530 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6532 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6533 which is created by the test suite.
6535 2002-04-20 Bruno Haible <bruno@clisp.org>
6537 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6538 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6540 2002-04-20 Bruno Haible <bruno@clisp.org>
6542 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6543 to avoid gcc warning.
6545 2002-04-20 Bruno Haible <bruno@clisp.org>
6547 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6548 of data->__statep->__count.
6550 2002-04-20 Bruno Haible <bruno@clisp.org>
6552 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6554 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6556 2002-04-24 Roland McGrath <roland@frob.com>
6558 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6559 use END macro instead of our own .end directive.
6560 Use `callsys' insn mnemonic instead of `call_pal'.
6562 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6564 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6565 macro; we need this for Hurd.
6567 Log entry was missing for 2002/03/24 commit of rev 1.8,
6568 goes with 2002-03-17 changes.
6569 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6570 (sysdep_routines): Append ioperm here.
6571 (sysdep_headers): Append sys/io.h here.
6573 2002-04-23 Roland McGrath <roland@frob.com>
6575 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6576 * sysdeps/mach/hurd/sendto.c: Likewise.
6577 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6578 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6579 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6581 2002-04-22 Roland McGrath <roland@frob.com>
6583 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6584 failure from i386_io_perm_* RPCs to ENOSYS.
6586 2002-04-22 Andreas Jaeger <aj@suse.de>
6588 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6590 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6592 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6593 register instead of destroying %rbx.
6595 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6597 * string/string.h: Declare strerror_r also for XPG6.
6599 2002-04-19 Roland McGrath <roland@frob.com>
6601 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6603 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6605 * Makefile: Add handling of xtests and xcheck targets.
6606 * MakeTAGS: Likewise.
6607 * Makeconfig: Likewise.
6608 * Makerules: Likewise.
6610 * manual/Makefile: Likewise.
6611 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6612 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6614 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6616 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6618 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6619 Delete #ifdef _RPC_THREAD_SAFE_ block.
6620 (authnone_private): Make a struct, not a pointer to struct.
6621 (authnone_private_guard): New once-control variable.
6622 (authnone_create_once): New function, split out of
6623 authnone_create. No need to allocate memory.
6624 (authnone_create): Just call authnone_create_once via
6625 __libc_once, then return &authnone_private->no_client.
6626 (authnone_marshal): Access private data via CLIENT argument,
6627 not authnone_private pointer.
6628 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6629 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6632 2002-04-12 H.J. Lu <hjl@gnu.org>
6634 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6636 2002-04-18 Bruno Haible <bruno@clisp.org>
6638 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6639 FROM_DIRECTION): Make the FROM direction stateless.
6640 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6641 FROM_DIRECTION): Likewise.
6643 2002-04-15 Bruno Haible <bruno@clisp.org>
6645 * iconvdata/JISX0213.TXT: New file.
6646 * iconvdata/jisx0213.h: New file.
6647 * iconvdata/jisx0213.c: New file.
6648 * iconvdata/euc-jisx0213.c: New file.
6649 * iconvdata/shift_jisx0213.c: New file.
6650 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6651 * iconvdata/EUC-JISX0213.precomposed: New file.
6652 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6653 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6654 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6655 which the "to" direction is stateful.
6656 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6657 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6659 (libJISX0213-routines): New variable.
6660 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6661 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6662 (LDFLAGS-libJISX0213.so): New variable.
6663 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6664 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6665 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6667 2002-04-15 Bruno Haible <bruno@clisp.org>
6669 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6670 uint32_t. Update to Unicode 3.2.
6671 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6672 (BODY for TO_LOOP): Handle the ASCII range specially.
6673 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6674 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6675 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6677 2002-04-15 Bruno Haible <bruno@clisp.org>
6679 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6680 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6682 2002-04-15 Bruno Haible <bruno@clisp.org>
6684 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6685 (ucs4_to_cns11643): Update.
6686 * iconvdata/cns11643.c: Update to Unicode 3.2.
6687 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6688 __cns11643_from_ucs4p2_tab): Regenerated.
6689 (__cns11643_from_ucs4p2c_tab): New array.
6690 * iconvdata/cvs11643l1.c: Update comments.
6691 * iconvdata/EUC-TW.irreversible: Remove two entries.
6693 2002-04-15 Bruno Haible <bruno@clisp.org>
6695 * locale/C-translit.h.in: Update to Unicode 3.2.
6696 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6697 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6699 2002-04-15 Bruno Haible <bruno@clisp.org>
6701 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6702 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6704 2002-04-15 Bruno Haible <bruno@clisp.org>
6706 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6707 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6708 always one byte, not 0 bytes in some cases and 2 bytes in others.
6710 * iconvdata/tst-table-from.c (main): Correct the usage message.
6712 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6714 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6715 (parse_dup_op): Fix error handling like "a{}".
6716 (parse_bracket_exp): Add error handling.
6717 (fetch_number): Add error handling for "a{<very_large_number>}".
6719 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6721 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6722 in case that the symbol name is too long.
6723 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6724 in case of REG_ICASE.
6726 2002-04-19 Andreas Jaeger <aj@suse.de>
6728 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6729 <hartvige@mips.com>.
6731 2002-04-15 H.J. Lu <hjl@gnu.org>
6733 * include/math.h (__finitel_internal): Declare only if
6734 __NO_LONG_DOUBLE_MATH is not defined.
6735 (__isinfl_internal): Likewise.
6736 (__isnanl_internal): Likewise.
6738 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6739 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6740 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6741 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6742 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6743 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6744 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6746 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6749 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6750 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6752 2002-04-15 Bruno Haible <bruno@clisp.org>
6754 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6755 (BODY for TO_LOOP): Likewise.
6756 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6757 * iconvdata/tst-table.sh: Add support for encodings which contain
6758 precomposed Unicode characters, known to the iconv converter in both
6759 directions but not listed in the charmap.
6760 * iconvdata/IBM856.irreversible: New file.
6761 * iconvdata/IBM922.irreversible: New file.
6762 * iconvdata/IBM1132.irreversible: New file.
6763 * iconvdata/IBM1133.irreversible: New file.
6764 * iconvdata/IBM1160.irreversible: New file.
6765 * iconvdata/IBM1161.irreversible: New file.
6766 * iconvdata/IBM1163.irreversible: New file.
6767 * iconvdata/IBM1164.irreversible: New file.
6768 * iconvdata/ARMSCII-8.irreversible: New file.
6769 * iconvdata/TCVN5712-1.precomposed: New file.
6770 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6771 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6772 ARMSCII-8, TCVN5712-1.
6773 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6774 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6775 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6776 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6778 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6780 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6781 for EVENING69. Include offsets in TZ environment variable.
6783 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6785 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6786 avoid compiler warnings.
6788 * locale/programs/localedef.c (main): Always call
6789 construct_output_path.
6791 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6793 * locale/programs/locfile.c (to_archive): New variable. To collect
6794 data which has to be added to the locale archive.
6795 (write_all_categories): Take new third parameter with locale name.
6796 Unless no_archive flag set add new locale data to the archive
6797 (write_locale_data): Unless no-archive flag set store generated data
6798 in to_archive data structure instead of generation output file.
6799 Add new parameter with locale category index.
6800 * locale/programs/locfile.h: Add new parameters in declaractions of
6801 write_all_categories and write_locale_data.
6802 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6803 --add-to-archive, and --delete-from-archive options. Pass extra
6804 parameter to write_all_categories.
6805 * locale/programs/localedef.h: Add prototypes for functions in
6807 * locale/locarchive.h: New file.
6808 * locale/programs/locarchive.c: New file.
6809 * locale/Makefile (distribute): Add programs/locarchive.c and
6811 (localedef-modules): Add md5 and locarchive.
6812 Add vpath to crypt subdir for md5.c.
6814 * locale/programs/ld-address.c: Pass locale category ID as new second
6815 parameter to write_locale_data.
6816 * locale/programs/ld-collate.c: Likewise.
6817 * locale/programs/ld-ctype.c: Likewise.
6818 * locale/programs/ld-identification.c: Likewise.
6819 * locale/programs/ld-measurement.c: Likewise.
6820 * locale/programs/ld-messages.c: Likewise.
6821 * locale/programs/ld-monetary.c: Likewise.
6822 * locale/programs/ld-name.c: Likewise.
6823 * locale/programs/ld-numeric.c: Likewise.
6824 * locale/programs/ld-paper.c: Likewise.
6825 * locale/programs/ld-telephone.c: Likewise.
6826 * locale/programs/ld-time.c: Likewise.
6828 * locale/simple-hash.c: Move compute_hashval function from here...
6829 * locale/hashval.h: ...to here. New file.
6830 * locale/simple-hash.h: Add prototype for compute_hashval.
6832 * include/libintl.h: Minor cleanups.
6834 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6836 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6838 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6840 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6842 2002-04-14 Bruno Haible <bruno@clisp.org>
6844 * locale/programs/charmap.c (charmap_read): Don't access result if
6847 2002-02-17 Andreas Schwab <schwab@suse.de>
6849 * elf/reldep7.c: New file.
6850 * elf/reldep7mod1.c: New file.
6851 * elf/reldep7mod2.c: New file.
6852 * elf/Makefile: Add rules to build and run reldep7.
6854 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6856 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6857 the end of the function. Pass original flags to recursive call if
6858 add_dependency failed.
6859 (_dl_lookup_versioned_symbol): Likewise.
6861 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6863 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6864 early, but check whether it overflowed afterwards.
6865 * time/tst-mktime.c (main): Add new tests.
6867 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6869 * debug/xtrace.sh: Fix program name in help message.
6870 Patch by Roger Luethi <rl@hellgate.ch>.
6872 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6873 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6875 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6876 * sysdeps/mach/hurd/lxstat.c: Likewise.
6877 * sysdeps/unix/common/lxstat.c: Likewise.
6878 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6879 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6880 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6881 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6882 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6883 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6884 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6885 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6886 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6888 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6889 prototypes. Add __mbrlen and __mbrtowc macros.
6890 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6891 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6893 * include/unistd.h: Add prototype for __write_internal and add
6894 __libc_write macro is SHARED.
6895 * sysdeps/generic/write.c: Use INTDEF for __write.
6896 * sysdeps/mach/hurd/write.c: Likewise.
6897 * sysdeps/unix/sysv/aix/write.c: Likewise.
6898 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6900 * assert/assert.c: Replace STR_N_SIZE with something usable in
6902 * assert/assert-perr.c: Likewise.
6904 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6905 SA_LEN macro to use it if not NOT_IN_libc.
6906 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6908 * include/fcntl.h: Declare __open_internal and define __open and
6909 __libc_open macros if not NOT_IN_libc.
6910 * sysdeps/generic/open.c: Use INTDEF for __open.
6911 * sysdeps/mach/hurd/open.c: Likewise.
6912 * sysdeps/unix/sysv/aix/open.c: Likewise.
6913 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6915 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6918 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6919 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6920 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6921 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6923 * include/wctype.h: Declare __iswalpha_l_internal,
6924 __iswdigit_l_internal, __iswspace_l_internal,
6925 __iswxdigit_l_internal, and __iswctype_internal. Define
6926 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6927 __iswxdigit_l macros if not NOT_IN_libc.
6928 * wctype/iswctype.c: Use INTDEF for __iswctype.
6929 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6931 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6932 __isnan_internal, and __isnanl_internal.
6933 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6934 __isnan, and __isnanl.
6935 * stdio-common/printf_size.c: Likewise.
6936 * sysdeps/generic/printf_fphex.c: Likewise.
6937 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6938 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6939 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6940 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6941 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6942 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6943 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6944 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6945 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6946 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6947 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6948 * sysdeps/m68k/s_isinfl.c: Likewise.
6949 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6950 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6952 * include/sys/time.h: Declare __gettimeofday_internal and define
6953 __gettimeofday macro if not NOT_IN_libc.
6954 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6955 * sysdeps/mach/gettimeofday.c: Likewise.
6956 * sysdeps/posix/gettimeofday.c: Likewise.
6957 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6958 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6959 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6960 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6962 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6963 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6964 Remove __lstat and __fstat inline functions.
6965 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6966 * sysdeps/mach/hurd/fxstat.c: Likewise.
6967 * sysdeps/unix/fxstat.c: Likewise.
6968 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6969 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6970 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6971 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6972 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6973 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6974 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6975 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6976 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6978 * include/unistd.h: Declare __getpid_internal and define
6979 __getpid macro if not NOT_IN_libc.
6980 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6981 * sysdeps/generic/getpid.c: Likewise.
6982 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6983 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6985 * include/unistd.h: Declare __getpgid_internal and define
6986 __getpgid macro if not NOT_IN_libc.
6987 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6988 * sysdeps/mach/hurd/getpgid.c: Likewise.
6989 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6990 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6991 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6992 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6994 * include/unistd.h: Declare __getpagesize_internal and define
6995 __getpagesize macro if not NOT_IN_libc.
6996 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6998 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6999 * sysdeps/mach/getpagesize.c: Likewise.
7000 * sysdeps/posix/getpagesize.c: Likewise.
7001 * sysdeps/unix/getpagesize.c: Likewise.
7002 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7003 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7004 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7005 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7007 2002-04-13 Andreas Jaeger <aj@suse.de>
7009 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7010 as clobber to reduce register pressure.
7011 (__strpbrk_cg): Likewise.
7012 (__mempcpy_by4): Likewise.
7013 (__strstr_cg): Likewise.
7014 Add prototype for __memrchr.
7016 2002-04-13 Andreas Schwab <schwab@suse.de>
7018 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7019 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7020 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7022 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7024 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7025 check whether the caller prefers getting the most recent version of
7026 a symbol of the earliest version.
7027 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7028 _dl_do_lookup to also take the new parameter and pass it on.
7029 Change 'explicit' parameter of _dl_lookup_symbol and
7030 _dl_lookup_versioned_symbol to flags. Adjust tests.
7031 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7032 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7033 _dl_lookup_versioned_symbol.
7034 * elf/dl-reloc.c: Likewise.
7035 * elf/dl-runtime.c: Likewise.
7036 * elf/dl-sym.c: Likewise.
7037 * sysdeps/mips/dl-machine.h: Likewise.
7039 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7041 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7043 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7045 2002-04-10 Andreas Jaeger <aj@suse.de>
7047 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7049 * include/argz.h: Remove extra char from last patch.
7051 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7053 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7054 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7055 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7056 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7057 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7058 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7060 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7062 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7063 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7064 * intl/ngettext.c: Likewise.
7066 * include/sys/socket.h: Declare __connect_internal and define
7067 __connect macro if not NOT_IN_libc.
7068 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7069 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7070 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7072 * include/unistd.h: Declare __close_internal and define __close macro
7074 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7075 WJUMP3): Add extra parenthesis to avoid expanding element names with
7076 macors like __close.
7077 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7079 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7081 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7082 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7083 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7085 * include/unistd.h: Declare __fork_internal and define __fork macro
7087 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7088 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7089 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7091 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7092 __fsetlocking macro to use it if not NOT_IN_libc.
7093 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7095 * libio/__fbufsize.c: Correct copyright.
7096 * libio/__flbf.c: Likewise.
7097 * libio/__fpending.c: Likewise.
7098 * libio/__fpurge.c: Likewise.
7099 * libio/__freadable.c: Likewise.
7100 * libio/__freading.c: Likewise.
7101 * libio/__fsetlocking.c: Likewise.
7102 * libio/__fwritable.c: Likewise.
7103 * libio/__fwriting.c: Likewise.
7105 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7106 macro to use it if not NOT_IN_libc.
7107 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7109 * include/mntent.h: Declare __setmntent_internal,
7110 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7111 __getmntent_r, and __endmntent macros to use these functions if not
7113 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7116 * include/math.h: Declare __finite_internal, __finitef_internal, and
7117 __finitel_internal. Redefine isfinite macro if in libc or libm using
7119 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7120 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7121 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7122 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7123 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7124 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7125 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7126 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7127 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7128 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7130 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7131 to use this function if not NOT_IN_libc.
7132 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7133 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7134 * sysdeps/mach/hurd/fcntl.c: Likewise.
7135 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7136 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7138 * include/argz.h: Declare __argz_count_internal and
7139 __argz_stringify_internal.
7140 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7142 * string/argz-count.c: Use INTDEF for __argz_count.
7143 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7145 * include/stdlib.h: Declare __cxa_atexit_internal and define
7146 __cxa_atexit macro if not NOT_IN_libc.
7147 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7148 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7150 * assert/assert.c: Use INTDEF for __assert_fail.
7151 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7152 * include/assert.h: Declare __assert_fail_internal.
7154 * extra-lib.mk: Mark assignment to lib with override.
7156 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7158 * Makerules: Use cppflags-iterator.mk to add defines for all test
7161 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7163 * elf/elf.h: Define R_SH_TLS_xxx macros.
7164 * elf/rtld.c: Remove an extra parenthesis.
7165 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7167 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7168 * sysdeps/sh/dl-lookupcfg.h: New file.
7169 * sysdeps/sh/dl-tls.h: New file.
7170 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7171 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7172 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7173 R_SH_TLS_TPOFF32 relocations.
7175 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7177 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7179 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7180 * include/stdlib.h: Likewise.
7182 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7184 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7185 instead of _RTLD_LOCAL.
7186 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7187 * include/unistd.h: Likewise.
7188 * sysdeps/generic/ldsodefs.h: Likewise.
7190 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7191 if in libc or ld.so.
7193 2002-04-08 Andreas Jaeger <aj@suse.de>
7195 * elf/cache.c (print_entry): Support x86-64.
7197 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7199 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7200 with one accessing the locale data structures directly.
7201 * stdio-common/printf-prs.c: Include localeinfo.h for new
7202 MB_CUR_MAX definition.
7204 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7205 is the name of the source file without extension.
7206 * Makefile (distribute): Add cppflags-iterator.mk.
7207 * cppflags-iterator.mk: New file.
7208 * extra-lib.mk: For the sources of the library run
7209 cppflags-iterator.mk.
7211 * include/libintl.h: Declare __dcgettext_internal and
7212 _libc_intl_domainname_internal. Define __dcgettext using these
7213 two symbols if used in libc itself.
7214 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7215 _libc_intl_domainname_internal.
7216 * argp/argp-parse.c: Likewise.
7217 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7218 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7219 * intl/gettext.c: Likewise.
7220 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7222 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7224 * posix/regex_internal.c (gettext): Likewise.
7226 2002-04-08 Andreas Jaeger <aj@suse.de>
7228 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7230 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7231 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7232 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7233 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7234 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7235 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7237 2002-04-08 Roland McGrath <roland@frob.com>
7239 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7240 widening __hurd_fail value.
7242 2002-04-07 Roland McGrath <roland@frob.com>
7244 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7245 <mach/machine/alpha_instruction.h>.
7246 (_hurd_setup_sighandler): Take proper arguments for current decls.
7247 Update code to use _hurdsig_catch_fault.
7248 Use `callsys' instruction instead of `call_pal'.
7249 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7251 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7252 (ALIGN, at, AT, fp): New macros.
7254 2002-04-06 Roland McGrath <roland@frob.com>
7256 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7258 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7259 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7261 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7262 * sysdeps/mach/hurd/connect.c: Likewise.
7263 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7264 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7266 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7269 * hurd/catch-exc.c: Use integer_t instead of int.
7270 * hurd/hurdfault.c: Likewise.
7272 * sysdeps/mach/hurd/alpha/exc2signal.c
7273 (_hurd_exception2signal): Rewritten.
7274 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7275 (_hurd_longjmp_thread_state): Rewritten.
7277 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7279 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7280 DB_LOOKUP_FCT prototype.
7281 * nss/getXXent_r.c: Likewise.
7282 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7283 * inet/getaliasname_r.c: Likewise.
7284 * inet/getnetbyad_r.c: Likewise.
7285 * inet/getnetbynm_r.c: Likewise.
7286 * inet/getnetent_r.c: Likewise.
7287 * inet/getproto_r.c: Likewise.
7288 * inet/getprtent_r.c: Likewise.
7289 * inet/getprtname_r.c: Likewise.
7290 * inet/getrpcbyname_r.c: Likewise.
7291 * inet/getrpcbynumber_r.c: Likewise.
7292 * inet/getrpcent_r.c: Likewise.
7293 * inet/getservent_r.c: Likewise.
7294 * inet/getsrvbynm_r.c: Likewise.
7295 * inet/getsrvbypt_r.c: Likewise.
7296 * shadow/getspent_r.c: Likewise.
7297 * shadow/getspnam_r.c: Likewise.
7299 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7301 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7302 Use i686-friendly PIC code.
7303 * sysdeps/i386/elf/setjmp.S: Likewise.
7305 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7307 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7309 * elf/Versions: Remove it here.
7311 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7313 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7314 direction. Reported by H . J . Lu <hjl@lucon.org>.
7316 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7318 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7319 test just before the test runs.
7320 * intl/tst-translit.sh: Likewise.
7321 * intl/tst-codeset.sh: Likewise.
7323 * timezone/zic.c: Update from tzcode2002c.
7324 * timezone/asia: Update from tzdata2002c.
7325 * timezone/backward: Likewise.
7326 * timezone/europe: Likewise.
7327 * timezone/northamerica: Likewise.
7328 * timezone/northamerica: Likewise.
7329 * timezone/northamerica: Likewise.
7330 * timezone/southamerica: Likewise.
7331 * timezone/zone.tab: Likewise.
7333 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7335 * sysdeps/generic/brk.c (__curbrk): Declare.
7336 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7337 * sysdeps/generic/dl-sbrk.c: Likewise.
7338 * sysdeps/unix/arm/dl-brk.S: New file.
7339 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7340 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7341 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7342 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7343 * sysdeps/unix/i386/dl-brk.S: New file.
7344 * sysdeps/unix/mips/dl-brk.S: New file.
7345 * sysdeps/unix/sparc/dl-brk.S: New file.
7346 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7347 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7348 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7349 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7351 2002-04-03 Andreas Schwab <schwab@suse.de>
7353 * Makefile (headers): Add gnu/lib-names.h here instead of
7355 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7357 (install-headers): Add dependency on install-headers-nosubdir.
7358 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7359 instead of install-others.
7360 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7363 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7365 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7366 Reported by Sam Roberts <sroberts@uniserve.com>.
7368 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7370 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7371 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7372 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7373 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7375 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7377 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7378 (RTLD_START): Ditto.
7379 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7380 dependency violation.
7382 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7384 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7385 all variable declarations.
7387 2002-04-04 Andreas Schwab <schwab@suse.de>
7389 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7391 2002-04-04 Andreas Jaeger <aj@suse.de>
7393 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7394 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7396 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7397 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7398 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7400 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7402 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7404 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7405 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7407 * configure.in: Handle all mips entries the same.
7409 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7410 * sysdeps/mips/mips3/*: Likewise.
7411 * sysdeps/mips/p40/bits/endian.h: Likewise.
7413 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7415 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7416 non-null result [PR libc/2600].
7418 * misc/tst-dirname.c: Add more tests.
7420 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7422 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7423 define a code_set_name provide one based on the filename.
7425 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7427 2001-12-28 Andreas Jaeger <aj@suse.de>
7429 * time/mktime.c (__mktime_internal): Check for year < 70
7432 2002-04-03 Andreas Jaeger <aj@suse.de>
7434 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7436 Reported by Andi Kleen <ak@suse.de>.
7438 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7440 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7441 * sysdeps/generic/w_lgammaf.c: Likewise.
7442 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7444 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7445 Adjust for new output format of the backtrace functions.
7447 * misc/syslog.c (vsyslog): Only use cleanup handler if
7448 _LIBC_REENTRANT is defined [PR libc/2924].
7450 * libio/Makefile (tests): Add bug-ungetwc2.
7451 * libio/bug-ungetwc2.c: New file.
7453 * manual/install.texi: Typographical and grammatical cleanup.
7454 Patch by Dennis Grace <dgrace@us.ibm.com>.
7456 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7457 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7459 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7460 always "&". Adjust callers.
7461 Add "_" prefix to several generated definitions.
7462 Patch by paul@serice.net [PR libc/3158].
7464 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7466 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7467 size of _dl_arm_cap_flags.
7468 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7470 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7473 2002-03-22 H.J. Lu <hjl@gnu.org>
7475 * scripts/firstversions.awk: Check the first version.
7477 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7479 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7480 dependencies must be stable to work correctly.
7481 Reported by martin.lubich@datacon.at.
7483 * libio/bug-ungetwc1.c: New file.
7484 * libio/Makefile (tests): Add bug-ungetwc1.
7486 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7487 if stream was last used for writing.
7489 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7490 number [PR libc/3111].
7492 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7494 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7496 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7498 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7499 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7500 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7501 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7502 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7504 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7506 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7509 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7511 * sysdeps/i386/fpu/s_fabs.S: New file.
7512 * sysdeps/i386/fpu/s_fabsf.S: New file.
7513 * sysdeps/i386/fpu/s_fabsl.S: New file.
7514 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7515 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7516 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7518 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7520 * rt/tst-shm.c (do_test): Add one more test for size of shared
7523 2002-03-29 Wolfram Gloger <wg@malloc.de>
7525 * malloc/malloc.c: Add short description and prototypes for
7526 malloc_get_state, malloc_set_state and posix_memalign, for
7527 consistency and to avoid warnings with -Wstrict-prototypes.
7528 Reported by Andreas Jaeger <aj@suse.de>.
7530 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7532 * po/gl.po: Update from translation team.
7534 2002-03-31 Roland McGrath <roland@frob.com>
7536 * hurd/hurdselect.c (_hurd_select): Fix
7537 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7538 Use a union rather than casts to compare mach_msg_type_t as int.
7540 2002-03-25 Roland McGrath <roland@frob.com>
7542 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7543 check off the end of NAME when it's shorter than 2 chars.
7544 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7546 2002-03-17 Roland McGrath <roland@frob.com>
7548 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7549 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7550 * sysdeps/mach/hurd/i386/Dist: Add them.
7551 * sysdeps/mach/hurd/i386/Versions
7552 (libc: GLIBC_2.2.6): New set, add ioperm.
7553 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7554 (mach_interface_list): Check for mach_i386.defs.
7555 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7556 * sysdeps/mach/configure: Regenerated.
7558 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7560 * po/fr.po: Update from translation team.
7562 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7564 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7565 getpriority from syscalls list.
7567 2002-03-28 Andreas Jaeger <aj@suse.de>
7569 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7570 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7571 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7572 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7574 2002-03-27 Andreas Jaeger <aj@suse.de>
7576 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7577 sigcontext): Follow further kernel change.
7579 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7582 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7583 Change for struct sigcontext change.
7585 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7586 Follow changes in struct sigcontext.
7588 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7589 sysycall, use wrapper instead.
7591 2002-03-26 Andreas Jaeger <aj@suse.de>
7593 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7594 read and write accesses as detailed as possible.
7595 (__memcpy_by2): Likewise.
7596 (__memcpy_g): Likewise.
7597 (memmove): Likewise.
7599 (__memset_ccn_by4): Likewise.
7600 (__memset_ccn_by2): Likewise.
7601 (__memset_gcn_by4): Likewise.
7602 (__memset_gcn_by2): Likewise.
7604 (__memrchr): Likewise.
7605 (rawmemchr): Likewise.
7606 (__strlen_g): Likewise.
7607 (__strcpy_g): Likewise.
7608 (__mempcpy_by4): Likewise.
7609 (__mempcpy_by2): Likewise.
7610 (__mempcpy_byn): Likewise.
7611 (__stpcpy_g): Likewise.
7612 (__strncpy_by4): Likewise.
7613 (__strncpy_by2): Likewise.
7614 (__strncpy_byn): Likewise.
7615 (__strncpy_gg): Likewise.
7616 (__strcat_c): Likewise.
7617 (__strcat_g): Likewise.
7618 (__strncat_g): Likewise.
7619 (__strcmp_gg): Likewise.
7620 (__strncmp_g): Likewise.
7621 (__strchr_c): Likewise.
7622 (__strchr_g): Likewise.
7623 (__strchrnul_c): Likewise.
7624 (__strchrnul_g): Likewise.
7625 (__strrchr_c): Likewise.
7626 (__strrchr_g): Likewise.
7627 (__strrchr_c): Likewise.
7628 (__strrchr_g): Likewise.
7629 (__strcspn_c1): Likewise.
7630 (__strcspn_cg): Likewise.
7631 (__strcspn_g): Likewise.
7632 (__strcspn_g): Likewise.
7633 (__strspn_c1): Likewise.
7634 (__strspn_cg): Likewise.
7635 (__strspn_g): Likewise.
7636 (__strspn_g): Likewise.
7637 (__strpbrk_cg): Likewise.
7638 (__strpbrk_g): Likewise.
7639 (__strstr_cg): Likewise.
7640 (__strstr_g): Likewise.
7642 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7643 Michal Ludvig <mludvig@suse.cz>.
7645 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7646 compatibilty, adjust for kernel changes.
7648 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7649 sigcontext): Adjust for kernel changes.
7651 2002-03-25 Andreas Jaeger <aj@suse.de>
7653 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7655 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7657 2002-03-24 Andreas Jaeger <aj@suse.de>
7659 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7661 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7663 * iconv/tst-iconv3.c (main): Use correct printf strings.
7665 2002-03-18 Roland McGrath <roland@frob.com>
7667 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7668 (CMGROUP_MAX): New macro.
7670 2002-03-23 Roland McGrath <roland@frob.com>
7672 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7673 * sysdeps/posix/shm_unlink.c: Likewise.
7675 2002-03-22 Roland McGrath <roland@frob.com>
7677 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7678 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7679 under --enable-libio.
7680 * sysdeps/mach/hurd/configure: Regenerated.
7682 2002-03-23 Roland McGrath <roland@frob.com>
7684 * sysdeps/mach/hurd/i386/Makefile
7685 (sysdep_routines, shared-only-routines): Don't add framestate,
7686 reverting 2001-10-02 change.
7687 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7688 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7689 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7690 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7691 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7692 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7693 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7694 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7695 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7696 Do it here instead, only if [$(unwind-find-fde) = yes].
7698 2002-03-23 Andreas Jaeger <aj@suse.de>
7700 * signal/signal.h: Fix typo. Patch by Steve Kemp
7701 <skx@tardis.ed.ac.uk>.
7703 2002-03-22 Andreas Jaeger <aj@suse.de>
7705 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7708 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7709 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7710 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7711 user_fpregs_struct): Rename fwd.
7713 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7714 Follow sigcontext changes.
7716 2002-03-22 Andreas Jaeger <aj@suse.de>
7718 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7719 changes for NaNs on MIPS.
7720 Patch by Hartvig Ekner <hartvige@mips.com>.
7722 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7724 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7725 Use realloc if too large.
7726 (addgrbyid): Likewise.
7727 * nscd/hstcache.c (addhstbyname): Likewise.
7728 (addhstbyaddr): Likewise.
7729 (addhstbynamev6): Likewise.
7730 (addhstbyaddrv6): Likewise.
7731 * nscd/pwdcache.c (addpwbyname): Likewise.
7732 (addpwbyuid): Likewise.
7734 2002-03-21 Andreas Jaeger <aj@suse.de>
7736 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7737 _fpstate): Add separate struct for x86-64.
7739 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7740 user_fpregs_struct): Change member names to follow kernel.
7742 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7744 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7745 Correctly close the UDP connection right away [PR libc/3120].
7747 2002-03-20 Andreas Jaeger <aj@suse.de>
7749 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7750 user_fpregs_struct): Fix for changed kernel struct.
7751 (struct user_regs_struct): Likewise.
7752 (struct user): Likewise.
7753 Add 32-bit x86 compatibility.
7755 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7757 2002-03-19 Andreas Jaeger <aj@suse.de>
7759 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7761 2002-03-18 Andreas Jaeger <aj@suse.de>
7763 * iconvdata/Makefile: Only run tests when shared libs are
7766 2002-03-17 Andreas Jaeger <aj@suse.de>
7768 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7770 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7772 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7775 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7776 (CAUSE_SHIFT): New macro.
7777 Patch by Hartvig Ekner <hartvige@mips.com>.
7779 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7780 * sysdeps/generic/unwind-pe.h: Likewise.
7782 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7785 * libio/stdio.c (AL2): Define variant when visibility attribute is
7788 * include/libc-symbols.h (_INTVARDEF): Define variant when
7789 visibility attribute is not supported.
7791 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7793 * po/fr.po: Update from translation team.
7795 2002-02-25 Bruno Haible <bruno@clisp.org>
7797 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7799 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7801 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7802 buffers if _IO_file_attach failed.
7804 * libio/fileops.c (_IO_file_open): Close file descriptor if
7805 _IO_SEEKOFF call failed.
7807 2002-03-15 H.J. Lu <hjl@gnu.org>
7808 Ulrich Drepper <drepper@redhat.com>
7810 * configure.in: Check for availability of
7811 init_array/fini_array/preinit_array handling in binutils.
7812 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7813 * config.make.in (have-initfini-array): New variable.
7815 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7817 * stdio-common/tst-printf.c (main): Comment out one test which
7818 checked the compiler's ability to fold floating-point constants
7819 but not really printf.
7820 (rfg3): Make s const.
7821 * stdio-common/tst-printf.sh: Adjust for removed test.
7823 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7824 internal function. Adjust for internal_function calling convention.
7825 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7826 as internal_function.
7828 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7831 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7832 declaration and definition.
7833 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7835 * nss/getXXent_r.c: Likewise.
7836 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7839 * include/time.h: Declare __localtime_r as hidden.
7841 * include/aliases.h: Declare __getaliasent_r as hidden.
7842 * include/grp.h: Declare __getgrent_r as hidden.
7843 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7844 __getservent_r, and __getprotoent_r as hidden.
7845 * include/pwd.h: Declare __getpwent_r as hidden.
7846 * include/shadow.h: Declare __getspent_r as hidden.
7847 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7849 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7850 and __gconv_transliterate as hidden.
7851 Add internal_function to __gconv_get_path declaration.
7852 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7853 definition. Add attribute_hidden to __gconv_read_conf definition.
7855 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7857 * elf/rtld.c: Declare _environ as hidden.
7858 * sysdeps/generic/dl-environ.c: Likewise.
7859 * sysdeps/generic/dl-sysdep.c: Likewise.
7861 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7862 _dl_mcount_internal as hidden.
7864 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7865 * sysdeps/generic/dl-brk.c: New file.
7866 * sysdeps/generic/dl-sbrk.c: New file.
7867 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7868 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7870 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7871 (__errno_location): New function. Declare errno as hidden.
7872 * elf/rtld.c (_dl_argc): Define as hidden.
7873 (_dl_skip_args): Define as hidden.
7874 (_begin, _end): Declare as hidden.
7875 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7876 * sysdeps/generic/entry.h (_start): Declare as hidden.
7877 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7878 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7879 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7880 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7882 2002-03-14 Roland McGrath <roland@frob.com>
7884 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7886 * Makeconfig (%.v.i, %.v): New implicit rules.
7887 (preprocess-versions): Variable removed.
7888 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7889 shlib-versions input files as dependencies.
7890 ($(common-objpfx)soversions.i): Depend on that instead of the input
7891 files. Use it as input instead of using a pipeline.
7892 (postclean-generated): Append soversions.i, shlib-versions.v, and
7893 shlib-versions.v.i here.
7894 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7895 the Versions.def input files as dependencies.
7896 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7897 ($(common-objpfx)Versions.all): Depend on that instead of the input
7898 files. Use it as input instead of using a pipeline.
7899 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7900 (postclean-generated): Append those .v and .v.i files here.
7902 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7904 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7905 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7908 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7910 * sysdeps/generic/mp_clz_tab.c: New file.
7911 * sysdeps/i386/mp_clz_tab.c: New file.
7912 * sysdeps/hppa/mp_clz_tab.c: New file.
7913 * sysdeps/powerpc/mp_clz_tab.c: New file.
7914 * stdlib/Makefile (aux): Revert last patch.
7915 * math/Makefile (gmp-objs): Likewise.
7917 2002-03-13 Paul Eggert <eggert@twinsun.com>
7919 * time/strftime.c: Comment fixes for references to obsolescent
7920 standards, In most cases the simplest fix is to remove the
7921 confusing comments. Cross-referencing all the standards properly
7922 is a bit of a pain, and it should be enough to put that info in
7923 the documentation as I did in my recent time.texi patch.
7925 2002-03-13 Paul Eggert <eggert@twinsun.com>
7927 * manual/time.texi (Formatting Calendar Time):
7928 ISO C99 also specifies the E and O modifiers.
7929 %P is a GNU extension, and is not in ISO C99.
7930 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7931 %T is also in ISO C99.
7932 The RFC 822 example is not valid in arbitrary locales.
7933 Reword the POSIX.2 wording slightly, to make it a bit clearer
7934 that POSIX.2 formats are also supported by later POSIX versions.
7935 If a format was introduced in ISO C99 it is also required by
7938 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7940 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7941 _sys_nerr_internal with INTVARDEF2.
7942 * include/libc-symbols.h (INTVARDEF2): New macro.
7943 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7944 (_sys_nerr_internal): Library.
7946 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7947 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7949 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7951 2002-03-13 Wolfram Gloger <wg@malloc.de>
7953 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7955 2002-03-02 Andreas Schwab <schwab@suse.de>
7957 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7958 'h' flag and positional arg.
7959 * stdio-common/tst-printf.c (rfg3): New function to test
7960 positional arguments.
7961 (main): Fix some warnings.
7963 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7965 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7966 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7968 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7970 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7972 * include/locale.h (_nl_C_locobj): Declare as hidden.
7974 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7975 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7977 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7979 * include/sys/gmon.h: Declare _gmonparam as hidden.
7981 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7982 (__ctype32_wctrans): Likewise.
7983 (__ctype32_width): Likewise.
7985 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7988 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7990 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7991 hidden. Change all users of these variables.
7993 * posix/regex_internal.h (__re_error_msgid): Renamed from
7994 re_error_msgid. Declare as hidden.
7995 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7998 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7999 (__printf_function_table): Likewise.
8000 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8002 (__printf_function_table): Likewise.
8004 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8005 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8007 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8008 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8010 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8011 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8013 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8015 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8016 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8017 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8018 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8019 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8020 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8021 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8022 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8023 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8024 _nl_C_LC_CTYPE_width: Declare as hidden.
8025 * include/locale.h: Declare _nl_locale_file_list.
8026 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8027 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8028 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8029 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8030 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8031 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8032 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8033 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8034 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8035 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8036 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8037 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8038 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8039 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8040 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8041 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8042 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8043 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8044 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8045 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8046 _nl_C_LC_CTYPE_width, and as hidden.
8047 * locale/findlocale.c: Declare _nl_C as hidden.
8048 * locale/newlocale.c: Likewise.
8049 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8050 _nl_locale_file_list.
8051 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8052 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8053 Define _nl_C_locobj as hidden.
8055 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8056 (_mtrace_line): Likewise.
8058 * include/time.h: Declare __mon_yday as hidden.
8059 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8061 * libio/libioP.h: Declare __libio_codecvt as hidden.
8062 * libio/fileops.c: Declare __libio_translit as hidden.
8063 * libio/iofwide.c: Define __libio_translit as hidden.
8065 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8066 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8067 * login/getutline_r.c: Likewise.
8068 * login/utmpname.c: Likewise.
8070 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8071 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8072 __libc_utmp_file_name as hidden.
8074 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8075 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8076 * locale/freelocale.c: Likewise.
8077 * locale/lc-time.c: Likewise.
8079 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8080 (__libc_ptyname2): Likewise.
8081 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8083 (__libc_ptyname2): Likewise.
8085 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8086 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8087 * sysdeps/generic/init-first.c: Likewise.
8088 * sysdeps/i386/init-first.c: Likewise.
8089 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8090 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8091 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8092 * sysdeps/sh/init-first.c: Likewise.
8093 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8094 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8096 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8097 (_itowa_upper_digits): Likewise.
8099 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8100 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8103 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8104 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8105 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8106 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8108 * gmon/gmon.c (__bb_head): Define as hidden.
8109 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8111 * argp/argp-parse.c (_argp_hang): Define as static.
8113 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8114 handling in latest compilers.
8116 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8118 * libio/fileops.c (_IO_file_jumps): Likewise.
8119 * libio/stdfiles.c (_IO_list_all): Likewise.
8120 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8122 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8124 * include/malloc.h: Add __libc_malloc_initialized declaration
8125 here. Mark variable hidden.
8126 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8128 * elf/dl-open.c (__libc_argc): Declare as hidden.
8129 (__libc_argv): Likewise.
8130 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8131 (__libc_argv): Likewise.
8132 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8133 __libc_argv as hidden.
8134 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8135 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8136 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8137 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8139 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8140 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8141 * stdlib/erand48.c: Likewise.
8142 * stdlib/jrand48.c: Likewise.
8143 * stdlib/lcong48.c: Likewise.
8144 * stdlib/lrand48.c: Likewise.
8145 * stdlib/mrand48.c: Likewise.
8146 * stdlib/nrand48.c: Likewise.
8147 * stdlib/seed48.c: Likewise.
8148 * stdlib/srand48.c: Likewise.
8150 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8151 (_itoa_lower_digits_internal): New declaration.
8152 (_itoa_upper_digits_internal): New declaration.
8153 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8154 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8155 (_itoa_upper_digits_internal): New declaration.
8156 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8158 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8159 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8161 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8162 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8164 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8165 (_itowa_lower_digits): Likewise.
8166 (_itowa_upper_digits): Likewise.
8167 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8168 (_itowa_upper_digits): Likewise.
8170 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8171 not already defined.
8172 (GERMANIC_PLURAL): Declare as hidden.
8174 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8175 (attribute_hidden): Define as empty macro if not already defined.
8177 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8178 (__gconv_max_path_elem_len): Likewise.
8179 (__gconv_path_envvar): Likewise.
8181 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8182 * stdlib/Makefile (aux): Remove mp_clz_tab.
8183 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8185 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8187 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8189 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8190 _nl_category_names, _nl_category_name_sizes, _nl_current,
8191 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8193 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8194 (_nl_current_default_domain): Likewise
8195 (_nl_state_lock): Likewise.
8196 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8197 (_nl_current_default_domain): Likewise
8198 (_nl_state_lock): Likewise.
8199 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8201 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8202 (_fpioconst_pow10): Likewise.
8204 * include/time.h (_tmbuf): Add attribute_hidden.
8206 * time/tzset.c (tzstring_list): Define as static.
8208 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8209 __use_tzfile declaration.
8211 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8212 and __wcsmbs_last_locale declaration.
8214 2002-02-25 Paul Eggert <eggert@twinsun.com>
8216 * timezone/Makefile (tzbases): Move systemv from here...
8217 (tzlinks): to here, since the entries in systemv were all changed
8218 from Zone to Link lines in tz-2001a. Bug reported (and patch
8219 tested) by Peter Breitenlohner.
8221 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8223 * time/tst-posixtz.c (tests): Add new tests.
8224 (main): Test whether tzset() sets daylight properly.
8226 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8228 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8229 __tzname_cur_max setting...
8230 (tzset_internal): ...here.
8232 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8234 * time/tzset.c (compute_change): Don't return any value.
8235 (tz_compute): Likewise. Don't handle southern hemisphere here.
8236 (__tz_convert): But here.
8238 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8240 * manual/examples/mkfsock.c: Include <string.h> as well.
8241 Patch by Alain De Carolis <alaind@wseurope.com>.
8243 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8245 * posix/regexec.c (re_match): Fix incorrect register sizes.
8246 (re_search): Likewise.
8248 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8250 * posix/regcomp.c (regfree): Remove a disused condition.
8251 * posix/regex_internal.c (re_acquire_state): Likewise.
8252 (re_acquire_state_context): Likewise.
8253 (register_state): Remove a redundant malloc invocation.
8254 * posix/regex_internal.h: (re_state_table_entry): Simplify
8257 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8259 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8260 handling conditions.
8261 (regerror): Likewise.
8262 (regfree): Likewise.
8263 (re_compile_internal): Likewise.
8264 (init_dfa): Likewise.
8265 (init_word_char): Likewise.
8266 (create_initial_state): Likewise.
8267 (analyze): Likewise.
8268 (analyze_tree): Likewise.
8269 (duplicate_node): Likewise.
8270 (calc_eclosure): Likewise.
8271 (calc_eclosure_iter): Likewise.
8273 (parse_reg_exp): Likewise.
8274 (parse_branch): Likewise.
8275 (parse_expression): Likewise.
8276 (parse_subexp): Likewise.
8277 (parse_dup_op): Likewise.
8278 (parse_bracket_exp): Likewise.
8279 (build_equiv_class): Likewise.
8280 (build_charclass): Likewise.
8281 (build_word_op): Likewise.
8282 (fetch_number): Likewise.
8283 (create_tree): Likewise.
8284 (duplicate_tree): Likewise.
8285 * posix/regex.c (BE): New macro.
8286 * posix/regexec.c (re_match): Add __builtin_expect to error
8287 handling conditions.
8288 (re_match_2): Likewise.
8289 (re_search): Likewise.
8290 (re_search_internal): Likewise.
8291 (check_matching): Likewise.
8292 (proceed_next_node): Likewise.
8293 (set_regs): Likewise.
8294 (sift_states_backward): Likewise.
8295 (add_epsilon_backreference): Likewise.
8296 (transit_state): Likewise.
8297 (transit_state_sb): Likewise.
8298 (transit_state_mb): Likewise.
8299 (transit_state_bkref): Likewise.
8300 (transit_state_bkref_loop): Likewise.
8301 (build_trtable): Likewise.
8302 (group_nodes_into_DFAstates): Likewise.
8303 (match_ctx_init): Likewise.
8304 (match_ctx_add_entry): Likewise.
8305 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8306 to error handling conditions.
8307 (re_string_construct_toupper): Likewise.
8308 (build_wcs_buffer): Likewise.
8309 (build_wcs_upper_buffer): Likewise.
8310 (build_upper_buffer): Likewise.
8311 (re_string_translate_buffer): Likewise.
8312 (re_node_set_alloc): Likewise.
8313 (re_node_set_init_1): Likewise.
8314 (re_node_set_init_2): Likewise.
8315 (re_node_set_init_copy): Likewise.
8316 (re_node_set_intersect): Likewise.
8317 (re_node_set_init_union): Likewise.
8318 (re_node_set_merge): Likewise.
8319 (re_node_set_insert): Likewise.
8320 (re_dfa_add_node): Likewise.
8321 (re_acquire_state): Likewise.
8322 (re_acquire_state_context): Likewise.
8323 (create_new_state_common): Likewise.
8324 (register_state): Likewise.
8325 (create_ci_new_state): Likewise.
8326 (create_cd_new_state): Likewise.
8327 (re_string_context_at): Remove redundant condition.
8329 2002-01-16 Roger Sayle <roger@eyesopen.com>
8331 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8333 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8335 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8337 * sysdeps/i386/elf/configure.in: Fix comment.
8339 * sysdeps/sparc/sparc64/configure.in: New file.
8340 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8341 if .dynamic comes before .got.
8342 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8344 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8345 HP_TIMING_ACCUM): Fix typos.
8347 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8349 * string/strfry.c: Add some more randomness to the seed.
8350 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8352 * po/es.po: Update from translation team.
8353 * po/fr.po: Likewise.
8355 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8357 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8358 when determining type of format.
8359 Patch by James Antill <james@anqd.org> [PR libc/2787].
8361 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8363 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8365 2002-03-11 Roland McGrath <roland@frob.com>
8367 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8369 * Versions.def (libc): Add GLIBC_2.2.6.
8370 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8371 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8372 __errno_location instead of __hurd_errno_location, and don't inline it.
8373 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8374 * hurd/errno.c: New file.
8375 * hurd/Makefile (routines): Add errno.
8377 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8379 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8380 ridiculously large widths and precisions [PR libc/3026].
8382 2002-03-11 Andreas Jaeger <aj@suse.de>
8384 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8386 Patch by Susanne Oberhauser <froh@SuSE.de>.
8388 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8390 * inet/rexec.c (ahostbuf): Define as static.
8392 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8393 (__ctype32_wctrans): Likewise.
8394 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8395 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8396 (__ctype32_wctrans): Likewise.
8397 (__ctype32_width): Likewise.
8399 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8400 They were never exported anyway.
8402 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8403 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8405 * include/sys/gmon.h: Declare _gmonparam.
8407 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8408 symbols for getdents64. They were never exported.
8410 2002-03-09 Roland McGrath <roland@frob.com>
8412 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8413 Reported by Jon Arney <jarney1@cox.net>.
8415 2002-02-23 Roland McGrath <roland@frob.com>
8417 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8419 (__hurd_errno_location): Function removed.
8421 2002-03-06 Andreas Jaeger <aj@suse.de>
8423 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8426 2002-03-04 Andreas Jaeger <aj@suse.de>
8428 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8430 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8433 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8435 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8437 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8439 * sysdeps/x86_64/bits/setjmp.h: New file.
8441 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8443 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8445 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8447 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8448 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8450 2002-02-28 Bo Thorsen <bo@suse.de>
8452 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8455 2002-03-03 Andreas Jaeger <aj@suse.de>
8457 * sysdeps/x86_64/bits/wordsize.h: New file.
8459 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8460 * elf/tst-tlsmod1.c: Likewise.
8462 * posix/regcomp.c: Get regex.h from include dir for internal
8465 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8466 to libc-internal.h and include it.
8467 * include/libc-internal.h: Add __init_misc.
8469 * misc/init-misc.c: Include libc-internal.h for prototypes.
8471 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8473 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8476 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8478 * posix/regcomp.c: Compatibility changes to allow using the code
8481 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8483 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8486 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8488 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8489 of .str elements in the returned data structure.
8491 * elf/elf.h: Add Alpha TLS bits.
8493 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8495 * sysdeps/unix/sysv/linux/nice.c: New file.
8497 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8499 * elf/Makefile (dl-routines): Add dl-origin.
8500 (elide-routines.os): Add dl-origin.
8501 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8502 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8504 * include/libc-symbols.c: Define attribute_hidden depending on
8505 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8507 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8508 * elf/dl-load.c: Likewise.
8509 * elf/rtld.c: Likewise.
8510 * include/unistd.h: Declare __libc_enable_secure_internal.
8511 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8512 Use INTUSE with __libc_enable_secure.
8513 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8515 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8516 * elf/dl-error.c: Likewise,
8517 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8519 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8520 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8521 function definition. Use INTDEF with _dl_get_origin.
8522 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8524 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8525 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8527 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8528 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8529 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8531 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8532 * elf/dl-deps.c: Likewise.
8533 * elf/dl-error.c: Likewise.
8534 * elf/dl-fini.c: Likewise.
8535 * elf/dl-init.c: Likewise.
8536 * elf/dl-load.c: Likewise.
8537 * elf/dl-lookup.c: Likewise.
8538 * elf/dl-reloc.c: Likewise.
8539 * elf/dl-version.c: Likewise.
8540 * elf/do-lookup.h: Likewise.
8541 * sysdeps/arm/dl-machine.h: Likewise.
8542 * sysdeps/cris/dl-machine.h: Likewise.
8543 * sysdeps/hppa/dl-machine.h: Likewise.
8544 * sysdeps/i386/dl-machine.h: Likewise.
8545 * sysdeps/m68k/dl-machine.h: Likewise.
8546 * sysdeps/powerpc/dl-machine.h: Likewise.
8547 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8548 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8549 * sysdeps/sh/dl-machine.h: Likewise.
8550 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8551 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8552 * sysdeps/x86_64/dl-machine.h: Likewise.
8553 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8554 _dl_argv[0]. Use INTUSE with _dl_argv.
8555 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8556 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8558 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8560 * elf/rtld.c (_rtld_global): Remove .protected.
8561 (_rtld_local): Strong alias to _rtld_global.
8562 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8564 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8565 _rtld_local instead of _rtld_global.
8566 (_rtld_local): Add hidden extern, possibly in .sdata section.
8567 * configure.in: Add tests for visibility attribute and .sdata.
8568 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8569 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8570 * sysdeps/arm/dl-machine.h: Likewise.
8571 * sysdeps/generic/ldsodefs.h: Likewise.
8572 * sysdeps/hppa/dl-machine.h: Likewise.
8573 * sysdeps/cris/dl-machine.h: Likewise.
8574 * sysdeps/i386/dl-machine.h: Likewise.
8575 * sysdeps/ia64/dl-machine.h: Likewise.
8576 * sysdeps/m68k/dl-machine.h: Likewise.
8577 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8578 * sysdeps/mips/dl-machine.h: Likewise.
8579 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8580 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8581 * sysdeps/sh/dl-machine.h: Likewise.
8582 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8583 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8584 * sysdeps/x86_64/dl-machine.h: Likewise.
8586 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8588 * login/login.c (login): Always initialize ut_line field
8591 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8593 * sysdeps/i386/Makefile (sysdep_routines): Add
8595 (shared-only-routines): Likewise.
8596 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8597 (shared-only-routines): Likewise.
8598 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8599 (shared-only-routines): Likewise.
8600 * sysdeps/wordsize-32/divdi3.c: New file.
8602 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8604 * locale/iso-4217.def: Remove obsolete currencies for countries
8607 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8609 * posix/regcomp.c (regcomp): Remove a redundant condition.
8610 (init_word_char): Add a check on malloc failure.
8611 (create_initial_state): Likewise.
8612 (duplicate_node): Likewise.
8613 (calc_eclosure): Likewise.
8614 (calc_eclosure_iter): Likewise.
8615 (parse_expression): Likewise.
8616 (parse_bracket_exp): Remove unnecessary malloc invocations.
8617 (build_equiv_class): Likewise.
8618 (build_charclass): Likewise.
8619 * posix/regex_internal.c (re_node_set_intersect): Add a check
8621 (re_node_set_add_intersect): Likewise.
8622 (re_node_set_merge): Likewise.
8623 (re_acquire_state): Likewise.
8624 (re_acquire_state_context): Likewise.
8625 (create_newstate_common): Likewise.
8626 (register_state): Likewise.
8627 (create_ci_newstate): Likewise.
8628 (create_cd_newstate): Likewise.
8629 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8630 and re_acquire_state_context.
8631 * posix/regexec.c (regexec): Suit it to the error handling of
8633 (re_match): Likewise.
8634 (re_search): Likewise.
8635 (re_search_internal): Add a check on malloc failure.
8636 (acquire_init_state_context): Likewise.
8637 (check_matching): Likewise.
8638 (proceed_next_node): Likewise.
8639 (set_regs): Likewise.
8640 (sift_states_backward): Likewise.
8641 (sift_states_iter_bkref): Likewise.
8642 (add_epsilon_backreference): Likewise.
8643 (transit_state): Likewise.
8644 (transit_state_sb): Likewise.
8645 (transit_state_mb): Likewise.
8646 (transit_state_bkref_loop): Likewise.
8647 (build_trtable): Likewise.
8648 (group_nodes_into_DFAstates): Likewise.
8649 (match_ctx_init): Likewise.
8650 (match_ctx_add_entry): Likewise.
8652 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8654 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8655 l_libname if profiling is enabled [PR libc/2916].
8657 * sysdeps/ia64/dl-tls.h: New file.
8659 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8661 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8662 Work around an Alpha gas bug.
8664 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8666 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8667 uses read to load the catalog.
8668 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8670 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8672 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8673 regex_internal.c, and regex_internal.h.
8674 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8675 * posix/regex.c: Complete rewrite.
8676 * posix/regexec.c: New file.
8677 * posix/regcomp.c: New file.
8678 * posix/regex_internal.c: New file.
8679 * posix/regex_internal.h: New file.
8680 * posix/regex.h (RE_ICASE): New macro.
8681 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8683 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8684 ungetwc. It's a macro.
8685 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8687 Reported by Jason Merrill <jason@redhat.com>.
8689 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8691 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8692 position to fp->_offset if it is set.
8693 * stdio-common/Makefile (tests): Add tst-fdopen.
8694 * stdio-common/tst-fdopen.c: New test.
8696 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8698 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8699 * stdio-common/tst-ungetc.c (main): Add another test.
8701 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8703 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8704 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8705 aliases. Add prototypes for the new aliases.
8706 * assert/assert.c: Likewise.
8707 * include/libc-symbols.h: Likewise.
8708 * include/stdio.h: Likewise.
8709 * include/netinet/in.h: Likewise.
8710 * include/rpc/auth.h: Likewise.
8711 * include/rpc/auth_unix.h: Likewise.
8712 * include/rpc/key_prot.h: Likewise.
8713 * include/rpc/pmap_prot.h: Likewise.
8714 * include/rpc/pmap_rmt.h: Likewise.
8715 * include/rpc/rpc_msg.h: Likewise.
8716 * include/rpc/xdr.h: Likewise.
8717 * inet/gethstbyad_r.c: Likewise.
8718 * inet/gethstbynm2_r.c: Likewise.
8719 * inet/gethstbynm_r.c: Likewise.
8720 * inet/gethstent_r.c: Likewise.
8721 * inet/in6_addr.c: Likewise.
8722 * libio/__fpurge.c: Likewise.
8723 * libio/filedoalloc.c: Likewise.
8724 * libio/fileops.c: Likewise.
8725 * libio/ftello.c: Likewise.
8726 * libio/ftello64.c: Likewise.
8727 * libio/genops.c: Likewise.
8728 * libio/iofclose.c: Likewise.
8729 * libio/iofdopen.c: Likewise.
8730 * libio/iofflush.c: Likewise.
8731 * libio/iofflush_u.c: Likewise.
8732 * libio/iofgetpos.c: Likewise.
8733 * libio/iofgetpos64.c: Likewise.
8734 * libio/iofgets.c: Likewise.
8735 * libio/iofgets_u.c: Likewise.
8736 * libio/iofopen.c: Likewise.
8737 * libio/iofopncook.c: Likewise.
8738 * libio/iofputs.c: Likewise.
8739 * libio/iofread.c: Likewise.
8740 * libio/iofread_u.c: Likewise.
8741 * libio/iofsetpos.c: Likewise.
8742 * libio/iofsetpos64.c: Likewise.
8743 * libio/ioftell.c: Likewise.
8744 * libio/iofwrite.c: Likewise.
8745 * libio/iogetline.c: Likewise.
8746 * libio/iogets.c: Likewise.
8747 * libio/iogetwline.c: Likewise.
8748 * libio/iolibio.h: Likewise.
8749 * libio/iopadn.c: Likewise.
8750 * libio/iopopen.c: Likewise.
8751 * libio/ioseekoff.c: Likewise.
8752 * libio/ioseekpos.c: Likewise.
8753 * libio/iosetbuffer.c: Likewise.
8754 * libio/iosetvbuf.c: Likewise.
8755 * libio/ioungetc.c: Likewise.
8756 * libio/ioungetwc.c: Likewise.
8757 * libio/iovdprintf.c: Likewise.
8758 * libio/iovsprintf.c: Likewise.
8759 * libio/iovsscanf.c: Likewise.
8760 * libio/libioP.h: Likewise.
8761 * libio/memstream.c: Likewise.
8762 * libio/obprintf.c: Likewise.
8763 * libio/oldfileops.c: Likewise.
8764 * libio/oldiofclose.c: Likewise.
8765 * libio/oldiofdopen.c: Likewise.
8766 * libio/oldiofgetpos.c: Likewise.
8767 * libio/oldiofgetpos64.c: Likewise.
8768 * libio/oldiofopen.c: Likewise.
8769 * libio/oldiofsetpos.c: Likewise.
8770 * libio/oldiofsetpos64.c: Likewise.
8771 * libio/oldiopopen.c: Likewise.
8772 * libio/oldstdfiles.c: Likewise.
8773 * libio/putc.c: Likewise.
8774 * libio/setbuf.c: Likewise.
8775 * libio/setlinebuf.c: Likewise.
8776 * libio/stdfiles.c: Likewise.
8777 * libio/stdio.c: Likewise.
8778 * libio/strops.c: Likewise.
8779 * libio/vasprintf.c: Likewise.
8780 * libio/vscanf.c: Likewise.
8781 * libio/vsnprintf.c: Likewise.
8782 * libio/vswprintf.c: Likewise.
8783 * libio/wfiledoalloc.c: Likewise.
8784 * libio/wfileops.c: Likewise.
8785 * libio/wgenops.c: Likewise.
8786 * libio/wstrops.c: Likewise.
8787 * malloc/mtrace.c: Likewise.
8788 * misc/error.c: Likewise.
8789 * misc/syslog.c: Likewise.
8790 * nss/getXXbyYY_r.c: Likewise.
8791 * nss/getXXent_r.c: Likewise.
8792 * nss/hosts-lookup.c: Likewise.
8793 * stdio-common/getw.c
8794 * stdio-common/printf-prs.c: Likewise.
8795 * stdio-common/printf_fp.c: Likewise.
8796 * stdio-common/printf_size.c: Likewise.
8797 * stdio-common/putw.c: Likewise.
8798 * stdio-common/scanf.c: Likewise.
8799 * stdio-common/sprintf.c: Likewise.
8800 * stdio-common/tmpfile64.c: Likewise.
8801 * stdio-common/vfprintf.c: Likewise.
8802 * stdio-common/vfscanf.c: Likewise.
8803 * stdlib/strfmon.c: Likewise.
8804 * sunrpc/auth_des.c: Likewise.
8805 * sunrpc/auth_none.c: Likewise.
8806 * sunrpc/auth_unix.c: Likewise.
8807 * sunrpc/authdes_prot.c: Likewise.
8808 * sunrpc/authuxprot.c: Likewise.
8809 * sunrpc/clnt_perr.c: Likewise.
8810 * sunrpc/clnt_raw.c: Likewise.
8811 * sunrpc/clnt_tcp.c: Likewise.
8812 * sunrpc/clnt_udp.c: Likewise.
8813 * sunrpc/clnt_unix.c: Likewise.
8814 * sunrpc/key_call.c: Likewise.
8815 * sunrpc/key_prot.c: Likewise.
8816 * sunrpc/openchild.c: Likewise.
8817 * sunrpc/pm_getmaps.c: Likewise.
8818 * sunrpc/pm_getport.c: Likewise.
8819 * sunrpc/pmap_clnt.c: Likewise.
8820 * sunrpc/pmap_prot.c: Likewise.
8821 * sunrpc/pmap_prot2.c: Likewise.
8822 * sunrpc/pmap_rmt.c: Likewise.
8823 * sunrpc/rpc_cmsg.c: Likewise.
8824 * sunrpc/rpc_prot.c: Likewise.
8825 * sunrpc/svc_authux.c: Likewise.
8826 * sunrpc/svc_raw.c: Likewise.
8827 * sunrpc/svc_simple.c: Likewise.
8828 * sunrpc/svc_tcp.c: Likewise.
8829 * sunrpc/svc_udp.c: Likewise.
8830 * sunrpc/svc_unix.c: Likewise.
8831 * sunrpc/xdr.c: Likewise.
8832 * sunrpc/xdr_array.c: Likewise.
8833 * sunrpc/xdr_mem.c: Likewise.
8834 * sunrpc/xdr_rec.c: Likewise.
8835 * sunrpc/xdr_ref.c: Likewise.
8836 * sunrpc/xdr_stdio.c: Likewise.
8837 * sysdeps/generic/_strerror.c: Likewise.
8838 * sysdeps/generic/printf_fphex.c: Likewise.
8839 * sysdeps/generic/tmpfile.c: Likewise.
8840 * sysdeps/gnu/errlist.awk: Likewise.
8841 * sysdeps/gnu/errlist.c: Likewise.
8843 * libio/Makefile (routines): Remove iosprint.
8844 * libio/iosprintf.c: Removed
8847 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8849 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8850 non_dynamic_init and exported now.
8851 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8852 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8854 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8855 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8856 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8858 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8860 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8863 * locale/iso-639.def: Add language codes for Walloon.
8865 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8866 total number of relocations performed.
8868 * elf/sprof.c (load_profdata): If do_test provide information as
8869 to why loading failed.
8870 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8873 * csu/set-init.c: Moved to...
8874 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8875 * csu/Makefile: Don't compile set-init.
8876 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8877 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8879 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8880 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8881 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8883 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8886 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8888 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8889 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8890 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8891 (_dl_deallocate_tls): New function.
8892 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8895 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8897 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8898 * stdio-common/tst-fseek.c (main): Add test for this.
8900 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8902 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8904 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8906 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8907 pointer before dereferencing.
8909 2002-02-18 Roland McGrath <roland@frob.com>
8911 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8913 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8914 Use task_policy in place of task_priority.
8916 * sysdeps/generic/bits/mman.h
8917 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8918 * sysdeps/mach/msync.c: New file.
8920 * sysdeps/mach/powerpc/syscall.S: New file.
8922 * mach/msg.c [MACH_MSG_OVERWRITE]
8923 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8924 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8926 * sysdeps/mach/configure.in: Check for clock.defs to put into
8927 mach_interface_list.
8928 * sysdeps/mach/configure: Regenerated.
8930 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8931 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8932 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8933 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8934 (mach-shortcuts): Add device_read_overwrite_request,
8935 device_read_overwrite, vm_read_overwrite, thread_switch.
8937 * configure.in (base_machine): Set to $machine by default.
8938 * configure: Regenerated.
8940 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8941 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8942 * sysdeps/mach/configure: Regenerated.
8943 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8945 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8947 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8949 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8950 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8952 2002-02-17 Roland McGrath <roland@frob.com>
8954 * sysdeps/mach/hurd/times.c
8955 [NO_CREATION_TIME] (startup_time): New static variable.
8956 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8957 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8958 creation_time from task_basic_info.
8959 (__times): Use __gettimeofday instead of __host_get_time.
8961 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8962 Use untyped Mach IPC message format.
8964 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8966 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8967 _S_catch_exception_raise_state_identity,
8968 _hurdsig_fault_catch_exception_raise_state,
8969 _hurdsig_fault_catch_exception_raise_state_identity.
8971 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8973 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8974 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8976 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8977 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8979 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8980 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8981 them as no-op macros.
8982 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8983 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8985 * sysdeps/powerpc/dl-machine.h
8986 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8988 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8989 Use untyped Mach IPC message format.
8991 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8992 Handle untyped Mach IPC message formats.
8994 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8995 Expect different argument conventions when this is defined.
8996 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8997 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8998 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8999 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9000 for OSF Mach variant.
9001 (faulted): Use mig_reply_error_t for REPLY.
9002 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9003 in __thread_set_exception_ports call.
9004 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9005 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9007 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9008 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9009 on Darwin, which includes bogons.
9011 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9012 variable LOADBASE so it's not declared when it's not used.
9014 2002-02-16 Roland McGrath <roland@frob.com>
9016 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9017 to use BI.creation_time.
9019 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9021 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9022 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9023 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9024 host_page_size instead of vm_statistics.
9026 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9027 mach_interface.h here, since not all variants use that name.
9029 * sysdeps/mach/configure.in: Add some checks for Mach headers
9030 to ensure a sane installation.
9031 (mach_interface_list): Define this variable by checking for .defs
9032 files found in various variants.
9033 * configure.in (mach_interface_list): AC_SUBST this.
9034 * config.make.in (mach-interface-list): New substituted variable.
9035 * mach/Makefile (user-interfaces): Define this using the value
9036 of $(mach-interface-list) instead of mach, mach4.
9037 Updated other references to mach_interface to use it as well.
9039 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9041 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9042 mig_reply_error_t for OSF Mach variant.
9044 * mach/Makefile (routines): Remove bootprivport.
9045 * mach/bootprivport.c: File removed. It has never been used.
9047 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9048 Grok the OSF flavor of message format.
9049 (mach_msg_destroy_port): For MAKE_SEND and
9050 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9051 no-senders notification.
9053 2002-02-06 Roland McGrath <roland@frob.com>
9055 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9056 to here if 2.0 compatibility enabled ...
9057 (libc: GLIBC_2.1.3): ... from here.
9059 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9061 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9063 * elf/dl-close.c (_dl_close): Likewise.
9065 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9067 * elf/Makefile: Add rules to build and run tst-tls8.
9068 * elf/tst-tls8.c: New file.
9069 * elf/tst-tlsmod4.c: New file.
9071 * stdlib/test-a64l.c (tests): Add more test cases.
9073 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9074 Reported by Walter Harms <WHarms@bfs.de>.
9076 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9078 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9079 definitions for struct sigcontext.
9080 Suggested by David Mosberger-Tang.
9082 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9084 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9085 for removing reference of module in slotinfo list.
9086 (_dl_close): Use remove_slotinfo.
9087 * sysdeps/generic/dl-tls.c: General pretty printing.
9088 (oom): Define only if SHARED.
9089 (_dl_next_tls_modid): Correct starting point for the case we assume
9090 there is a gap. Add missing instruction grouping (doh!). Correct
9091 tests for reaching maximum index.
9092 * elf/Makefile: Add rules to build and run tst-tls7.
9093 * elf/tst-tls7.c: New file.
9094 * elf/tst-tlsmod3.c: New file.
9096 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9098 * elf/tst-tlsmod2.c: Likewise.
9100 * elf/dl-close.c (_dl_close): When closing an object using TLS
9101 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9102 true. Increment dl_tls_generation only if we closed any TLS-using
9104 * elf/tst-tls6.c: New file.
9105 * elf/Makefile: Add rules to build and run tst-tls6.
9107 * po/da.po: Update from translation team.
9109 * locale/categories.def: Fix typo [PR libc/2948].
9110 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9112 * locale/iso-4217.def: Update from official version [PR libc/2950].
9113 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9114 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9115 message if input is too confusion instead of using assert.
9116 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9117 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9119 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9120 * elf/tst-tls2.c: Likewise.
9121 * elf/tst-tls3.c: Likewise.
9123 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9125 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9127 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9129 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9130 if this is really necessary.
9132 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9134 (free_mem): Free memory for the slotinfo array if possible.
9136 2002-02-12 Andreas Schwab <schwab@suse.de>
9138 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9140 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9142 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9144 (oom): New function.
9145 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9146 (_dl_determine_tlsoffset): Likewise.
9147 (_dl_allocate_tls): Likewise.
9148 (__TLS_GET_ADDR): Define if not already defined.
9149 (_dl_tls_symaddr): New function.
9150 (allocate_and_init): New function.
9151 (__tls_get_addr): Actually implement handling of generation counter
9152 and deferred allocation.
9153 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9154 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9156 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9157 Declare _dl_tls_symaddr.
9158 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9160 * include/link.h (struct link_map): Remove l_tls_nextimage and
9162 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9163 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9164 (_dl_vsym): Likewise.
9165 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9167 (dl_main): Allow PT_TLS be present for empty segment. Remove
9168 nextimage list handling. Instead add all modules using TLS to
9169 dl_tls_dtv_slotinfo_list.
9170 * elf/dl-open.c (dl_open_worker): After successfully loading all
9171 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9172 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9173 empty segment don't do anything. Remove handling of initimage list.
9174 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9175 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9176 * elf/dl-minimal.c: Define __libc_memalign.
9177 * elf/dl-support.c: Remove _dl_initimage_list. Add
9178 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9180 * include/stdlib.h: Declare __libc_memalign.
9182 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9183 * elf/tst-tls4.c: New file.
9184 * elf/tst-tls5.c: New file.
9185 * elf/tst-tlsmod2.c: New file.
9187 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9189 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9191 * elf/tst-tls1.c: Use test-skeleton.c.
9192 * elf/tst-tls2.c: Likewise.
9193 * elf/tst-tls3.c: Likewise.
9195 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9197 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9199 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9201 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9203 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9205 * elf/tst-tls3.c: New file.
9206 * elf/tst-tlsmod1.c: New file.
9207 * elf/Makefile: Add rules to build and run tst-tls3.
9209 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9210 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9213 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9215 * po/fr.po: Update from translation team.
9217 * elf/tls-macros.h: Add alternative macros for use in PIC.
9219 * elf/dl-lookup.c: Include <tls.h>.
9220 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9222 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9223 required by passing pointer to last element of the list.
9225 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9226 l_tls_initimage to a place where it actually is performed.
9228 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9229 after globfree() calls.
9231 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9232 (openaux): Pass open_mode as new last argument to _dl_map_object.
9233 (_dl_map_object_deps): Add new argument open_mode. Initialize
9234 open_mode element of args variable with it.
9235 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9236 _dl_map_object_deps.
9237 * elf/rtld.c (dl_main): Add zero as last parameter to
9238 _dl_map_object_deps call.
9239 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9240 * elf/nodlopen2.c: New file.
9241 * elf/nodlopenmod2.c: New file.
9242 * elf/Makefile: Add rules to build and run nodlopen2.
9244 * elf/tst-tls1.c: Move TLS helper macros to...
9245 * elf/tls-macros.h: ...here. New file.
9246 * elf/tst-tls2.c: New file.
9247 * elf/Makefile (tests): Add tst-tls2.
9248 (distribute): Add tls-macros.h.
9250 * po/sv.po: Update from translation team.
9252 * elf/tst-tls1.c (main): Add complete set of tests. Split
9253 architecture specific definitions from the actual test code.
9255 * po/tr.po: Update from translation team.
9257 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9259 * elf/Makefile (tests): Add tst-tls1.
9260 * elf/tst-tls1.c: New file.
9262 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9263 alignment of TCB for now.
9265 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9266 initialization image for the application itself.
9268 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9269 loop to initialize TLS block.
9271 2002-02-08 Richard Henderson <rth@redhat.com>
9273 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9274 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9276 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9278 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9280 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9282 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9284 * po/ca.po: Update from translation team.
9285 * po/sk.po: Likewise.
9287 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9288 (dl_main): Move dtv/static TLS handling before relocation.
9289 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9290 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9291 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9292 so far uses TLS initialize GL(dl_tls_static_size) and
9293 GL(dl_tls_static_align) to account for the TCB.
9294 (_dl_allocate_tls): New function.
9295 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9296 _dl_initial_dtv_malloced.
9298 * configure.in: Test for __builtin_memset more realistically.
9300 * csu/version.c (banner): If TLS support is available say so.
9302 2002-02-04 H.J. Lu <hjl@gnu.org>
9304 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9306 (__dl_runtime_resolve): Likewise.
9308 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9311 2001-11-15 H.J. Lu <hjl@gnu.org>
9313 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9314 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9316 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9318 2002-02-07 H.J. Lu <hjl@gnu.org>
9320 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9322 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9325 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9327 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9329 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9330 ___tls_get_addr_internal.
9331 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9333 * po/ko.po: Update from translation team.
9335 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9337 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9338 attribute, change __pad{1,2} type to unsigned int.
9339 (struct stat64): Remove packed attribute.
9341 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9343 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9345 2002-02-07 Andreas Schwab <schwab@suse.de>
9347 * configure.in: Fix check for -zcombreloc.
9349 2002-02-06 H.J. Lu <hjl@gnu.org>
9351 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9352 * configure.in: Check if __builtin_memset really works.
9353 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9354 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9356 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9358 * io/bug-ftw3.c (main): Don't try the test if root.
9360 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9362 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9364 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9365 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9366 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9368 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9369 a weak alias for __clone.
9370 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9371 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9372 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9373 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9374 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9375 a weak alias for __mmap64.
9377 2002-02-05 H.J. Lu <hjl@gnu.org>
9379 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9380 (atomic_add): Likewise.
9381 (compare_and_swap): Likewise.
9382 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9384 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9386 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9388 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9389 alignment of the TCB and store total size and alignment of static
9390 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9391 tls_index is a typedef.
9392 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9393 _dl_tls_static_align.
9394 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9395 * elf/dl-support.c: Define _dl_tls_static_size and
9396 _dl_tls_static_align.
9398 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9400 * configure.in: Add --without-tls option.
9401 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9402 --without-tls is given.
9404 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9406 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9408 2002-02-06 Roland McGrath <roland@frob.com>
9410 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9411 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9413 * scripts/versions.awk: Improve error message for missing version.
9414 Each version inherits from the last one only if they have the same
9415 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9416 but not GLIBC_x and FOO_y.
9418 * scripts/firstversions.awk: Handle libraries that don't have each
9419 particular version named in the third column of shlib-versions.
9421 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9423 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9425 * Versions.def [ld]: Add GLIBC_2.3.
9426 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9427 * elf/Makefile (dl-routines): Add dl-tls.
9428 (distribute): Add dl-tls.h.
9429 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9430 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9431 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9432 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9433 along with the other info in the link map. Change queueing of init
9434 images for double linked list. Use _dl_next_tls_modid to compute
9436 * elf/rtld.c (_dl_start_final): Store alignment requirement
9437 along with the other info in rtld map and executable map.
9438 (dl_main): Add ld.so to the init image list if necessary. Compute
9439 final module ID with _dl_next_tls_modid.
9440 * include/link.h (struct link_map): Add l_tls_previmage and
9442 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9443 * sysdeps/i386/elf/Versions: New file.
9444 * sysdeps/generic/dl-tls.c: New file.
9445 * sysdeps/generic/dl-tls.h: New file.
9446 * sysdeps/i386/dl-tls.h: New file.
9448 2002-02-06 Roland McGrath <roland@frob.com>
9450 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9451 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9453 2002-01-05 Roland McGrath <roland@frob.com>
9455 * sysdeps/mach/configure.in: New file.
9456 * sysdeps/mach/configure: New generated file.
9458 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9459 It has never been used by anything.
9461 2002-02-06 H.J. Lu <hjl@gnu.org>
9463 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9466 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9468 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9469 attribute((packed)) to counter stupid people misusing gcc options.
9470 (struct stat64): Likewise.
9472 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9474 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9475 the variables which are used as booleans.
9477 2002-02-06 Andreas Jaeger <aj@suse.de>
9479 * include/libc-symbols.h (INTUSE): Renamed from INT.
9480 * elf/dl-deps.c: Change users.
9481 * sysdeps/generic/dl-sysdep.c: Likewise.
9482 * sysdeps/generic/dl-cache.c: Likewise.
9483 * elf/dl-reloc.c: Likewise.
9484 * elf/rtld.c: Likewise.
9485 * elf/dl-version.c: Likewise.
9486 * elf/dl-load.c: Likewise.
9487 * elf/dl-dst.h: Likewise.
9488 * elf/dl-init.c: Likewise.
9489 * elf/dl-error.c: Likewise.
9490 * elf/dl-fini.c: Likewise.
9491 * elf/dl-runtime.c: Likewise.
9492 * elf/do-lookup.h: Likewise.
9494 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9496 * stdio-common/_itowa.h: Likewise.
9498 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9500 * elf/dl-minimal.c: Define _itoa_lower_digits.
9502 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9505 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9506 loading modules with the DF_STATIC_TLS flag set.
9507 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9509 * include/link.h (struct link_map): Add l_flags field.
9510 * elf/elf.h (DF_STATIC_TLS): New definition.
9512 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9513 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9515 * elf/rtld.c (process_dl_debug): Correct printing help message.
9516 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9519 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9520 definition and pass &errno in use of this variable.
9521 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9523 2002-02-04 Andreas Schwab <schwab@suse.de>
9525 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9526 * locale/programs/charmap-dir.c: Wrap calls that output messages
9527 with WITH_CUR_LOCALE. Include "localedef.h" first.
9528 * locale/programs/charmap.c: Likewise.
9529 * locale/programs/ld-address.c: Likewise.
9530 * locale/programs/ld-collate.c: Likewise.
9531 * locale/programs/ld-ctype.c: Likewise.
9532 * locale/programs/ld-identification.c: Likewise.
9533 * locale/programs/ld-measurement.c: Likewise.
9534 * locale/programs/ld-messages.c: Likewise.
9535 * locale/programs/ld-monetary.c: Likewise.
9536 * locale/programs/ld-name.c: Likewise.
9537 * locale/programs/ld-numeric.c: Likewise.
9538 * locale/programs/ld-paper.c: Likewise.
9539 * locale/programs/ld-telephone.c: Likewise.
9540 * locale/programs/ld-time.c: Likewise.
9541 * locale/programs/linereader.c: Likewise.
9542 * locale/programs/linereader.h: Likewise.
9543 * locale/programs/localedef.c: Likewise.
9544 * locale/programs/locfile.c: Likewise.
9545 * locale/programs/repertoire.c: Likewise.
9547 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9549 * elf/rtld.c (_dl_start_final): Determine load address to locate
9550 ehdr with GL(dl_rtld_map).l_map_start.
9552 * po/ca.po: Update from translation team.
9554 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9555 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9557 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9559 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9561 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9563 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9564 * include/link.h (struct link_map): Add various members for TLS
9566 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9567 _rtld_tlsoffset, add _dl_initimage_list.
9568 * sysdeps/i386/dl-lookupcfg.h: New file.
9569 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9570 TLS relocation. When using TLS we now use RESOLVE_MAP.
9571 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9574 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9577 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9578 thread-pointer as soon as possible.
9579 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9580 elements in rtld_global.
9581 * sysdeps/generic/tls.h: New file.
9582 * elf/Makefile (distribute): Add tls.h.
9583 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9584 relocations. Not complete yet.
9586 * resolv/resolv.h: Allow user to define __need_res_state and only
9587 define __res_start structure then.
9588 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9590 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9591 dl_cpuclock_offset initialization to _dl_start_final.
9592 (_dl_show_auxv): Avoid unnecessary sign extension.
9593 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9595 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9597 * config.h.in: Add HAVE_TLS_SUPPORT.
9598 * sysdeps/i386/elf/configure.in: New file.
9600 2002-02-03 Andreas Schwab <schwab@suse.de>
9602 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9603 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9605 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9607 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9608 alloca if the memory reqirements are too high.
9610 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9612 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9613 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9614 the former is available anyway and speed isn't important here.
9615 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9616 * elf/dl-version.c (match_symbol): Likewise.
9617 (_dl_check_map_versions): Likewise.
9618 * elf/rtld.c (process_envvars): Likewise.
9619 (print_statistics): Likewise.
9620 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9621 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9622 bases. Add assert to catch uses of unimplemented features.
9623 (__strsep): Add assert to catch uses of unimplemented features.
9624 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9625 and avoid inline optimization.
9626 * elf/rtld.c (process_envvars): Likewise.
9627 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9628 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9629 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9631 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9633 * stdio-common/_itoa.h: Minor simplifications of the code.
9634 * stdio-common/_itoa.c: Likewise.
9636 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9637 instead of _dl_printf for debugging info output.
9639 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9640 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9642 2002-02-01 H.J. Lu <hjl@gnu.org>
9644 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9645 (atomic_add): Likewise.
9646 (compare_and_swap): Return 0 only when failed to compare. Use
9649 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9652 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9654 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9656 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9658 * elf/dl-minimal.c (__strsep): New minimal implementation.
9660 2002-02-02 Paul Eggert <eggert@twinsun.com>
9662 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9663 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9664 with tm_isdst > 0 when the requested time falls within a
9665 spring-forward gap [PR libc/2894].
9667 2002-02-03 Andreas Schwab <schwab@suse.de>
9669 * stdio-common/tst-rndseek.c: Increase timeout.
9671 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9673 Change ld.so to not use functions which are exported. One cannot
9674 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9676 * include/libc-symbols.h: Define INT and INTDEF.
9677 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9678 _dl_signal_error_internal, _dl_map_object_internal,
9679 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9680 _dl_lookup_versioned_symbol_internal,
9681 _dl_relocate_object_internal, _dl_debug_state_internal,
9682 _dl_start_profile_internal, and _dl_unload_cache_internal.
9683 * include/dlfcn.h: Declare _dl_catch_error_internal.
9684 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9685 above. Add INTDEF to function definitions.
9686 * elf/dl-debug.c: Likewise.
9687 * elf/dl-deps.c: Likewise.
9688 * elf/dl-dst.h: Likewise.
9689 * elf/dl-error.c: Likewise.
9690 * elf/dl-fini.c: Likewise.
9691 * elf/dl-init.c: Likewise.
9692 * elf/dl-load.c: Likewise.
9693 * elf/dl-lookup.c: Likewise.
9694 * elf/dl-misc.c: Likewise.
9695 * elf/dl-open.c: Likewise.
9696 * elf/dl-profile.c: Likewise.
9697 * elf/dl-reloc.c: Likewise.
9698 * elf/dl-runtime.c: Likewise.
9699 * elf/dl-version.c: Likewise.
9700 * elf/do-lookup.h: Likewise.
9701 * sysdeps/generic/dl-cache.c: Likewise.
9702 * sysdeps/generic/dl-sysdep.c: Likewise.
9703 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9704 instead of _dl_init.
9705 * sysdeps/arm/dl-machine.h: Likewise.
9706 * sysdeps/cris/dl-machine.h: Likewise.
9707 * sysdeps/hppa/dl-machine.h: Likewise.
9708 * sysdeps/i386/dl-machine.h: Likewise.
9709 * sysdeps/ia64/dl-machine.h: Likewise.
9710 * sysdeps/m68k/dl-machine.h: Likewise.
9711 * sysdeps/mips/dl-machine.h: Likewise.
9712 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9713 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9714 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9715 * sysdeps/sh/dl-machine.h: Likewise.
9716 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9717 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9718 * sysdeps/x86_64/dl-machine.h: Likewise.
9719 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9721 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9722 and _dl_debug_initialize.
9724 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9726 * elf/rtld.c (dl_main): Avoid strrchr.
9727 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9728 result of readlink. Search from the back for '/'.
9730 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9731 strncpy if possible.
9733 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9735 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9736 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9737 strspn, and strcspn.
9738 (process_envvars): Don't use strcspn.
9740 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9741 (_dl_dst_substitute): Likewise.
9743 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9745 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9746 code which is never used when relocating ld.so itself.
9748 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9749 starting ld.so itself. Move l_addr variable initialization closer
9751 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9753 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9755 * Versions.def (libc): Add GLIBC_PRIVATE.
9756 (libdb, libnss_db, libdb1): Remove.
9757 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9758 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9759 (libpthread): Add GLIBC_PRIVATE.
9760 (libresolv): Likewise, remove GLIBC_2.1.
9761 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9762 GLIBC_2.2.3, GLIBC_2.3.
9763 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9764 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9765 _dl_sym, _dl_vsym): Likewise.
9766 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9767 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9768 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9769 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9770 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9771 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9772 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9773 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9775 (_dl_object_relocation_scope): Remove.
9776 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9777 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9778 __gconv_cache): Move to GLIBC_PRIVATE.
9779 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9780 __internal_setnetgrent): Likewise.
9781 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9782 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9783 * locale/Versions (__collate_element_hash, __collate_element_strings,
9784 __collate_symbol_classes, __collate_symbol_hash,
9785 __collate_symbol_strings, _nl_current_LC_COLLATE,
9786 _nl_current_LC_CTYPE): Likewise.
9787 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9788 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9789 (libnss_nis, libnss_nisplus): Likewise.
9790 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9791 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9792 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9793 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9794 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9795 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9796 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9797 __ns_get16, __ns_samename): Likewise.
9798 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9799 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9801 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9802 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9803 __libc_connect): Likewise.
9804 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9806 * stdlib/Versions (__libc_system): Likewise.
9807 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9808 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9809 * sysdeps/ia64/fpu/Versions: Likewise.
9810 * sysdeps/ia64/Versions: Likewise.
9811 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9812 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9814 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9815 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9816 __libc_sigaction): Likewise.
9817 * termios/Versions (__libc_tcdrain): Likewise.
9819 * misc/sys/cdefs (__attribute_noinline__): Define.
9820 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9821 __attribute_noinline__.
9823 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9824 * elf/dl-xstat64.c: New file.
9825 * elf/dl-fxstat64.c: New file.
9826 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9827 don't export __fxstat64 at multiple versions.
9828 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9829 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9831 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9833 * locale/program/ld-collate.c (collate_finish): Assign a wide
9834 char collation sequence value to multi character collating
9835 elements, and avoid over writing by non-character elements.
9837 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9839 * elf/Makefile (distribute): Add dl-procinfo.c.
9840 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9841 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9843 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9845 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9847 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9848 _rtld_global struct.
9849 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9850 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9851 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9852 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9853 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9854 _dl_fpu_control_set): Remove unused externs.
9855 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9856 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9857 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9858 related variables in _rtld_global struct.
9859 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9860 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9863 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9865 * sysdeps/generic/dl-procinfo.c: New file.
9867 2002-02-01 Andreas Schwab <schwab@suse.de>
9869 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9871 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9873 * elf/rtld.c (_dl_start): Mark as internal_function.
9874 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9876 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9877 General pretty printing.
9879 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9881 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9882 * elf/dl-reloc.c: Pretty printing.
9883 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9884 procinfo-related variables in rtld_global struct.
9885 * elf/dl-support.c: Likewise.
9886 * elf/rtld.c: Likewise.
9887 * sysdeps/i386/i686/Makefile: Likewise.
9888 * sysdeps/i386/i686/hp-timing.c: Likewise.
9889 * sysdeps/i386/i686/hp-timing.h: Likewise.
9890 * sysdeps/ia64/Makefile: Likewise.
9891 * sysdeps/ia64/hp-timing.c: Likewise.
9892 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9893 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9894 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9895 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9896 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9897 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9898 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9899 * sysdeps/x86_64/Makefile: Likewise.
9901 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9902 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9903 _dl_debug_fd to rtld_global.
9904 * elf/Versions: Likewise.
9905 * elf/dl-close.c: Likewise.
9906 * elf/dl-iteratephdr.c: Likewise.
9907 * elf/dl-lookup.c: Likewise.
9908 * elf/dl-misc.c: Likewise.
9909 * elf/dl-open.c: Likewise.
9910 * elf/dl-support.c: Likewise.
9911 * elf/do-lookup.h: Likewise.
9912 * elf/rtld.c: Likewise.
9913 * sysdeps/generic/dl-cache.c: Likewise.
9914 * sysdeps/generic/dl-sysdep.c: Likewise.
9915 * sysdeps/ia64/Versions: Likewise.
9916 * sysdeps/unix/clock_gettime.c: Likewise.
9917 * sysdeps/unix/clock_settime.c: Likewise.
9918 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9919 * sysdeps/sparc/Versions: Removed.
9920 * sysdeps/i386/i686/Versions : Removed.
9921 * sysdeps/x86_64/Versions: Removed.
9922 * configure.in: Define HAVE_PROTECTED if .protected is available.
9923 * config.h.in: Add entry for HAVE_PROTECTED.
9925 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9927 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9928 code in struct _rtld_global. Export this struct, remove all
9929 exports for the signal variables.
9930 * sysdeps/arm/dl-machine: Likewise.
9931 * sysdeps/generic/dl-origin: Likewise.
9932 * sysdeps/generic/dl-sysdep: Likewise.
9933 * sysdeps/generic/dl-cache: Likewise.
9934 * sysdeps/hppa/dl-fptr: Likewise.
9935 * sysdeps/hppa/dl-machine: Likewise.
9936 * sysdeps/cris/dl-machine: Likewise.
9937 * sysdeps/i386/dl-machine: Likewise.
9938 * sysdeps/ia64/dl-machine: Likewise.
9939 * sysdeps/m68k/dl-machine: Likewise.
9940 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9941 * sysdeps/mips/mips64/dl-machine: Likewise.
9942 * sysdeps/mips/dl-machine: Likewise.
9943 * sysdeps/powerpc/elf/libc-start: Likewise.
9944 * sysdeps/powerpc/dl-machine: Likewise.
9945 * sysdeps/powerpc/dl-start: Likewise.
9946 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9947 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9948 * sysdeps/sh/dl-machine: Likewise.
9949 * sysdeps/s390/s390-32/dl-machine: Likewise.
9950 * sysdeps/s390/s390-64/dl-machine: Likewise.
9951 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9952 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9953 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9954 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9955 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9956 * sysdeps/x86_64/dl-machine: Likewise.
9958 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9960 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9963 2002-01-31 Andreas Schwab <schwab@suse.de>
9965 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9967 2002-01-31 Andreas Schwab <schwab@suse.de>
9969 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9970 reference to _dl_pagesize.
9972 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9974 * Versions.def [ld]: Add GLIBC_2.3.
9975 * elf/dl-addr.c: Move global variables for SHARED code in struct
9976 _rtld_global. Export this struct, remove all exports for the
9978 * elf/dl-close.c: Likewise.
9979 * elf/dl-conflict.c: Likewise.
9980 * elf/dl-debug.c: Likewise.
9981 * elf/dl-deps.c: Likewise.
9982 * elf/dl-dst.h: Likewise.
9983 * elf/dl-error.c: Likewise.
9984 * elf/dl-fini.c: Likewise.
9985 * elf/dl-init.c: Likewise.
9986 * elf/dl-iteratephdr.c: Likewise.
9987 * elf/dl-libc.c: Likewise.
9988 * elf/dl-load.c: Likewise.
9989 * elf/dl-lookup.c: Likewise.
9990 * elf/dl-minimal.c: Likewise.
9991 * elf/dl-object.c: Likewise.
9992 * elf/dl-open.c: Likewise.
9993 * elf/dl-profile.c: Likewise.
9994 * elf/dl-profstub.c: Likewise.
9995 * elf/dl-reloc.c: Likewise.
9996 * elf/dl-runtime.c: Likewise.
9997 * elf/dl-support.c: Likewise.
9998 * elf/dl-sym.c: Likewise.
9999 * elf/dl-version.c: Likewise.
10000 * elf/do-lookup.h: Likewise.
10001 * elf/do-rel.h: Likewise.
10002 * elf/dynamic-link.h: Likewise.
10003 * elf/rtld.c: Likewise.
10004 * sysdeps/generic/dl-cache.c: Likewise.
10005 * sysdeps/generic/dl-sysdep.c: Likewise.
10006 * sysdeps/generic/ldsodefs.h: Likewise.
10007 * sysdeps/generic/libc-start.c: Likewise.
10008 * sysdeps/i386/dl-machine.h: Likewise.
10009 * sysdeps/ia64/dl-fptr.c: Likewise.
10010 * sysdeps/ia64/dl-machine.h: Likewise.
10011 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10012 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10013 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10014 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10015 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10016 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10017 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10018 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10020 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10022 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10024 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10026 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10028 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10030 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10032 2002-01-29 Ben Collins <bcollins@debian.org>
10034 * string/bits/string2.h (__mempcpy): Protect size arg for
10035 addition when using __builtin_memcpy.
10037 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10039 * stdlib/Makefile (tests): Add tst-qsort.
10040 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10042 * manual/signal.texi (Process Signal Mask): Document that
10043 pthread_sigmask, not sigprocmask, must be used in MT programs.
10044 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10046 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10048 * misc/Makefile (tests): Add tst-hsearch.
10049 * misc/tst-hsearch.c: New file.
10051 2002-01-18 Wolfram Gloger <wg@malloc.de>
10053 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10054 * malloc/malloc.h: Likewise.
10055 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10056 * malloc/arena.c: New file.
10057 * malloc/hooks.c: New file.
10058 * malloc/tst-mallocstate.c: New file.
10059 * malloc/Makefile: Add new testcase tst-mallocstate.
10060 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10062 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10064 * stdlib/msort.c: Remove last patch. The optimization violates the
10065 same rule which qsort.c had problems with.
10067 2002-01-27 Paul Eggert <eggert@twinsun.com>
10069 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10070 to a pivot element that lies outside the array to be sorted, as
10071 ISO C99 requires that the comparison function be called only with
10072 addresses of array elements [PR libc/2880].
10074 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10076 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10077 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10079 * timezone/asia: Update from tzdata2002b.
10080 * timezone/australasia: Likewise.
10081 * timezone/backward: Likewise.
10082 * timezone/europe: Likewise.
10083 * timezone/leapseconds: Likewise.
10084 * timezone/iso3166.tab: Likewise.
10085 * timezone/zone.tab: Likewise.
10087 2002-01-23 Richard Henderson <rth@redhat.com>
10089 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10091 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10093 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10094 this element [PR libc/2855].
10096 * string/strcoll.c: Handle zero-length arguments specially
10099 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10101 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10102 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10103 short lengths and constant src.
10104 (strcpy): Don't optimize for gcc 3.0+.
10105 (__stpcpy): For gcc 3.0+, don't use
10106 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10107 for short string literal src.
10109 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10111 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10114 2001-01-22 Paul Eggert <eggert@twinsun.com>
10116 * manual/llio.texi (Linked Channels, Cleaning Streams):
10117 Make it clearer that a just-opened input stream might need cleaning.
10119 2002-01-21 H.J. Lu <hjl@gnu.org>
10121 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10122 Don't use label at end of compound statement.
10124 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10126 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10127 Remove test for negative integer arg; sin_pi does it correctly.
10129 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10131 * nscd/Makefile (distribute): Filter out xmalloc.c.
10133 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10135 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10136 Set offset if read end wasn't the buffer end.
10137 (_IO_file_seekoff_mmap): New function.
10138 (_IO_file_xsgetn_mmap): New function.
10139 (_IO_file_jumps_mmap): Use the two new functions.
10140 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10142 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10143 _IO_file_underflow_mmap.
10144 * libio/iofopen.c: Don't position file descriptor at end of file.
10145 * libio/tst-widetext.c: Improve error messages.
10146 * stdio-common/tst-rndseek.c: Likewise.
10148 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10150 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10151 end of enum for !_GNU_SOURCE.
10152 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10153 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10154 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10155 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10156 values unless _GNU_SOURCE.
10158 * iconvdata/tcvn5712-1.c: Minor cleanups.
10160 2002-01-18 Andreas Schwab <schwab@suse.de>
10162 * sysdeps/unix/sysv/linux/configure.in
10163 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10165 2002-01-16 Roger Sayle <roger@eyesopen.com>
10167 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10168 more efficient "Towers of Hanoi" mergesort.
10169 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10170 for generic, sizeof(int) and sizeof(long) variants respectively.
10172 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10174 * manual/syslog.texi (openlog): Describe possible problems with
10176 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10178 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10179 * nscd/connections.c (begin_drop_privileges): New function.
10180 (finish_drop_privileges): New function.
10181 (nscd_init): Call the new functions which also install all groups
10182 for the server user.
10183 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10184 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10186 2002-01-17 H.J. Lu <hjl@gnu.org>
10188 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10189 `const' from `got'.
10191 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10193 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10194 instructions for pointer operations.
10195 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10197 2002-01-17 Andreas Jaeger <aj@suse.de>
10199 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10200 __uint128_t build-in.
10202 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10203 PowerPC, sync with 2.2 branch.
10205 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10207 * posix/getconf.c: Update copyright year.
10208 * nss/getent.c: Likewise.
10209 * nscd/nscd_nischeck.c: Likewise.
10210 * iconv/iconvconfig.c: Likewise.
10211 * iconv/iconv_prog.c: Likewise.
10212 * elf/ldconfig.c: Likewise.
10213 * catgets/gencat.c: Likewise.
10214 * csu/version.c: Likewise.
10215 * elf/ldd.bash.in: Likewise.
10216 * elf/sprof.c (print_version): Likewise.
10217 * locale/programs/locale.c: Likewise.
10218 * locale/programs/localedef.c: Likewise.
10219 * nscd/nscd.c (print_version): Likewise.
10220 * debug/xtrace.sh: Likewise.
10221 * malloc/memusage.sh: Likewise.
10222 * malloc/mtrace.pl: Likewise.
10224 2002-01-16 Andreas Schwab <schwab@suse.de>
10226 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10227 reliably remove "-ia64" from rtld name.
10229 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10231 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10232 Patch by Yu Shao <yshao@redhat.com>.
10234 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10236 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10237 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10238 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10240 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10242 * sysdeps/s390/fpu/libm-test-ulps: Update.
10244 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10246 * elf/elf.h: Update x86 relocations.
10248 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10250 * locale/programs/charmap.c (new_width): Check whether byte
10251 sequences for both ends of range have the same length.
10253 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10255 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10257 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10259 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10261 (__full_ieee754_sqrt): Add __attribute_used__.
10263 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10265 * sysdeps/generic/group_member.c (__group_member): Also check
10266 groups[0] [PR libc/2781].
10268 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10270 * Makefile (distribute): Add scripts/cpp.
10271 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10272 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10273 unwind-dw2-fde.h, and dwarf2.h.
10274 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10275 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10276 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10277 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10279 2002-01-07 Roland McGrath <roland@frob.com>
10281 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10282 volatile on type of ARGC so the compiler doesn't get clever.
10284 2002-01-07 Andreas Jaeger <aj@suse.de>
10286 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10287 * sysdeps/i386/bits/byteswap.h: Likewise.
10288 * sysdeps/ia64/bits/byteswap.h: Likewise.
10289 * sysdeps/m68k/bits/byteswap.h: Likewise.
10290 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10291 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10293 2002-01-02 Bruno Haible <bruno@clisp.org>
10295 * intl/plural.y: Fix %expect count.
10297 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10299 * elf/Makefile (routines, shared-only-routines): Add
10300 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10301 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10302 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10303 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10304 Optimize if .eh_frame section contains no FDEs.
10305 (__register_frame, __deregister_frame_info_bases,
10306 __deregister_frame): Likewise.
10307 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10308 DW_CFA_restore handling.
10310 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10312 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10314 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10315 for x < 0.25 and restore original range reduction method.
10316 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10318 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10320 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10321 (_IO_file_close_mmap): New function.
10322 (_IO_file_jumps_mmap): New variable.
10323 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10324 trying to convert rest of byte buffer.
10325 (_IO_wfile_underflow_mmap): New function.
10326 (_IO_wfile_jumps_mmap): New variable.
10327 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10328 (__fopen_internal): New function. Split out from _IO_new_fopen.
10329 (_IO_new_fopen): Call __fopen_internal.
10330 * libio/iofopen64.c: Just call __fopen_internal.
10331 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10333 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10334 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10335 _IO_file_close_mmap.
10337 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10338 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10340 * stdio-common/Makefile (tests): Add tst-rndseek.
10341 * stdio-common/tst-rndseek.c: New file.
10343 2002-01-05 Roland McGrath <roland@frob.com>
10345 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10346 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10347 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10348 * sysdeps/mach/hurd/configure: Regenerated.
10350 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10352 * elf/elf.h: Add more TLS definitions.
10354 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10356 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10358 2002-01-02 Roland McGrath <roland@frob.com>
10360 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10361 __sigisemptyset. Don't use MASK uninitialized.
10363 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10364 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10365 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10366 __sigdelset, __sigaddset, __sigorset.
10368 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10369 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10371 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10372 _hurd_ports is null.
10374 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10375 for old CMU and new OSF Mach interface flavors.
10376 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10377 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10379 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10381 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10382 Pass extra arguments to task_create for OSF variant.
10383 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10385 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10386 conditional on [HAVE_AUX_VECTOR].
10388 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10389 mach_msg_timeout_t as type of final argument.
10391 * hurd/privports.c (__get_privileged_ports):
10392 Change host_priv_t to mach_port_t in argument type.
10393 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10396 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10397 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10398 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10399 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10400 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10401 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10403 2002-01-01 Roland McGrath <roland@frob.com>
10405 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10407 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10409 * include/stdlib.h: Define inlines for the _l variants of the strto*
10412 2002-01-01 Roland McGrath <roland@frob.com>
10414 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10416 * mach/Machrules (MIG): Set CPP as well as CC.
10418 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10420 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10421 locale to parse /proc/loadavg [PR libc/2760].
10423 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10425 * elf/dl-conflict.c: Include sys/param.h.
10426 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10427 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10429 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10430 literals to avoid warnings.
10432 2001-12-31 Andreas Jaeger <aj@suse.de>
10434 * configure.in: Don't check for gsed since we do not use it anywhere.
10436 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10438 * io/fts.c: Update from BSD to fix memory leaks.
10440 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10442 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10443 * elf/chroot_canon.c: Likewise.
10444 * elf/dl-object.c: Likewise.
10445 * iconv/iconv_charmap.c: Likewise.
10446 * iconv/iconv_prog.c: Likewise.
10447 * libio/iogetdelim.c: Likewise.
10448 * locale/lc-time.c: Likewise.
10449 * stdlib/canonicalize.c: Likewise.
10450 * sunrpc/svc.c: Likewise.
10451 * sysdeps/generic/glob.c: Likewise.
10453 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10455 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10456 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10457 remove high order bit from the program counter.
10458 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10460 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10462 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10463 unnecessary code and add missing reloc types.
10464 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10465 case for reloc type R_390_NONE.
10467 2001-12-28 Andreas Jaeger <aj@suse.de>
10469 * io/bug-ftw3.c: Include string.h for prototypes.
10471 * crypt/md5test.c (main): Remove unused variable.
10473 * dlfcn/modstatic.c: Add prototype to avoid warning.
10475 2001-12-26 Roland McGrath <roland@frob.com>
10477 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10478 check only (SS->pending & MASK) for the signal to return.
10479 From Jeroen Dekkers <jeroen@dekkers.cx>.
10481 2001-12-22 Roland McGrath <roland@frob.com>
10483 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10484 Use preprocessor #if conditionals instead of `if' to avoid
10485 warnings about divide by zero in dead code.
10487 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10488 _hurd_port_init, and __hurd_self_sigstate.
10490 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10492 2001-12-21 Andreas Jaeger <aj@suse.de>
10494 * elf/dblloadmod1.c: Add prototype to avoid warning.
10495 * elf/dblloadmod2.c: Likewise.
10496 * elf/dblloadmod3.c: Likewise.
10497 * elf/reldepmod5.c: Likewise.
10498 * elf/reldepmod6.c: Likewise.
10500 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10501 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10502 used on all architectures.
10504 * sunrpc/svc_tcp.c: Add noreturn attribute for
10505 svctcp_rendezvous_abort.
10506 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10508 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10511 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10513 * manual/llio.texi (aio_fsync): Fix a typo.
10514 Patch by Tammy Fox <tfox@redhat.com>.
10516 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10518 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10519 stack bias from child stack pointer before passing it to clone syscall.
10521 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10523 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10525 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10526 Reported by Thorsten Kukuk <kukuk@suse.de>.
10528 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10531 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10533 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10535 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10536 conforming: return EBADF if file descriptor is invalid and EINVAL
10537 if file descriptor is no valid tty.
10538 * login/tst-grantpt.c: New file.
10539 * login/Makefile (tests): Add tst-grantpt.
10541 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10543 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10544 different than implemented in last patch.
10545 * io/bug-ftw3.c: Adjust test for changed handling of
10546 inaccessibility of toplevel dir.
10548 2001-12-16 Roland McGrath <roland@frob.com>
10550 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10551 * grp/initgroups.c (internal_getgrouplist): Likewise.
10553 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10554 `default:' to silence new GCC warning.
10555 Rewrite cast of lvalue to silence new GCC warning.
10557 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10559 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10560 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10562 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10564 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10565 Patch by Stephen R. van den Berg.
10567 * crypt/md5.h: Define md5_uintptr.
10569 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10571 * libio/tst_swprintf.c (main): Add test for string argument with
10573 * stdio-common/Makefile (tests): Add tst-sprintf.
10574 * stdio-common/tst-sprintf.c: New file.
10576 2001-12-13 Andreas Schwab <schwab@suse.de>
10578 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10579 zero precision with wide character string format.
10581 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10583 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10584 but have a user supplied buffer, return the empty buffer, not NULL.
10586 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10588 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10589 Patch by Eric Sharkey <sharkey@netrics.com>.
10591 * crypt/md5test.c (main): Add test for multiple calls to
10592 __md5_process_bytes to itererate over input string.
10594 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10596 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10597 from __nis_findfastest. Take timeout value from parameter.
10598 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10599 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10600 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10602 2001-12-12 Andreas Jaeger <aj@suse.de>
10604 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10605 combreloc test so that it works in this case.
10607 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10609 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10611 * sysdeps/sh/Makefile: New file.
10612 * sysdeps/sh/_mcount.S: New file.
10613 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10614 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10616 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10618 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10619 limitation [PR libc/2564].
10621 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10623 * elf/Makefile (dl-routines): Add conflict.
10624 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10625 (ld.so): Add _begin local symbol.
10626 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10628 * elf/dl-deps.c (_dl_build_local_scope): New function.
10629 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10631 * elf/do-rel.h (VALIDX): Define.
10632 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10633 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10635 * elf/dl-conflict.c: New file.
10636 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10637 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10639 (_dl_lookup_symbol_skip): Likewise.
10640 (_dl_lookup_versioned_symbol): Likewise.
10641 (_dl_lookup_versioned_symbol_skip): Likewise.
10642 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10643 define to ElfW(Rel).
10644 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10645 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10647 Don't adjust address dynamic tags if l_addr is 0.
10648 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10649 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10650 (VALIDX, ADDRIDX): Define.
10651 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10652 (dl_main): Print library list for LD_TRACE_PRELINKING.
10653 If prelinking information can be used, skip relocating libraries and
10654 call _dl_resolve_conflicts instead.
10655 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10656 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10657 if LD_TRACE_PRELINKING.
10658 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10660 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10661 (DL_DEBUG_PRELINK): Define.
10662 (_dl_resolve_conflicts): Add prototype.
10664 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10665 .plt for prelinked libraries where prelinking info cannot be used.
10666 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10667 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10668 * sysdeps/arm/bits/link.h: New file.
10669 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10670 content of .got[1].
10671 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10672 (ELF_MACHINE_PLT_REL): Define.
10673 (elf_machine_rela, elf_machine_rela_relative): New functions.
10674 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10675 of adjusting it if prelinked and prelinking cannot be used.
10676 * sysdeps/i386/bits/link.h: New file.
10677 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10678 content of .got[1].
10679 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10680 (ELF_MACHINE_PLT_REL): Define.
10681 (elf_machine_rela, elf_machine_rela_relative): New functions.
10682 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10683 of adjusting it if prelinked and prelinking cannot be used.
10684 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10685 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10686 to find out map for R_PPC_JMP_SLOT relocs.
10687 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10688 (OPCODE_BA): Define.
10689 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10690 libraries where prelinking info cannot be used.
10691 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10692 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10693 (elf_machine_rela): Set value to 0 if relocating conflicts.
10694 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10695 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10696 (sparc64_fixup_plt): Fix a typo.
10697 (elf_machine_rela): Set value to 0 if relocating conflicts.
10698 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10699 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10700 libraries where prelinking info cannot be used.
10701 * sysdeps/sh/bits/link.h: New file.
10702 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10703 content of .got[1].
10704 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10705 of adjusting it if prelinked and prelinking cannot be used.
10706 * sysdeps/s390/s390-32/bits/link.h: New file.
10707 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10708 Save original content of .got[1].
10709 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10710 of adjusting it if prelinked and prelinking cannot be used.
10711 * sysdeps/s390/s390-64/bits/link.h: New file.
10712 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10713 Save original content of .got[1].
10714 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10715 of adjusting it if prelinked and prelinking cannot be used.
10716 * sysdeps/x86_64/bits/link.h: New file.
10717 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10718 Save original content of .got[1].
10719 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10720 of adjusting it if prelinked and prelinking cannot be used.
10722 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10724 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10725 where appropriate instead of numbers. Little optimizations.
10727 2001-12-10 Roland McGrath <roland@frob.com>
10729 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10732 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10733 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10735 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10736 Fix conditionals so this is set by default for stdio and not for libio.
10737 * sysdeps/mach/hurd/configure: Regenerated.
10739 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10741 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10743 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10745 * io/Makefile (tests): Add bug-ftw3.
10746 * io/bug-ftw3.c: New file.
10748 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10749 matches and GLOB_NOCHECK is set.
10750 * posix/globtest.sh: Correct expected result for NOCHECK test.
10752 * po/ca.po: Update from translation team.
10754 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10756 Implement transliteration of characters in strings of the locale
10758 * locale/programs/linereader.c: Adjust for additional parameter to
10760 (get_string): If character <Uxxxx> is not found try to transliterate
10762 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10763 lr_token. Add const to charmap parameter of all functions.
10764 (find_translit, find_translit2): New functions.
10765 * locale/programs/charmap.c: Adjust for additional parameter to
10767 * locale/programs/repertoire.c: Likewise.
10768 * locale/programs/linereader.h: Likewise.
10769 * locale/programs/ld-address.c: Likewise. Add const to charmap
10770 parameter of all functions.
10771 * locale/programs/ld-collate.c: Likewise.
10772 * locale/programs/ld-identification.c: Likewise.
10773 * locale/programs/ld-measurement.c: Likewise.
10774 * locale/programs/ld-messages.c: Likewise.
10775 * locale/programs/ld-monetary.c: Likewise.
10776 * locale/programs/ld-name.c: Likewise.
10777 * locale/programs/ld-numeric.c: Likewise.
10778 * locale/programs/ld-paper.c: Likewise.
10779 * locale/programs/ld-paper.c: Likewise.
10780 * locale/programs/ld-telephone.c: Likewise.
10781 * locale/programs/ld-time.c: Likewise.
10782 * locale/programs/locfile.c: Likewise.
10783 * locale/programs/localedef.c: Likewise.
10784 * locale/programs/localedef.h: Likewise.
10785 * locale/programs/locfile.h: Likewise. Add declaration for
10787 * locale/programs/simple-hash.c: Add const to first parameter of
10788 find_entry, iterate_table, and lookup.
10789 * locale/programs/simple-hash.h: Likewise.
10790 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10792 * include/locale.h: Define __LC_LAST.
10793 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10795 2001-12-07 Geoff Keating <geoffk@redhat.com>
10797 * sysdeps/powerpc/Dist: Update for recent FP changes.
10798 * sysdeps/powerpc/fpu/Dist: Likewise.
10800 2001-12-07 Andreas Schwab <schwab@suse.de>
10802 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10804 2001-12-06 Geoff Keating <geoffk@redhat.com>
10806 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10807 save/restore functions here.
10808 (libm-support): Don't define these functions here.
10809 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10811 * sysdeps/powerpc/fe_nomask.c: Move to...
10812 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10813 * sysdeps/powerpc/fprrest.S: Move to...
10814 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10815 * sysdeps/powerpc/fprsave.S: Move to...
10816 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10818 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10820 * sysdeps/unix/sysv/linux/opensock.c: New file.
10822 2001-12-06 Geoff Keating <geoffk@redhat.com>
10824 * config.make.in (with-fp): Define from configure.
10825 * configure.in: Substitute with_fp.
10826 * configure: Regenerate.
10827 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10828 specified, and don't change FPU environment.
10830 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10832 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10833 * assert/assert.c: Check result of __asprintf call and don't use
10834 string if it failed.
10835 * assert/assert-perr.c: Likewise.
10836 * inet/rcmd.c: Likewise.
10837 * locale/programs/localedef.c (main): Check result of
10838 construct_output_path and exit if it failed.
10839 (construct_output_path): Check result of asprintf and mkdir calls and
10840 fail if they failed.
10841 * posix/getopt.c: Check result of __asprintf calls and fail if
10843 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10845 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10847 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10849 * sysdeps/generic/strncase.c: Likewise.
10850 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10852 2001-12-05 Geoff Keating <geoffk@redhat.com>
10854 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10856 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10857 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10858 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10859 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10860 * sysdeps/powerpc/fclrexcpt.c: Move to...
10861 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10862 * sysdeps/powerpc/fpu_control.h: Move to...
10863 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10865 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10867 * iconvdata/ibm1129.h: Remove duplicate mappings.
10868 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10869 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10870 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10872 * timezone/zic.c: Fix handling of turnaround times.
10873 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10875 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10877 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10880 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10882 * posix/regex.c: For use outside glibc defined bounded pointer
10883 macros here. Patch by Jim Meyering <jim@meyering.net>.
10885 * iconvdata/Makefile (modules): Add TCVN5712-1.
10886 * iconvdata/TESTS: Add TCVN5712-1.
10887 * iconvdata/gconv-modules: Likewise.
10888 * iconvdata/tcvn5712-1.c: New file.
10889 * iconvdata/testdata/TCVN-5712: New file.
10890 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10892 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10894 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10896 2001-12-02 Roland McGrath <roland@frob.com>
10898 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10900 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10901 Reported by Jeff Bailey <jbailey@nisa.net>.
10903 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10904 Reported by Jeff Bailey <jbailey@nisa.net>.
10906 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10907 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10908 Reported by Jeff Bailey <jbailey@nisa.net>.
10910 2001-12-01 Roland McGrath <roland@frob.com>
10912 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10913 missing backslash in test arguments.
10914 * sysdeps/mach/hurd/configure: Regenerated.
10916 2001-11-26 Roland McGrath <roland@frob.com>
10918 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10919 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10921 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10923 * iconvdata/Makefile (modules): Add ARMSCII-8.
10924 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10925 * iconvdata/armscii-8.c: New file.
10927 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10929 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10930 don't match, fix {{a,b},c} globbing, clean up.
10931 Patch by Flavio Veloso <flaviovs@magnux.com>.
10932 * posix/globtest.sh: Add new tests.
10934 2001-11-29 Andreas Jaeger <aj@suse.de>
10936 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10937 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10939 * sysdeps/generic/abort.c: Include libioP.h for
10940 _IO_flush_all_lockp prototype.
10942 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10944 * posix/regex.h: Define __restrict_arr correctly.
10946 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10948 * iconvdata/ibm1163.c: New file.
10949 * iconvdata/ibm1163.h: New file.
10950 * iconvdata/ibm1164.c: New file.
10951 * iconvdata/ibm1164.h: New file.
10952 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10953 * iconvdata/Makefile: Likewise.
10954 * iconvdata/testdata/IBM1163: New file.
10955 * iconvdata/testdata/IBM1163..UTF8: New file.
10956 * iconvdata/testdata/IBM1164: New file.
10957 * iconvdata/testdata/IBM1164..UTF8: New file.
10958 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10960 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10961 * iconvdata/ibm1124.h: Likewise.
10962 * iconvdata/ibm1132.h: Likewise.
10963 * iconvdata/ibm1133.h: Likewise.
10964 * iconvdata/ibm1160.h: Likewise.
10965 * iconvdata/ibm1161.h: Likewise.
10966 * iconvdata/ibm1162.h: Likewise.
10967 * iconvdata/ibm856.h: Likewise.
10968 * iconvdata/ibm922.h: Likewise.
10969 * iconvdata/ibm930.h: Likewise.
10970 * iconvdata/ibm932.h: Likewise.
10971 * iconvdata/ibm933.h: Likewise.
10972 * iconvdata/ibm935.h: Likewise.
10973 * iconvdata/ibm937.h: Likewise.
10974 * iconvdata/ibm939.h: Likewise.
10975 * iconvdata/ibm943.h: Likewise.
10976 * iconvdata/ibm930.c: Pretty printing.
10977 * iconvdata/ibm937.c: Avoid access accross array boundary.
10979 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10980 the current locale's codeset.
10981 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10982 empty input string.
10983 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10984 and from-charset. Don't determine locale's charset here.
10986 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10987 as the old _IO_flush_all but lock only if parameter is nonzero.
10988 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10989 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10990 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10991 if libio is used [PR libc/2575].
10993 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10995 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10996 __signbitl): Only define for ISO C99.
10998 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11000 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11001 herrnop to NETDB_INTERNAL if we run out of buffer space.
11003 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11005 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11006 overflow test for platforms with signed char.
11007 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11009 2001-11-28 Bruno Haible <bruno@clisp.org>
11011 * locale/programs/simple-hash.c (lookup_2): Remove function.
11012 (insert_entry_2): Call lookup instead of lookup_2.
11014 2001-03-04 Bruno Haible <bruno@clisp.org>
11016 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11018 2001-10-31 Bruno Haible <bruno@clisp.org>
11020 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11022 2001-03-21 Bruno Haible <bruno@clisp.org>
11024 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11025 chokes on empty macro arguments.
11026 * intl/plural.y: Add #pragma for alloca on AIX 3.
11028 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11030 * intl/dcigettext.c (guess_category_value): Only implement for
11031 glibc. Otherwise rely on function _nl_locale_name which isn't
11032 present in the glibc sources.
11034 2001-09-24 Bruno Haible <bruno@clisp.org>
11036 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11037 transliteration when building on a glibc system but outside glibc.
11039 2001-09-22 Bruno Haible <bruno@clisp.org>
11041 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11042 * intl/dcigettext.c (plural_eval): Remove function, moved to
11043 intl/plural-eval.c.
11044 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11045 Include plural-eval.c.
11047 2001-09-22 Bruno Haible <bruno@clisp.org>
11049 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11050 don't start with a digit; nplurals must be positive.
11052 2001-09-02 Bruno Haible <bruno@clisp.org>
11054 * intl/plural-exp.h: New file, extracted from gettextP.h.
11055 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11056 * intl/gettextP.h (struct expression, struct parse_args,
11057 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11058 * intl/loadmsgcat.c: Include plural-exp.h.
11059 (PLURAL_PARSE): Move macro to plural-exp.h.
11060 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11062 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11063 EXTRACT_PLURAL_EXPRESSION.
11064 (_nl_unload_domain): Update.
11065 * intl/dcigettext.c: Include plural-exp.h.
11066 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11067 (FREE_EXPRESSION): Move macro to plural-exp.h.
11068 * intl/Makefile (routines): Add plural-exp.
11069 (distribute): Add plural-exp.h.
11071 2001-07-28 Bruno Haible <bruno@clisp.org>
11073 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11074 isdigit, tolower argument to 'unsigned char'.
11075 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11077 * intl/localealias.c (read_alias_file): Cast isspace argument to
11080 2001-10-20 Bruno Haible <bruno@clisp.org>
11082 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11084 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11085 with the variable 'index' in plural_lookup.
11086 * intl/l10nflist.c (strchr): Likewise.
11087 * intl/localealias.c (strchr): Likewise.
11089 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11090 * intl/bindtextdom.c: Likewise.
11091 * intl/dcigettext.c: Likewise.
11092 * intl/dgettext.c: Likewise.
11093 * intl/dngettext.c: Likewise.
11094 * intl/explodename.c: Likewise.
11095 * intl/finddomain.c: Likewise.
11096 * intl/gettext.c: Likewise.
11097 * intl/l10nflist.c: Likewise.
11098 * intl/loadmsgcat.c: Likewise.
11099 * intl/localealias.c: Likewise.
11100 * intl/ngettext.c: Likewise.
11101 * intl/textdomain.c: Likewise.
11102 * intl/gettext.h: Assume <limits.h> exists.
11104 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11106 * stdio-common/Makefile (tests): Add scanf11.
11107 * stdio-common/scanf11.c: New file.
11109 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11111 * version.h (RELEASE): Define as development.
11112 (VERSION): Set to 2.2.90.
11114 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11116 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11117 * nis/nss_nis/nis-grp.c: Likewise.
11118 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11120 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11121 * nis/nss_nis/nis-pwd.c: Likewise.
11122 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11124 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11125 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11126 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11128 * nscd/grpcache.c: Use strtoul instead of atol.
11129 * nscd/pwdcache.c: Likewise.
11130 * nss/getent.c: Likewise.
11132 2001-11-27 Paul Eggert <eggert@twinsun.com>
11134 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11135 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11137 2001-11-19 Bruno Haible <bruno@clisp.org>
11139 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11141 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11142 improves the quality of the hash function, especially for short
11145 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11147 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11148 are found call conv_error and not input_error [PR libc/2669].
11150 * math/bits/mathcalls.h: Mark ceil and floor as const.
11151 Reported by David Mosberger.
11153 2001-11-21 Jim Meyering <meyering@lucent.com>
11155 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11156 Define to be __-prefixed.
11157 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11159 2001-11-26 Andreas Jaeger <aj@suse.de>
11161 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11164 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11166 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11169 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11170 unused variables. Fix threshold for returning 1.0.
11172 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11175 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11176 remove unused variables.
11178 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11180 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11181 include local math header files.
11183 2001-11-22 Andreas Jaeger <aj@suse.de>
11185 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11188 2001-11-21 Andreas Jaeger <aj@suse.de>
11190 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11192 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11195 2001-11-15 Andreas Jaeger <aj@suse.de>
11197 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11198 compilers that support it.
11200 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11201 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11202 * stdlib/stdlib.h: Likewise.
11204 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11206 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11207 statement with gotos.
11208 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11210 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11212 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11214 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11216 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11218 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11219 H.J. Lu <hjl@gnu.org>
11221 * Versions.def (libc): Add GCC_3.0.
11222 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11223 if gcc supports this flag.
11224 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11225 (gcc3): Allow glibc to be compiled with gcc 3.x.
11226 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11227 * config.make.in (static-libgcc, unwind-find-fde): Add.
11228 * Makerules (build-shlib-helper, build-module-helper): Use it.
11229 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11230 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11232 (_fini): Call __deregister_frame_info_bases if
11233 __register_frame_info_bases was used to register.
11234 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11236 (__register_frame_info_bases, __register_frame_info_table_bases,
11237 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11238 * elf/Makefile (routines): Add unwind-dw2-fde.
11239 (shared-only-routines): Add unwind-dw2-fde.
11240 * sysdeps/alpha/gccframe.h: New file.
11241 * sysdeps/arm/gccframe.h: New file.
11242 * sysdeps/generic/framestate.c: New file.
11243 * sysdeps/generic/dwarf2.h: New file.
11244 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11245 * sysdeps/generic/unwind-dw2-fde.c: New file.
11246 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11247 * sysdeps/generic/unwind-dw2-fde.h: New file.
11248 * sysdeps/generic/unwind-dw2.c: New file.
11249 * sysdeps/generic/unwind-pe.h: New file.
11250 * sysdeps/generic/unwind.h: New file.
11251 * sysdeps/hppa/gccframe.h: New file.
11252 * sysdeps/i386/gccframe.h: New file.
11253 * sysdeps/m68k/gccframe.h: New file.
11254 * sysdeps/mips/gccframe.h: New file.
11255 * sysdeps/powerpc/gccframe.h: New file.
11256 * sysdeps/s390/gccframe.h: New file.
11257 * sysdeps/sh/gccframe.h: New file.
11258 * sysdeps/sparc/gccframe.h: New file.
11259 * sysdeps/vax/gccframe.h: New file.
11260 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11261 Set on all architectures except ia64.
11262 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11264 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11265 __deregister_frame_info): Move to elf/Versions.
11266 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11267 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11268 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11269 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11270 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11271 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11272 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11273 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11274 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11275 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11276 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11277 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11278 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11279 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11280 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11281 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11282 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11283 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11285 2001-11-15 Jeff Law <law@redhat.com>
11287 * posix/regex.c (uintptr_t): Do not provide a definition if the
11288 system provided one.
11290 2001-11-13 Roland McGrath <roland@frob.com>
11292 * stdio-common/tmpfile.c: Moved to ...
11293 * sysdeps/generic/tmpfile.c: ... here.
11294 * sysdeps/mach/hurd/tmpfile.c: New file.
11296 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11297 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11298 (fopenport): Define as weak alias.
11300 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11301 * libio/libioP.h: ... to here.
11303 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11305 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11306 program header twice. Construct list with the needed information.
11308 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11310 * po/ca.po: Update from translation team.
11312 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11313 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11314 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11315 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11317 2001-11-10 Andreas Jaeger <aj@suse.de>
11319 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11320 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11321 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11323 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11325 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11327 * elf/dl-load.c (is_dst): New function.
11328 (_dl_dst_count): Use is_dst to check for DST variable.
11329 (_dl_dst_substitute): Likewise.
11331 2001-11-09 Roland McGrath <roland@frob.com>
11333 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11334 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11335 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11336 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11337 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11338 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11339 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11340 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11341 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11342 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11343 * sysdeps/mach/hurd/powerpc/Dist: New file.
11345 * hurd/privports.c (__get_privileged_ports):
11346 Only contact the proc server if necessary for this call.
11347 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11348 Check error return for mach_port_mod_refs.
11350 2001-11-09 Andreas Schwab <schwab@suse.de>
11352 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11354 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11356 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11357 object is always the last in the list.
11358 (_dl_map_object_from_fd): Delete code to remove from object list
11359 when DF_1_NOOPEN is seen. This is done in lose.
11361 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11363 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11365 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11367 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11368 HWCAP_CHECK macro code.
11370 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11371 Now returns MAP_FAILED on error.
11372 * elf/rtld.c: Adjust caller.
11373 * sysdeps/generic/dl-cache.c: Likewise.
11374 * sysdeps/generic/ldsodefs.h: Adjust description.
11376 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11377 (_dl_check_map_versions): Likewise.
11379 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11381 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11382 _dl_signal_error directly, always use lose. Set fd to -1 after
11384 (lose): Don't call close if fd == -1.
11386 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11388 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11389 Also fix typo @code {mbsinit} to @code{mbsinit}.
11391 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11393 * elf/dl-profile.c: Replace state variable with simple flag named
11394 running. Remove commented-out code.
11396 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11397 (_dl_init_paths): Likewise.
11398 (_dl_map_object_from_fd): Likewise.
11399 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11401 2001-11-06 Roland McGrath <roland@frob.com>
11403 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11404 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11406 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11407 sysdeps/powerpc/elf/sysdep.h.
11408 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11410 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11412 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11414 (process_envvars): Some more optimizations.
11415 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11417 * elf/elf.h: Add dynamic tag definitions for prelinking.
11419 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11420 Rewrite code to remove environment varables for SUID binaries.
11421 Small optimization in LD_PROFILE handling.
11422 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11424 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11426 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11428 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11429 strings. Change type of second parameter.
11430 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11433 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11435 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11437 * manual/string.texi: Fix typos.
11438 * manual/examples/argp-ex2.c: Likewise.
11440 2001-11-05 Roland McGrath <roland@frob.com>
11442 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11443 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11444 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11445 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11446 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11447 here, put under [__ELF__].
11449 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11451 * manual/charset.texi: Extensive editing work.
11452 * manual/nss.texi: Likewise.
11453 Changes by Dennis Grace <dgrace@us.ibm.com>.
11455 2001-11-04 Roland McGrath <roland@frob.com>
11457 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11458 parameter to dir_mkfile.
11460 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11462 * string/bits/string2.h (__strndup): If n is smaller than len, set
11464 * string/tester.c (test_strndup): New function.
11467 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11469 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11471 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11472 * scripts/cpp: New file.
11474 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11475 for rtld_search_dirs content. Minor optimizations.
11477 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11479 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11480 avoiding unnecessary duplication.
11482 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11484 * elf/dl-load.c (_dl_map_object): If library was found using
11485 LD_LIBRARY_PATH, don't try RUNPATH list.
11487 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11489 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11490 Correct second argument of register_dump call.
11491 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11494 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11496 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11498 * iconvdata/TESTS: Likewise.
11499 * iconvdata/gconv-modules: Likewise.
11500 * iconvdata/ibm1132.c: New file.
11501 * iconvdata/ibm1132.h: New file.
11502 * iconvdata/ibm1133.c: New file.
11503 * iconvdata/ibm1133.h: New file.
11504 * iconvdata/ibm1162.c: New file.
11505 * iconvdata/ibm1162.h: New file.
11506 * iconvdata/testdata/IBM1132: New file.
11507 * iconvdata/testdata/IBM1132..UTF8: New file.
11508 * iconvdata/testdata/IBM1133: New file.
11509 * iconvdata/testdata/IBM1133..UTF8: New file.
11510 * iconvdata/testdata/IBM1162: New file.
11511 * iconvdata/testdata/IBM1162..UTF8: New file.
11512 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11514 * string/string.h: Fix typo in comment.
11515 * wcsmbs/wchar.h: Likewise.
11517 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11519 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11520 const in type of longopts parameter.
11522 2001-10-29 Andreas Jaeger <aj@suse.de>
11524 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11526 2001-10-29 Kevin Ryde <user42@zip.com.au>
11528 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11529 output, clarify `#' behaviour on 0.
11530 (Floating-Point Conversions): Clarify that %g only uses %e when
11531 the exponent would be greater than 1.
11533 2001-10-28 Roland McGrath <roland@frob.com>
11535 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11536 * sysdeps/mach/powerpc/machine-sp.h: New file.
11537 * sysdeps/mach/powerpc/sysdep.h: New file.
11538 * sysdeps/mach/powerpc/thread_state.h: New file.
11540 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11541 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11542 expect to need the same thing on every platform.
11544 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11545 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11547 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11548 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11549 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11550 Move all these assembly-related definitions to ...
11551 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11553 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11554 by Peter Bruin <pjbruin@dds.nl>.
11556 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11557 packing results for a `poll' call.
11559 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11561 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11563 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11564 bracket expression.
11566 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11568 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11570 2001-10-24 H.J. Lu <hjl@gnu.org>
11572 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11573 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11574 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11576 2001-10-21 Jim Meyering <meyering@lucent.com>
11578 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11579 this code would end up calling gettext even in packages built
11580 with --disable-nls.
11581 * posix/getopt.c (_): Likewise.
11582 * posix/regex.c (_): Likewise.
11584 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11586 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11587 lookup not ip6.int.
11588 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11589 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11591 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11593 * misc/sys/cdefs.h (__attribute_used__): Define.
11594 * elf/rtld.c (_dl_start): Add __attribute_used__.
11595 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11597 2001-10-25 Andreas Schwab <schwab@suse.de>
11599 * stdlib/a64l.c: Expect least significant digit first.
11600 * stdlib/l64a.c: Produce least significant digit first.
11601 * stdlib/Makefile (tests): Add test-a64l.
11602 * stdlib/test-a64l.c: New file.
11603 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11605 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11607 * po/sk.po: Update from translation team.
11609 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11611 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11613 2001-10-18 Andreas Schwab <schwab@suse.de>
11615 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11617 (print_function_ulps): Likewise.
11618 (print_complex_function_ulps): Likewise.
11619 (print_max_error): Likewise.
11620 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11622 2001-10-16 Andreas Schwab <schwab@suse.de>
11624 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11627 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11628 BSD_SETJMP or BSD__SETJMP is defined, resp.
11629 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11630 a tail call to __sigsetjmp that would require extending the
11632 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11633 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11634 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11635 Reported by Jes Sorensen <jes@trained-monkey.org>.
11637 2001-10-16 Andreas Jaeger <aj@suse.de>
11639 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11640 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11641 close PR libc/2589.
11643 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11645 * po/ca.po: New file. Contributed by the translation team.
11647 2001-10-15 Ralf Baechle <ralf@gnu.org>
11649 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11650 a varargs prototype. Remove dependency from kernel header files.
11652 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11653 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11655 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11657 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11658 to generate hexadecimal identifier.
11659 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11661 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11663 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11665 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11667 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11668 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11669 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11671 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11672 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11673 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11674 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11675 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11676 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11678 * timezone/africa: Update from tzdata2001d.
11679 * timezone/asia: Likewise.
11680 * timezone/australasia: Likewise.
11681 * timezone/backward: Likewise.
11682 * timezone/europe: Likewise.
11683 * timezone/leapseconds: Likewise.
11684 * timezone/northamerica: Likewise.
11685 * timezone/southamerica: Likewise.
11686 * timezone/zone.tab: Likewise.
11688 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11690 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11691 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11693 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11695 * elf/elf.h (PT_TLS): New definition.
11697 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11699 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11702 2001-10-07 Roland McGrath <roland@frob.com>
11704 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11706 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11708 * elf/elf.h: Add more ELFOSABI_* constants.
11710 2001-10-04 Ben Collins <bcollins@debian.org>
11712 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11713 decleration of __need_wchar_t.
11715 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11717 * string/bits/string2.h (__strsep_g): Add prototype.
11718 (__strsep): Use it.
11719 * string/Versions (__strsep): Remove.
11720 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11722 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11724 * manua/llio.texi: Clarify file references added by mmap.
11725 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11727 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11729 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11730 Add sc_loadrs and sc_rbs_bas to match current kernel.
11732 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11734 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11736 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11738 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11740 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11741 object has been bumped because of relocation dependency, avoid
11742 duplicates in l_scope.
11743 (show_scope): Fix typos.
11744 * elf/Makefile: Add rules to build and run reldep6.
11745 * elf/reldep6.c: New file.
11746 * elf/reldep6mod0.c: New file.
11747 * elf/reldep6mod1.c: New file.
11748 * elf/reldep6mod2.c: New file.
11749 * elf/reldep6mod3.c: New file.
11750 * elf/reldep6mod4.c: New file.
11752 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11754 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11756 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11757 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11758 for non-lazy binding. Fix .plt[32768+] handling.
11759 (elf_machine_plt_value): Don't add addend.
11760 (elf_machine_rela): Call sparc64_fixup_plt instead of
11761 elf_machine_fixup_plt.
11762 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11763 dynamic linker at 0xfffff800XXXXXXXX.
11765 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11767 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11769 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11771 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11773 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11774 declare __cmsg_data field if its size would be bigger than 0.
11775 (CMSG_DATA): Adjust accordingly.
11776 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11777 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11778 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11779 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11780 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11782 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11784 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11786 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11787 * iconvdata/testdata/IBM1160: New file.
11788 * iconvdata/testdata/IBM1160..UTF8: New file.
11789 * iconvdata/testdata/IBM1161: New file.
11790 * iconvdata/testdata/IBM1161..UTF8: New file.
11791 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11793 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11795 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11796 UL_SETFSIZE computations better.
11798 * rt/Makefile: Remove use of filter for librt again.
11800 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11801 UL_SETFSIZE computations better.
11803 * string/Versions: Export __strsep for GLIBC_2.2.5.
11804 * string/bits/string2.h: Define all __STRING_INLINE functions if
11805 _FORCE_INLINES is defined.
11806 Use int instead of char of parameter types.
11807 (__strsep): Don't use __strsep_g. Don't define it.
11808 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11809 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11811 (__stpcpy_a_small): Renamed from __stpcpy_small.
11812 (__strcspn_c1): Don't define if _FORCE_INLINES.
11813 (__strspn_c1): Likewise.
11815 2001-09-22 Ben Collins <bcollins@debian.org>
11817 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11818 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11819 * sysdeps/ia64/bits/sigaction.h: Likewise.
11820 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11822 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11824 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11826 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11828 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11830 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11832 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11834 2001-09-20 H.J. Lu <hjl@gnu.org>
11836 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11837 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11839 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11840 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11842 2001-09-20 H.J. Lu <hjl@gnu.org>
11844 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11847 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11849 * nss/getent.c: Accept -s parameter to overwrite rules in
11850 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11852 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11853 with as many ".0" as necessary to form a complete address
11854 inet_network understands.
11856 * nss/getent.c: Various cleanups. Use simpler and fewer function
11859 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11861 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11863 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11865 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11867 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11869 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11870 * iconvdata/ibm1160.c: New file.
11871 * iconvdata/ibm1160.h: New file.
11872 * iconvdata/ibm1161.c: New file.
11873 * iconvdata/ibm1161.h: New file.
11874 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11876 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11878 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11879 difference between base address and first PT_LOAD's virtual address,
11880 not the base address.
11882 2001-09-11 Tom Rix <trix@redhat.com>
11884 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11885 ifdef for __getopt_clean_environment.
11886 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11888 2001-09-22 Andreas Jaeger <aj@suse.de>
11890 * elf/reldep4.c (main): Add proper prototype to fix warning.
11892 * elf/reldep5.c (main): Remove unused variable.
11894 * math/math_private.h: Add prototypes.
11896 2001-09-21 Andreas Jaeger <aj@suse.de>
11898 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11899 * sysdeps/x86_64/Dist: New file.
11900 * sysdeps/x86_64/soft-fp/Dist: New file.
11902 * sysdeps/gnu/Dist: Remove eval.c.
11904 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11906 * malloc/memusage.c (realloc): Don't count already allocated
11907 memory in the sums.
11908 (me): Always use dlsym() to find the real implementations.
11910 * malloc/memusage.sh: Make -n option actually do something.
11912 2001-09-20 Andreas Jaeger <aj@suse.de>
11914 * elf/elf.h (R_390_NUM): Correct value.
11916 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11919 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11920 for x86-64, install x86-64 into */lib64.
11922 * shlib-versions: Add x86-64.
11924 * elf/elf.h: Add x86-64 relocations.
11926 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11928 * po/fr.po: Update from translation team.
11930 2001-09-19 Andreas Jaeger <aj@suse.de>
11932 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11933 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11934 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11935 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11936 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11937 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11938 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11939 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11940 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11941 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11942 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11943 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11944 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11945 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11946 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11947 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11948 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11949 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11950 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11951 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11952 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11953 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11954 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11955 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11956 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11957 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11958 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11959 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11960 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11961 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11962 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11963 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11964 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11965 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11966 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11967 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11968 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11969 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11970 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11971 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11972 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11973 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11974 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11975 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11976 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11977 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11978 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11979 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11980 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11981 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11982 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11983 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11984 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11985 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11986 * sysdeps/unix/x86_64/sysdep.S: New file.
11987 * sysdeps/unix/x86_64/sysdep.h: New file.
11988 * sysdeps/x86_64/Implies: New file.
11989 * sysdeps/x86_64/Makefile: New file.
11990 * sysdeps/x86_64/Versions: New file.
11991 * sysdeps/x86_64/__longjmp.S: New file.
11992 * sysdeps/x86_64/abort-instr.h: New file.
11993 * sysdeps/x86_64/atomicity.h: New file.
11994 * sysdeps/x86_64/bits/endian.h: New file.
11995 * sysdeps/x86_64/bits/setjmp.h: New file.
11996 * sysdeps/x86_64/bits/string.h: New file.
11997 * sysdeps/x86_64/bp-asm.h: New file.
11998 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11999 * sysdeps/x86_64/bsd-setjmp.S: New file.
12000 * sysdeps/x86_64/dl-machine.h: New file.
12001 * sysdeps/x86_64/elf/initfini.c: New file.
12002 * sysdeps/x86_64/elf/start.S: New file.
12003 * sysdeps/x86_64/ffs.c: New file.
12004 * sysdeps/x86_64/ffsll.c: New file.
12005 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12006 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12007 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12008 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12009 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12010 * sysdeps/x86_64/fpu/e_expl.c: New file.
12011 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12012 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12013 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12014 * sysdeps/x86_64/fpu/e_logl.S: New file.
12015 * sysdeps/x86_64/fpu/e_powl.S: New file.
12016 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12017 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12018 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12019 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12020 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12021 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12022 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12023 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12024 * sysdeps/x86_64/fpu/fegetround.c: New file.
12025 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12026 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12027 * sysdeps/x86_64/fpu/fesetround.c: New file.
12028 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12029 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12030 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12031 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12032 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12033 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12034 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12035 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12036 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12037 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12038 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12039 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12040 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12041 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12042 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12043 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12044 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12045 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12046 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12047 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12048 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12049 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12050 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12051 * sysdeps/x86_64/gmp-mparam.h: New file.
12052 * sysdeps/x86_64/hp-timing.c: New file.
12053 * sysdeps/x86_64/hp-timing.h: New file.
12054 * sysdeps/x86_64/htonl.S: New file.
12055 * sysdeps/x86_64/memusage.h: New file.
12056 * sysdeps/x86_64/setjmp.S: New file.
12057 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12058 * sysdeps/x86_64/stackinfo.h: New file.
12059 * sysdeps/x86_64/sysdep.h: New file.
12060 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12062 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12065 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12067 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12068 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12070 2001-09-18 Andreas Schwab <schwab@suse.de>
12072 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12073 list, now that l_scope is a pointer.
12075 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12078 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12080 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12081 (elf_machine_rela_relative): Add a missing declaration.
12083 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12085 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12086 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12087 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12088 ldd-rewrite scripts.
12090 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12092 * elf/ldd.bash.in: Update copyright message.
12094 2001-09-17 H.J. Lu <hjl@gnu.org>
12096 * hurd/hurdmalloc.c (bcopy): Removed.
12097 (realloc): Replace bcopy with memcpy.
12098 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12099 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12100 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12102 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12103 (gethostbyaddr): Likewise.
12104 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12106 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12108 * sysdeps/gnu/eval.c: Removed.
12110 2001-09-18 Andreas Jaeger <aj@suse.de>
12112 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12113 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12115 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12116 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12118 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12119 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12121 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12123 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12126 2001-09-14 H.J. Lu <hjl@gnu.org>
12128 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12130 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12132 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12133 Patch by Florian La Roche <laroche@redhat.com>.
12135 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12137 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12140 2001-09-14 Andreas Schwab <schwab@suse.de>
12142 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12143 Sumner <bls@sgi.com>.
12144 * posix/execlp.c: Likewise.
12146 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12148 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12149 is already found earlier in the search scope.
12151 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12153 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12156 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12158 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12160 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12162 * config.h.in: Enforce optimization to be used.
12163 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12164 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12165 * posix/Makefile (annexc-CFLAGS): Define to -O.
12166 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12168 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12170 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12171 Patch by Stephan Kulow.
12173 2001-09-08 Ben Collins <bcollins@debian.org>
12175 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12176 usage of RESOLVE() (r_type, not reloc->r_type).
12178 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12180 * elf/dl-object.c: Avoid allocating extra memory block for name.
12181 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12182 allocated separately.
12183 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12185 2001-09-08 H.J. Lu <hjl@gnu.org>
12187 * po/zh_TW.po: Fix a typo.
12189 2001-09-07 Tom Rix <trix@redhat.com>
12191 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12193 2001-08-26 Tom Rix <trix@redhat.com>
12195 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12196 command line options.
12197 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12198 * sysdeps/unix/sysv/aix/start.c: Removed.
12199 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12200 * sysdeps/unix/sysv/aix/init-first.c: New file.
12201 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12203 2001-09-08 Ben Collins <bcollins@debian.org>
12205 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12206 * sysdeps/generic/dl-machine.h: Likewise.
12207 * sysdeps/hppa/dl-fptr.c: Likewise.
12208 * sysdeps/ia64/dl-fptr.c: Likewise.
12209 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12210 * sysdeps/mips/dl-machine.h: Likewise.
12211 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12212 * sysdeps/powerpc/dl-machine.c: Likewise.
12214 2001-09-07 Ben Collins <bcollins@debian.org>
12216 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12218 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12220 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12222 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12223 dependencies if necessary.
12225 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12226 loaded directly) determine length if l_initfini list by iterating
12227 over its elements. Minor optimizations.
12228 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12229 for dependency objects.
12230 If object was already loaded check whether any of the dependencies
12231 is already on the relocation dependency list. If yes, remove the
12232 latter. Minor optimizations.
12233 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12234 maps here. Search l_initfini list only if the object was loaded
12235 directly and not only as a dependency.
12236 (_dl_lookup_symbol): Add relocation dependency also if object
12237 is not in global scope. Remove test for self-reference here.
12238 (_dl_lookup_versioned_symbol): Likewise.
12239 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12240 element of first name record.
12241 * elf/loadtest.c: Add some more test to recognize early if an object
12243 * elf/Makefile: Add rules to build and run reldep5.
12244 * elf/reldep5.c: New file.
12245 * elf/reldepmod5.c: New file.
12246 * elf/reldepmod6.c: New file.
12248 * elf/reldep2.c: Fix typo.
12250 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12252 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12253 elements. Change l_scope to be a pointer only.
12254 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12255 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12256 here add searchlist of newly open file to the dependency's scope.
12257 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12258 only searchlist from its scope. Free own scope array if necessary.
12259 * elf/Makefile (tests): Add dblload and dblunload now.
12261 2001-09-06 Andreas Jaeger <aj@suse.de>
12263 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12266 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12268 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12270 * elf/dblload.c: New file.
12271 * elf/dblloadmod1.c: New file.
12272 * elf/dblloadmod2.c: New file.
12273 * elf/dblloadmod3.c: New file.
12274 * elf/dblunload.c: New file.
12276 2001-09-04 Richard Henderson <rth@redhat.com>
12278 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12279 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12281 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12283 Correct very misleading message for error in failed runtime relocation.
12284 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12285 place of the error.
12286 (_dl_signal_cerror): Likewise.
12287 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12288 * elf/dl-close.c: Likewise.
12289 * elf/dl-deps.c: Likewise.
12290 * elf/dl-load.c: Likewise.
12291 * elf/dl-lookup.c: Likewise.
12292 * elf/dl-open.c: Likewise.
12293 * elf/dl-reloc.c: Likewise.
12294 * elf/dl-sym.c: Likewise.
12295 * elf/dl-version.c: Likewise.
12296 * sysdeps/generic/dl-sysdep.c: Likewise.
12298 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12300 * iconv/strtab.c (strtabinit): Initialize null Strent.
12301 (newstring): Move len == 0 handling...
12302 (strtabadd): ...here.
12303 If len == 1, return null Strent.
12304 When inserting a suffix of an existing string, check if
12305 it is not equal to some suffix already recorded.
12306 Copy left and right members over if adding longer string.
12308 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12310 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12312 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12313 (__syscall_gethostname): Add prototype.
12315 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12317 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12319 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12321 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12323 2001-08-27 Roland McGrath <roland@frob.com>
12325 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12326 short, copy that much into NAME anyway before returning error.
12328 2001-09-01 Richard Henderson <rth@redhat.com>
12330 * sysdeps/alpha/elf/Dist: Remove file.
12331 * sysdeps/alpha/elf/Makefile: Remove file.
12332 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12333 * sysdeps/alpha/elf/crtend.S: Remove file.
12334 * sysdeps/alpha/elf/initfini.c: New file.
12336 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12338 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12339 * iconv/tst-iconv3.c: Likewise.
12341 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12343 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12345 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12347 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12349 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12350 * iconv/iconv_prog.c (insert_cache): New function.
12351 (print_known_names): If cache is used call insert_cache to use the
12352 information from the cache [PR libc/2509].
12354 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12356 * time/strptime.c (strptime_internal): Recognize 'l' format and
12357 handle it like 'I' for symmetry with strftime.
12359 2001-08-31 Richard Henderson <rth@redhat.com>
12361 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12362 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12363 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12364 (print_statistics): Make scalar unsigned long long.
12365 * sysdeps/alpha/hp-timing.h: New file.
12367 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12369 * stdio-common/perror.c (perror): Save errno early, pass it
12370 down to perror_internal.
12371 (perror_internal): Add errnum argument.
12373 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12375 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12376 Don't add old memory content for R_ALPHA_REFQUAD.
12378 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12380 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12383 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12384 instead of open, __close instead of close, __getpagesize instead
12387 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12388 instead of strnlen.
12389 * include/string.h (strndupa): Redefine here to use __strnlen
12390 instead of strnlen.
12391 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12393 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12396 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12398 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12399 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12400 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12401 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12402 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12403 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12404 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12406 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12408 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12410 2001-08-30 Andreas Jaeger <aj@suse.de>
12412 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12413 contributed Stephen L Moshier.
12415 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12417 * sunrpc/etc.rpc (sgi_fam): Add.
12419 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12421 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12423 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12425 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12426 first is from a previous call.
12427 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12429 2001-08-29 Andreas Schwab <schwab@suse.de>
12431 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12433 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12435 * config.make.in (INSTALL_SCRIPT): Define.
12436 * Makeconfig (INSTALL_SCRIPT): Define.
12437 * Makerules (do-install-script): New macro to install scripts using
12439 (install-bin-script): New rule to install scripts with
12441 (install-bin-script-nosubdir): New rule.
12442 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12443 (distinfo-vars): Add $(install-bin-script).
12444 * Rules (others): Likewise.
12445 * Makefile (glibcbug): Install with install-bin-script.
12446 * debug/Makefile (xtrace): Likewise.
12447 (catchsegv): Likewise.
12448 * elf/Makefile (ldd): Likewise.
12449 * malloc/Makefile (mtrace): Likewise.
12450 * timezone/Makefile (tzselect): Likewise.
12452 2001-08-29 H.J. Lu <hjl@gnu.org>
12454 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12455 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12456 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12458 2001-08-29 Andreas Schwab <schwab@suse.de>
12460 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12462 2001-08-28 H.J. Lu <hjl@gnu.org>
12464 * Makeconfig (combreloc-LDFLAGS): New variable.
12465 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12466 * config.make.in (have-z-combreloc): New variable.
12467 * configure.in: Substitute libc_cv_z_combreloc.
12469 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12471 * po/sv.po: Update from translation team.
12472 * po/fr.po: Likewise.
12473 * po/da.po: Likewise.
12475 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12477 * Makerules: Fix a typo: MD% -> MD5.
12479 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12481 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12482 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12484 2001-08-28 Andreas Jaeger <aj@suse.de>
12486 * manual/libc-texinfo.sh: Add entry about free manuals.
12488 * manual/contrib.texi (Contributors): Fix cross reference.
12490 * manual/libc.texinfo (Copying): Include freemanuals.
12492 * manual/Makefile (appendices): Add freemanuals.
12494 * manual/freemanuals.texi: New file.
12495 Patch by Brian Youmans <3diff@gnu.org>.
12497 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12500 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12501 table on separate page.
12502 Patch by Brian Youmans <3diff@gnu.org>.
12504 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12506 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12507 the connection went down after we first used it try to connect
12508 again and resend the message before printing to the console.
12509 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12511 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12513 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12514 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12517 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12519 * iconv/strtab.c (searchstring): Use correct length for comparison.
12520 (strtabadd): Account total size correct if new string has old string as
12523 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12525 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12527 2001-08-27 Andreas Jaeger <aj@suse.de>
12529 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12531 * math/libm-test.inc (j0_test): Add extra tests.
12532 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12533 not x, in Hankel approximation.
12534 Patches by Stephen L Moshier.
12536 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12538 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12541 * configure.in: Fix test for .rela.dyn section.
12543 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12545 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12547 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12548 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12549 Pass type_class to _dl_lookup_*.
12550 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12551 Pass around just type_class instead of noexec, noplt pair.
12552 (_dl_lookup_versioned_symbol): Likewise.
12553 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12554 noexec, noplt pair.
12555 (_dl_lookup_versioned_symbol_skip): Likewise.
12556 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12557 * elf/do-lookup.h (do_lookup): Likewise.
12558 * include/link.h (struct link_map): Replace noexec and noplt fields
12559 in l_lookup_cache with type_class field.
12560 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12561 ELF_RTYPE_CLASS_COPY): Define.
12562 Adjust prototypes for _dl_lookup_symbol and
12563 _dl_lookup_versioned_symbol.
12564 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12565 elf_machine_lookup_noexec_p): Remove.
12566 (elf_machine_type_class): Define.
12567 * sysdeps/arm/dl-machine.h: Likewise.
12568 * sysdeps/hppa/dl-machine.h: Likewise.
12569 * sysdeps/cris/dl-machine.h: Likewise.
12570 * sysdeps/i386/dl-machine.h: Likewise.
12571 * sysdeps/ia64/dl-machine.h: Likewise.
12572 * sysdeps/m68k/dl-machine.h: Likewise.
12573 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12574 * sysdeps/mips/dl-machine.h: Likewise.
12575 * sysdeps/powerpc/dl-machine.h: Likewise.
12576 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12577 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12578 * sysdeps/sh/dl-machine.h: Likewise.
12579 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12580 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12582 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12584 * manual/message.texi (Advanced gettext functions): Change
12585 description of plural forms for Slovak.
12586 Reported by Marcel Telka <marcel@telka.sk>.
12588 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12589 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12591 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12593 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12594 typo. Patch by Florian La Roche <laroche@redhat.com>.
12596 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12598 * include/link.h (struct link_map): Add l_lookup_cache element.
12599 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12600 (RESOLVE_MAP): Likewise.
12601 (_dl_relocate_object): Remove cache initialization.
12602 * elf/dl-lookup.c: Rip out cache handling code.
12603 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12606 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12607 remove some __builtin_expect.
12608 (_dl_lookup_versioned_symbol): Likewise.
12610 * config.h.in: Add HAVE_Z_COMBRELOC.
12611 * configure.in: Add test for -z combreloc.
12613 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12614 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12615 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12616 case to almost no code.
12618 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12620 * po/tr.po: Update from translation team.
12622 2001-08-24 Andreas Jaeger <aj@suse.de>
12624 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12627 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12629 * elf/rtld.c (print_statistics): Printf % after percent values.
12630 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12632 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12633 don't have to compute the hash value and initialize current_value.
12634 Move reference_name variable to where it is needed.
12635 (_dl_lookup_versioned_symbol): Likewise.
12637 2001-08-24 Roland McGrath <roland@frob.com>
12639 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12640 Just test that strerror returns non-null for a few errno codes.
12642 2001-08-23 Roland McGrath <roland@frob.com>
12644 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12645 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12647 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12649 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12652 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12654 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12657 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12658 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12660 * elf/rtld.c: Include <sys/param.h>.
12661 * elf/dl-reloc.c: Likewise.
12663 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12665 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12666 empty to prevent junk from being generated.
12667 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12669 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12671 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12672 records. Rename endrel to relative, initialize it to r, and use it
12673 in elf_machine_rel_relative calls. Point r after relative relocs.
12675 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12677 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12680 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12682 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12683 necessary. Undefine newly defined macros at the end.
12684 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12685 Rename from elf_machine_rel_relative.
12686 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12687 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12688 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12689 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12691 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12693 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12694 Fix argument types.
12695 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12696 Fix argument types.
12697 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12698 Likewise. Fix argument types.
12699 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12700 Likewise. Fix argument types.
12701 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12702 Fix argument types.
12703 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12704 ElfW(Rel) in argument.
12705 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12708 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12710 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12712 2001-08-24 Andreas Jaeger <aj@suse.de>
12714 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12715 Stephen L Moshier <moshier@mediaone.net>.
12717 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12719 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12720 first if RELCOUNT is set.
12722 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12723 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12724 elf_machine_rel_relative.
12725 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12726 Minor optimizations.
12727 * sysdeps/arm/dl-machine.h: Likewise.
12728 * sysdeps/cris/dl-machine.h: Likewise.
12729 * sysdeps/hppa/dl-machine.h: Likewise.
12730 * sysdeps/i386/dl-machine.h: Likewise.
12731 * sysdeps/ia64/dl-machine.h: Likewise.
12732 * sysdeps/m68k/dl-machine.h: Likewise.
12733 * sysdeps/mips/dl-machine.h: Likewise.
12734 * sysdeps/powerpc/dl-machine.h: Likewise.
12735 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12736 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12737 * sysdeps/sh/dl-machine.h: Likewise.
12738 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12739 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12741 2001-08-23 Roland McGrath <roland@frob.com>
12743 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12745 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12746 sysdeps/mach version. Implement counting ("recursive") mutexes
12747 on top of cthreads mutexes.
12748 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12750 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12751 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12752 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12753 __libc_clean_end): Define these to call the cleanup function after
12754 normal exit when they're supposed to.
12756 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12757 Take new first arg DOIT, a boolean saying whether to really install
12758 any cleanup handler.
12759 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12760 (__libc_cleanup_end): Likewise.
12761 * sysdeps/generic/bits/libc-lock.h: Same changes.
12762 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12763 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12764 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12766 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12767 * sysdeps/generic/bits/stdio-lock.h
12768 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12770 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12772 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12774 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12776 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12778 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12780 (_dl_lookup_versioned_symbol): Likewise.
12781 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12783 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12784 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12785 (lookup_cache, lookup_cache_versioned): Add declarations.
12787 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12789 * stdlib/tst-random.c (main): Swap parameters in fail call.
12790 Patch by Pete Bevin <pete@petebevin.com>.
12792 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12794 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12796 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12798 * malloc/obstack.c: Indent preprocessor directives.
12799 Patch by Jim Meyering <meyering@ascend.com>.
12801 * po/ja.po: Update from translation team.
12803 2001-08-23 Roland McGrath <roland@frob.com>
12805 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12807 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12808 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12810 2001-08-22 Roland McGrath <roland@frob.com>
12812 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12813 __libc_lock_define_recursive.
12814 * elf/dl-open.c: Don't declare it here any more.
12815 * elf/dl-close.c: Likewise.
12816 * elf/dl-lookup.c: Likewise.
12817 * elf/dl-iteratephdr.c: Likewise.
12818 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12819 __libc_lock_unlock_recursive.
12820 * elf/dl-close.c (_dl_close): Likewise
12821 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12822 * elf/dl-open.c (_dl_open): Likewise
12824 * sysdeps/generic/bits/libc-lock.h
12825 (__libc_lock_define_recursive): New macro.
12826 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12827 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12828 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12830 * conform/conformtest.pl (checknamespace): Sort the output list.
12832 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12833 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12834 definitions conditional on [__USE_XOPEN].
12836 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12837 these unconditionally, not only use [__USE_BSD], so as to match
12838 the sysdeps/unix/sysv/linux files.
12840 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12842 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12845 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12848 2001-08-22 Roland McGrath <roland@frob.com>
12850 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12851 conditionalization of sa_handler/sa_sigaction member types to
12852 match the sysdeps/unix/sysv/linux file.
12854 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12856 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12857 symbol sizes a bit better.
12859 * sysdeps/ia64/strncpy.S: Complete rewrite.
12860 Contributed by Jakub Jelinek <jakub@redhat.com>.
12862 * string/stratcliff.c (main): Add strncpy test.
12864 2001-08-22 Roland McGrath <roland@frob.com>
12866 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12867 and don't declare unsetenv or _environ directly.
12868 (unsetenv): Return int, not void. Use __environ instead of _environ.
12870 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12872 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12873 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12874 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12875 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12876 test for cmsg struct size.
12878 2001-04-23 Paul Eggert <eggert@twinsun.com>
12880 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12881 Rename __argc to ___argc in prototypes to avoid compatibility
12882 problems with systems that reserve the identifier "__argc".
12883 Similarly for __argv.
12885 2001-08-21 Roland McGrath <roland@frob.com>
12887 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12889 * mach/Makefile (tests): Removed.
12890 * mach/hello.c: File removed.
12892 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12894 * po/sv.po: Update from translation team.
12896 * stdio-common/vfscanf.c: Fix handling of %l[].
12897 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12899 * libio/Makefile (tests): Add tst-sscanf.
12900 * libio/tst-sscanf.c: New file.
12902 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12903 * malloc/mtrace.c (tr_where): dli_sname always points to a
12904 non-empty string if != NULL.
12905 Reported by Tim Janik <timj@gtk.org>.
12907 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12909 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12910 buf. Free resources on failure.
12911 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12912 (makefd_xprt): Likewise.
12913 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12914 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12915 * sunrpc/auth_unix.c (authunix_create): Likewise.
12917 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12919 * string/strnlen.c: Remove.
12920 * sysdeps/generic/strnlen.c: New file.
12921 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12923 2001-08-21 Roland McGrath <roland@frob.com>
12925 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12926 as a macro, not an extern inline function.
12928 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12929 * Versions.def (libc): Add GLIBC_2.2.5 set.
12930 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12931 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12933 2001-08-20 Roland McGrath <roland@frob.com>
12935 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12936 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12938 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12940 * string/bits/string2.h: Remove strnlen optimization here.
12941 * sysdeps/i386/i486/bits/string.h: Add it here.
12943 2001-08-21 Wolfram Gloger <wg@malloc.de>
12945 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12947 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12949 * po/gl.po: Update from translation team.
12951 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12953 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12954 * misc/err.c (convert_and_print): Likewise.
12956 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12959 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12961 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12962 change of the gregset_t type.
12963 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12965 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12967 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12969 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12971 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12973 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12975 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12977 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12978 before calling the cthreads initialization code.
12980 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12982 * argp/argp-help.c: Fix two problems introduced in last change.
12984 * include/dirent.h: Include <dirstream.h> first.
12986 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12988 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12990 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12991 * sunrpc/xdr_rec.c: Likewise.
12992 * sunrpc/xdr_mem.c: Likewise.
12993 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12994 * sunrpc/rpc_cmsg.c: Likewise.
12995 * sunrpc/getrpcport.c (getrpcport): Likewise.
12996 * sunrpc/clnt_simp.c (callrpc): Likewise.
12997 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12998 * string/envz.c: Likewise.
13000 * po/ko.po: Update from translation team.
13002 * argp/argp-help.c: Handle wide oriented stderr stream.
13004 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13006 * sysdeps/generic/strtol.c: Little optimizations. Add some
13009 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13011 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13012 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13013 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13015 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13017 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13019 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13021 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13022 wchar_t for function declarations and defintions.
13024 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13025 Define suseconds_t if it hasn't happened yet.
13027 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13029 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13031 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13034 * conform/data/stddef.h-data: Remove wint_t.
13036 * conform/conformtest.pl: Change namespace test to take #undef
13037 lines into account.
13039 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13041 * conform/data/sys/socket.h-data: Add sockatmark.
13043 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13045 * io/fts.c: Update from recent BSD source.
13047 2001-08-17 Roland McGrath <roland@frob.com>
13049 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13050 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13053 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13055 * locale/duplocale.c (__duplocale): Also initialize the special
13056 __ctype_* elements.
13058 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13060 2001-08-17 Andreas Jaeger <aj@suse.de>
13062 * misc/getpass.c: Include wchar.h for prototypes.
13063 * malloc/obstack.c: Likewise.
13065 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13067 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13069 * wcsmbs/wcscoll.c: Also define __wcscoll.
13070 * include/wchar.h: Declare __wcscoll.
13072 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13073 * libio/vwprintf.c: Likewise.
13074 * libio/wprintf.c: Likewise.
13076 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13078 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13080 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13081 instead of mbrtowc.
13082 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13083 wcslen, and __wcscoll instead of wcscoll.
13085 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13087 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13088 __getuid instead of getuid.
13090 * stdio-common/perror.c (perror): Use __close instead of close.
13091 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13092 * libio/freopen.c (freopen): Likewise.
13093 * libio/freopen64.c (freopen64): Likewise.
13095 * libio/tst-ungetwc2.c (main): Define str const.
13097 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13098 * libio/fwprintf.c: Also define __fwprintf.
13099 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13100 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13101 * assert/assert-perr.c: Likewise.
13102 * assert/assert.c: Likewise.
13103 * gmon/gmon.c: Likewise.
13104 * inet/rcmd.c: Likewise.
13105 * malloc/obstack.c: Likewise.
13106 * misc/err.c: Likewise.
13107 * misc/error.c: Likewise.
13108 * misc/getpass.c: Likewise.
13109 * posix/getopt.c: Likewise.
13110 * resolv/res_hconf.c: Likewise.
13111 * stdio-common/perror.c: Likewise.
13112 * stdio-common/psignal.c: Likewise.
13113 * stdlib/fmtmsg.c: Likewise.
13114 * sunrpc/auth_unix.c: Likewise.
13115 * sunrpc/clnt_perr.c: Likewise.
13116 * sunrpc/clnt_tcp.c: Likewise.
13117 * sunrpc/clnt_udp.c: Likewise.
13118 * sunrpc/clnt_unix.c: Likewise.
13119 * sunrpc/svc_simple.c: Likewise.
13120 * sunrpc/svc_tcp.c: Likewise.
13121 * sunrpc/svc_udp.c: Likewise.
13122 * sunrpc/svc_unix.c: Likewise.
13123 * sunrpc/xdr.c: Likewise.
13124 * sunrpc/xdr_array.c: Likewise.
13125 * sunrpc/xdr_rec.c: Likewise.
13126 * sunrpc/xdr_ref.c: Likewise.
13127 * sysdeps/generic/wordexp.c: Likewise.
13129 * po/it.po: Update from translation team.
13131 * misc/err.c: Handle wide oriented stderr stream.
13133 2001-08-14 Tom Rix <trix@redhat.com>
13135 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13136 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13138 2001-08-13 Tom Rix <trix@redhat.com>
13140 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13141 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13144 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13146 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13147 Store the access registers to the ucontext structure.
13148 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13151 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13152 Load the access registers from the ucontext structure.
13153 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13156 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13157 offsets to the new ucontext layout.
13158 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13160 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13161 of the ucontext structure.
13162 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13164 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13166 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13167 (error_at_line): Likewise.
13169 * stdio-common/perror.c (perror): Implement according to standard.
13170 The stream orientation must not be changed if the stream was not
13171 oriented before the call.
13172 * stdio-common/Makefile (tests): Add tst-perror.
13173 * stdio-common/tst-perror.c: New file.
13176 See ChangeLog.12 for earlier changes.