1 2002-09-22 Andreas Schwab <schwab@suse.de>
3 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
5 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
6 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
9 2002-09-21 Roland McGrath <roland@redhat.com>
11 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
12 Correct the value so it covers all platforms, and is computed
13 from _DL_PLATFORMS_COUNT rather than hard-wired.
14 From Andrew Suffield <asuffield@debian.org>.
16 2002-09-20 Ulrich Drepper <drepper@redhat.com>
18 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
19 locking when using mount tab file.
20 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
21 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
22 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
24 * elf/dl-init.c (_dl_init): Fix test of the size of the
25 preinit_array section.
26 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
27 Reported by Brian Cabral <cabral@ikuni.com>.
29 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
31 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
32 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
33 specific macros copied from sysdeps/powerpc/sysdep.h.
34 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
36 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
37 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
38 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
40 2002-09-19 Bruno Haible <bruno@clisp.org>
42 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
45 2002-09-17 Bruno Haible <bruno@clisp.org>
47 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
48 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
49 also on platforms with !HAVE_UT_TYPE.
50 (proc_utmp_eq): Remove function.
51 (internal_getut_r, pututline_file): Call __utmp_equal instead.
53 2002-09-20 Bruno Haible <bruno@clisp.org>
55 * abi-tags: Add support for FreeBSD with ABI OS value 3.
56 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
58 2002-09-20 Roland McGrath <roland@redhat.com>
60 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
61 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
63 * sysdeps/x86_64/gmp-mparam.h: File removed.
64 * sysdeps/sparc/gmp-mparam.h: File removed.
65 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
66 * sysdeps/ia64/gmp-mparam.h: File removed.
67 * sysdeps/alpha/gmp-mparam.h: File removed.
69 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
71 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
72 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
73 casts. Align __libc_stack_end to 8 bytes.
75 2002-09-20 Roland McGrath <roland@redhat.com>
77 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
78 instead of asm for lrintf, __lrintf aliases.
80 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
81 int array for 32-/64-bit compatibility.
82 From Steven Munroe <sjmunroe@us.ibm.com>.
84 2002-09-17 Bruno Haible <bruno@clisp.org>
86 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
87 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
88 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
89 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
90 for iterating through the list of interfaces.
91 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
93 2002-09-20 Roland McGrath <roland@redhat.com>
95 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
96 Reported by Bruno Haible <bruno@clisp.org>.
98 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
100 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
101 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
102 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
104 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
106 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
107 * sysdeps/powerpc/bits/wordsize.h: New file.
108 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
109 array to int array for 32-/64-bit compatibility.
111 2002-09-20 Roland McGrath <roland@redhat.com>
113 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
115 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
116 Reported by Bruno Haible <bruno@clisp.org>.
118 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
119 before doubling RQ_LEN.
120 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
121 Reported by Bruno Haible <bruno@clisp.org>.
123 2002-09-18 Bruno Haible <bruno@clisp.org>
125 * login/logout.c (logout): Don't assume ut_time has the same size as
127 * login/logwtmp.c (logwtmp): Likewise.
129 * sysdeps/pthread/configure: New file, moved here from
130 linuxthreads/sysdeps/unix/sysv/linux/configure.
132 2002-09-19 Ulrich Drepper <drepper@redhat.com>
134 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
135 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
136 Reported by Glen Nakamura <glen@imodulo.com>.
138 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
140 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
141 thread's sigstate data structure if it has been allocated.
143 2002-09-19 Roland McGrath <roland@redhat.com>
145 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
146 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
148 2002-09-18 Ulrich Drepper <drepper@redhat.com>
150 * version.h (VERSION): Bump to 2.2.94.
152 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
153 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
154 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
157 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
159 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
161 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
165 2002-09-19 Jakub Jelinek <jakub@redhat.com>
167 * sysdeps/wordsize-32/Makefile: New file.
168 * sysdeps/arm/Makefile: Removed.
169 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
170 Don't add divdi3 here.
171 * sysdeps/m68k/Makefile: Likewise.
172 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
173 * sysdeps/sh/Makefile: Likewise.
174 * sysdeps/s390/s390-32/Makefile: Likewise.
176 2002-09-18 Roland McGrath <roland@redhat.com>
178 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
179 the __ctype_* compat symbols, so the relocs generated bind to the
180 right versioned global symbol in the shared object.
182 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
183 from the value taken from the DT_VERSYM table.
184 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
185 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
186 (RESOLVE_GOTSYM): Likewise.
188 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
190 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
191 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
192 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
193 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
194 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
195 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
196 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
197 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
199 2002-09-18 Ulrich Drepper <drepper@redhat.com>
201 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
203 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
204 define sigaction and __sigaction as wrappers around
205 __libc_sigaction which rejects changing SIGCANCEL.
206 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
208 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
211 * signal/allocrtsig.c: Move to...
212 * sysdeps/generic/allocrtsig.c: ...here. New file.
214 2002-09-17 Jakub Jelinek <jakub@redhat.com>
216 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
218 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
219 R_386_TLS_LE): Define.
220 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
222 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
223 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
224 (elf_machine_rel): Handle R_386_TLS_TPOFF.
225 (elf_machine_rela): Likewise.
226 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
228 2002-09-17 Roland McGrath <roland@redhat.com>
230 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
231 file-specific variable override so it compiles properly when using
234 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
236 Ported to PowerPC64 running Linux.
237 * sysdeps/powerpc/powerpc64/Dist: New file.
238 * sysdeps/powerpc/powerpc64/Implies: New file.
239 * sysdeps/powerpc/powerpc64/Makefile: New file.
240 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
241 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
242 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
243 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
244 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
245 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
246 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
247 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
248 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
249 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
250 * sysdeps/powerpc/powerpc64/memset.S: New file.
251 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
252 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
253 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
254 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
255 * sysdeps/powerpc/powerpc64/strchr.S: New file.
256 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
257 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
258 * sysdeps/powerpc/powerpc64/strlen.S: New file.
259 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
260 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
261 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
262 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
271 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
272 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
273 various gcc versions. Dot names required for powerpc64.
274 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
275 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
276 C_SYMBOL_DOT_NAME(alias).
277 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
278 original strong_alias macro.
279 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
280 C_SYMBOL_DOT_NAME(alias).
281 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
282 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
284 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
285 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
286 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
287 (hidden_def): Append hidden_dot_def1 macro to definition.
288 (hidden_ver): Append hidden_dot_def1 macro to definition.
289 (hidden_data_def): New macro. Same as original hidden_def macro.
290 (hidden_data_ver): New macro. Same as original hidden_ver macro.
291 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
292 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
293 (hidden_weak): Append hidden_dot_weak1 macro to definition.
294 (hidden_data_weak): New macro. Same as original hidden_weak macro.
295 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
296 Otherwise defined as __GI_name.
297 (libc_hidden_data_def): New macro. Use hidden_data_def.
298 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
299 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
300 (rtld_hidden_data_def): New macro. Use hidden_data_def.
301 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
302 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
303 (libm_hidden_data_def): New macro. Use hidden_data_def.
304 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
305 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
306 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
308 2002-09-17 Ulrich Drepper <drepper@redhat.com>
310 * include/libc-symbols.h: Change *hidden_proto macros to accept
311 option parameters and pass those to the attribute definition.
312 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
314 * include/unistd.h: Declare __libc_pause.
316 * include/sys/socket.h: Declare __libc_send, __libc_recv,
317 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
319 * include/unistd.h: Declare __libc_fork.
321 2002-09-17 Roland McGrath <roland@redhat.com>
323 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
324 (passwd2des): Define it as an alias.
325 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
327 2002-09-12 Bruno Haible <bruno@clisp.org>
329 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
330 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
332 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
333 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
335 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
337 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
338 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
339 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
340 PowerPC64 does not have separate 64-bit syscalls.
342 2002-09-16 Roland McGrath <roland@redhat.com>
344 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
349 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
351 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
352 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
353 * sysdeps/generic/_exit.c: Likewise.
355 2002-09-12 Jakub Jelinek <jakub@redhat.com>
357 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
359 * elf/rtld.c (struct dl_start_final_info): New.
360 (_dl_start_final): Change second argument to struct
361 dl_start_final_info *. Set start_time from info.
362 (_dl_start): Remove bootstrap_map variable, add info.
363 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
364 store HP_TIMING_NOW result into info.start_time.
366 2002-09-16 Andreas Jaeger <aj@suse.de>
368 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
370 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
372 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
374 * sysdeps/powerpc/abort-instr.h: New file.
376 2002-09-14 Ulrich Drepper <drepper@redhat.com>
378 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
381 * test-skeleton.c (main): Provide more information in case waitpid
384 * include/unistd.h: Declare __exit_thread.
385 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
386 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
387 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
388 * sysdeps/unix/sysv/linux/_exit.c: New file.
389 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
390 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
393 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
395 2002-09-12 Jakub Jelinek <jakub@redhat.com>
397 * sysdeps/i386/dl-machine.h (elf_machine_rel)
398 (case R_386_TLS_DTPMOD32): Don't use addend.
399 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
400 (elf_machine_rela): Add support for TLS relocs.
402 2002-09-14 Roland McGrath <roland@redhat.com>
404 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
406 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
408 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
409 specific asm macros for multiple percision integer math.
411 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
413 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
414 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
415 Remove per-machine conditionals for FLAG_* cases.
416 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
417 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
420 2002-09-10 Alan Modra <amodra@bigpond.net.au>
422 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
424 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
425 lowest address for profiling in __monstartup call.
426 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
428 2002-09-14 Roland McGrath <roland@redhat.com>
430 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
431 instead of __NR_pread.
432 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
433 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
434 instead of __NR_pwrite.
435 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
437 2002-09-13 Roland McGrath <roland@redhat.com>
439 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
441 2002-09-13 Andreas Jaeger <aj@suse.de>
443 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
444 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
446 2002-09-12 Ulrich Drepper <drepper@redhat.com>
448 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
450 2002-09-10 Ulrich Drepper <drepper@redhat.com>
452 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
455 2002-09-12 Roland McGrath <roland@redhat.com>
457 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
458 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
461 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
462 executable if needed, in case it's actually a shared object.
464 2002-09-11 Roland McGrath <roland@redhat.com>
466 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
467 l_map_start to adjust l_tls_initimage.
469 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
470 when using h_errno and it's not set to NETDB_INTERNAL.
471 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
473 * Makefile ($(common-objpfx)testrun.sh): New target.
474 (others): Depend on it.
475 (postclean-generated): Append it.
477 * nss/bug-erange.c: New file.
478 * nss/Makefile (tests): Add it.
480 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
481 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
483 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
484 strncmp, keeps the code smaller for a non-performance-critical case.
486 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
487 no longer wrongly matches arbitrary prefixes of NAME.
488 Reported by Jakub Jelinek <jakub@redhat.com>.
490 2002-09-11 Jakub Jelinek <jakub@redhat.com>
492 * posix/bug-regex11.c (tests): New array.
493 (main): Rewritten to run more different tests.
495 2002-09-10 Roland McGrath <roland@redhat.com>
497 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
498 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
499 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
501 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
502 well so we don't get it declared by include/math.h's hidden_proto.
503 Then do hidden_proto for __isnanf locally so hidden_def works right.
505 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
506 a cast to turn nl_langinfo return value into an integer.
508 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
510 * posix/regexec.c (build_trtable): Fix the destination of
511 newline to prevent wrong states from overwriting.
512 Append break statements to optimization.
514 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
516 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
517 (build_range_exp): Add castings to strlen invocations.
518 (build_collating_symbol): Restore the type of characters from "char"
519 to "unsigned char", and supplement castings.
520 (build_collating_symbol): Likewise.
521 (build_equiv_class): Likewise.
522 (build_charclass): Likewise.
523 (seek_collating_symbol_entry): Likewise.
524 (parse_bracket_exp): Likewise.
525 (build_word_op): Supplement a casting.
526 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
527 (re_string_allocate): Fix castings.
528 (re_string_construct): Likewise.
529 (re_string_construct_common): Likewise.
530 (re_string_realloc_buffers): Likewise.
531 (build_wcs_buffer): Likewise.
532 (build_wcs_upper_buffer): Likewise.
533 (re_string_skip_chars): Likewise.
534 (re_string_reconstruct): Likewise.
535 * posix/regex_internal.h: Restore the type of characters in
536 re_string_t and bracket_elem_t from "char" to "unsigned char".
537 (re_string_elem_size_at): Fix castings.
538 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
539 (transit_state_bkref_loop): Restore the type of characters from
540 "char" to "unsigned char", and append a cast to "char*" pointer in
542 (check_node_accept_bytes): Likewise.
543 (find_collation_sequence_value): Likewise.
545 2002-09-10 Hartvig Ekner <hartvige@mips.com>
547 * sysdeps/mips/memcpy.S: New file.
548 * sysdeps/mips/memset.S: New file.
549 * sysdeps/mips/fpu/e_sqrt.c: New file.
550 * sysdeps/mips/fpu/e_sqrtf.c: New file.
552 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
553 functional before. Also removed all SHLIB_COMPAT stuff.
554 * fpu/fegetenv.c: Likewise.
555 * fpu/fesetenv.c:: Likewise.
556 * fpu/feupdateenv.c: Likewise.
557 * fpu/fgetexcptflg.c: Likewise.
558 * fpu/fraiseexcpt.c: Likewise.
560 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
562 2002-09-09 Jakub Jelinek <jakub@redhat.com>
564 * include/math.h (__finite_internal, __finitef_internal,
565 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
567 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
568 __isinfl, __isnanl): Add hidden_proto.
569 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
571 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
572 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
574 * stdio-common/printf_size.c (printf_size): Likewise.
575 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
576 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
577 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
578 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
579 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
580 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
581 (__finite): Add hidden_def.
582 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
583 (__finitef): Add hidden_def.
584 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
585 (__finitel): Add hidden_def.
586 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
588 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
589 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
591 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
592 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
594 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
595 (__isinfl): Remove INTDEF.
596 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
598 (__isnanl): Remove INTDEF.
599 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
601 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
602 instead of sin and cos.
603 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
605 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
606 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
607 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
609 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
611 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
612 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
613 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
615 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
617 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
619 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
620 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
621 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
623 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
624 __finitel_internal): Remove aliases.
625 (__finite, __finitef, __finitel): Add hidden_def.
626 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
627 __isnanl_internal): Remove aliases.
628 (__isnan, __isnanf, __isnanl): Add hidden_def.
629 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
630 __isinfl_internal): Remove aliases.
631 (__isinf, __isinff, __isinfl): Add hidden_def.
632 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
633 __fpclassifyl): Add libm_hidden_def.
634 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
635 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
636 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
637 (hidden_defx): Define and use.
638 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
640 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
641 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
642 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
644 (__isnan, __isnanf): Add hidden_def.
645 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
646 (__finitel): Add libm_hidden_def.
647 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
649 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
650 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
651 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
652 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
653 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
654 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
655 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
656 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
657 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
658 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
659 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
660 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
661 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
662 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
663 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
664 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
665 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
666 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
667 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
668 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
669 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
670 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
671 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
672 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
673 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
674 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
675 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
677 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
679 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
681 2002-09-09 Jakub Jelinek <jakub@redhat.com>
683 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
684 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
686 2002-09-09 Ulrich Drepper <drepper@redhat.com>
688 * string/stratcliff.c: Some more strncpy tests.
689 Patch by Daniel Jacobowitz <drow@mvista.com>.
691 2002-09-08 Roland McGrath <roland@redhat.com>
693 * resolv/resolv.h: Include <sys/types.h> for u_long even in
694 the [__need_res_state] case.
695 Reported by Bruno Haible <bruno@clisp.org>.
697 2002-09-04 Bruno Haible <bruno@clisp.org>
699 * sysdeps/generic/bits/ustat.h: Comment fix.
700 * io/sys/sendfile.h: Comment fix.
701 * sysdeps/posix/pread.c: Comment fix.
702 * sysdeps/posix/pread64.c: Comment fix.
703 * sysdeps/posix/pwrite.c: Comment fix.
704 * sysdeps/posix/pwrite64.c: Comment fix.
706 2002-09-06 Roland McGrath <roland@redhat.com>
708 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
709 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
710 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
711 (_UTSNAME_MACHINE_LENGTH): Likewise.
712 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
714 2002-09-06 Ulrich Drepper <drepper@redhat.com>
716 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
717 test for filesystem type name of mount points.
719 * include/errno.h: Use errno definition with __thread for now only
722 * test-skeleton.c (main): Improve error message for unexpected
725 2002-09-05 Roland McGrath <roland@redhat.com>
727 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
728 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
730 2002-09-05 Jakub Jelinek <jakub@redhat.com>
732 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
735 2002-09-04 Bruno Haible <bruno@clisp.org>
737 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
738 sigset_get_old_mask): Turn into inline functions.
739 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
740 sigset_get_old_mask): Likewise.
741 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
742 sigset_get_old_mask): Likewise.
743 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
746 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
748 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
750 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
751 _sys_nerr_internal instead of _sys_nerr.
753 * nscd/connections.c (handle_request): Declare CALLER inside #if.
755 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
757 * sysdeps/powerpc/__longjmp.S: Moved to...
758 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
759 * sysdeps/powerpc/add_n.S: Moved to...
760 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
761 * sysdeps/powerpc/addmul_1.S: Moved to...
762 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
763 * sysdeps/powerpc/atomicity.h: Moved to...
764 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
765 * sysdeps/powerpc/backtrace.c: Moved to...
766 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
767 * sysdeps/powerpc/bp-asm.h: Moved to...
768 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
769 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
770 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
771 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
772 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
773 * sysdeps/powerpc/dl-machine.c: Moved to...
774 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
775 * sysdeps/powerpc/dl-machine.h: Moved to...
776 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
777 * sysdeps/powerpc/dl-start.S: Moved to...
778 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
779 * sysdeps/powerpc/gprrest0.S: Moved to...
780 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
781 * sysdeps/powerpc/gprrest1.S: Moved to...
782 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
783 * sysdeps/powerpc/gprsave0.S: Moved to...
784 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
785 * sysdeps/powerpc/gprsave1.S: Moved to...
786 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
787 * sysdeps/powerpc/lshift.S: Moved to...
788 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
789 * sysdeps/powerpc/memset.S: Moved to...
790 * sysdeps/powerpc/powerpc32/memset.S: ...here.
791 * sysdeps/powerpc/mul_1.S: Moved to...
792 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
793 * sysdeps/powerpc/ppc-mcount.S: Moved to...
794 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
795 * sysdeps/powerpc/register-dump.h: Moved to...
796 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
797 * sysdeps/powerpc/rshift.S: Moved to...
798 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
799 * sysdeps/powerpc/setjmp.S: Moved to...
800 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
801 * sysdeps/powerpc/stpcpy.S: Moved to...
802 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
803 * sysdeps/powerpc/strchr.S: Moved to...
804 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
805 * sysdeps/powerpc/strcmp.S: Moved to...
806 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
807 * sysdeps/powerpc/strcpy.S: Moved to...
808 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
809 * sysdeps/powerpc/strlen.S: Moved to...
810 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
811 * sysdeps/powerpc/sub_n.S: Moved to...
812 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
813 * sysdeps/powerpc/submul_1.S: Moved to...
814 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
815 * sysdeps/powerpc/elf/bzero.S: Moved to...
816 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
817 * sysdeps/powerpc/elf/start.S: Moved to...
818 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
819 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
820 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
821 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
822 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
823 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
824 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
825 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
826 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
827 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
828 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
829 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
830 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
831 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
833 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
835 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
837 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
839 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
841 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
843 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
845 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
848 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
850 * FAQ.in: Add powerpc64 to supported targets list. Also state the
851 minimum gcc version is 3.2
852 * README: Add powerpc64 to supported targets list.
853 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
854 Add powerpc64 and machine=powerpc/powerpc64.
855 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
856 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
857 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
858 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
859 * sysdeps/powerpc/powerpc32/Dist: New file.
860 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
861 * sysdeps/powerpc/powerpc32/Implies: New file.
862 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
863 ($(with-fp) = no): Move test to powerpc32/Makefile.
864 ($(subdir) = misc): Move to powerpc32/Makefile.
865 ($(build-shared) = yes): Move to powerpc32/Makefile.
866 ($(subdir) = csu): Move to powerpc32/Makefile.
867 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
868 * sysdeps/powerpc/powerpc32/Makefile: New file.
869 * sysdeps/powerpc/Versions: Remove libgcc functions.
870 * sysdeps/powerpc/powerpc32/Versions: New file.
871 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
872 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
873 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
874 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
875 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
876 ($machine): Add powerpc/powerpc64 to if ... | for
877 libc_cv_slibdir=/libc64.
878 (powerpc*): Set ldd_rewrite_script.
879 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
880 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
883 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
884 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
885 functions. Remove GLIBC_2.2 functions except getrlimit and
886 setrlimit. Moved them to ...
887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
889 2002-09-04 Ulrich Drepper <drepper@redhat.com>
891 * libio/tst-atime.c: Include <errno.h>.
892 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
894 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
896 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
897 warnings of some compilers.
898 (build_collating_symbol): Change the type of characters from
899 "unsigned char" to "char", and append a cast to "char*" pointer in
901 (build_collating_symbol): Likewise.
902 (build_equiv_class): Likewise.
903 (build_charclass): Likewise.
904 (re_compile_pattern): Remove incorrect cast.
905 (re_compile_fastmap_iter): Change the type of characters from
906 "unsigned char" to "char", and append a cast to "char*" pointer
908 (parse_bracket_exp): Likewise.
909 * posix/regex_internal.c (re_string_construct_common): Likewise.
910 (re_string_allocate): Likewise.
911 (re_string_construct): Likewise.
912 (re_string_realloc_buffers): Likewise.
913 (build_wcs_buffer): Likewise.
914 (re_string_reconstruct): Likewise.
915 * posix/regex_internal.h: Change the type of characters in
916 re_string_t and bracket_elem_t from "unsigned char" to "char".
917 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
918 warnings of some compilers.
919 (transit_state_bkref_loop): Change the type of characters from
920 "unsigned char" to "char", and append a cast to "char*" pointer in
922 (check_node_accept_bytes): Likewise.
923 (find_collation_sequence_value): Likewise.
925 2002-09-04 Roland McGrath <roland@redhat.com>
927 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
928 from 1024 to 65536, to avoid buffer overrun.
930 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
932 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
934 2002-09-04 Ulrich Drepper <drepper@redhat.com>
936 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
939 2002-09-04 Jakub Jelinek <jakub@redhat.com>
941 * posix/bug-regex11.c: New test.
942 * posix/Makefile (tests): Add bug-regex11.
944 2002-09-03 Jakub Jelinek <jakub@redhat.com>
946 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
949 2002-09-02 Roland McGrath <roland@redhat.com>
951 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
952 __pthread_initialize_minimal and __libc_check_standard_fds to
953 match the generic version.
955 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
956 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
958 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
959 warnings on platorms where char is unsigned.
961 2002-09-02 Ulrich Drepper <drepper@redhat.com>
963 * version.h (VERSION): Bump to 2.2.93.
965 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
967 2002-09-02 Jakub Jelinek <jakub@redhat.com>
969 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
972 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
974 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
976 2002-09-02 Jakub Jelinek <jakub@redhat.com>
978 * locale/localeinfo.h (struct locale_data): Add private.ctype.
979 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
980 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
981 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
982 (__wcsmbs_load_conv): Remove const from argument.
983 (_nl_cleanup_ctype): New proto.
984 (get_gconv_fcts): New function.
985 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
986 (__wcsmbs_to_wc): Rename back to...
988 (__wcsmbs_gconv_fcts): Rename to...
989 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
991 (__libc_setlocale_lock): New extern.
992 (__wcsmbs_load_conv): Remove const from argument.
993 Initialize new_category->private.ctype instead of a global
995 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
996 update_function_ptrs. No locking is necessary.
997 (_nl_cleanup_ctype): New function.
998 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
999 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1000 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1001 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1002 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1003 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1004 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1005 * wcsmbs/wctob.c (wctob): Likewise.
1006 * stdlib/mblen.c (mblen): Likewise.
1007 * stdlib/mbtowc.c (mbtowc): Likewise.
1008 * stdlib/wctomb.c (wctomb): Likewise.
1009 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1010 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1011 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1014 2002-09-02 Roland McGrath <roland@frob.com>
1016 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1018 2002-09-01 Roland McGrath <roland@redhat.com>
1020 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1021 Variable declarations removed.
1022 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1023 these functions to replace them.
1024 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1025 functions plus an indirection rather than the old global variables.
1026 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1028 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1030 * ctype/ctype-info.c: Revert last reversion back the other way.
1031 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1032 Define real function versions of include/ctype.h inlines here.
1033 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1034 __ctype_tolower_loc, __ctype_toupper_loc.
1035 * locale/lc-ctype.c: Revert last reversion back the other way.
1036 (_nl_postload_ctype): If current thread uses the global locale,
1037 update its tsd vars.
1038 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1039 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1040 CTYPE_TOLOWER, CTYPE_TOUPPER.
1042 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1043 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1044 from __libc_tsd_threadvar_location.
1045 (__libc_tsd_set, __libc_tsd_get): Update uses.
1047 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1049 * ctype/ctype.h: Undo the patch before the last one. Put back the
1050 macro definitions for the standard functions to access the
1051 classification and mapping arrays.
1052 * include/ctype.h: Partly revert last patch. Move the macro
1053 definitions for the exported functions back to the public header.
1054 #undef all the macros defined here before redefining.
1055 * ctype/ctype-info.c: Revert last patch.
1056 * locale/lc-ctype.c: Revert last patch.
1058 * ctype/Makefile (routines): Add isctype.
1059 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1060 * ctype/ctype.h: Add declaration of isctype.
1061 * include/ctype.h: Declare __isctype.
1062 * ctype/isctype.c: New file.
1064 2002-09-01 Roland McGrath <roland@redhat.com>
1066 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1067 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1069 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1071 * locale/findlocale.c (_nl_remove_locale): Don't search in
1072 _nl_locale_file_list if DATA->alloc is ld_archive.
1073 Use _nl_unload_locale to do the rest of the work.
1075 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1076 of new structure to UNDELETABLE.
1078 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1079 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1080 towlower, towupper): Macros removed.
1081 * ctype/ctype.h (__tobody): Put parens around macro argument.
1082 (__isctype): Macro removed.
1083 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1084 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1085 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1086 tolower, toupper): Macros and inlines removed.
1087 * include/ctype.h [! NOT_IN_libc]
1088 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1089 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1090 tolower, toupper): Define here instead, using _NL_CURRENT.
1091 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1093 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1094 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1095 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1096 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1097 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1098 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1099 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1100 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1101 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1102 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1103 (ISSORTMASK): Update use.
1104 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1105 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1106 (_nss_files_getENTNAME_r): Likewise.
1107 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1110 * Makerules (all-nonlib): Renamed from all-tests.
1111 Include $(others) here too.
1112 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1113 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1114 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1115 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1116 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1117 the program modules via cppflags-iterator.mk.
1118 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1119 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1121 2002-08-31 Roland McGrath <roland@redhat.com>
1123 * posix/tst-getconf.sh: If no third arg, work with static linking.
1125 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1127 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1128 [_NL_CURRENT_INDIRECT].
1130 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1132 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1134 2002-08-31 Roland McGrath <roland@redhat.com>
1136 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1137 Instead, make the single allocation of the structure larger to hold
1139 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1140 Instead, calculate size for a single allocation and copy into it.
1141 * locale/freelocale.c (__freelocale): Don't free names individually.
1143 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1145 * locale/xlocale.h (__locale_struct): Move __names member last,
1146 for binary compatibility.
1148 * locale/duplocale.c (__duplocale): Free names from the right array.
1150 * locale/uselocale.c (__uselocale): Return previous locale when
1153 * locale/newlocale.c: Commit changes from 2002-08-30
1154 batch where I failed to commit this file:
1155 (__newlocale): Fill in __names array.
1157 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1159 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1160 errlist-compat.c if versioning==yes.
1162 2002-08-31 Andreas Jaeger <aj@suse.de>
1164 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1165 external functions with hidden attribute.
1166 (elf_machine_rela): Optimize.
1168 * sysdeps/x86_64/memset.S: New file.
1169 * sysdeps/x86_64/bzero.S: New file.
1170 * sysdeps/x86_64/stpcpy.S: New file.
1171 * sysdeps/x86_64/strcat.S: New file.
1172 * sysdeps/x86_64/strchr.S: New file.
1173 * sysdeps/x86_64/strcpy.S: New file.
1174 * sysdeps/x86_64/strcspn.S: New file.
1175 * sysdeps/x86_64/strlen.S: New file.
1176 * sysdeps/x86_64/strpbrk.S: New file.
1177 * sysdeps/x86_64/strspn.S: New file.
1178 * sysdeps/x86_64/strcmp.S: New file.
1179 * sysdeps/x86_64/strtok_r.S: New file.
1180 * sysdeps/x86_64/strtok.S: New file.
1181 * sysdeps/x86_64/memcpy.S: New file.
1182 * sysdeps/x86_64/mempcpy.S: New file.
1184 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1186 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1188 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1190 * stdio-common/Makefile (generated): Add errlist-compat.c.
1192 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1194 * locale/localeinfo.h: Pretty printing.
1196 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1197 form_number handling.
1199 2002-08-31 Andreas Jaeger <aj@suse.de>
1201 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1204 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1207 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1209 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1211 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1212 registers used for passing args.
1214 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1215 all needed registers.
1217 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1220 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1223 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1225 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1226 always_inline attribute.
1228 2002-08-30 Roland McGrath <roland@redhat.com>
1230 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1231 presume it's the stub and bail without error.
1233 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1234 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1236 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1238 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1239 macros replace the i686 versions for 64-bit mode.
1241 * locale/duplocale.c: Include <string.h>.
1243 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1244 [_LIBC] (category_to_name): Don't define the function. Instead
1245 define a macro using _nl_category_names.
1247 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1248 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1249 * locale/global-locale.c (_nl_global_locale): Likewise.
1250 * locale/duplocale.c (__duplocale): strdup __names elements.
1251 * locale/freelocale.c (__freelocale): Free __names elements.
1252 * locale/localename.c (_nl_current_names): Variable removed.
1253 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1254 * locale/localeinfo.h (_nl_current_names): Removed decl.
1255 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1256 _nl_current_names throughout.
1258 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1260 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1261 and sys_nerr in the output file.
1263 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1264 * scripts/cpp: Just use the environment variable.
1266 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1267 * libio/tst-mmap-offend.c (do_test): Likewise.
1268 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1269 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1270 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1272 * locale/localename.c: If the current locale is the global locale, use
1273 _nl_current_names; otherwise use the locale object.
1275 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1277 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1278 'm' to enable mmap I/O.
1279 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1280 former wasn't used (anymore?).
1281 (_IO_FLAGS2_MMAP): New define.
1282 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1283 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1284 _IO_FLAGS2_MMAP bit is set.
1285 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1286 Enable mmap-using mode only if 'm' was set.
1288 2002-08-29 Roland McGrath <roland@frob.com>
1290 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1292 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1293 Change argument type from int to intptr_t.
1295 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1296 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1297 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1298 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1299 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1301 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1303 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1305 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1307 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1308 * assert/assert-perr.c: Add libc_hidden_def.
1309 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1311 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1313 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1314 sys_errlist stuff to ...
1315 * sysdeps/unix/sysv/linux/Versions: ... here.
1317 * mach/mach.h: Include <features.h>.
1319 2002-08-29 Roland McGrath <roland@redhat.com>
1321 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1322 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1323 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1325 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1327 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1328 (norm_add_slashes): alloca -> __alloca
1330 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1332 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1333 string_malloced, it is unlikely to be set.
1334 Only call free with non-NULL workspace.
1335 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1336 -mcpu=ultrasparc, not only tune for it.
1337 (ASFLAGS*): Set unconditionally.
1339 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1340 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1341 p_vaddr/p_offset when computing LOADADDR.
1343 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1345 * version.h (VERSION): Bump to 2.2.92.
1347 * time/Makefile (tst-ftime_l-ENV): New variable.
1349 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1351 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1352 <U017A>, <U017D> and <U0179>. Add missing mappings.
1353 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1355 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1356 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1357 (struct tostruct): Use ACRINDEX as type for link field.
1358 (statuc gmonparam): Likewise for froms.
1359 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1361 (write_call_graph): Use correct type for from_index and to_index.
1362 * gmon/mcount.c: Use correct types for frompcindex and toindex
1364 Patches by Dan Kegel <dank@kegel.com>.
1366 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1369 * time/strptime.c (ISSPACE): New #define. Use isspace or
1370 __isspace_l. Replace calls to isspace.
1371 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1373 2002-08-29 Roland McGrath <roland@redhat.com>
1375 * string/tst-strxfrm.c: Remove __ from function names.
1377 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1379 * include/wchar.h: Declare __mbsrtowcs_l.
1380 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1381 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1382 USE_IN_EXTENDED_LOCALE_MODEL.
1383 * wcsmbs/mbsrtowcs_l: New file.
1384 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1385 define as static. Change all uses.
1386 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1388 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1389 * time/strftime.c: When translating for the extended locale model
1390 use the _l functions.
1391 * time/Makefile (tests): Add tst-ftime_l.
1392 * time/tst-ftime_l.c: New file.
1394 2002-08-28 Roland McGrath <roland@redhat.com>
1396 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1397 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1398 from _nl_find_locale ok if for _nl_C_name.
1400 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1401 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1402 we know they are all linked in.
1404 * NEWS: Added 2.2.6 text from 2.2 branch version.
1406 * time/strptime.c (strptime_internal): Remove spurious const.
1408 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1409 _nl_select_era_entry): Moved to ...
1410 * time/era.c: ... here, new file.
1411 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1412 Add internal_function to definitions. Take an additional argument
1413 giving the `struct locale_data *' to use.
1414 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1415 _nl_parse_alt_digit): Moved to ...
1416 * time/alt_digit.c: ... here, new file.
1417 * time/lc-time-cleanup.c: New file.
1418 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1419 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1420 (_nl_cleanup_time): Declare it.
1421 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1422 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1423 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1424 * time/strftime.c: Pass locale data to helper functions.
1425 * time/strptime.c: Likewise.
1427 * locale/localeinfo.h (struct locale_data): New member `private'
1428 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1429 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1430 * locale/C-collate.c: Update initializer.
1431 * locale/C-identification.c: Likewise.
1432 * locale/C-measurement.c: Likewise.
1433 * locale/C-telephone.c: Likewise.
1434 * locale/C-address.c: Likewise.
1435 * locale/C-name.c: Likewise.
1436 * locale/C-paper.c: Likewise.
1437 * locale/C-time.c: Likewise.
1438 * locale/C-numeric.c: Likewise.
1439 * locale/C-monetary.c: Likewise.
1440 * locale/C-messages.c : Likewise.
1441 * locale/C-ctype.c: Likewise.
1443 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1446 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1448 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1449 (_rtld_global): Use it.
1451 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1452 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1453 object directory. Pass all Versions files to the awk script.
1454 * sysdeps/gnu/errlist-compat.c: Removed.
1455 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1456 first Versions file in the search path which has them.
1457 Allow multiple errlist symbol versions to have the same count of
1459 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1460 of "errlist-compat.c".
1461 * sysdeps/gnu/errlist.c: Regenerated.
1462 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1463 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1464 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1465 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1466 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1467 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1468 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1469 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1470 ECANCELLED if not defined by kernel headers.
1471 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1472 already defined by kernel headers.
1473 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1474 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1475 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1477 * Versions.def (GLIBC_2.3) [librt]: Add.
1479 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1481 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1483 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1484 missing comma to .type directive.
1486 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1488 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1490 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1492 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1494 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1496 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1497 check to close_and_out close. Replace return NULL statements where
1498 fd might be >= 0 with goto close_and_out. Close the file descriptor
1499 when it is no longer needed.
1501 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1503 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1505 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1506 * sysdeps/arm/dl-machine.h: Likewise.
1507 * sysdeps/cris/dl-machine.h: Likewise.
1508 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1509 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1511 2002-08-28 Roland McGrath <roland@redhat.com>
1513 * Makeconfig (default_cflags): Revert unintended change.
1515 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1517 * version.h (VERSION): Bump to 2.2.91.
1519 * configure.in: Disable TLS support by default for now.
1521 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1523 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1526 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1528 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1529 fprintf/fwprintf calls.
1531 2002-08-28 Roland McGrath <roland@redhat.com>
1533 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1534 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1536 * locale/setlocale.c: Declare postload functions weak.
1538 * elf/tst-tls1-static.c: New file.
1539 * elf/tst-tls2-static.c: New file.
1540 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1542 Make uselocale support static linking.
1543 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1544 This file again just defines _nl_C_locobj.
1545 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1546 * locale/global-locale.c: New file. Define _nl_global_locale here,
1547 using all weak references in the initializer.
1548 * locale/Makefile (aux): Add global-locale.
1549 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1550 these unconditional, along with the tsd decl.
1551 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1552 Define it under these conditions.
1553 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1554 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1555 `extern __thread struct locale_data *const *'.
1556 [NL_CURRENT_INDIRECT]
1557 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1558 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1559 the thread variable _nl_current_LC_FOO and also a special absolute
1560 symbol _nl_current_LC_FOO_used.
1561 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1562 Set each _nl_current_LC_FOO symbol to point into the new locale,
1563 using weak references to test if _nl_current_LC_FOO_used was linked in.
1564 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1565 [NL_CURRENT_INDIRECT]: ... with this one.
1566 (_nl_current, _nl_C): Variables removed.
1567 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1568 weak references to _nl_current_LC_FOO_used.
1569 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1570 (free_category): New function, broken out of ...
1571 (free_mem): ... here. Call that.
1572 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1575 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1576 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1577 it is already absolute.
1579 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1580 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1581 [$(build-static) = yes] (tests-static): New variable.
1582 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1584 2002-08-26 Christoph Hellwig <hch@lst.de>
1586 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1587 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1589 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1591 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1593 * sysdeps/s390/Dist: Add bits/link.h.
1595 * sysdeps/sh/Dist: New file.
1597 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1599 * sysdeps/wordsize-32/Dist: New file.
1601 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1602 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1603 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1605 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1608 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1611 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1613 * sysdeps/unix/bsd/sun/Dist: New file.
1615 * sysdeps/unix/bsd/osf/Dist: New file.
1617 * sysdeps/unix/bsd/hp/Dist: New file.
1619 * sysdeps/unix/arm/Dist: New file.
1621 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1623 * sysdeps/mach/hurd/Dist: Add set-init.c.
1625 * sysdeps/i386/Dist: Add bits/link.h.
1627 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1629 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1631 * locale/Makefile (distribute): Add hashval.h.
1633 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1635 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1637 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1638 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1639 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1640 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1642 * libio/stdio.h: Likewise.
1643 * locale/locale.h: Likewise.
1644 * math/math.h: Likewise.
1645 * math/bits/mathcalls.h: Likewise.
1646 * setjmp/setjmp.h: Likewise.
1647 * signal/signal.h: Likewise.
1648 * stdlib/stdlib.h: Likewise.
1649 * string/string.h: Likewise.
1650 * time/time.h: Likewise.
1651 * wcsmbs/wchar.h: Likewise.
1652 * wctype/wctype.h: Likewise.
1654 2002-08-28 Roland McGrath <roland@redhat.com>
1656 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1658 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1659 Roland McGrath <roland@redhat.com>
1661 * locale/hashval.h (compute_hashval): Use prototype defn.
1662 (hashval_t): New macro, defined to unsigned long int
1663 if not already defined.
1664 (compute_hashval): Return hashval_t instead of unsigned long int.
1665 * locale/loadarchive.c (hashval_t): New macro.
1666 * locale/programs/locarchive.c: Include hashval.h directly instead
1668 (compute_hashval, hashval_t): Define these macros first.
1669 (insert_name): Use archive_hashval instead of compute_hashval.
1670 (add_locale, delete_locales_from_archive): Likewise.
1672 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1674 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1675 hash collisions if be_quiet.
1677 2002-08-27 Roland McGrath <roland@redhat.com>
1679 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1680 __uselocale): Don't declare these any more.
1681 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1683 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1684 and treat it as an EOF return.
1685 * sysdeps/unix/readdir_r.c: Likewise.
1687 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1688 From Alexandre Oliva <aoliva@redhat.com>.
1689 * sysdeps/gnu/errlist-compat.c: Regenerated.
1691 2002-08-27 Brian Youmans <3diff@gnu.org>
1693 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1694 wording at request of copyright holder Stephen Moshier.
1695 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1696 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1697 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1698 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1699 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1700 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1701 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1702 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1703 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1704 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1705 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1706 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1707 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1708 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1710 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1712 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1713 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1714 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1715 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1716 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1717 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1718 * wctype/iswctype_l.c (iswctype_l): Likewise.
1720 2002-08-27 Roland McGrath <roland@redhat.com>
1722 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1724 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1725 * stdlib/stdlib.h: Don't declare __*_l names.
1726 * include/stdlib.h: Declare them here instead.
1727 * include/string.h: Don't declare __*_l names.
1728 * string/string.h: Declare them here instead.
1729 * time/time.h: Don't declare __*_l names.
1730 * include/time.h: Declare them here instead.
1731 * wcsmbs/wchar.h: Don't declare __*_l names.
1732 * include/wchar.h: Declare them here instead.
1733 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1734 Don't declare __*_l names.
1735 * include/wctype.h: Declare them here instead.
1736 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1737 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1738 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1739 * include/langinfo.h: Declare it here with __typeof.
1741 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1742 instead, taking an extra __locale_t argument.
1743 * time/Makefile (routines): Add strptime_l.
1744 * time/time.h (__strptime_l, strptime_l): Declare them.
1745 * time/strptime_l.c: New file.
1747 * time/time.h (__strftime_l, strftime_l): Declare them.
1748 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1749 * time/strftime_l.c: New file.
1750 * time/wcsftime_l.c: New file.
1751 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1752 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1753 strftime_l, wcsftime_l.
1754 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1755 or __wcsftime_l instead, taking an extra __locale_t argument.
1757 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1758 (libc: GLIBC_2.3): ... here.
1760 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1762 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1764 * Makefile (distribute): Add LICENSES.
1766 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1769 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1771 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1773 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1775 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1777 * sysdeps/mach/hurd/alpha/Dist: New file.
1779 * sysdeps/arm/Dist: Add bits/link.h.
1781 * sunrpc/Makefile: Distribute thrsvc.
1783 * stdio-common/Makefile: Remove more left-overs from old stdio.
1785 * include/linewrap.h: Removed.
1787 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1789 * intl/Makefile (distribute): Add plural-eval.c.
1791 2002-08-27 Roland McGrath <roland@redhat.com>
1793 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1794 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1795 Say mtab is in either /var/run or /etc.
1797 2002-08-26 Roland McGrath <roland@redhat.com>
1799 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1800 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1802 * sysdeps/gnu/Versions: New file.
1803 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1804 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1805 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1806 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1807 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1808 and _sys_nerr_internal instead of anything else. Make it include
1809 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1810 Make it emit some asm magic if [EMIT_ERR_MAX].
1811 * sysdeps/gnu/errlist.c: Regenerated.
1812 * sysdeps/gnu/errlist-compat.awk: New file.
1813 * sysdeps/gnu/errlist-compat.c: New file (generated).
1814 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1815 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1816 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1817 (SYS_ERRLIST, SYS_NERR): Macros removed.
1818 (sys_nerr, _sys_nerr): Remove these weak aliases.
1819 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1820 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1821 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1823 * include/libc-symbols.h (declare_symbol): New macro.
1824 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1825 * configure.in: New check to define it.
1826 * configure: Regenerated.
1828 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1830 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1831 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1833 * Make-dist: Remove traces of old stdio.
1834 * Makeconfig: Likewise.
1836 * locale/Makefile (localedef-aux): New variable. Only md5
1837 assigned to it. These files are not ddistributed in this directory.
1839 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1840 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1841 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1843 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1845 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1846 set h_errno to NO_RECOVERY [PR libc/4360].
1848 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1850 * libio/Makefile (tests): Add bug-fopena+.
1851 * libio/bug-fopena+.c: New file.
1852 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1853 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1855 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1857 * locale/xlocale.c: Fix the last change. The variable still has
1859 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1860 (__libc_tsd_set): Add _data prefix to variable name.
1862 2002-08-26 Roland McGrath <roland@redhat.com>
1864 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1865 macro with inline function.
1866 (sigset_get_old_mask): Likewise.
1867 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1868 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1869 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1870 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1871 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1872 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1874 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1875 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1877 2002-07-06 Bruno Haible <bruno@clisp.org>
1879 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1880 sigset_get_old_mask): Make it work with larger sigset_t.
1881 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1882 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1883 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1885 2002-08-26 Roland McGrath <roland@redhat.com>
1887 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1888 * manual/filesys.texi (File Times): Document lutimes and futimes.
1889 * misc/Makefile (routines): Add them.
1890 * misc/Versions (libc: GLIBC_2.3): Likewise.
1891 * sysdeps/generic/lutimes.c: New file.
1892 * sysdeps/generic/futimes.c: New file.
1893 * sysdeps/mach/hurd/lutimes.c: New file.
1894 * sysdeps/mach/hurd/futimes.c: New file.
1896 * manual/filesys.texi (File Times): Add explicit note about null
1897 pointer argument to utimes.
1899 2002-08-26 Roland McGrath <roland@frob.com>
1901 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1902 (__ifreq): Add a cast. Remove an unused variable.
1904 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1905 _HURD_THREADVAR_LOCALE.
1907 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1909 * posix/regexec.c (re_search_stub): Return correct match length
1911 * posix/bug-regex10.c: New test.
1912 * posix/Makefile (tests): Add bug-regex10.
1914 2002-08-26 Brian Youmans <3diff@gnu.org>
1916 * COPYING.LIB: Replaced with fresh copy from
1917 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1918 suggested copying permission notice now says version 2.1 instead
1921 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1923 * crypt/crypt_util.c: Likewise.
1924 * crypt/ufc.c: Likewise.
1925 * elf/dl-conflict.c: Likewise.
1926 * elf/dl-iteratephdr.c: Likewise.
1927 * iconv/iconvconfig.h: Likewise.
1928 * malloc/arena.c: Likewise.
1929 * malloc/hooks.c: Likewise.
1930 * malloc/malloc.c: Likewise.
1931 * posix/glob/Makefile.ami: Likewise.
1932 * posix/glob/Makefile.in: Likewise.
1933 * stdlib/gmp-impl.h: Likewise.
1934 * stdlib/gmp.h: Likewise.
1935 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1936 * sysdeps/generic/strnlen.c: Likewise.
1937 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1938 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1939 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1940 * sysdeps/mach/hurd/spawni.c: Likewise.
1941 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1942 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1943 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1944 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1945 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1946 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1948 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1949 Lesser GPL copying permission notice from 2 to 2.1.
1950 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1951 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1952 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1953 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1954 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1955 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1956 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1957 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1958 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1959 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1960 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1961 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1962 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1963 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1964 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1965 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1966 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1967 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1968 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1969 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1970 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1971 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1972 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1973 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1974 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1975 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1976 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1977 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1978 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1979 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1980 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1981 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1982 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1983 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1984 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1985 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1986 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1987 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1988 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1989 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1990 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1991 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1992 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1993 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1994 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1995 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1996 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1997 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1998 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1999 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2000 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2001 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2002 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2003 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2004 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2006 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2007 Moshier and Lesser GPL copying permission notice, per license from
2009 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2010 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2011 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2012 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2013 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2014 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2015 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2016 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2017 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2018 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2019 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2020 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2021 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2022 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2024 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2025 notice, per license from copyright holder Stephen Moshier.
2026 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2027 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2028 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2029 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2030 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2031 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2032 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2033 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2034 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2036 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2038 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2039 (shared-only-routines): Likewise.
2041 2002-08-26 Roland McGrath <roland@redhat.com>
2043 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2044 name of "", store a null pointer instead.
2046 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2047 * configure: Regenerated.
2049 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2050 Initialize this instead of __libc_tsd_LOCALE_data.
2052 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2053 ptsname_r to EINVAL.
2055 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2057 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2058 implementations depend on pthreads.
2059 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2060 * rt/tst-aio64.c (do_test): Likewise.
2061 * rt/tst-aio2.c (do_test): Likewise.
2062 * rt/tst-aio3.c (do_test): Likewise.
2063 * rt/tst-aio4.c (do_test): Likewise.
2064 * rt/tst-aio5.c (do_test): Likewise.
2065 * rt/tst-aio6.c (do_test): Likewise.
2066 * rt/tst-aio7.c (do_test): Likewise.
2068 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2069 void so as to avoid compiler warnings.
2071 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2072 _IO_wide_data_FD, which is never used here.
2075 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2076 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2077 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2079 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2080 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2082 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2083 (closelog): Likewise.
2085 2002-07-06 Bruno Haible <bruno@clisp.org>
2087 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2089 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2090 * sysdeps/unix/alpha/pipe.S: ... here.
2091 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2093 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2095 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2096 * sysdeps/unix/i386/fork.S: Likewise.
2097 * sysdeps/unix/i386/pipe.S: Likewise.
2098 * sysdeps/unix/i386/wait.S: Likewise.
2100 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2101 * sysdeps/unix/arm/fork.S: Likewise.
2103 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2105 (DO_CALL): Swap argument order.
2106 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2108 (DO_CALL): Swap argument order.
2109 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2111 (DO_CALL): Swap argument order.
2112 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2114 (DO_CALL): Swap argument order.
2115 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2117 (DO_CALL): Swap argument order.
2118 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2120 (DO_CALL): Swap argument order.
2121 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2123 (DO_CALL): Swap argument order.
2125 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2126 (L): Define right for ELF.
2127 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2128 Now defined in sysdeps/i386/sysdep.h.
2130 * sysdeps/posix/readv.c: Ansify function definition.
2131 * sysdeps/posix/writev.c: Likewise.
2133 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2134 have the same size. Avoid direct cast from size_t to off_t.
2136 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2137 nul byte in entry[n].ut_user.
2138 (simulate_logout): Likewise.
2140 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2141 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2142 existence of corresponding members of 'struct utmp'.
2143 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2146 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2147 allocate a buffer of at least BUFSIZ bytes, not just of
2148 sizeof (struct dirent).
2150 * sysdeps/generic/glob.c: Include <limits.h>.
2151 (NAME_MAX): Define a fallback.
2152 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2154 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2155 (main): Allocate enough room for a 'struct dirent64' on the stack.
2156 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2159 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2162 * inet/htontest.c: Include <sys/types.h>.
2164 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2166 * include/sys/sysctl.h: Comment fix.
2168 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2170 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2172 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2174 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2175 (__getpeername): New alias.
2176 (__getsockname): New alias.
2177 (__socket): New alias.
2179 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2181 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2182 (__fcntl_internal): New alias.
2183 (__profil): New alias.
2185 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2187 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2188 entry was for getaddr* lookup or not. Add only matching cache
2189 entry. Change all callers [PR libc/4317].
2191 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2192 finding the read position [PR libc/4265].
2193 * libio/Makefile (tests): Add bug-rewind2.
2194 * libio/bug-rewind2.c: New file.
2196 * libio/bug-rewind.c: Fix creation of temp file.
2198 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2200 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2201 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2202 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2203 to ENOENT if no entry is found.
2204 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2206 * nis/nss_compat/compat-initgroups.c: Likewise.
2207 * nis/nss_compat/compat-pwd.c: Likewise.
2208 * nis/nss_compat/compat-spwd.c: Likewise.
2209 * nis/nss_nis/nis-alias.c: Likewise.
2210 * nis/nss_nis/nis-ethers.c: Likewise.
2211 * nis/nss_nis/nis-grp.c: Likewise.
2212 * nis/nss_nis/nis-hosts.c: Likewise.
2213 * nis/nss_nis/nis-initgroups.c: Likewise.
2214 * nis/nss_nis/nis-netgrp.c: Likewise.
2215 * nis/nss_nis/nis-network.c: Likewise.
2216 * nis/nss_nis/nis-proto.c: Likewise.
2217 * nis/nss_nis/nis-publickey.c: Likewise.
2218 * nis/nss_nis/nis-pwd.c: Likewise.
2219 * nis/nss_nis/nis-rpc.c: Likewise.
2220 * nis/nss_nis/nis-service.c: Likewise.
2221 * nis/nss_nis/nis-spwd.c: Likewise.
2222 * resolv/nss_dns/dns-host.c: Likewise.
2223 * resolv/nss_dns/dns-network.c: Likewise.
2224 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2225 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2226 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2227 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2228 * nis/nss_nisplus/nisplus-network.c: Likewise.
2229 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2230 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2231 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2232 * nis/nss_nisplus/nisplus-service.c: Likewise.
2233 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2234 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2235 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2236 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2237 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2239 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2240 declaring __restore and __restore_rt as hidden (if possible).
2242 2002-08-25 Roland McGrath <roland@redhat.com>
2244 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2246 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2247 (getutent_r_file, internal_getut_r): Updated all callers.
2248 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2250 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2252 * locale/programs/locale.c: Don't print aliases for non-existing
2253 locales for 'locale -a'.
2254 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2256 2002-07-19 H.J. Lu <hjl@gnu.org>
2258 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2260 2002-07-16 H.J. Lu <hjl@gnu.org>
2262 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2264 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2266 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2268 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2269 not moved ahead of the fputs call.
2270 * elf/tst-tlsmod2.c (in_dso): Likewise.
2271 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2272 * elf/tst-tlsmod4.c (in_dso): Likewise.
2274 2002-08-25 Andreas Schwab <schwab@suse.de>
2276 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2278 2002-08-25 Roland McGrath <roland@redhat.com>
2280 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2281 resetting handler, to avoid the possibility of a spurious SIGALRM
2282 delivered to the user's handler.
2283 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2285 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2286 set -fkeep-inline-functions, which is not needed for the current file.
2288 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2289 (_dl_setup_hash): Add attribute_hidden.
2290 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2291 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2292 (_dl_new_object, _dl_map_object_deps): Likewise.
2293 (_dl_map_object_deps_internal): Remove decl.
2294 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2296 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2297 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2298 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2299 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2300 instead relying on the compiler to produce only GOTOFF variable refs.
2302 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2304 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2306 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2307 inline to avoid defining it in every file which includes this header.
2309 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2310 defining DONT_USE_BOOTSTRAP_MAP.
2312 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2313 * libio/tst-mmap-setvbuf.c (main): Likewise.
2314 * libio/tst-widetext.c (main): Likewise.
2316 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2318 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2319 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2321 * sysdeps/i386/elf/configure.in: Unconditionally define
2322 PI_STATIC_AND_HIDDEN.
2323 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2324 PI_STATIC_AND_HIDDEN is defined as well.
2325 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2327 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2329 * sysdeps/ia64/bzero.S: Define __bzero as well.
2331 * locale/programs/charmap.c (charmap_new_char): Don't use
2332 ULONG_MAX as maximum UCS4 value.
2334 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2336 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2338 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2339 * malloc/malloc.c (mALLINFo): Likewise.
2341 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2343 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2344 examining result of _IO_do_flush call.
2346 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2347 Use prec not spec when sizing buffers.
2349 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2350 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2351 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2352 * stdio-common/vfscanf.c (inchar): Likewise.
2353 * misc/efgcvt_r.c (fcvt_r): Likewise.
2354 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2355 * elf/readlib.c (process_file): Likewise.
2356 * elf/sprof.c (load_profdata): Likewise.
2357 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2358 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2359 * locale/programs/charmap.c (charmap_read): Likewise.
2360 * libio/fileops.c: Likewise.
2361 * libio/fmemopen.c: Likewise.
2362 * stdlib/strtod.c: Likewise.
2363 * elf/dl-load.c: Likewise.
2364 * iconv/iconvconfig.c: Likewise.
2365 * iconv/iconv_prog.c (process_block): Likewise.
2366 * elf/rtld.c (dl_main): Likewise.
2368 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2369 macro to calm down the compiler.
2371 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2373 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2375 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2376 placement of errno definition.
2377 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2378 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2379 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2380 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2381 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2383 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2384 from 1024 to 65536, to avoid buffer overrun.
2386 2002-08-16 Paul Eggert <eggert@twinsun.com>
2388 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2389 from 1024 to 65536, to avoid buffer overrun.
2390 * resolv/res_query.c (MAXPACKET): Likewise.
2392 2002-08-24 Andreas Jaeger <aj@suse.de>
2394 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2396 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2398 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2401 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2402 Patch by Simon Gee <simong@agile.tv>.
2404 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2405 Prefer reading /proc/stat since it is more uniform across
2408 * manual/texinfo.tex: Update to latest official version.
2410 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2411 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2412 * sysdeps/gnu/bits/shm.h: Likewise.
2413 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2414 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2415 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2416 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2417 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2418 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2419 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2420 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2421 since this is what the kernel says.
2423 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2424 since ssize_t is needed as well. Replace const with __const.
2426 2002-08-23 Roland McGrath <roland@redhat.com>
2428 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2429 __malloc_hook, __realloc_hook, __memalign_hook,
2430 __after_morecore_hook): Variable definitions moved to ...
2431 * malloc/malloc.c: ... here, so as to be before all references.
2433 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2434 global variable reference in an unused asm parameter, to ensure the
2435 compiler has set up the GOT register before we use it.
2437 * malloc/hooks.c: Move variable definitions ahead of uses.
2438 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2439 initializers that make reference to variables they define.
2441 2002-08-23 Andreas Jaeger <aj@suse.de>
2443 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2444 alloca, free, qsort.
2446 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2448 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2449 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2451 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2453 * sysdeps/generic/fgetxattr.c: New file.
2454 * sysdeps/generic/flistxattr.c: New file.
2455 * sysdeps/generic/fremovexattr.c: New file.
2456 * sysdeps/generic/fsetxattr.c: New file.
2457 * sysdeps/generic/getxattr.c: New file.
2458 * sysdeps/generic/listxattr.c: New file.
2459 * sysdeps/generic/lgetxattr.c: New file.
2460 * sysdeps/generic/llistxattr.c: New file.
2461 * sysdeps/generic/lremovexattr.c: New file.
2462 * sysdeps/generic/lsetxattr.c: New file.
2463 * sysdeps/generic/removexattr.c: New file.
2464 * sysdeps/generic/setxattr.c: New file.
2465 * misc/Makefile (headers): Add sys/xattr.h.
2466 (routines): Add *xattr calls.
2467 * misc/Versions: Add *xattr calls with version 2.3.
2468 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2469 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2470 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2471 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2472 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2473 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2474 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2475 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2477 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2479 * sysdeps/powerpc/elf/libc-start.c
2480 (__cache_line_size): Declare.
2481 (__aux_init_cache): New function.
2482 (__libc_start_main): Change type of `auxvec' parameter to
2483 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2485 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2486 (__cache_line_size): Declare.
2487 (__aux_init_cache): New function.
2488 (DL_PLATFORM_INIT): Define.
2489 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2490 value to select the correct stride for dcbz.
2492 2002-08-22 Andreas Jaeger <aj@suse.de>
2494 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2497 2002-08-22 Roland McGrath <roland@redhat.com>
2499 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2500 position indicated by locrectab against file bounds before rounding to
2501 page size. In mapping loop, always set TO before breaking out of
2502 contiguous range coalescing loop.
2504 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2505 (or MAP_COPY if available) instead of MAP_SHARED.
2507 * scripts/firstversions.awk: When encountering a version newer than
2508 the specified earliest version, be sure to emit the specified earliest
2509 version first if any renaming of an older version to that has been.
2511 2002-08-21 Roland McGrath <roland@redhat.com>
2513 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2514 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2515 (Configuring and compiling): Don't mention older GCC versions any more.
2516 * INSTALL: Regenerated.
2518 * manual/install.texi (Configuring and compiling, Installation,
2519 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2521 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2522 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2523 and with noinline otherwise. Remove hack alloca use to prevent
2524 inlining, we can ask for it explicitly nowadays.
2526 * dlfcn/bug-dlsym1.c: New file.
2527 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2528 * dlfcn/Makefile (distribute): Add them.
2529 (tests): Add bug-dlsym1 here.
2530 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2531 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2532 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2534 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2536 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2537 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2539 (_dl_start): Don't use local bootstrap_map variable if
2540 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2541 pass bootstrap_map to _dl_start_final in this case either. Don't
2542 pass start_time to _dl_start_final ever.
2543 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2545 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2546 This cripples the scope lists necessary to search for symbols in
2547 dependencies which are not in the global scope.
2549 * include/setjmp.h (__libc_longjmp): Add declaration.
2551 2002-08-21 Andreas Jaeger <aj@suse.de>
2553 * sysdeps/x86_64/_mcount.S: Fix assembler.
2555 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2556 with biarch support.
2558 2002-08-21 Andreas Jaeger <aj@suse.de>
2560 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2562 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2564 * sysdeps/x86_64/machine-gmon.h: New file.
2565 * sysdeps/x86_64/_mcount.S: New file.
2567 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2569 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2570 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2571 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2572 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2573 to TL_INIT_TP. Otherwise pass 1.
2574 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2575 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2577 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2579 * locale/programs/localedef.c (add_to_readlist): Error about
2580 circular dependencies only if the locale in question hasn't
2582 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2583 CTYPE_LOCALE to load_locale.
2584 * locale/programs/locfile.c (locfile_read): Don't include
2585 unneeded but available locales in locale_mask.
2587 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2588 print any messages about enlarging archive.
2590 2002-08-20 Brian Youmans <3diff@gnu.org>
2592 * manual/contrib.texi: Removed licenses, added acknowledgements
2593 for contributions by Intel, IBM, Craig Metz.
2594 * LICENSES: New file, contains the text of all non-FSF licenses in the
2595 distribution that require putting the notice in the accompanying
2597 * README.template, README: Mention LICENSES.
2599 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2600 new one modelled on the modern BSD license, per recent letter
2601 of permission from CMU.
2602 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2604 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2605 from IBM to FSF, per the recent Software Letter. Changed the
2606 distribution terms from GPL to LGPL.
2608 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2609 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2610 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2611 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2612 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2613 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2614 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2615 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2616 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2617 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2619 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2620 from IBM to FSF, per the recent Software Letter. Corrected the
2621 text of the copying permission notice to say Lesser GPL instead
2622 of GPL in warranty disclaimer paragraph.
2623 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2624 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2625 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2626 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2627 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2628 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2629 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2630 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2631 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2632 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2633 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2634 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2635 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2636 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2637 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2638 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2639 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2640 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2641 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2642 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2643 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2645 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2646 permission notice to say Lesser GPL instead of GPL in warranty
2647 disclaimer paragraph.
2648 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2649 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2650 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2651 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2652 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2653 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2654 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2655 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2656 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2657 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2658 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2659 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2660 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2661 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2662 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2663 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2664 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2665 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2666 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2667 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2668 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2669 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2670 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2672 2002-08-20 Roland McGrath <roland@redhat.com>
2674 Fix ABI compatibility with libc compiled with old tools on powerpc.
2675 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2676 and Jack Howarth <howarth@bromo.med.uc.edu>.
2677 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2678 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2679 pass -DHAVE_DOT_HIDDEN for these files.
2680 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2682 * sysdeps/powerpc/divdi3.c: New file.
2683 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2684 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2686 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2688 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2689 partially overlapping mappings. Remove unneeded (char *) casts.
2690 Never allow duplication of ranges in mapped areas.
2692 2002-08-20 Roland McGrath <roland@redhat.com>
2694 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2695 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2697 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2699 * include/unistd.h: Don't hide _exit.
2701 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2702 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2703 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2704 argument 1 to TLS_INIT_TP.
2705 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2707 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2709 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2710 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2711 memory allocation to...
2712 (allocate_dtv): ...here. New function.
2713 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2714 call allocate_dtv instead of _dl_allocate_tls_storage.
2715 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2716 (_dl_get_tls_static_info): New function.
2717 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2718 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2720 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2722 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2723 immediately if result == NULL.
2725 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2727 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2729 2002-08-18 Roland McGrath <roland@frob.com>
2731 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2732 instead of __file_name_split.
2733 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2735 * sysdeps/mach/hurd/dl-sysdep.c
2736 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2737 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2739 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2741 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2742 in change before last: MAX -> MIN.
2744 2002-08-15 Roland McGrath <roland@redhat.com>
2746 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2747 if seek would go past it.
2748 (mmap_remap_check): If file position is at or past EOF after check,
2749 leave read pointers at EOF and don't seek.
2751 * libio/tst-mmap-offend.c: New file.
2752 * libio/Makefile (tests): Add it.
2754 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2755 the name as passed, rather than the name in the archive dictionary.
2757 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2759 * csu/Makefile: Define elide-routines.os not static-only-routines.
2761 * include/sched.h (__clone): Add varargs at the end.
2763 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2765 (TLS_INIT_HELPER): If defined, use it.
2766 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2768 2002-08-15 Roland McGrath <roland@redhat.com>
2770 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2771 on L->l_prev; it can happen under rtld --verify too.
2773 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2774 header separately, just map an initial window of 2MB from the file
2775 and remap if that is not large enough to cover the whole header.
2777 2002-08-15 Andreas Jaeger <aj@suse.de>
2779 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2781 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2782 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2783 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2784 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2785 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2786 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2787 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2788 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2789 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2790 Patch by Andreas Gruenbacher <agruen@suse.de>.
2792 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2794 2002-08-14 Roland McGrath <roland@redhat.com>
2796 * locale/locarchive.h (struct locale_category_data): Give this name to
2797 the type of locale_data_t's elements.
2798 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2799 (add_locale): Use that to sort the categories by size and put all
2800 those that fit into two pages into the LC_ALL block, instead of
2801 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2802 (show_archive_content): Detect categories inside LC_ALL block
2803 directly, instead of hard-coding.
2804 (oldlocrecentcmp): Compare just on file locations used.
2806 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2808 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2809 (oldlocrecentcmp): New function.
2810 (enlarge_archive): Re-add locales in the order they were added
2812 (add_locale): Put all the small locale files together, if the small
2813 locale file block would occupy less pages if page size aligned, align
2815 (show_archive_content): Adjust for locale archives optimized for speed.
2817 2002-08-14 Roland McGrath <roland@frob.com>
2819 * configure.in: Use "MISSING" as not-found value for MIG.
2820 * sysdeps/mach/configure.in: Fatal if mig not found.
2821 * configure, sysdeps/mach/configure: Regenerated.
2823 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2825 * locale/loadarchive.c (archfname): Add missing slash.
2827 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2828 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2830 2002-08-12 Roland McGrath <roland@redhat.com>
2832 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2833 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2834 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2835 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2836 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2837 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2838 * sysdeps/generic/waitpid.c: Likewise.
2840 * include/net/if.h: New file. Use libc_hidden_proto
2841 for if_nametoindex and if_indextoname.
2842 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2843 * sysdeps/mach/hurd/if_index.c: Likewise.
2844 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2846 * include/grp.h (setgroups): Add libc_hidden_proto.
2847 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2848 * sysdeps/mach/hurd/setgroups.c: Likewise.
2849 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2850 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2852 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2854 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2855 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2856 * sysdeps/generic/setegid.c (setegid): Likewise.
2857 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2858 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2859 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2860 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2861 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2862 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2863 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2864 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2865 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2866 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2867 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2868 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2869 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2871 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2872 __lxstat_internal, __lxstat64_internal): Remove.
2873 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2875 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2876 Remove INTDEF where present, remove #undef at the beginning.
2877 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2878 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2879 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2880 * sysdeps/generic/xstat.c (__xstat): Likewise.
2881 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2882 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2883 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2884 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2885 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2886 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2887 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2888 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2889 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2890 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2891 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2892 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2893 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2894 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2895 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2896 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2897 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2898 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2899 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2900 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2901 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2902 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2903 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2904 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2905 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2906 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2907 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2908 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2909 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2910 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2911 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2912 * sysdeps/unix/xstat.c (__xstat): Likewise.
2914 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2915 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2916 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2917 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2918 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2919 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2920 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2922 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2923 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2924 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2925 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2926 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2927 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2928 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2929 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2931 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2932 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2933 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2934 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2935 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2936 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2937 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2938 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2940 * include/string.h (strcoll): Add libc_hidden_proto.
2941 * string/strcoll.c (strcoll): Add libc_hidden_def.
2943 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2945 2002-08-11 Philip Blundell <philb@gnu.org>
2947 * sysdeps/arm/Makefile: New file.
2949 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2951 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2952 by another '|', end of regex or enclosing ')', clear branch.
2953 * posix/bug-regex9.c: New test.
2954 * posix/Makefile (tests): Add bug-regex9.
2956 2002-08-12 Roland McGrath <roland@redhat.com>
2958 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2959 start count condition, use TOTAL instead of variable that was never
2960 set. Fix outer loop termination condition to TOTAL >= after update.
2962 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2963 dl_tls_static_align and dl_tls_static_nelem.
2965 2002-08-11 Roland McGrath <roland@redhat.com>
2967 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2968 of the TLS macros, otherwise the compiler might not have initialized
2969 the PIC register yet when we use the PLT via asm.
2970 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2971 * elf/tst-tlsmod2.c (in_dso): Likewise.
2973 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2975 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2976 Evaluate argument exactly once. Remove __volatile__ from asm's.
2978 * include/unistd.h: Use libc_hidden_proto for getdomainname
2980 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2981 * sysdeps/mach/hurd/getdomain.c: Likewise.
2982 * sysdeps/unix/getlogin_r.c: Likewise.
2983 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2984 * sysdeps/generic/getlogin_r.c: Likewise.
2986 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2987 * sunrpc/rtime.c: Add libc_hidden_def.
2989 * include/string.h: Use libc_hidden_proto for basename.
2990 * string/basename.c [_LIBC]: Add libc_hidden_def.
2992 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2994 * locale/loadarchive.c: munmap -> __munmap throughout.
2996 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2997 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2998 * sysdeps/generic/gai_strerror.c: Likewise.
3000 * include/sys/errno.h: New file.
3002 * include/signal.h: No libc_hidden_proto for raise,
3003 __libc_current_sigrtmin, __libc_current_sigrtmax.
3004 These need to be overridden by linuxthreads.
3005 * sysdeps/posix/raise.c: Reverted.
3006 * sysdeps/generic/raise.c: Reverted.
3007 * signal/allocrtsig.c: Reverted.
3009 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3011 2002-08-10 Roland McGrath <roland@redhat.com>
3013 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3014 * locale/localeinfo.h: Declare it.
3015 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3016 current locale if it's not in the file list.
3017 Call _nl_archive_subfreeres.
3019 2002-08-10 Andreas Jaeger <aj@suse.de>
3021 * sysdeps/i386/strchr.S: Add comment.
3023 2002-08-10 Roland McGrath <roland@redhat.com>
3025 * include/wchar.h (putwc): Use libc_hidden_proto.
3026 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3027 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3028 * stdio-common/dprintf.c: Add libc_hidden_def.
3029 * stdio-common/fprintf.c: Likewise.
3030 * stdio-common/sprintf.c: Likewise.
3031 * stdio-common/sscanf.c: Likewise.
3032 * libio/iofwrite.c: Likewise.
3033 * libio/memstream.c: Likewise.
3034 * libio/putwc.c: Likewise.
3035 * stdio-common/perror.c: Likewise.
3036 * sysdeps/posix/remove.c: Likewise.
3037 * sysdeps/generic/remove.c: Likewise.
3038 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3039 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3041 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3043 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3044 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3045 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3046 towlower, towupper): Add libc_hidden_weak.
3048 * include/bits/dlfcn.h: New file.
3049 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3051 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3052 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3053 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3054 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3055 * include/shadow.h (_nss_files_parse_spent): Likewise.
3056 * include/netdb.h (_nss_files_parse_protoent,
3057 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3058 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3059 (LINE_PARSER): Use it.
3060 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3061 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3063 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3066 * manual/debug.texi (%MENU%): Remove trailing dot.
3067 Reported by <hayastan132@hotmail.com>.
3069 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3072 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3075 2002-08-09 Roland McGrath <roland@redhat.com>
3077 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3078 name to find codeset name (if any) and normalize it. If the
3079 normalized name differs, look up only that in the archive.
3080 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3081 contains a codeset, normalize the codeset store only the normalized
3082 name in the archive. If not, add an alias containing the locale's
3083 normalized codeset name. Apply codeset name normalization when
3084 matching entries in the alias file.
3086 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3087 decrement HEAD->namehash_used here.
3088 (add_locale): Only need to insert name string when name_offset != 0.
3090 * locale/programs/localedef.c (options): Add -A/--alias-file.
3091 (alias_file): New variable.
3092 (parse_opt): Grok -A, set that.
3093 * locale/programs/localedef.h: Declare it.
3095 * locale/locarchive.h (struct locrecent): Add `refs' member.
3096 * locale/programs/locarchive.c (insert_name): New function, broken out
3098 (add_locale_to_archive): ... here. Call that.
3099 (add_alias): New function.
3100 (add_locale): New static function, add_locale_to_archive renamed.
3101 (add_locale_to_archive): Call that and use add_alias to add an alias
3102 for the name with codeset if the given name lacks it.
3103 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3105 * locale/Makefile (routines): Add loadarchive.
3106 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3107 (_nl_load_locale_from_archive): New function.
3108 * locale/localeinfo.h: Declare it.
3109 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3110 try _nl_load_locale_from_archive first.
3112 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3113 broken out of _nl_load_locale.
3114 (_nl_load_locale): Call that.
3115 * locale/localeinfo.h: Declare it.
3116 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3117 (struct locale_data): Remove unused member `options'.
3118 * locale/findlocale.c (_nl_remove_locale): Update uses.
3119 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3120 * locale/C-collate.c: Update initializer.
3121 * locale/C-identification.c: Likewise.
3122 * locale/C-measurement.c: Likewise.
3123 * locale/C-telephone.c: Likewise.
3124 * locale/C-address.c: Likewise.
3125 * locale/C-name.c: Likewise.
3126 * locale/C-paper.c: Likewise.
3127 * locale/C-time.c: Likewise.
3128 * locale/C-numeric.c: Likewise.
3129 * locale/C-monetary.c: Likewise.
3130 * locale/C-messages.c : Likewise.
3131 * locale/C-ctype.c: Likewise.
3133 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3134 use CHAR_BIT instead of BITSPERBYTE.
3136 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3137 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3138 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3139 (_nl_remove_locale): Likewise.
3140 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3142 * locale/findlocale.c (_nl_default_locale_path): New variable.
3143 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3144 * locale/localeinfo.h: Declare it.
3145 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3146 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3147 * locale/newlocale.c (__newlocale): Likewise.
3149 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3150 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3151 * sysdeps/generic/morecore.c: Likewise.
3152 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3153 (__libc_current_sigrtmax): Likewise.
3155 2002-08-08 Roland McGrath <roland@redhat.com>
3157 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3158 * catgets/open_catalog.c (__open_catalog): Likewise.
3160 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3161 from typo INITIAL_NUM_NANES.
3162 (create_archive): Update use.
3164 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3166 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3168 2002-08-08 Roland McGrath <roland@frob.com>
3170 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3172 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3174 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3175 else and undefine after including wcstol_l.c.
3176 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3178 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3180 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3182 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3184 * configure.in: Make the test for broken_alias_attribute stricter.
3186 2002-05-24 Robert Love <rml@tech9.net>
3188 * posix/Makefile (routines): Add sched_getaffinity and
3190 * posix/sched.h: Add declarations for sched_getaffinity and
3192 * sysdeps/generic/sched_getaffinity.c: New file.
3193 * sysdeps/generic/sched_setaffinity.c: New file.
3194 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3197 2002-08-06 Andreas Schwab <schwab@suse.de>
3199 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3201 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3203 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3206 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3207 It is known to be defined.
3209 * include/string.h: Define index and rindex only if _ISOMAC is not
3212 * elf/rtld.c: Include <errno.h>.
3213 * sysdeps/generic/libc-tls.c: Likewise.
3215 2002-08-07 Roland McGrath <roland@redhat.com>
3217 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3219 (precsize_aton): Likewise.
3221 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3222 the static symbols added in the last change (doofus is me).
3224 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3225 loop to notice missing categories in a composite name.
3227 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3228 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3229 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3230 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3232 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3234 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3236 2002-08-07 Roland McGrath <roland@redhat.com>
3238 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3239 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3240 Reported by Jakub Jelinek <jakub@redhat.com>.
3242 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3244 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3247 2002-08-06 Roland McGrath <roland@redhat.com>
3249 * include/getopt.h: Put private decls inside [_GETOPT_H].
3250 Use libc_hidden_proto for getopt_long, getopt_long_only.
3251 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3252 Add libc_hidden_def.
3254 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3255 Define as a macro for __dl_iterate_phdr.
3257 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3258 made static. Add __ name as a strong alias.
3259 (internal_endnetgrent): Likewise.
3260 (internal_getnetgrent_r): Likewise.
3262 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3264 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3265 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3266 all *_l functions with no __ prefix.
3267 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3268 * ctype/ctype_l.c: Likewise.
3269 * locale/nl_langinfo.c: Likewise.
3270 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3271 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3272 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3273 * wctype/wctype.h [__USE_GNU]: Likewise.
3274 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3275 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3276 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3277 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3278 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3279 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3280 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3281 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3282 (__wcscasecmp_l): Add libc_hidden_def.
3283 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3284 (__wcsncasecmp_l): Add libc_hidden_def.
3285 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3286 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3287 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3288 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3289 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3290 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3291 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3292 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3293 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3294 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3295 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3296 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3297 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3298 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3300 2002-08-05 Roland McGrath <roland@redhat.com>
3302 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3303 netname2user, host2netname, user2netname, key_gendes.
3304 * sunrpc/netname.c: Add libc_hidden_def.
3305 * sunrpc/key_call.c: Likewise.
3307 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3309 * inet/getnameinfo.c: Add libc_hidden_def.
3310 * sysdeps/generic/getaddrinfo.c: Likewise.
3311 * sysdeps/posix/getaddrinfo.c: Likewise.
3313 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3314 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3315 * wcsmbs/wmemset.c: Add libc_hidden_def.
3317 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3318 (index, rindex): Define as macros for strchr, strrchr.
3320 * string/envz.c (envz_strip): index -> strchr
3322 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3323 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3325 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3326 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3328 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3329 * stdlib/wctomb.c: Add libc_hidden_def.
3331 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3332 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3333 * resolv/herror.c: Likewise.
3334 * inet/rcmd.c: Add libc_hidden_def.
3335 * inet/ruserpass.c: Likewise.
3336 * inet/getnetgrent_r.c: Likewise.
3338 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3339 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3340 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3341 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3343 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3344 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3346 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3348 (__libc_system): Call it, putting just the line == NULL test here.
3350 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3351 variables work right.
3353 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3354 * elf/dl-close.c (_dl_close): Likewise.
3356 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3357 in6addr_any, in6addr_loopback. Remove decls for
3358 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3359 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3360 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3361 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3362 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3363 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3364 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3366 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3368 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3370 * inet/ether_aton_r.c: Add libc_hidden_def.
3371 * inet/ether_ntoa_r.c: Likewise.
3373 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3375 * sunrpc/svc.c: Add libc_hidden_def.
3376 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3377 pmap_set, pmap_unset.
3378 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3379 * sunrpc/pm_getport.c: Likewise.
3380 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3381 * sunrpc/publickey.c: Add libc_hidden_def.
3383 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3385 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3386 the other memset call in this function.
3388 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3389 at correct index. Clear BSS region now that memalign is used.
3391 2002-08-05 Roland McGrath <roland@redhat.com>
3393 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3394 * sysdeps/generic/uname.c: Add libc_hidden_def.
3395 * sysdeps/mach/hurd/uname.c: Likewise.
3397 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3399 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3400 wcspbrk): Add libc_hidden_proto.
3401 * time/strftime.c (my_strftime): Add libc_hidden_def.
3402 (strftime): Remove libc_hidden_def.
3403 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3404 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3405 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3406 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3407 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3408 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3410 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3411 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3412 __rpc_thread_createerr): Add libc_hidden_proto.
3413 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3414 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3415 __rpc_thread_createerr): Add libc_hidden_def.
3417 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3418 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3419 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3420 clnt_perror, clnt_sperror): Add libc_hidden_def.
3421 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3423 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3425 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3426 * sunrpc/des_soft.c (des_setparity): Likewise.
3428 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3429 Add libc_hidden_proto.
3430 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3431 Add libc_hidden_def.
3433 2002-08-05 Roland McGrath <roland@redhat.com>
3435 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3436 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3437 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3438 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3439 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3440 old data, abandoning the original memory allocated by rtld at startup,
3441 instead of calling realloc normally.
3443 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3445 * po/fr.po: Update from translation team.
3447 2002-08-04 Roland McGrath <roland@redhat.com>
3449 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3450 then generate a dummy module under the given name, obeying the
3451 normal rules for the "caller" field.
3453 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3454 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3456 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3457 weak here; we declare it weak or strong in the one place we use it.
3458 * sysdeps/generic/libc-start.c: ... which is here.
3459 Don't make the decl weak if [USE_TLS], since static programs need TLS
3460 setup even when single-threaded.
3462 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3464 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3465 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3466 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3467 all these variables.
3469 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3471 * include/stdio.h: Don't define macro magic to redirect function
3472 calls if _ISOMAC is defined.
3474 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3477 2002-08-04 Roland McGrath <roland@redhat.com>
3479 * stdlib/lrand48_r.c: Add libc_hidden_def.
3481 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3482 TCB with __libc_memalign instead of mmap.
3483 (_dl_deallocate_tls): Free it with free instead of munmap.
3485 * Makerules (cpp-srcs-left): When setting this to run
3486 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3487 words. Combine the two loops into one on the concatenated list,
3488 including those as well as $(test-srcs).
3490 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3491 since we align here with optimally minimal waste anyway.
3492 (malloc): Just call that.
3494 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3497 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3498 to compute memory location for l_tls_initimage.
3499 * elf/rtld.c (_dl_start): Likewise.
3500 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3502 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3503 because the .d file is generated in the non-shared case and
3504 so fails to catch them otherwise.
3506 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3507 split out of _dl_allocate_tls.
3508 (_dl_allocate_tls_init): Likewise.
3509 (_dl_allocate_tls): Call those.
3510 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3511 * elf/rtld.c (dl_main): Call them separately instead of calling
3512 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3513 is finished, so that the initializer data has been relocated before we
3514 copy it into the main thread's TLS block.
3516 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3517 loop conditions, prevented the last used module from being initialized.
3519 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3521 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3522 if glob resp. globfree are not macros.
3523 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3524 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3525 Add libc_hidden_ver.
3526 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3528 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3529 instead of libc_hidden_weak.
3530 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3531 libc_hidden_ver instead of libc_hidden_def.
3532 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3533 libc_hidden_ver instead of libc_hidden_def.
3534 (wcstoll, wcstoq): Remove libc_hidden_weak.
3535 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3537 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3539 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3541 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3544 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3546 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3547 to access _sys_siglist.
3548 * string/strsignal.c: Likewise.
3549 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3550 * sysdeps/gnu/siglist.c: Likewise.
3551 * sysdeps/unix/siglist.c: Likewise.
3552 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3554 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3556 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3558 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3560 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3562 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3563 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3564 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3566 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3567 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3569 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3570 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3571 and __gconv_get_cache respectively.
3572 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3573 defined static. Change all users.
3574 (__gconv_get_cache): New function.
3575 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3576 (__gconv_get_alias_db): New function.
3577 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3578 (__conv_modules_db): Likewise.
3579 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3580 and __gconv_get_alias_db.
3581 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3584 * include/stdlib.h: Add prototype and libc_hidden_proto for
3586 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3588 * malloc/obstack.c: Remove fputs macro.
3590 * malloc/mtrace.c: Remove fopen macro.
3592 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3594 * manual/debug.texi: Fix spelling to programmatically.
3595 Reported by <hayastan132@hotmail.com>.
3597 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3599 * include/libio.h: Add libc_hidden_proto for __uflow.
3600 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3601 fgetpos to _IO_* names.
3602 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3603 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3604 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3605 putwc_unlocked, vswscanf.
3606 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3607 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3608 * libio/fseek.c: Likewise.
3609 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3611 * libio/genops.c (__uflow): Add libc_hidden_def.
3612 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3613 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3614 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3615 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3616 * libio/iofread_u.c (fread_unlocked): Likewise.
3617 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3618 * libio/iovswscanf.c (vswscanf): Likewise.
3619 * libio/putwc_u.c (putwc_unlocked): Likewise.
3620 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3621 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3622 * malloc/mtrace.c: Likewise.
3624 * sunrpc/clnt_perr.c: Remove fputs macro.
3625 * sunrpc/svc_simple.c: Likewise.
3626 * sunrpc/svc_tcp.c: Likewise.
3627 * sunrpc/svc_udp.c: Likewise.
3628 * sunrpc/xdr_rec.c: Likewise.
3629 * sunrpc/xdr_ref.c: Likewise.
3631 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3632 iconv_prog, linereader, and charmap-dir.
3633 * locale/Makefile: Likewise for locale and charmap-dir.
3634 * malloc/Makefile: Likewise for memusagestat.
3635 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3636 * sunrpc/Makefile: Likewise for rpc_main.
3637 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3638 * timezone/Makefile: Likewise for zic.
3640 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3642 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3643 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3644 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3645 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3648 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3650 * libio/genops.c (__underflow): Add libc_hidden_def.
3651 * libio/wgenops.c (__wuflow): Likewise.
3652 (__wunderflow): Likewise.
3654 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3655 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3657 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3658 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3660 * include/string.h: Add libc_hidden_proto for __strverscmp.
3661 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3663 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3664 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3665 * sysdeps/posix/sysconf.c: Likewise.
3666 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3667 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3669 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3670 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3671 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3672 __iswxdigit_l, __towlower_l, __towupper_l.
3673 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3674 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3676 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3677 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3678 * sysdeps/mach/hurd/xmknod.c: Likewise.
3679 * sysdeps/unix/xmknod.c: Likewise.
3680 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3681 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3682 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3684 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3686 2002-08-03 Roland McGrath <roland@redhat.com>
3688 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3690 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3691 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3692 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3693 * sysdeps/mach/hurd/setpriority.c: Likewise.
3694 * sysdeps/mach/hurd/getpriority.c: Likewise.
3695 * sysdeps/generic/setpriority.c: Likewise.
3696 * sysdeps/generic/getpriority.c: Likewise.
3698 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3699 * malloc/mcheck.c: Add libc_hidden_def.
3701 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3702 * misc/hsearch_r.c: Add libc_hidden_def.
3704 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3705 * posix/fnmatch.c: Add libc_hidden_weak.
3707 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3708 execl, execle, execlp, execvp, getpid, getsid.
3709 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3710 * sysdeps/unix/alarm.c: Likewise.
3711 * posix/confstr.c: Likewise.
3712 * posix/execvp.c: Likewise.
3713 * posix/execlp.c: Likewise.
3714 * posix/execle.c: Likewise.
3715 * posix/execl.c: Likewise.
3716 * sysdeps/generic/getsid.c: Likewise.
3717 * sysdeps/mach/hurd/getsid.c: Likewise.
3718 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3719 * sysdeps/mach/hurd/getpid.c: Likewise.
3721 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3722 qecvt_r, qfcvt_r, lrand48_r.
3723 * misc/efgcvt_r.c: Add libc_hidden_def.
3725 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3726 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3728 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3729 * locale/nl_langinfo.c: Add libc_hidden_def.
3731 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3732 * sysdeps/generic/glob.c: Add libc_hidden_def.
3733 * sysdeps/generic/glob64.c: Likewise.
3734 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3736 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3738 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3740 * locale/setlocale.c (_nl_current_names): Variable moved ...
3741 * locale/localename.c (_nl_current_names): ... here, new file.
3742 Make it global, with attribute_hidden.
3743 * locale/localeinfo.h: Declare it.
3744 * locale/Makefile (aux): Add localename.
3745 * locale/localename.c (__current_locale_name): New function.
3746 * include/locale.h (__current_locale_name): Declare it.
3747 * intl/dcigettext.c (guess_category_value): Use that instead of
3750 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3751 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3752 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3753 * locale/newlocale.c: Add alias to __ name.
3754 * locale/duplocale.c: Likewise.
3755 * locale/freelocale.c: Likewise.
3756 * locale/uselocale.c: New file.
3757 * locale/Makefile (routines): Add it.
3758 * locale/Versions (libc: GLIBC_2.3): New set.
3759 Add newlocale, duplocale, freelocale, uselocale.
3760 (libc: GLIBC_PRIVATE): Add __uselocale.
3762 * locale/localeinfo.h [SHARED]
3763 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3764 (_NL_CURRENT_DATA): Define using that.
3765 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3766 (_NL_CURRENT_DEFINE): Define to empty.
3767 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3768 conditionalized on this.
3769 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3770 taking initializer of _nl_C_locobj.
3771 [SHARED] (_nl_global_locale): New variable, using that initializer.
3772 (_nl_C_locobj): Use new macro for initialzier.
3773 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3774 [! SHARED] (CATEGORY_USED): New macro.
3775 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3776 (setdata, setlocale): Use that macro instead of examining _nl_current.
3777 (setdata): Set the slot in _nl_global_locale.
3778 Conditionalize setting of _nl_current on [! SHARED].
3779 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3780 declaration as an extern.
3781 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3783 * include/locale.h: Use libc_hidden_proto for setlocale.
3784 * locale/setlocale.c: Add libc_hidden_def.
3786 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3788 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3789 * misc/hsearch_r.c: Add libc_hidden_def.
3790 * misc/lsearch.c: Likewise.
3792 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3794 * misc/getttyent.c: Add libc_hidden_def.
3796 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3797 * malloc/mcheck.c: Add libc_hidden_def.
3799 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3800 * include/argz.h: Use libc_hidden_proto for argz_delete.
3801 * string/argz-delete.c: Add libc_hidden_def.
3802 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3804 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3805 HIDDEN_JUMPTARGET for _exit.
3806 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3807 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3808 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3809 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3811 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3812 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3813 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3814 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3816 * include/stdlib.h: Use libc_hidden_proto for abort,
3817 __strtof_internal, __strtod_internal, __strtold_internal,
3818 __strtol_internal, __strtoll_internal, __strtoul_internal,
3819 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3820 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3821 __strtoul_l_internal, __strtoull_l_internal.
3822 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3823 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3824 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3825 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3826 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3828 * sysdeps/generic/abort.c: Add libc_hidden_def.
3829 * stdlib/strtod.c: Likewise.
3830 * sysdeps/generic/strtol.c: Likewise.
3831 * sysdeps/wordsize-64/strtol.c: Likewise.
3832 * sysdeps/wordsize-64/wcstol.c: Likewise.
3833 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3835 * include/stdlib.h: Use libc_hidden_proto for qsort.
3836 * stdlib/msort.c: Add libc_hidden_def.
3838 * include/utime.h: Use libc_hidden_proto for utime.
3839 * sysdeps/generic/utime.c: Add libc_hidden_def.
3840 * sysdeps/unix/utime.c: Likewise.
3842 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3843 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3844 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3845 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3846 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3848 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3849 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3850 and __libc_current_sigrtmax.
3851 * signal/sigismem.c: Add libc_hidden_def.
3852 * signal/sigfillset.c: Likewise.
3853 * signal/sigempty.c: Likewise.
3854 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3855 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3856 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3857 * sysdeps/posix/raise.c: Likewise.
3858 * sysdeps/generic/raise.c: Likewise.
3860 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3862 * include/string.h: Use libc_hidden_proto for __stpcpy.
3863 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3864 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3865 * sysdeps/generic/stpcpy.c: Likewise.
3866 * sysdeps/i386/stpcpy.S: Likewise.
3867 * sysdeps/i386/i586/stpcpy.S: Likewise.
3868 * sysdeps/powerpc/stpcpy.S: Likewise.
3869 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3870 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3872 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3873 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3874 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3876 * string/strdup.c (__strdup): Likewise.
3877 * string/strndup.c (__strndup): Likewise.
3878 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3879 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3881 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3883 * include/libio.h: New file.
3884 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3885 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3886 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3887 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3888 * sysdeps/unix/common/syscalls.list: Likewise.
3889 * sysdeps/unix/inet/syscalls.list: Likewise.
3890 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3891 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3892 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3893 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3894 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3895 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3896 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3897 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3898 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3899 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3900 * sysdeps/unix/syscalls.list: Likewise.
3902 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3903 Ulrich Drepper <drepper@redhat.com>
3905 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3906 the arguments is big enough to cause an overflow.
3908 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3910 * assert/assert.c: Use hidden_def not INTDEF.
3912 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3914 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3917 2002-08-03 Roland McGrath <roland@redhat.com>
3919 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3920 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3922 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3923 * misc/syslog.c: Add libc_hidden_def.
3924 * misc/err.c: Likewise.
3925 * stdlib/exit.c: Likewise.
3926 * stdlib/bsearch.c: Likewise.
3927 * sysdeps/generic/getenv.c: Likewise.
3929 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3931 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3932 libc_hidden_weak for every system call symbol defined.
3934 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3935 timelocal, localtime, strftime.
3936 * time/asctime.c: Add libc_hidden_def.
3937 * time/mktime.c: Likewise.
3938 * time/localtime.c: Likewise.
3939 * time/strftime.c: Likewise.
3940 * time/strptime.c: Likewise.
3941 * sysdeps/generic/time.c: Likewise.
3942 * sysdeps/unix/time.c: Likewise.
3943 * sysdeps/unix/sysv/i386/time.S: Likewise.
3944 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3946 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3947 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3948 * resolv/inet_ntop.c: Likewise.
3949 * resolv/inet_pton.c: Likewise.
3950 * inet/inet_mkadr.c: Add libc_hidden_def.
3951 * inet/inet_netof.c: Likewise.
3952 * resolv/inet_addr.c: Likewise.
3954 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3955 clauses from conditionals for now. Will have to be fixed later
3956 for older compilers.
3958 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3960 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3962 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3963 broken alias attribute handling.
3964 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3966 2002-08-02 Roland McGrath <roland@frob.com>
3968 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3969 since it sets the variables we use in a -D switch.
3971 2002-08-02 Roland McGrath <roland@redhat.com>
3973 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3974 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3975 matches long int, not int.
3977 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3978 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3979 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3980 * wctype/wctrans.c (wctrans): Likewise.
3981 * wctype/wctype.c (__wctype): Likewise.
3982 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3984 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3986 * assert/assert.c (__assert_fail): Fix typo in comment.
3988 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3989 * sunrpc/rpc_thread.c: Define it without static.
3990 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3992 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3994 * assert/assert.c (__assert_fail): Remove undef.
3995 Replace INTDEF with libc_hidden_def.
3996 * assert/__assert.c (__assert): Remove INTUSE.
3997 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3999 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4000 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4001 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4002 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4003 libm_hiden_ver): Define.
4004 * include/assert.h (__assert_fail_internal): Remove.
4005 (__assert_fail): Add prototype. Add hidden_proto.
4006 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4008 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4009 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4010 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4011 Add libc_hidden_proto.
4012 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4013 __fcntl): Add libc_hidden_proto. Remove macros.
4014 (__open_internal, __fcntl_internal): Remove.
4015 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4016 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4017 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4019 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4021 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4022 Add libc_hidden_def.
4023 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4024 * sysdeps/generic/open.c (__open): Remove undef.
4025 Add libc_hidden_def. Remove INTDEF.
4026 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4027 Add libc_hidden_def.
4028 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4029 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4030 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4031 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4032 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4033 (__libc_fcntl): Add libc_hidden_def.
4034 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4035 (__open): Remove INTDEF2. Add libc_hidden_weak.
4036 (__libc_open): Add libc_hidden_def.
4037 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4038 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4039 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4040 Add libc_hidden_def.
4041 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4042 Add libc_hidden_def.
4043 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4045 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4046 (__libc_fcntl): Add libc_hidden_def.
4047 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4048 __getpgid_internal, __chown_internal): Remove.
4049 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4050 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4052 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4053 __getpid_internal, __open_internal, __write_internal): Remove.
4054 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4055 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4056 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4057 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4058 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4059 Replace INTDEF with libc_hidden_def.
4060 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4061 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4062 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4063 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4064 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4065 Add libc_hidden_proto.
4066 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4067 * include/sys/select.h (__select): Likewise.
4068 * include/sys/socket.h (__send): Likewise.
4069 * include/sys/statfs.h (__statfs): Likewise.
4070 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4071 __getpid, __getpgid, __setpgid, __close, __read, __write,
4072 __getpagesize, __sbrk): Likewise.
4073 (__chown_internal, __dup2_internal, __getpid_internal,
4074 __getpgid_internal, __close_internal, __write_internal,
4075 __getpagesize_internal): Remove.
4076 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4078 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4079 * include/sched.h (__sched_setscheduler): Likewise.
4080 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4081 * include/stdlib.h (__secure_getenv): Likewise.
4082 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4083 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4084 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4085 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4086 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4087 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4088 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4089 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4090 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4091 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4092 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4093 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4094 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4095 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4096 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4097 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4098 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4099 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4100 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4101 * libio/genops.c (__overflow): Add libc_hidden_def.
4102 * libio/iovdprintf.c: Remove libio.h include.
4103 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4104 libc_hidden_weak): Define to nothing if not defined.
4105 (__overflow, __woverflow): Add libc_hidden_proto.
4106 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4107 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4108 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4109 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4110 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4111 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4112 and libc_hidden_def.
4113 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4114 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4115 (__getpgid): Add libc_hidden_proto.
4116 (__bsd_getpgrp): Remove INTUSE.
4117 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4119 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4120 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4121 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4122 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4123 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4124 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4125 __rpc_thread_createerr): Add libc_hidden_def.
4126 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4128 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4129 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4130 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4131 * sysdeps/generic/chown.c (__chown): Likewise.
4132 * sysdeps/generic/close.c (__close): Likewise.
4133 * sysdeps/generic/dup2.c (__dup2): Likewise.
4134 * sysdeps/generic/pipe.c (__pipe): Likewise.
4135 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4136 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4137 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4138 * sysdeps/generic/read.c (__libc_read): Likewise.
4139 (__read): Add libc_hidden_weak.
4140 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4141 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4142 * sysdeps/generic/select.c (__select): Likewise.
4143 * sysdeps/generic/send.c (__send): Likewise.
4144 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4145 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4146 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4147 * sysdeps/generic/statfs.c (__statfs): Likewise.
4148 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4149 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4150 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4151 Remove undef and INTDEF.
4152 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4153 * sysdeps/generic/getpid.c (__getpid): Likewise.
4154 * sysdeps/generic/write.c (__libc_write): Likewise.
4155 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4156 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4157 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4158 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4159 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4160 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4161 Remove undef and INTDEF.
4162 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4163 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4164 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4165 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4166 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4167 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4168 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4169 (__pipe): Add libc_hidden_def.
4170 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4172 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4173 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4174 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4175 (__read): Add libc_hidden_weak.
4176 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4177 (__libc_pwrite64): Add libc_hidden_def.
4178 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4179 * sysdeps/mach/hurd/select.c (__select): Likewise.
4180 * sysdeps/mach/hurd/send.c (__send): Likewise.
4181 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4182 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4183 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4184 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4185 * sysdeps/posix/dup2.c: Likewise.
4186 Remove undef and INTDEF.
4187 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4188 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4189 (__pwrite64): Add libc_hidden_weak.
4190 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4191 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4192 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4193 * sysdeps/standalone/close.c (__close): Likewise.
4194 * sysdeps/standalone/write.c (__libc_write): Likewise.
4195 (__write): Add libc_hidden_weak.
4196 * sysdeps/standalone/read.c (__read): Likewise.
4197 (__libc_read): Add libc_hidden_def.
4198 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4199 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4200 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4201 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4202 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4203 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4204 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4205 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4206 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4207 __GI___sigaction): Add.
4208 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4209 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4210 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4211 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4212 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4213 __GI___setpgid): Add.
4214 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4215 Remove undef and INTDEF.
4216 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4217 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4218 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4219 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4220 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4221 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4222 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4223 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4224 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4225 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4226 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4227 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4228 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4229 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4230 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4231 __GI___statfs, __GI___send): Add.
4232 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4233 libc_hidden_ver resp. libc_hidden_def.
4234 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4236 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4237 Likewise. Remove undef and INTDEF.
4238 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4239 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4240 __GI___statfs, __GI___send): Add.
4241 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4243 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4245 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4246 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4247 libc_hidden_ver resp. libc_hidden_def.
4248 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4250 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4251 Add libc_hidden_weak.
4252 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4253 Add libc_hidden_def.
4254 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4255 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4257 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4258 resp. libc_hidden_def.
4259 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4261 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4263 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4264 Likewise. Remove undef.
4265 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4267 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4268 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4270 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4272 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4273 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4274 Likewise. Remove undef and INTDEF.
4275 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4277 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4279 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4281 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4282 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4283 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4285 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4286 Add libc_hidden_def.
4287 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4288 __GI___statfs): Add.
4289 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4291 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4292 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4293 Remove undef and INTDEF.
4294 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4295 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4297 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4298 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4300 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4302 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4303 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4304 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4306 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4307 libc_hidden_def. Remove undef and INTDEF.
4308 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4309 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4311 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4312 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4313 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4314 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4315 Remove undef and INTDEF.
4316 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4317 broken visibility attribute handling.
4318 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4320 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4322 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4323 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4325 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4328 2002-06-29 Todd Fries <todd@openbsd.org>
4330 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4332 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4334 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4336 2002-07-30 Roland McGrath <roland@redhat.com>
4338 * resolv/resolv.h (_res): Define macro unconditionally.
4339 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4340 * include/resolv.h: ... here.
4341 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4342 as a __thread variable.
4343 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4344 a __thread variable instead of a global.
4345 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4347 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4350 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4352 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4353 decls of memset and memcpy.
4355 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4356 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4358 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4360 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4361 (__libc_tsd_define): Define using __thread.
4363 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4364 (__rpc_thread_variables): Use __libc_tsd_get.
4365 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4366 __rpc_thread_variables, which might allocate what we're about to free.
4368 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4369 thread-local variable.
4370 * resolv/netdb.h (h_errno): Define macro unconditionally.
4371 [_LIBC] (__set_h_errno): Macro moved to ...
4372 * include/netdb.h: ... here.
4373 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4374 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4375 [! _LIBC_REENTRANT]: #undef h_errno here.
4377 * include/errno.h: Protect from multiple inclusion.
4379 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4380 before defining them, since Linux's <linux/posix_types.h> might have
4383 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4385 * malloc/malloc.c (public_cALLOc): Check for overflow on
4387 * sunrpc/xdr_array.c (xdr_array): Likewise.
4388 * sunrpc/rpc/types.h (mem_free): Add comment.
4389 Patch by Solar Designer <solar@openwall.com>.
4391 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4393 * sysdeps/unix/sysv/linux/kernel-features.h
4394 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4396 2002-08-01 Roland McGrath <roland@redhat.com>
4398 * libio/fileops.c (_IO_file_sync_mmap): New function.
4399 (_IO_file_jumps_mmap): Use it.
4400 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4401 repeat the stat check and resize the mapped buffer as necessary.
4403 2002-07-31 Roland McGrath <roland@redhat.com>
4405 * libio/fileops.c (decide_maybe_mmap): New static function.
4406 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4407 mmap the file contents. Then switch the jump tables to the mmap
4408 tables if it worked, or the vanilla file tables if not.
4409 (_IO_file_underflow_maybe_mmap): New function.
4410 (_IO_file_seekoff_maybe_mmap): New function.
4411 (_IO_file_xsgetn_maybe_mmap): New function.
4412 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4413 * libio/libioP.h: Declare those.
4414 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4415 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4416 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4417 If the stream is read-only, set its jump tables to those new ones.
4418 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4419 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4420 We need the tables set before _IO_file_attach.
4422 * libio/tst-mmap-eofsync.c: New file.
4423 * libio/tst-mmap-fflushsync.c: New file.
4424 * libio/bug-mmap-fflush.c: New file.
4425 * libio/tst-mmap2-eofsync.c: New file.
4426 * libio/Makefile (tests): Add them.
4428 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4429 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4431 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4433 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4434 Declarations moved to <bits/sys_errlist.h>. Include that file.
4435 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4436 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4437 declare sys_errlist and sys_nerr.
4438 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4439 provide declarations.
4441 2002-07-31 Roland McGrath <roland@redhat.com>
4443 * elf/rtld.c (dl_main): Fix typo in error message.
4445 2002-07-31 Roland McGrath <roland@frob.com>
4447 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4448 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4449 sysdeps/mach/hurd/dl-sysdep.c change.
4451 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4453 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4454 -r`/build/include for kernel headers.
4456 * po/fi.po: New file.
4458 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4460 * configure.in (static_nss): Set to `yes' if --disable-shared.
4462 2002-07-23 Bruno Haible <bruno@clisp.org>
4464 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4467 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4469 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4470 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4473 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4475 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4478 2002-07-21 Bruno Haible <bruno@clisp.org>
4480 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4481 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4482 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4483 trans_sysdep_tab_offset.
4484 (struct sysdep_segment): New type.
4485 (struct sysdep_string): New type.
4486 (SEGMENTS_END): New macro.
4487 * intl/gettextP.h (struct sysdep_string_desc): New type.
4488 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4489 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4490 orig_tab, trans_tab, hash_tab to const pointers because they point
4491 into read-only memory.
4492 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4493 (PRI*): Define fallback values.
4494 (get_sysdep_segment_value): New function.
4495 (_nl_load_domain): Distinguish major and minor revision parts. Add
4496 support for minor revision 1 with system dependent strings.
4497 (_nl_unload_domain): Also free the 'malloced' field.
4498 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4499 now done in loadmsgcat.c. Add support for system dependent strings.
4501 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4503 * posix/bug-regex7.c: New file.
4504 * posix/bug-regex8.c: New file.
4505 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4507 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4509 * posix/bug-regex4.c (main): Fix typos.
4510 * posix/bug-regex6.c (main): Likewise.
4512 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4514 * posix/bug-regex6.c (main): Fix warnings.
4516 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4518 * iconv/iconv_prog.c (main): Improve error message for the cases
4519 where -t and/or -f parameter are missing.
4521 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4523 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4524 (re_search): Likewise.
4525 (re_match_2): Likewise.
4526 (re_search_2): Likewise.
4527 (re_search_stub): New function.
4528 (re_search_2_stub): New function.
4529 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4531 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4533 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4534 (re_string_eoi): Use STOP instead of LEN.
4535 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4536 (re_string_construct): Likewise.
4537 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4538 * posix/regexec.c (re_search_internal): Add a new argument STOP
4539 so that it can handle the argument STOP of re_search_2 and re_match_2
4541 (regexec): Adapt to new I/F of re_search_internal.
4542 (re_search_stub): Likewise.
4544 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4546 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4548 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4550 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4551 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4554 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4555 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4556 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4557 alias for adjtimex syscall.
4559 * elf/dl-minimal.c: Define __assert_fail_internal.
4560 * assert/assert.c: Likewise.
4561 * include/assert.h: Define __assert_file macro if !SHARED and not
4564 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4566 * locale/Makefile: Likewise.
4567 * nscd/Makefile: Likewise.
4568 * catgets/Makefile: Likewise.
4570 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4572 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4573 compute current position.
4575 * stdio-common/tst-fseek.c (main): Improve error messages.
4577 * libio/tst-freopen.c (main): Remove unused variable.
4579 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4580 succesful seek call. Simplify error checking.
4582 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4584 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4585 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4587 2002-07-19 Roland McGrath <roland@frob.com>
4589 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4590 __libc_enable_secure is set.
4592 2002-07-24 Roland McGrath <roland@frob.com>
4594 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4595 This implementation supports only IPv4.
4596 * inet/ifaddrs.h: New file.
4597 * sysdeps/generic/ifaddrs.c: New file.
4598 * sysdeps/gnu/ifaddrs.c: New file.
4599 * inet/test-ifaddrs.c: New file.
4600 * inet/Makefile (routines): Add ifaddrs.
4601 (headers): Add ifaddrs.h here.
4602 (tests): Add test-ifaddrs.
4603 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4605 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4606 socket call to get an AF_INET socket, instead of using __opensock.
4607 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4609 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4610 if not -1 use it instead of calling __opensock.
4611 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4612 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4613 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4615 * sysdeps/mach/hurd/ifreq.h: New file.
4616 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4617 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4618 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4620 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4621 which gets moved around. Calculate size of mmap'd buffer instead.
4623 2002-07-24 Philip Blundell <philb@gnu.org>
4625 * sysdeps/unix/arm/brk.S: Improve schedule.
4626 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4627 efficient instruction.
4628 (__socket): Optimize return sequence.
4630 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4632 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4633 sockets on old kernels.
4635 2002-07-22 Philip Blundell <philb@gnu.org>
4637 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4638 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4641 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4643 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4644 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4646 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4647 test to detect duplicate locales.
4649 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4650 position would be before beginning of file.
4651 (_IO_file_seekoff_mmap): Likewise.
4652 * libio/Makefile (tests): Add bug-fseek.
4653 * libio/bug-fseek.c: New file.
4655 * intl/explodename.c: Remove support for CEN-style locale variables.
4656 It was never used and shouldn't be since it's not portable.
4657 * intl/finddomain.c: Likewise.
4658 * intl/l10nflist.c: Likewise.
4659 * intl/loadinfo.h: Likewise.
4660 * locale/findlocale.c: Likewise.
4662 2002-07-24 Roland McGrath <roland@frob.com>
4664 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4665 position, calculate it to take into account an active pushback buffer.
4667 * libio/Makefile (tests): Add bug-ungetc.
4668 * libio/bug-ungetc.c: New file.
4670 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4672 * sysdeps/generic/libc-tls.c: New file.
4673 * csu/Makefile (routines): Add libc-tls.
4674 (static-only-routines): Add libc-tls.
4675 * elf/dl-support.c (_dl_phdr): New variable.
4676 (_dl_phnum): New variable.
4677 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4678 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4679 for !SHARED. First look through auxiliary vector. If TLS always
4680 call __pthread_initialize_minimal.
4682 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4683 in mmap call is never zero.
4685 2002-07-23 Andreas Jaeger <aj@suse.de>
4687 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4688 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4690 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4692 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4693 creation and removal of the temp file.
4695 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4697 * test-skeleton.c (create_temp_file): New function.
4699 2002-07-22 Andreas Jaeger <aj@suse.de>
4701 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4704 2002-07-21 Roland McGrath <roland@frob.com>
4706 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4707 put -I../include before -I../stdlib so we get the right errno.h et al.
4708 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4709 (CFLAGS-wcstof.c): Likewise.
4710 (CFLAGS-wcstold.c): Likewise.
4711 (CFLAGS-wcstod_l.c): Likewise.
4712 (CFLAGS-wcstof_l.c): Likewise.
4713 (CFLAGS-wcstold_l.c): Likewise.
4715 2002-07-19 Roland McGrath <roland@frob.com>
4717 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4719 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4721 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4722 __ASSUME_AT_XID is defined.
4723 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4725 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4726 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4728 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4729 (CFLAGS-wcstof.c): Likewise.
4730 (CFLAGS-wcstold.c): Likewise.
4731 (CFLAGS-wcstod_l.c): Likewise.
4732 (CFLAGS-wcstof_l.c): Likewise.
4733 (CFLAGS-wcstold_l.c): Likewise.
4735 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4737 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4738 __priority_which_t): Always typedef to int for C++.
4740 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4742 * configure.in: Add test for __thread support in compiler.
4743 * config.h.in: Add HAVE___THREAD.
4744 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4745 * include/sys/errno.h: Moved to...
4746 * stdlib/sys/errno.h: ...here. New file.
4747 * stdlib/errno.h: New file. Moved from...
4748 * include/errno.h: ...here. Changed into an internal header defining
4749 libc-local things like __set_errno.
4750 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4752 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4753 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4755 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4757 (_dl_start_final): ...here. Add code to initialize tls elements from
4759 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4760 if USE_TLS && HAVE___THREAD.
4761 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4762 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4763 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4764 * sysdeps/standalone/bits/errno.h: Likewise.
4765 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4766 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4767 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4768 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4769 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4770 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4771 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4772 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4773 use GL(dl_rtld_map), use map parameter.
4774 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4775 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4776 USE_TLS && HAVE___THREAD.
4777 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4778 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4780 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4782 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4783 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4784 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4785 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4786 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4787 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4789 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4791 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4792 MS_INVALIDATE values.
4794 2002-07-17 Andreas Schwab <schwab@suse.de>
4795 Ulrich Drepper <drepper@redhat.com>
4797 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4798 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4799 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4800 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4802 2002-07-01 H.J. Lu <hjl@gnu.org>
4804 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4807 * elf/circlemod1.c (circlemod1): Return int.
4808 * elf/circlemod2.c (circlemod2): Likewise.
4809 * elf/circlemod2a.c (circlemod2): Likewise.
4810 * elf/circlemod3.c (circlemod3): Likewise.
4811 (circlemod3a): A new function.
4813 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4815 * catgets/tst-catgets.c (main): Don't expect results for
4816 untranslated messages.
4818 * glibcbug.in: Fix little typo. Remove STDIO.
4820 * config.h.in: Fail if __FAST_MATH__ is defined.
4821 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4822 (CPPFLAGS-test-idouble.c): Likewise.
4823 (CPPFLAGS-test-ildouble.c): Likewise.
4825 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4827 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4828 * intl/tst-gettext.c: Correctly handle untranslated messages in
4831 * po/de.po: Update from translation team.
4833 2002-07-02 H.J. Lu <hjl@gnu.org>
4835 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4837 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4839 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4842 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4844 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4845 TLS fail if USE_TLS is not defined.
4847 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4848 and adjust state for seek position. [PR libc/4070]
4849 * libio/Makefile (tests): Add bug-rewind.
4850 * libio/bug-rewind.c: New file.
4852 2002-07-12 Philip Blundell <philb@gnu.org>
4854 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4855 (__backtrace): Use it.
4856 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4858 2002-07-12 Philip Blundell <philb@gnu.org>
4860 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4861 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4862 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4863 (elf_machine_rela): Remove unused variable.
4865 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4866 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4869 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4871 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4873 2002-07-14 Andreas Jaeger <aj@suse.de>
4875 * sysdeps/x86_64/bits/link.h: Add biarch support.
4877 2002-07-13 Andreas Jaeger <aj@suse.de>
4879 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4880 Use correct indices.
4881 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4883 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4885 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4886 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4887 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4888 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4889 * sysdeps/s390/s390-32/bits/link.h: Remove.
4890 * sysdeps/s390/s390-64/bits/link.h: Remove.
4891 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4892 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4893 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4894 * sysdeps/s390/bits/wordsize.h: New file.
4895 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4897 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4898 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4899 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4900 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4901 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4902 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4903 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4904 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4905 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4906 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4907 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4908 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4910 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4911 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4912 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4913 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4914 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4915 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4916 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4918 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4919 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4921 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4922 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4923 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4925 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4926 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4927 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4928 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4929 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4930 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4931 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4932 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4934 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4935 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4936 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4938 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4939 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4941 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4943 * Versions.def (libc): Add GLIBC_2.3.
4944 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4945 * stdlib/canonicalize.c: Add compatibility version for realpath
4946 and make new code available in GLIBC_2.3.
4948 2002-07-06 Bruno Haible <bruno@clisp.org>
4950 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4952 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4954 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4955 function do_init. Use __libc_once.
4956 (do_init): New function.
4958 * iconvdata/iso8859-11.h: Removed.
4959 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4960 (distribute): Remove iso8859-11.h.
4961 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4963 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4964 underflow operation if c == (W)EOF.
4966 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4968 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4969 non-zero, adjust exponent.
4970 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4971 Remove NO_LONG_DOUBLE aliases.
4972 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4973 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4974 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4975 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4977 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4978 Fix BITS_PER_MP_LIMB 32 extraction.
4979 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4980 exceptions for qNaNs.
4981 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4982 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4983 Raise exceptions when needed. Don't recurse unnecessarily.
4984 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4985 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4986 exceptions for qNaNs.
4987 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4988 to fix *quo return value sign.
4989 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4991 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4993 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4995 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4996 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4999 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5001 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5004 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5005 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5007 * Versions.def (libthread_db): Add GLIBC_2.3.
5009 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5011 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5012 new stream if possible.
5013 * libio/freopen64.c (freopen64): Likewise.
5014 * libio/Makefile (tests): Add tst-freopen.
5015 * libio/tst-freopen.c: New file.
5017 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5019 * libio/stdio.h (obstack_printf): Add format attribute.
5020 (obstack_vprintf): Likewise.
5022 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5024 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5025 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5026 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5029 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5031 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5032 (init_dfa): ...here.
5034 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5036 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5037 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5038 nodes in parse trees.
5039 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5040 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5041 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5042 nodes which can epsilon transit.
5043 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5044 to IS_EPSILON_NODE macro.
5045 * posix/regexec.c (update_regs): New function to update registers
5046 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5047 (proceed_next_node): Use the entities of the nodes to determine
5048 whether the node can transit to.
5049 (set_regs): Use update_regs function to update registers.
5051 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5053 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5054 * posix/bug-regex6.c: New file.
5055 * posix/Makefile (tests): Add bug-regex6.
5056 (bug-regex6-ENV): Set LOCPATH.
5058 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5060 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5061 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5063 2002-07-06 Bruno Haible <bruno@clisp.org>
5065 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5067 2002-07-06 Bruno Haible <bruno@clisp.org>
5069 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5072 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5074 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5076 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5078 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5080 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5081 * sysdeps/generic/bits/ustat.h: Likewise.
5083 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5085 2002-07-08 Andreas Jaeger <aj@suse.de>
5087 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5089 2002-07-08 Andreas Jaeger <aj@suse.de>
5091 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5093 2002-07-06 Andreas Jaeger <aj@suse.de>
5095 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5096 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5097 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5098 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5099 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5100 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5101 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5102 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5103 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5104 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5105 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5107 2002-06-05 Brian Youmans <3diff@gnu.org>
5109 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5110 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5111 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5112 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5113 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5114 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5115 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5116 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5117 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5118 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5119 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5120 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5121 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5122 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5123 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5124 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5125 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5126 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5127 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5128 * sysdeps/ia64/fpu/e_log.S: Likewise.
5129 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5130 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5131 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5132 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5133 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5134 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5135 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5136 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5137 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5138 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5139 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5140 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5141 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5142 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5143 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5144 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5145 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5146 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5147 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5148 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5149 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5150 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5151 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5152 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5153 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5154 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5155 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5156 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5157 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5158 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5159 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5160 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5161 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5162 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5163 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5164 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5165 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5166 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5167 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5168 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5169 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5170 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5171 * sysdeps/ia64/fpu/s_round.S: Likewise.
5172 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5173 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5174 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5175 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5176 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5177 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5178 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5179 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5180 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5181 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5182 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5183 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5184 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5185 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5186 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5187 reflect IBM donation of math library to FSF
5188 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5189 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5190 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5191 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5192 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5193 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5194 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5195 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5196 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5197 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5198 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5199 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5200 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5201 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5202 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5203 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5204 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5205 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5206 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5207 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5208 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5209 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5210 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5211 * sysdeps/vax/__longjmp.c: Likewise.
5212 * sysdeps/vax/setjmp.c: Likewise.
5213 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5214 remove advertising clause
5215 * sysdeps/vax/htonl.s: Likewise.
5216 * sysdeps/vax/htons.s: Likewise.
5217 * libio/wfiledoalloc.c: Likewise.
5218 * stdlib/random.c: Likewise.
5219 * stdlib/random_r.c: Likewise.
5220 * sysdeps/mach/sys/reboot.h: Likewise.
5221 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5222 * sysdeps/posix/getaddrinfo.c: Likewise.
5223 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5224 GPL and corrected pointer to point to the correct license.
5226 2002-07-04 Andreas Jaeger <aj@suse.de>
5228 * scripts/config.guess: New upstream version.
5229 * scripts/config.sub: Likewise.
5231 2002-07-02 Andreas Schwab <schwab@suse.de>
5233 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5234 in parallel to bumping up the buffer pointer.
5236 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5238 * math/libm-test.inc (acos_test): Add missing L suffix for
5240 (cpow_test): Likewise.
5241 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5242 error for acos (0.0625).
5244 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5246 * locale/iso-639.def: Add entry for Ganda.
5247 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5249 (address_finish): Handle entries with two letter ISO 639 code.
5251 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5252 directory if it existed before.
5253 * iconv/iconvconfig.c: Implement --prefix option.
5255 * math/libm-test.inc (cexp_test): Add missing L suffix for
5256 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5257 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5260 2002-05-29 H.J. Lu <hjl@gnu.org>
5262 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5265 2002-05-28 H.J. Lu <hjl@gnu.org>
5267 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5268 are not dlopened on the dependency list of a dlopened object.
5270 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5272 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5273 dependencies if they are created between objects which are created
5274 while processing RTLD_NOW for objects loaded as part of the same
5277 2002-06-14 H.J. Lu <hjl@gnu.org>
5279 * elf/Makefile (tests): Add circleload1.
5280 (modules-names): Add circlemod1, circlemod2, circlemod3,
5281 circlemod1a, circlemod2a and circlemod3a.
5282 ($(objpfx)circleload1): New target.
5283 ($(objpfx)circleload1.out): Likewise.
5284 ($(objpfx)circlemod1.so): Likewise.
5285 ($(objpfx)circlemod2.so): Likewise.
5286 ($(objpfx)circlemod1a.so): Likewise.
5287 ($(objpfx)circlemod2a.so): Likewise.
5288 * elf/circleload1.c: New file.
5289 * elf/circlemod1.c: New file.
5290 * elf/circlemod1a.c: New file.
5291 * elf/circlemod2.c: New file.
5292 * elf/circlemod2a.c: New file.
5293 * elf/circlemod3.c: New file.
5294 * elf/circlemod3a.c: New file.
5296 2002-06-18 Amos Waterland <apw@us.ibm.com>
5298 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5300 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5301 add check for fd not open for writing.
5303 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5304 completed element(s) and do not suspend thread if so. Patch
5305 heavily modified by drepper.
5307 * rt/tst-aio7.c: New file. Regression test for problems which the
5308 above three changes fix.
5309 * rt/Makefile (tests): Add tst-aio7.
5311 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5313 * rt/tst-aio6.c: Fix comment.
5315 * catgets/gencat.c (read_input_file): Handle more than one slash
5316 at end of line correctly [PR libc/3926].
5317 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5319 * catgets/sample.SJIS: Add test case for above bug.
5320 * catgets/test-gencat.c: Adjust test code.
5321 * catgets/test-gencat.sh: Adjust expected results.
5323 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5324 to skip relative relocations.
5325 Patch by Geoff Keating <geoffk@redhat.com>.
5327 2002-05-26 Bruno Haible <bruno@clisp.org>
5329 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5330 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5331 All callers changed.
5332 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5333 STANDARD_FROM_LOOP_ERR_HANDLER.
5334 (utf8_internal_loop): Likewise.
5335 (ucs2_internal_loop): Likewise.
5336 (internal_ucs2_loop): Perform error handling like in
5337 STANDARD_FROM_LOOP_ERR_HANDLER.
5338 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5339 in STANDARD_FROM_LOOP_ERR_HANDLER.
5340 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5342 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5343 in STANDARD_FROM_LOOP_ERR_HANDLER.
5344 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5346 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5347 in STANDARD_FROM_LOOP_ERR_HANDLER.
5348 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5350 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5351 STANDARD_FROM_LOOP_ERR_HANDLER.
5352 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5353 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5354 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5355 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5356 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5357 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5358 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5359 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5360 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5361 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5362 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5363 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5364 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5365 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5366 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5367 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5368 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5369 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5370 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5371 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5372 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5373 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5374 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5375 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5376 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5377 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5378 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5379 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5380 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5381 an error, still set result = __GCONV_ILLEGAL_INPUT.
5382 (BODY for TO_LOOP): Likewise.
5383 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5384 STANDARD_FROM_LOOP_ERR_HANDLER.
5385 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5386 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5387 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5389 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5390 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5391 STANDARD_FROM_LOOP_ERR_HANDLER.
5392 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5393 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5394 STANDARD_FROM_LOOP_ERR_HANDLER.
5395 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5396 * iconvdata/ibm937.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/ibm939.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/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5403 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5405 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5406 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5407 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5408 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5410 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5412 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5413 labels in assembler instructions.
5415 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5417 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5418 not enough content is available.
5419 * libio/tst-eof.c: New file.
5420 * libio/Makefile (tests): Add tst-eof.
5422 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5424 * libio/tst-atime.c: New file.
5425 * libio/Makefile (tests): Add tst-atime.
5427 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5428 handling of overly long words.
5430 2002-06-25 Andreas Jaeger <aj@suse.de>
5432 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5433 to not use 32-bit pc relative relocations.
5434 (elf_machine_dynamic): Likewise.
5436 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5438 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5439 (__GETDENTS): Check for failed getdents64 syscall.
5440 * dirent/Makefile (tests): Add bug-readdir1.
5441 * dirent/bug-readdir1.c: New file.
5443 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5445 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5447 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5448 code. Print TLS modid and offset for modules containing PT_TLS
5451 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5453 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5454 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5455 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5456 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5458 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5460 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5461 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5462 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5463 * nss/getXXent_r.c (NEW, NEW1): Define.
5464 (NEW (REENTRANT_GETNAME)): Strong alias to
5465 INTERNAL (REENTRANT_GETNAME).
5466 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5468 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5470 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5471 (_IO_file_jumps_mmap): Use it.
5472 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5473 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5474 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5476 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5477 (_IO_wfile_jumps_mmap): Don't use it anymore.
5478 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5479 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5480 _IO_wdefault_setbuf.
5481 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5482 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5483 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5485 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5487 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5488 * libio/tst-mmap-setvbuf.c: New test.
5490 2002-06-21 Andreas Jaeger <aj@suse.de>
5492 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5494 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5496 * include/unistd.h (__fork_internal): Remove.
5497 (__fork): Don't define to __fork_internal.
5498 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5499 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5500 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5501 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5502 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5504 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5506 * po/hr.po: New file.
5508 2002-06-11 Wolfram Gloger <wg@malloc.de>
5510 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5511 Reported by Michael Meissner <meissner@redhat.com>.
5513 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5515 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5516 Patch by Hans Boehm <hans_boehm@hp.com>.
5518 2002-06-20 Andreas Jaeger <aj@suse.de>
5520 * math/libm-test.inc: Use exact values as input parameters,
5521 compute output parameters with 36 digits for 128-bit long doubles.
5522 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5523 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5524 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5526 2002-06-13 Stephen L Moshier <steve@moshier.net>
5528 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5529 argument or result is subnormal.
5531 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5533 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5535 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5536 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5538 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5540 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5542 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5543 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5544 Reported by Peter A. Buhr.
5546 2002-06-15 Roland McGrath <roland@frob.com>
5548 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5551 * sysdeps/mach/hurd/getcwd.c
5552 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5554 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5555 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5557 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5558 jump to local subroutine.
5560 2002-06-14 Roland McGrath <roland@frob.com>
5562 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5563 * sysdeps/mach/hurd/Makeconfig: ... here.
5565 2002-06-13 Andreas Schwab <schwab@suse.de>
5567 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5568 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5569 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5571 2002-06-13 Roland McGrath <roland@frob.com>
5573 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5574 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5575 Use intptr_t instead of int for argc in stack layout.
5576 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5577 (_dl_init_first): Likewise.
5578 (_hurd_stack_setup): Likewise.
5579 (init1): Add a cast.
5580 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5582 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5583 argument to pfinet_siocgifconf RPC.
5585 2002-06-13 Andreas Schwab <schwab@suse.de>
5587 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5590 2002-06-12 Roland McGrath <roland@frob.com>
5592 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5594 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5595 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5597 2002-06-11 Roland McGrath <roland@frob.com>
5599 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5600 file on [!RTLD_STAT64].
5601 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5603 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5604 (__fdopen): Use INTUSE.
5605 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5607 * stdio-common/tmpfile64.c: File removed.
5608 * sysdeps/generic/tmpfile64.c: New file.
5609 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5610 if not already defined.
5611 (tmpfile): Use it in place of __GT_FILE.
5613 * include/unistd.h: Declare __chown_internal.
5615 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5616 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5618 2002-06-09 Roland McGrath <roland@frob.com>
5620 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5621 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5622 value of HURD_INTERFACE_VERSION >= 20020609.
5623 * sysdeps/mach/hurd/configure: Regenerated.
5624 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5625 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5626 convert a struct stat64 into a struct stat and return 0 or -1
5627 with errno set to EOVERFLOW.
5628 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5629 for struct statfs64 to struct statfs.
5630 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5631 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5632 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5633 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5634 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5635 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5636 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5637 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5638 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5639 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5640 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5641 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5642 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5643 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5644 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5645 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5646 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5647 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5648 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5649 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5650 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5651 Use struct stat64 for io_stat argument.
5652 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5653 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5655 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5656 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5657 * hurd/hurd/fd.h: Update decls.
5658 * sysdeps/mach/hurd/getcwd.c
5659 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5660 and struct dirent64.
5661 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5662 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5663 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5664 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5666 2002-06-08 Roland McGrath <roland@frob.com>
5668 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5669 instead of unsigned long int for __allocation and __size members.
5671 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5673 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5674 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5675 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5676 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5678 2002-06-07 Roland McGrath <roland@frob.com>
5680 * sysdeps/mach/hurd/bits/environments.h: File removed.
5682 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5684 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5685 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5686 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5687 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5688 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5689 (sendfile64): Likewise.
5690 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5691 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5692 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5694 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5696 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5699 2002-06-04 Bruno Haible <bruno@clisp.org>
5701 * sysdeps/cris/stackinfo.h: New file.
5703 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5704 to an integer type before performing bit operations on it.
5706 2002-06-05 Roland McGrath <roland@frob.com>
5708 * sysdeps/generic/sendfile.c: Include <errno.h>.
5709 * sysdeps/generic/sendfile64.c: Likewise.
5711 * io/Makefile (routines): Add sendfile and sendfile64.
5712 (headers): Add sys/sendfile.h to the list.
5713 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5714 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5715 * io/sys/sendfile.h: ... here.
5716 * sysdeps/generic/sendfile.c: New file.
5717 * sysdeps/generic/sendfile64.c: New file.
5719 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5720 Move sendfile, sendfile64 to ...
5721 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5722 * sysdeps/mach/hurd/sendfile.c: New file.
5723 * sysdeps/mach/hurd/sendfile64.c: New file.
5725 * sysdeps/mach/nanosleep.c: New file.
5727 2002-06-04 Roland McGrath <roland@frob.com>
5729 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5730 * sysdeps/alpha/elf/configure: New file (generated).
5732 2002-06-02 Roland McGrath <roland@frob.com>
5734 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5736 2002-06-01 Roland McGrath <roland@frob.com>
5738 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5739 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5741 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5743 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5745 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5746 Remove nstimes setting.
5747 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5748 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5749 there is mix of IPv6 and IPv4 nameservers.
5750 Use nsmap array to find free slots and preserve nameserver ordering.
5753 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5755 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5756 use this header with LFS.
5758 * po/sk.po: Update from translation team.
5760 2002-05-28 Andreas Schwab <schwab@suse.de>
5762 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5763 message when finding object of wrong class.
5765 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5767 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5768 Patch by <radu@netsoft.ro>.
5770 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5772 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5774 * sysdeps/unix/sysv/linux/readahead.c: New file.
5775 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5776 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5777 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5778 Add sendfile64 alias to sendfile syscall.
5779 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5780 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5781 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5782 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5785 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5786 special section for PIC register loading.
5787 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5789 * config.h.in: Define HAVE_HIDDEN.
5790 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5792 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5794 2002-05-28 Roland McGrath <roland@frob.com>
5796 * sysdeps/mach/alpha/setfpucw.c: New file.
5798 2002-05-26 Roland McGrath <roland@frob.com>
5800 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5801 Use integer_t instead of int for IOC_VOID case.
5803 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5805 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5807 2002-05-26 Bruno Haible <bruno@clisp.org>
5809 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5810 end of the ISO-8859-7 from idx table.
5812 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5814 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5816 2002-05-24 David S. Miller <davem@redhat.com>
5818 * string/bits/string2.h (memset): Do not try to optimize when
5819 not _STRING_ARCH_unaligned if GCC will do the right thing.
5821 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5823 * posix/regex.c: Define `inline' as a macro into nothing for the
5824 compilers which lack the keyword.
5825 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5826 for the compatibility of gawk.
5827 * posix/regcomp.c: Add fake implementation of isblank() for the
5828 environments which lack the function.
5829 Don't use free_charset() in case of non-i18n envs.
5830 (build_range_exp): Don't use i18n related code in case of non-i18n
5832 (build_collating_symbol): Likewise.
5833 (build_equiv_class): Likewise.
5834 (build_charclass): Likewise.
5835 (re_compile_fastmap_iter): Likewise.
5836 (parse_bracket_exp): Likewise.
5837 (build_word_op): Likewise.
5838 (regfree): Don't use free_charset() in case of non-i18n envs.
5839 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5840 re_token_type_t in case of non-i18n envs.
5841 Don't define re_charset_t in case of non-i18n envs.
5842 Change the type of wcs of re_string_t from wchar_t to wint_t,
5843 since we store also WEOF.
5844 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5845 the type of wcs of re_string_t from wchar_t to wint_t.
5846 (re_string_reconstruct): Likewise.
5847 (create_ci_newstate): Don't use i18n related code in case of
5849 (create_cd_newstate): Likewise.
5851 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5853 * iconv/loop.c: Fix typo.
5855 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5857 * inet/ether_line.c (ether_line): Fix a typo causing only
5858 lower 4 bits of each ethernet address byte being assigned.
5859 Don't modify what line points to.
5860 * inet/tst-ether_aton.c (main): Add ether_line tests.
5862 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5864 * manual/filesys.texi: Don't make readlink example leak memory
5865 when readlink fails.
5867 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5869 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5870 some more security checks.
5872 2002-05-17 David S. Miller <davem@redhat.com>
5874 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5876 2002-05-16 David S. Miller <davem@redhat.com>
5878 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5879 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5880 (elf_machine_load_address): Likewise.
5881 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5883 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5884 is unaligned, do not forget to fully initialize %g1 magic value.
5886 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5887 register definitions and provide 32-bit variants of structures
5888 during 64-bit builds.
5890 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5891 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5892 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5893 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5894 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5895 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5896 Do not clear implicit one bit here, it must be done post-rounding.
5897 Only pad to the left using left shift if value uses less than the
5898 available fractional bits.
5900 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5902 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5903 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5904 (shared-only-routines): Likewise.
5905 * sysdeps/powerpc/libgcc-compat.c: New file.
5906 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5907 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5908 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5909 * sysdeps/wordsize-32/shdi3.c: Removed.
5911 2002-05-16 Bruno Haible <bruno@clisp.org>
5913 * MakeTAGS (libc.pot): Don't sort the output.
5914 * po/header.pot: Update to match xgettext 0.11 output.
5916 2002-05-16 Bruno Haible <bruno@clisp.org>
5918 * MakeTAGS (subdirs): Remove duplicates.
5920 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5922 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5923 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5926 2002-05-19 Andreas Jaeger <aj@suse.de>
5928 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5929 installation in /usr/local.
5931 2002-05-16 Bruno Haible <bruno@clisp.org>
5933 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5934 string as argument of #error.
5936 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5938 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5939 don't define static. Remove old __realpath function. TC1 of
5940 POSIX 2001 will allow the second parameter to be NULL.
5941 * stdlib/test-canon.c: Comment out test for NULL as second
5942 parameter of realpath.
5944 * time/offtime.c (__offtime): Set errno if overflow is detected.
5946 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5947 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5950 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5953 2002-05-15 Roland McGrath <roland@frob.com>
5955 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5957 2002-05-12 Bruno Haible <bruno@clisp.org>
5959 * iconvdata/testdata/EUC-JISX0213: New file.
5960 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5961 * iconvdata/testdata/SHIFT_JISX0213: New file.
5962 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5963 * iconvdata/testdata/ISO-2022-JP-3: New file.
5964 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5965 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5966 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5967 contains comments indicating precomposed characters.
5969 2002-04-21 Bruno Haible <bruno@clisp.org>
5971 * iconvdata/iso-2022-jp-3.c: New file.
5972 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5973 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5974 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5975 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5976 (distribute): Add iso-2022-jp-3.c.
5978 2002-05-12 Bruno Haible <bruno@clisp.org>
5980 * iconvdata/tst-table-to.c (main): Restore handling of
5981 transliterations, broken by last patch.
5983 2002-05-12 Bruno Haible <bruno@clisp.org>
5985 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5987 2002-05-12 Bruno Haible <bruno@clisp.org>
5989 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5990 when there is not enough room in the output buffer.
5991 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5993 2002-04-20 Bruno Haible <bruno@clisp.org>
5995 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5997 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5998 Also make this macro work if FROM_DIRECTION evaluates to 0.
5999 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6000 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6001 of consume_incomplete.
6002 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6003 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6005 * iconvdata/cp1258.c: Likewise.
6006 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6007 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6009 * iconvdata/ibm933.c: Likewise.
6010 * iconvdata/ibm935.c: Likewise.
6011 * iconvdata/ibm937.c: Likewise.
6012 * iconvdata/ibm939.c: Likewise.
6013 * iconvdata/iso-2022-cn.c: Define
6014 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6015 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6016 * iconvdata/iso-2022-cn-ext.c: Likewise.
6017 * iconvdata/iso-2022-jp.c: Define
6018 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6019 {MIN,MAX}_NEEDED_{FROM,TO}.
6020 * iconvdata/tcvn5712-1.c: Define
6021 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6022 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6023 * iconvdata/euc-jisx0213.c: Define
6024 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6025 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6026 * iconvdata/shift_jisx0213.c: Likewise.
6028 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6030 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6031 shdi3, fixdfdi, fixsfdi in csu dir.
6032 (shared-only-routines): Likewise.
6033 * sysdeps/wordsize-32/cmpdi2.c: New file.
6034 * sysdeps/wordsize-32/shdi3.c: New file.
6035 * sysdeps/wordsize-32/fixdfdi.c: New file.
6036 * sysdeps/wordsize-32/fixsfdi.c: New file.
6037 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6038 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6039 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6041 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6042 Only use va_arg if the argument will be used [PR libc/3259].
6044 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6046 * catgets/catgets.c (catopen): Free buffer if internal catalog
6049 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6051 * debug/xtrace.sh: Make more robust. For realtime tracking use
6052 non-buffering methods.
6053 * debug/pcprofiledump.c: Implement -u option.
6054 Patch by Roger Luethi <rl@hellgate.ch>.
6056 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6058 * include/netinet/in.h (bindresvport_internal): Add prototype.
6059 * include/rpc/auth.h (authunix_create_internal,
6060 authunix_create_default_internal, authnone_create_internal,
6061 authdes_pk_create_internal): Add prototypes.
6062 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6063 clntudp_create_internal, clntudp_bufcreate_internal,
6064 clntunix_create_internal): Add prototypes.
6065 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6066 svc_getreq_internal, svc_getreq_common_internal,
6067 svc_getreqset_internal, svc_getreq_poll_internal,
6068 svc_register_internal, svc_unregister_internal,
6069 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6070 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6071 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6072 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6073 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6074 * inet/rcmd.c (rcmd_af): Use __listen.
6075 (rresvport_af): Use __bind.
6076 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6077 authunix_create, authunix_create_default, authnone_create,
6078 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6079 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6080 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6081 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6082 _authenticate, add INTDEF after such function definitions.
6083 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6084 __setsockopt, __getsockname instead of non-__ variants.
6085 * sunrpc/pmap_rmt.c: Likewise.
6086 * sunrpc/rtime.c: Likewise.
6087 * sunrpc/svc_udp.c: Likewise.
6088 * sunrpc/clnt_unix.c: Likewise.
6089 * sunrpc/svc_unix.c: Likewise.
6090 * sunrpc/bindrsvprt.c: Likewise.
6091 * sunrpc/svc_tcp.c: Likewise.
6092 * sunrpc/auth_none.c: Likewise.
6093 * sunrpc/clnt_raw.c: Likewise.
6094 * sunrpc/clnt_tcp.c: Likewise.
6095 * sunrpc/auth_unix.c: Likewise.
6096 * sunrpc/key_call.c: Likewise.
6097 * sunrpc/clnt_gen.c: Likewise.
6098 * sunrpc/pm_getmaps.c: Likewise.
6099 * sunrpc/clnt_simp.c: Likewise.
6100 * sunrpc/pmap_clnt.c: Likewise.
6101 * sunrpc/svc_run.c: Likewise.
6102 * sunrpc/svc.c: Likewise.
6103 * sunrpc/svc_simple.c: Likewise.
6104 * sunrpc/pm_getport.c: Likewise.
6105 * sunrpc/auth_des.c: Likewise.
6106 * sunrpc/svc_auth.c: Likewise.
6107 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6108 __register_frame_info_table_bases, __deregister_frame_info_bases):
6110 (__register_frame_info_bases_internal,
6111 __register_frame_info_table_bases_internal,
6112 __deregister_frame_info_bases_internal): Add prototypes.
6113 (__register_frame_info, __register_frame): Use INTUSE in call to
6114 __register_frame_info_bases.
6115 (__register_frame_info_table): Similarly.
6116 (__deregister_frame_info, __deregister_frame): Similarly.
6117 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6118 sendto as weak alias.
6119 * sysdeps/mach/hurd/sendto.c: Likewise.
6120 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6121 recvfrom as weak alias.
6122 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6123 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6124 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6125 recvmsg as weak alias.
6126 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6127 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6128 sendmsg as weak alias.
6129 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6130 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6131 setsockopt, add setsockopt as weak alias.
6132 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6133 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6135 * sysdeps/mach/hurd/bind.c: Likewise.
6136 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6138 * sysdeps/mach/hurd/listen.c: Likewise.
6139 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6140 getsockname, add getsockname as weak alias.
6141 * sysdeps/mach/hurd/getsockname.c: Likewise.
6142 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6143 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6144 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6145 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6146 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6147 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6149 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6150 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6151 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6152 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6153 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6154 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6155 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6156 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6157 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6158 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6159 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6160 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6162 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6164 * locale/programs/localedef.h (show_archive_content): Add verbose
6166 * locale/programs/localedef.c (main): Adjust caller.
6167 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6169 (nameentcmp, dataentcmp): New functions.
6171 (show_archive_content): Print verbose listing with --list-archive -v.
6173 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6175 * locale/programs/locarchive.c (open_archive): Take extra argument
6176 readonly. If true open file with O_RDONLY and don't create the
6177 archive if it doesn't exist.
6179 (close_archive): Don't do anything if fd element is -1.
6180 * locale/programs/localedef.h (open_archive): Adjust prototype.
6181 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6184 * malloc/malloc.c (__posix_memalign): Correct check for size of
6185 alignment value [PR libc/3444].
6187 * include/stdio.h: Remove references to old stdio implementation.
6189 * libio/Makefile (bug-ungetwc2-ENV): Define.
6191 2002-05-13 Roland McGrath <roland@frob.com>
6193 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6195 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6197 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6199 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6200 Allocate three, not two, more than LEN when appending '/.'.
6201 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6202 if NAME ends with '/.' if it is shorter than 2 chars.
6204 2002-05-12 Roland McGrath <roland@frob.com>
6206 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6207 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6209 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6210 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6212 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6214 * sysdeps/ia64/Makefile: Remove extra endif.
6215 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6217 2002-05-10 Andreas Schwab <schwab@suse.de>
6219 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6221 2002-05-09 Andreas Jaeger <aj@suse.de>
6223 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6224 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6225 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6227 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6228 * sysdeps/wordsize-64/glob.c: ...here.
6229 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6230 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6231 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6233 2002-05-08 Roland McGrath <roland@frob.com>
6235 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6236 O_NOTRANS flag in "." lookup.
6238 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6240 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6242 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6244 * locale/duplocale.c (__duplocale): Update special members only
6245 when allocation succeeded.
6247 2002-05-03 Roland McGrath <roland@frob.com>
6249 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6250 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6252 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6254 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6255 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6256 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6257 * sysdeps/ia64/ia64libgcc.S: New file.
6259 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6261 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6263 * malloc/memusage.c: Distinguish anonymous mmap.
6265 2002-05-01 Roland McGrath <roland@frob.com>
6267 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6268 and use INTDEF on it.
6269 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6271 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6273 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6275 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6277 * malloc/memusage.c: Add support for tracking mmap & friends.
6278 * malloc/memusage.sh: Implement -m/--mmap option.
6280 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6282 * locale/programs/locarchive.c (create_archive): Add archivefname
6283 argument, create fname from it.
6284 (enlarge_archive): Honour output_prefix.
6285 (open_archive): Likewise.
6287 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6289 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6290 too many stpcpy macros.
6292 2002-04-26 Bruno Haible <bruno@clisp.org>
6294 * locale/programs/ld-collate.c (collate_read): Cast first argument
6297 2002-04-26 Bruno Haible <bruno@clisp.org>
6299 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6300 __dcngettext_internal): New declarations.
6301 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6302 attribute declarations.
6304 2002-04-30 Roland McGrath <roland@frob.com>
6306 Removed old GNU stdio implementation; GNU libio is now the only option.
6307 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6308 Define USE_IN_LIBIO unconditionally.
6309 * configure: Regenerated.
6310 * Makeconfig (stdio): Set to libio by default.
6311 * config.make.in (stdio): Variable removed.
6312 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6313 * sysdeps/unix/sysv/linux/configure: Regenerated.
6314 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6315 * sysdeps/mach/hurd/configure: Regenerated.
6316 * stdio/.cvsignore: File removed.
6317 * stdio/Makefile: File removed.
6318 * stdio/Versions: File removed.
6319 * stdio/__fbufsize.c: File removed.
6320 * stdio/__flbf.c: File removed.
6321 * stdio/__fpending.c: File removed.
6322 * stdio/__fpurge.c: File removed.
6323 * stdio/__freadable.c: File removed.
6324 * stdio/__freading.c: File removed.
6325 * stdio/__fsetlocking.c: File removed.
6326 * stdio/__fwritable.c: File removed.
6327 * stdio/__fwriting.c: File removed.
6328 * stdio/clearerr.c: File removed.
6329 * stdio/fclose.c: File removed.
6330 * stdio/fcloseall.c: File removed.
6331 * stdio/feof.c: File removed.
6332 * stdio/ferror.c: File removed.
6333 * stdio/fflush.c: File removed.
6334 * stdio/fgetc.c: File removed.
6335 * stdio/fgetpos.c: File removed.
6336 * stdio/fgets.c: File removed.
6337 * stdio/fileno.c: File removed.
6338 * stdio/fmemopen.c: File removed.
6339 * stdio/fopen.c: File removed.
6340 * stdio/fopncook.c: File removed.
6341 * stdio/fputc.c: File removed.
6342 * stdio/fputs.c: File removed.
6343 * stdio/fread.c: File removed.
6344 * stdio/freopen.c: File removed.
6345 * stdio/fseek.c: File removed.
6346 * stdio/fsetpos.c: File removed.
6347 * stdio/ftell.c: File removed.
6348 * stdio/fwrite.c: File removed.
6349 * stdio/getc.c: File removed.
6350 * stdio/getchar.c: File removed.
6351 * stdio/getdelim.c: File removed.
6352 * stdio/gets.c: File removed.
6353 * stdio/glue.c: File removed.
6354 * stdio/internals.c: File removed.
6355 * stdio/linewrap.c: File removed.
6356 * stdio/linewrap.h: File removed.
6357 * stdio/memstream.c: File removed.
6358 * stdio/newstream.c: File removed.
6359 * stdio/obstream.c: File removed.
6360 * stdio/putc.c: File removed.
6361 * stdio/putchar.c: File removed.
6362 * stdio/puts.c: File removed.
6363 * stdio/rewind.c: File removed.
6364 * stdio/setbuf.c: File removed.
6365 * stdio/setbuffer.c: File removed.
6366 * stdio/setlinebuf.c: File removed.
6367 * stdio/setvbuf.c: File removed.
6368 * stdio/stdio.h: File removed.
6369 * stdio/ungetc.c: File removed.
6370 * stdio/vasprintf.c: File removed.
6371 * stdio/vscanf.c: File removed.
6372 * stdio/vsnprintf.c: File removed.
6373 * stdio/vsprintf.c: File removed.
6374 * stdio/vsscanf.c: File removed.
6375 * sysdeps/generic/defs.c: File removed.
6376 * sysdeps/generic/fdopen.c: File removed.
6377 * sysdeps/generic/pipestream.c: File removed.
6378 * sysdeps/generic/stdio_init.c: File removed.
6379 * sysdeps/generic/sysd-stdio.c: File removed.
6380 * sysdeps/generic/vdprintf.c: File removed.
6381 * sysdeps/mach/hurd/defs.c: File removed.
6382 * sysdeps/mach/hurd/fdopen.c: File removed.
6383 * sysdeps/mach/hurd/pipestream.c: File removed.
6384 * sysdeps/mach/hurd/stdio_init.c: File removed.
6385 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6386 * sysdeps/mach/hurd/vdprintf.c: File removed.
6387 * sysdeps/posix/defs.c: File removed.
6388 * sysdeps/posix/fdopen.c: File removed.
6389 * sysdeps/posix/pipestream.c: File removed.
6390 * sysdeps/posix/stdio_init.c: File removed.
6391 * sysdeps/posix/vdprintf.c: File removed.
6392 * sysdeps/unix/pipestream.c: File removed.
6393 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6394 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6395 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6397 2002-04-29 Roland McGrath <roland@frob.com>
6399 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6401 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6403 * sysdeps/generic/tls.h: Describe what must be defined.
6405 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6406 glob_in_dir [PR libc/3385].
6407 * posix/globtest.sh: Add test case.
6409 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6412 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6414 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6415 _internal symbol handling.
6416 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6418 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6420 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6421 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6423 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6425 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6426 not _LIBC and RE_ENABLE_I18N.
6427 (build_range_exp): Implement for not _LIBC.
6428 (build_collating_symbol): Likewise.
6429 (parse_bracket_exp): Unify redundant error handlings.
6430 Don't erase mbcset for non matching list in multibyte envs.
6431 (build_word_op): Add '_' to matching list for \w operator.
6432 * posix/regex_internal.c (re_string_construct): Invoke
6433 build_upper_buffer in case of not RE_ENABLE_I18N.
6434 (re_string_reconstruct): Don't touch cur_state in case of not
6436 * posix/regex_internal.h (attribute_hidden): New macro in case of
6438 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6439 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6441 (transit_state_mb): Likewise.
6442 (check_node_accept_bytes): Implement the code evaluating range
6443 expression in case of not _LIBC.
6444 (find_collation_sequence_value): Hide in case of not _LIBC.
6446 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6448 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6450 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6453 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6455 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6457 * sysdeps/ia64/strncpy.S: Fix recovery code.
6458 Patch by David Mosberger <davidm@hpl.hp.com>.
6460 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6462 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6465 2002-04-14 Bruno Haible <bruno@clisp.org>
6467 * posix/regex.c (re_max_failures): Add back symbol for binary
6470 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6472 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6473 of buffer building functions.
6474 * posix/regex_internal.c (re_string_allocate): New function.
6475 (re_string_realloc_buffers): New function.
6476 (re_string_skip_chars): New function.
6477 (re_string_reconstruct): New function.
6478 (re_string_construct): Adapt it to new interface of buffer building
6480 (re_string_construct_common): Likewise.
6481 (build_wcs_buffer): Likewise.
6482 (build_wcs_upper_buffer): Likewise.
6483 (build_upper_buffer): Likewise.
6484 (re_string_translate_buffer): Likewise.
6485 (re_string_context_at): Adapt it to variable length buffers.
6486 * posix/regex_internal.h (re_string_t): Add new fields to handle
6487 variable length buffers.
6488 (re_match_context_t): Likewise.
6489 * posix/regexec.c (re_search_internal): Adapt it to new interface
6490 of re_string_t and re_match_context_t.
6491 (acquire_init_state_context): Likewise.
6492 (check_matching): Likewise.
6493 (check_halt_state_context): Likewise.
6494 (proceed_next_node): Likewise.
6495 (set_regs): Likewise.
6496 (sift_states_backward): Likewise.
6497 (clean_state_log_if_need): Likewise.
6498 (sift_states_iter_mb): Likewise.
6499 (sift_states_iter_bkref): Likewise.
6500 (add_epsilon_backreference): Likewise.
6501 (transit_state): Likewise.
6502 (transit_state_sb): Likewise.
6503 (transit_state_mb): Likewise.
6504 (transit_state_bkref): Likewise.
6505 (transit_state_bkref_loop): Likewise.
6506 (check_node_accept): Likewise.
6507 (match_ctx_init): Likewise.
6508 (extend_buffers): New function.
6510 2002-04-21 Bruno Haible <bruno@clisp.org>
6512 * iconvdata/tst-table.sh: For the second check, use the truncated
6513 GB18030 charmap table, like for the first check.
6515 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6517 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6518 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6520 2002-04-23 H.J. Lu <hjl@gnu.org>
6522 * include/math.h (isfinite): Fix a typo.
6524 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6526 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6527 which is created by the test suite.
6529 2002-04-20 Bruno Haible <bruno@clisp.org>
6531 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6532 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6534 2002-04-20 Bruno Haible <bruno@clisp.org>
6536 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6537 to avoid gcc warning.
6539 2002-04-20 Bruno Haible <bruno@clisp.org>
6541 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6542 of data->__statep->__count.
6544 2002-04-20 Bruno Haible <bruno@clisp.org>
6546 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6548 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6550 2002-04-24 Roland McGrath <roland@frob.com>
6552 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6553 use END macro instead of our own .end directive.
6554 Use `callsys' insn mnemonic instead of `call_pal'.
6556 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6558 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6559 macro; we need this for Hurd.
6561 Log entry was missing for 2002/03/24 commit of rev 1.8,
6562 goes with 2002-03-17 changes.
6563 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6564 (sysdep_routines): Append ioperm here.
6565 (sysdep_headers): Append sys/io.h here.
6567 2002-04-23 Roland McGrath <roland@frob.com>
6569 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6570 * sysdeps/mach/hurd/sendto.c: Likewise.
6571 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6572 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6573 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6575 2002-04-22 Roland McGrath <roland@frob.com>
6577 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6578 failure from i386_io_perm_* RPCs to ENOSYS.
6580 2002-04-22 Andreas Jaeger <aj@suse.de>
6582 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6584 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6586 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6587 register instead of destroying %rbx.
6589 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6591 * string/string.h: Declare strerror_r also for XPG6.
6593 2002-04-19 Roland McGrath <roland@frob.com>
6595 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6597 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6599 * Makefile: Add handling of xtests and xcheck targets.
6600 * MakeTAGS: Likewise.
6601 * Makeconfig: Likewise.
6602 * Makerules: Likewise.
6604 * manual/Makefile: Likewise.
6605 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6606 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6608 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6610 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6612 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6613 Delete #ifdef _RPC_THREAD_SAFE_ block.
6614 (authnone_private): Make a struct, not a pointer to struct.
6615 (authnone_private_guard): New once-control variable.
6616 (authnone_create_once): New function, split out of
6617 authnone_create. No need to allocate memory.
6618 (authnone_create): Just call authnone_create_once via
6619 __libc_once, then return &authnone_private->no_client.
6620 (authnone_marshal): Access private data via CLIENT argument,
6621 not authnone_private pointer.
6622 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6623 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6626 2002-04-12 H.J. Lu <hjl@gnu.org>
6628 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6630 2002-04-18 Bruno Haible <bruno@clisp.org>
6632 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6633 FROM_DIRECTION): Make the FROM direction stateless.
6634 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6635 FROM_DIRECTION): Likewise.
6637 2002-04-15 Bruno Haible <bruno@clisp.org>
6639 * iconvdata/JISX0213.TXT: New file.
6640 * iconvdata/jisx0213.h: New file.
6641 * iconvdata/jisx0213.c: New file.
6642 * iconvdata/euc-jisx0213.c: New file.
6643 * iconvdata/shift_jisx0213.c: New file.
6644 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6645 * iconvdata/EUC-JISX0213.precomposed: New file.
6646 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6647 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6648 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6649 which the "to" direction is stateful.
6650 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6651 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6653 (libJISX0213-routines): New variable.
6654 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6655 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6656 (LDFLAGS-libJISX0213.so): New variable.
6657 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6658 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6659 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6661 2002-04-15 Bruno Haible <bruno@clisp.org>
6663 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6664 uint32_t. Update to Unicode 3.2.
6665 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6666 (BODY for TO_LOOP): Handle the ASCII range specially.
6667 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6668 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6669 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6671 2002-04-15 Bruno Haible <bruno@clisp.org>
6673 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6674 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6676 2002-04-15 Bruno Haible <bruno@clisp.org>
6678 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6679 (ucs4_to_cns11643): Update.
6680 * iconvdata/cns11643.c: Update to Unicode 3.2.
6681 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6682 __cns11643_from_ucs4p2_tab): Regenerated.
6683 (__cns11643_from_ucs4p2c_tab): New array.
6684 * iconvdata/cvs11643l1.c: Update comments.
6685 * iconvdata/EUC-TW.irreversible: Remove two entries.
6687 2002-04-15 Bruno Haible <bruno@clisp.org>
6689 * locale/C-translit.h.in: Update to Unicode 3.2.
6690 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6691 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6693 2002-04-15 Bruno Haible <bruno@clisp.org>
6695 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6696 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6698 2002-04-15 Bruno Haible <bruno@clisp.org>
6700 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6701 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6702 always one byte, not 0 bytes in some cases and 2 bytes in others.
6704 * iconvdata/tst-table-from.c (main): Correct the usage message.
6706 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6708 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6709 (parse_dup_op): Fix error handling like "a{}".
6710 (parse_bracket_exp): Add error handling.
6711 (fetch_number): Add error handling for "a{<very_large_number>}".
6713 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6715 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6716 in case that the symbol name is too long.
6717 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6718 in case of REG_ICASE.
6720 2002-04-19 Andreas Jaeger <aj@suse.de>
6722 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6723 <hartvige@mips.com>.
6725 2002-04-15 H.J. Lu <hjl@gnu.org>
6727 * include/math.h (__finitel_internal): Declare only if
6728 __NO_LONG_DOUBLE_MATH is not defined.
6729 (__isinfl_internal): Likewise.
6730 (__isnanl_internal): Likewise.
6732 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6733 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6734 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6735 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6736 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6737 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6738 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6740 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6743 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6744 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6746 2002-04-15 Bruno Haible <bruno@clisp.org>
6748 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6749 (BODY for TO_LOOP): Likewise.
6750 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6751 * iconvdata/tst-table.sh: Add support for encodings which contain
6752 precomposed Unicode characters, known to the iconv converter in both
6753 directions but not listed in the charmap.
6754 * iconvdata/IBM856.irreversible: New file.
6755 * iconvdata/IBM922.irreversible: New file.
6756 * iconvdata/IBM1132.irreversible: New file.
6757 * iconvdata/IBM1133.irreversible: New file.
6758 * iconvdata/IBM1160.irreversible: New file.
6759 * iconvdata/IBM1161.irreversible: New file.
6760 * iconvdata/IBM1163.irreversible: New file.
6761 * iconvdata/IBM1164.irreversible: New file.
6762 * iconvdata/ARMSCII-8.irreversible: New file.
6763 * iconvdata/TCVN5712-1.precomposed: New file.
6764 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6765 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6766 ARMSCII-8, TCVN5712-1.
6767 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6768 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6769 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6770 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6772 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6774 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6775 for EVENING69. Include offsets in TZ environment variable.
6777 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6779 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6780 avoid compiler warnings.
6782 * locale/programs/localedef.c (main): Always call
6783 construct_output_path.
6785 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6787 * locale/programs/locfile.c (to_archive): New variable. To collect
6788 data which has to be added to the locale archive.
6789 (write_all_categories): Take new third parameter with locale name.
6790 Unless no_archive flag set add new locale data to the archive
6791 (write_locale_data): Unless no-archive flag set store generated data
6792 in to_archive data structure instead of generation output file.
6793 Add new parameter with locale category index.
6794 * locale/programs/locfile.h: Add new parameters in declaractions of
6795 write_all_categories and write_locale_data.
6796 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6797 --add-to-archive, and --delete-from-archive options. Pass extra
6798 parameter to write_all_categories.
6799 * locale/programs/localedef.h: Add prototypes for functions in
6801 * locale/locarchive.h: New file.
6802 * locale/programs/locarchive.c: New file.
6803 * locale/Makefile (distribute): Add programs/locarchive.c and
6805 (localedef-modules): Add md5 and locarchive.
6806 Add vpath to crypt subdir for md5.c.
6808 * locale/programs/ld-address.c: Pass locale category ID as new second
6809 parameter to write_locale_data.
6810 * locale/programs/ld-collate.c: Likewise.
6811 * locale/programs/ld-ctype.c: Likewise.
6812 * locale/programs/ld-identification.c: Likewise.
6813 * locale/programs/ld-measurement.c: Likewise.
6814 * locale/programs/ld-messages.c: Likewise.
6815 * locale/programs/ld-monetary.c: Likewise.
6816 * locale/programs/ld-name.c: Likewise.
6817 * locale/programs/ld-numeric.c: Likewise.
6818 * locale/programs/ld-paper.c: Likewise.
6819 * locale/programs/ld-telephone.c: Likewise.
6820 * locale/programs/ld-time.c: Likewise.
6822 * locale/simple-hash.c: Move compute_hashval function from here...
6823 * locale/hashval.h: ...to here. New file.
6824 * locale/simple-hash.h: Add prototype for compute_hashval.
6826 * include/libintl.h: Minor cleanups.
6828 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6830 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6832 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6834 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6836 2002-04-14 Bruno Haible <bruno@clisp.org>
6838 * locale/programs/charmap.c (charmap_read): Don't access result if
6841 2002-02-17 Andreas Schwab <schwab@suse.de>
6843 * elf/reldep7.c: New file.
6844 * elf/reldep7mod1.c: New file.
6845 * elf/reldep7mod2.c: New file.
6846 * elf/Makefile: Add rules to build and run reldep7.
6848 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6850 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6851 the end of the function. Pass original flags to recursive call if
6852 add_dependency failed.
6853 (_dl_lookup_versioned_symbol): Likewise.
6855 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6857 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6858 early, but check whether it overflowed afterwards.
6859 * time/tst-mktime.c (main): Add new tests.
6861 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6863 * debug/xtrace.sh: Fix program name in help message.
6864 Patch by Roger Luethi <rl@hellgate.ch>.
6866 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6867 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6869 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6870 * sysdeps/mach/hurd/lxstat.c: Likewise.
6871 * sysdeps/unix/common/lxstat.c: Likewise.
6872 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6873 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6874 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6876 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6877 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6878 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6879 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6880 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6882 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6883 prototypes. Add __mbrlen and __mbrtowc macros.
6884 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6885 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6887 * include/unistd.h: Add prototype for __write_internal and add
6888 __libc_write macro is SHARED.
6889 * sysdeps/generic/write.c: Use INTDEF for __write.
6890 * sysdeps/mach/hurd/write.c: Likewise.
6891 * sysdeps/unix/sysv/aix/write.c: Likewise.
6892 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6894 * assert/assert.c: Replace STR_N_SIZE with something usable in
6896 * assert/assert-perr.c: Likewise.
6898 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6899 SA_LEN macro to use it if not NOT_IN_libc.
6900 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6902 * include/fcntl.h: Declare __open_internal and define __open and
6903 __libc_open macros if not NOT_IN_libc.
6904 * sysdeps/generic/open.c: Use INTDEF for __open.
6905 * sysdeps/mach/hurd/open.c: Likewise.
6906 * sysdeps/unix/sysv/aix/open.c: Likewise.
6907 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6909 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6912 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6913 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6914 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6915 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6917 * include/wctype.h: Declare __iswalpha_l_internal,
6918 __iswdigit_l_internal, __iswspace_l_internal,
6919 __iswxdigit_l_internal, and __iswctype_internal. Define
6920 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6921 __iswxdigit_l macros if not NOT_IN_libc.
6922 * wctype/iswctype.c: Use INTDEF for __iswctype.
6923 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6925 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6926 __isnan_internal, and __isnanl_internal.
6927 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6928 __isnan, and __isnanl.
6929 * stdio-common/printf_size.c: Likewise.
6930 * sysdeps/generic/printf_fphex.c: Likewise.
6931 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6932 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6933 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6934 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6935 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6937 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6938 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6939 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6940 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6941 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6942 * sysdeps/m68k/s_isinfl.c: Likewise.
6943 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6944 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6946 * include/sys/time.h: Declare __gettimeofday_internal and define
6947 __gettimeofday macro if not NOT_IN_libc.
6948 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6949 * sysdeps/mach/gettimeofday.c: Likewise.
6950 * sysdeps/posix/gettimeofday.c: Likewise.
6951 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6952 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6953 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6954 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6956 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6957 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6958 Remove __lstat and __fstat inline functions.
6959 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6960 * sysdeps/mach/hurd/fxstat.c: Likewise.
6961 * sysdeps/unix/fxstat.c: Likewise.
6962 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6963 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6964 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6965 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6966 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6967 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6968 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6969 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6970 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6972 * include/unistd.h: Declare __getpid_internal and define
6973 __getpid macro if not NOT_IN_libc.
6974 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6975 * sysdeps/generic/getpid.c: Likewise.
6976 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6977 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6979 * include/unistd.h: Declare __getpgid_internal and define
6980 __getpgid macro if not NOT_IN_libc.
6981 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6982 * sysdeps/mach/hurd/getpgid.c: Likewise.
6983 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6984 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6985 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6986 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6988 * include/unistd.h: Declare __getpagesize_internal and define
6989 __getpagesize macro if not NOT_IN_libc.
6990 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6992 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6993 * sysdeps/mach/getpagesize.c: Likewise.
6994 * sysdeps/posix/getpagesize.c: Likewise.
6995 * sysdeps/unix/getpagesize.c: Likewise.
6996 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6997 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6998 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6999 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7001 2002-04-13 Andreas Jaeger <aj@suse.de>
7003 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7004 as clobber to reduce register pressure.
7005 (__strpbrk_cg): Likewise.
7006 (__mempcpy_by4): Likewise.
7007 (__strstr_cg): Likewise.
7008 Add prototype for __memrchr.
7010 2002-04-13 Andreas Schwab <schwab@suse.de>
7012 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7013 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7014 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7016 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7018 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7019 check whether the caller prefers getting the most recent version of
7020 a symbol of the earliest version.
7021 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7022 _dl_do_lookup to also take the new parameter and pass it on.
7023 Change 'explicit' parameter of _dl_lookup_symbol and
7024 _dl_lookup_versioned_symbol to flags. Adjust tests.
7025 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7026 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7027 _dl_lookup_versioned_symbol.
7028 * elf/dl-reloc.c: Likewise.
7029 * elf/dl-runtime.c: Likewise.
7030 * elf/dl-sym.c: Likewise.
7031 * sysdeps/mips/dl-machine.h: Likewise.
7033 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7035 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7037 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7039 2002-04-10 Andreas Jaeger <aj@suse.de>
7041 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7043 * include/argz.h: Remove extra char from last patch.
7045 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7047 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7048 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7049 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7050 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7051 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7052 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7054 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7056 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7057 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7058 * intl/ngettext.c: Likewise.
7060 * include/sys/socket.h: Declare __connect_internal and define
7061 __connect macro if not NOT_IN_libc.
7062 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7063 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7064 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7066 * include/unistd.h: Declare __close_internal and define __close macro
7068 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7069 WJUMP3): Add extra parenthesis to avoid expanding element names with
7070 macors like __close.
7071 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7073 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7075 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7076 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7077 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7079 * include/unistd.h: Declare __fork_internal and define __fork macro
7081 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7082 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7083 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7085 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7086 __fsetlocking macro to use it if not NOT_IN_libc.
7087 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7089 * libio/__fbufsize.c: Correct copyright.
7090 * libio/__flbf.c: Likewise.
7091 * libio/__fpending.c: Likewise.
7092 * libio/__fpurge.c: Likewise.
7093 * libio/__freadable.c: Likewise.
7094 * libio/__freading.c: Likewise.
7095 * libio/__fsetlocking.c: Likewise.
7096 * libio/__fwritable.c: Likewise.
7097 * libio/__fwriting.c: Likewise.
7099 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7100 macro to use it if not NOT_IN_libc.
7101 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7103 * include/mntent.h: Declare __setmntent_internal,
7104 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7105 __getmntent_r, and __endmntent macros to use these functions if not
7107 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7110 * include/math.h: Declare __finite_internal, __finitef_internal, and
7111 __finitel_internal. Redefine isfinite macro if in libc or libm using
7113 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7114 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7115 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7116 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7117 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7118 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7119 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7120 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7121 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7122 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7124 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7125 to use this function if not NOT_IN_libc.
7126 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7127 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7128 * sysdeps/mach/hurd/fcntl.c: Likewise.
7129 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7130 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7132 * include/argz.h: Declare __argz_count_internal and
7133 __argz_stringify_internal.
7134 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7136 * string/argz-count.c: Use INTDEF for __argz_count.
7137 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7139 * include/stdlib.h: Declare __cxa_atexit_internal and define
7140 __cxa_atexit macro if not NOT_IN_libc.
7141 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7142 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7144 * assert/assert.c: Use INTDEF for __assert_fail.
7145 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7146 * include/assert.h: Declare __assert_fail_internal.
7148 * extra-lib.mk: Mark assignment to lib with override.
7150 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7152 * Makerules: Use cppflags-iterator.mk to add defines for all test
7155 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7157 * elf/elf.h: Define R_SH_TLS_xxx macros.
7158 * elf/rtld.c: Remove an extra parenthesis.
7159 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7161 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7162 * sysdeps/sh/dl-lookupcfg.h: New file.
7163 * sysdeps/sh/dl-tls.h: New file.
7164 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7165 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7166 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7167 R_SH_TLS_TPOFF32 relocations.
7169 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7171 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7173 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7174 * include/stdlib.h: Likewise.
7176 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7178 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7179 instead of _RTLD_LOCAL.
7180 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7181 * include/unistd.h: Likewise.
7182 * sysdeps/generic/ldsodefs.h: Likewise.
7184 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7185 if in libc or ld.so.
7187 2002-04-08 Andreas Jaeger <aj@suse.de>
7189 * elf/cache.c (print_entry): Support x86-64.
7191 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7193 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7194 with one accessing the locale data structures directly.
7195 * stdio-common/printf-prs.c: Include localeinfo.h for new
7196 MB_CUR_MAX definition.
7198 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7199 is the name of the source file without extension.
7200 * Makefile (distribute): Add cppflags-iterator.mk.
7201 * cppflags-iterator.mk: New file.
7202 * extra-lib.mk: For the sources of the library run
7203 cppflags-iterator.mk.
7205 * include/libintl.h: Declare __dcgettext_internal and
7206 _libc_intl_domainname_internal. Define __dcgettext using these
7207 two symbols if used in libc itself.
7208 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7209 _libc_intl_domainname_internal.
7210 * argp/argp-parse.c: Likewise.
7211 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7212 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7213 * intl/gettext.c: Likewise.
7214 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7216 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7218 * posix/regex_internal.c (gettext): Likewise.
7220 2002-04-08 Andreas Jaeger <aj@suse.de>
7222 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7224 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7225 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7226 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7227 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7228 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7229 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7231 2002-04-08 Roland McGrath <roland@frob.com>
7233 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7234 widening __hurd_fail value.
7236 2002-04-07 Roland McGrath <roland@frob.com>
7238 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7239 <mach/machine/alpha_instruction.h>.
7240 (_hurd_setup_sighandler): Take proper arguments for current decls.
7241 Update code to use _hurdsig_catch_fault.
7242 Use `callsys' instruction instead of `call_pal'.
7243 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7245 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7246 (ALIGN, at, AT, fp): New macros.
7248 2002-04-06 Roland McGrath <roland@frob.com>
7250 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7252 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7253 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7255 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7256 * sysdeps/mach/hurd/connect.c: Likewise.
7257 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7258 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7260 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7263 * hurd/catch-exc.c: Use integer_t instead of int.
7264 * hurd/hurdfault.c: Likewise.
7266 * sysdeps/mach/hurd/alpha/exc2signal.c
7267 (_hurd_exception2signal): Rewritten.
7268 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7269 (_hurd_longjmp_thread_state): Rewritten.
7271 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7273 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7274 DB_LOOKUP_FCT prototype.
7275 * nss/getXXent_r.c: Likewise.
7276 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7277 * inet/getaliasname_r.c: Likewise.
7278 * inet/getnetbyad_r.c: Likewise.
7279 * inet/getnetbynm_r.c: Likewise.
7280 * inet/getnetent_r.c: Likewise.
7281 * inet/getproto_r.c: Likewise.
7282 * inet/getprtent_r.c: Likewise.
7283 * inet/getprtname_r.c: Likewise.
7284 * inet/getrpcbyname_r.c: Likewise.
7285 * inet/getrpcbynumber_r.c: Likewise.
7286 * inet/getrpcent_r.c: Likewise.
7287 * inet/getservent_r.c: Likewise.
7288 * inet/getsrvbynm_r.c: Likewise.
7289 * inet/getsrvbypt_r.c: Likewise.
7290 * shadow/getspent_r.c: Likewise.
7291 * shadow/getspnam_r.c: Likewise.
7293 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7295 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7296 Use i686-friendly PIC code.
7297 * sysdeps/i386/elf/setjmp.S: Likewise.
7299 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7301 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7303 * elf/Versions: Remove it here.
7305 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7307 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7308 direction. Reported by H . J . Lu <hjl@lucon.org>.
7310 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7312 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7313 test just before the test runs.
7314 * intl/tst-translit.sh: Likewise.
7315 * intl/tst-codeset.sh: Likewise.
7317 * timezone/zic.c: Update from tzcode2002c.
7318 * timezone/asia: Update from tzdata2002c.
7319 * timezone/backward: Likewise.
7320 * timezone/europe: Likewise.
7321 * timezone/northamerica: Likewise.
7322 * timezone/northamerica: Likewise.
7323 * timezone/northamerica: Likewise.
7324 * timezone/southamerica: Likewise.
7325 * timezone/zone.tab: Likewise.
7327 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7329 * sysdeps/generic/brk.c (__curbrk): Declare.
7330 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7331 * sysdeps/generic/dl-sbrk.c: Likewise.
7332 * sysdeps/unix/arm/dl-brk.S: New file.
7333 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7334 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7335 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7336 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7337 * sysdeps/unix/i386/dl-brk.S: New file.
7338 * sysdeps/unix/mips/dl-brk.S: New file.
7339 * sysdeps/unix/sparc/dl-brk.S: New file.
7340 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7341 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7342 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7343 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7345 2002-04-03 Andreas Schwab <schwab@suse.de>
7347 * Makefile (headers): Add gnu/lib-names.h here instead of
7349 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7351 (install-headers): Add dependency on install-headers-nosubdir.
7352 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7353 instead of install-others.
7354 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7357 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7359 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7360 Reported by Sam Roberts <sroberts@uniserve.com>.
7362 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7364 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7365 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7366 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7367 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7369 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7371 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7372 (RTLD_START): Ditto.
7373 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7374 dependency violation.
7376 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7378 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7379 all variable declarations.
7381 2002-04-04 Andreas Schwab <schwab@suse.de>
7383 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7385 2002-04-04 Andreas Jaeger <aj@suse.de>
7387 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7388 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7390 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7391 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7392 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7394 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7396 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7398 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7399 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7401 * configure.in: Handle all mips entries the same.
7403 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7404 * sysdeps/mips/mips3/*: Likewise.
7405 * sysdeps/mips/p40/bits/endian.h: Likewise.
7407 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7409 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7410 non-null result [PR libc/2600].
7412 * misc/tst-dirname.c: Add more tests.
7414 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7416 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7417 define a code_set_name provide one based on the filename.
7419 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7421 2001-12-28 Andreas Jaeger <aj@suse.de>
7423 * time/mktime.c (__mktime_internal): Check for year < 70
7426 2002-04-03 Andreas Jaeger <aj@suse.de>
7428 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7430 Reported by Andi Kleen <ak@suse.de>.
7432 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7434 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7435 * sysdeps/generic/w_lgammaf.c: Likewise.
7436 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7438 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7439 Adjust for new output format of the backtrace functions.
7441 * misc/syslog.c (vsyslog): Only use cleanup handler if
7442 _LIBC_REENTRANT is defined [PR libc/2924].
7444 * libio/Makefile (tests): Add bug-ungetwc2.
7445 * libio/bug-ungetwc2.c: New file.
7447 * manual/install.texi: Typographical and grammatical cleanup.
7448 Patch by Dennis Grace <dgrace@us.ibm.com>.
7450 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7451 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7453 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7454 always "&". Adjust callers.
7455 Add "_" prefix to several generated definitions.
7456 Patch by paul@serice.net [PR libc/3158].
7458 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7460 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7461 size of _dl_arm_cap_flags.
7462 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7464 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7467 2002-03-22 H.J. Lu <hjl@gnu.org>
7469 * scripts/firstversions.awk: Check the first version.
7471 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7473 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7474 dependencies must be stable to work correctly.
7475 Reported by martin.lubich@datacon.at.
7477 * libio/bug-ungetwc1.c: New file.
7478 * libio/Makefile (tests): Add bug-ungetwc1.
7480 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7481 if stream was last used for writing.
7483 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7484 number [PR libc/3111].
7486 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7488 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7490 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7492 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7493 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7494 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7495 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7496 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7498 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7500 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7503 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7505 * sysdeps/i386/fpu/s_fabs.S: New file.
7506 * sysdeps/i386/fpu/s_fabsf.S: New file.
7507 * sysdeps/i386/fpu/s_fabsl.S: New file.
7508 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7509 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7510 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7512 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7514 * rt/tst-shm.c (do_test): Add one more test for size of shared
7517 2002-03-29 Wolfram Gloger <wg@malloc.de>
7519 * malloc/malloc.c: Add short description and prototypes for
7520 malloc_get_state, malloc_set_state and posix_memalign, for
7521 consistency and to avoid warnings with -Wstrict-prototypes.
7522 Reported by Andreas Jaeger <aj@suse.de>.
7524 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7526 * po/gl.po: Update from translation team.
7528 2002-03-31 Roland McGrath <roland@frob.com>
7530 * hurd/hurdselect.c (_hurd_select): Fix
7531 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7532 Use a union rather than casts to compare mach_msg_type_t as int.
7534 2002-03-25 Roland McGrath <roland@frob.com>
7536 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7537 check off the end of NAME when it's shorter than 2 chars.
7538 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7540 2002-03-17 Roland McGrath <roland@frob.com>
7542 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7543 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7544 * sysdeps/mach/hurd/i386/Dist: Add them.
7545 * sysdeps/mach/hurd/i386/Versions
7546 (libc: GLIBC_2.2.6): New set, add ioperm.
7547 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7548 (mach_interface_list): Check for mach_i386.defs.
7549 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7550 * sysdeps/mach/configure: Regenerated.
7552 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7554 * po/fr.po: Update from translation team.
7556 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7558 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7559 getpriority from syscalls list.
7561 2002-03-28 Andreas Jaeger <aj@suse.de>
7563 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7564 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7565 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7566 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7568 2002-03-27 Andreas Jaeger <aj@suse.de>
7570 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7571 sigcontext): Follow further kernel change.
7573 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7576 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7577 Change for struct sigcontext change.
7579 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7580 Follow changes in struct sigcontext.
7582 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7583 sysycall, use wrapper instead.
7585 2002-03-26 Andreas Jaeger <aj@suse.de>
7587 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7588 read and write accesses as detailed as possible.
7589 (__memcpy_by2): Likewise.
7590 (__memcpy_g): Likewise.
7591 (memmove): Likewise.
7593 (__memset_ccn_by4): Likewise.
7594 (__memset_ccn_by2): Likewise.
7595 (__memset_gcn_by4): Likewise.
7596 (__memset_gcn_by2): Likewise.
7598 (__memrchr): Likewise.
7599 (rawmemchr): Likewise.
7600 (__strlen_g): Likewise.
7601 (__strcpy_g): Likewise.
7602 (__mempcpy_by4): Likewise.
7603 (__mempcpy_by2): Likewise.
7604 (__mempcpy_byn): Likewise.
7605 (__stpcpy_g): Likewise.
7606 (__strncpy_by4): Likewise.
7607 (__strncpy_by2): Likewise.
7608 (__strncpy_byn): Likewise.
7609 (__strncpy_gg): Likewise.
7610 (__strcat_c): Likewise.
7611 (__strcat_g): Likewise.
7612 (__strncat_g): Likewise.
7613 (__strcmp_gg): Likewise.
7614 (__strncmp_g): Likewise.
7615 (__strchr_c): Likewise.
7616 (__strchr_g): Likewise.
7617 (__strchrnul_c): Likewise.
7618 (__strchrnul_g): Likewise.
7619 (__strrchr_c): Likewise.
7620 (__strrchr_g): Likewise.
7621 (__strrchr_c): Likewise.
7622 (__strrchr_g): Likewise.
7623 (__strcspn_c1): Likewise.
7624 (__strcspn_cg): Likewise.
7625 (__strcspn_g): Likewise.
7626 (__strcspn_g): Likewise.
7627 (__strspn_c1): Likewise.
7628 (__strspn_cg): Likewise.
7629 (__strspn_g): Likewise.
7630 (__strspn_g): Likewise.
7631 (__strpbrk_cg): Likewise.
7632 (__strpbrk_g): Likewise.
7633 (__strstr_cg): Likewise.
7634 (__strstr_g): Likewise.
7636 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7637 Michal Ludvig <mludvig@suse.cz>.
7639 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7640 compatibilty, adjust for kernel changes.
7642 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7643 sigcontext): Adjust for kernel changes.
7645 2002-03-25 Andreas Jaeger <aj@suse.de>
7647 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7649 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7651 2002-03-24 Andreas Jaeger <aj@suse.de>
7653 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7655 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7657 * iconv/tst-iconv3.c (main): Use correct printf strings.
7659 2002-03-18 Roland McGrath <roland@frob.com>
7661 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7662 (CMGROUP_MAX): New macro.
7664 2002-03-23 Roland McGrath <roland@frob.com>
7666 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7667 * sysdeps/posix/shm_unlink.c: Likewise.
7669 2002-03-22 Roland McGrath <roland@frob.com>
7671 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7672 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7673 under --enable-libio.
7674 * sysdeps/mach/hurd/configure: Regenerated.
7676 2002-03-23 Roland McGrath <roland@frob.com>
7678 * sysdeps/mach/hurd/i386/Makefile
7679 (sysdep_routines, shared-only-routines): Don't add framestate,
7680 reverting 2001-10-02 change.
7681 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7682 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7683 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7684 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7685 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7686 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7687 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7688 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7689 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7690 Do it here instead, only if [$(unwind-find-fde) = yes].
7692 2002-03-23 Andreas Jaeger <aj@suse.de>
7694 * signal/signal.h: Fix typo. Patch by Steve Kemp
7695 <skx@tardis.ed.ac.uk>.
7697 2002-03-22 Andreas Jaeger <aj@suse.de>
7699 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7702 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7703 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7704 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7705 user_fpregs_struct): Rename fwd.
7707 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7708 Follow sigcontext changes.
7710 2002-03-22 Andreas Jaeger <aj@suse.de>
7712 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7713 changes for NaNs on MIPS.
7714 Patch by Hartvig Ekner <hartvige@mips.com>.
7716 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7718 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7719 Use realloc if too large.
7720 (addgrbyid): Likewise.
7721 * nscd/hstcache.c (addhstbyname): Likewise.
7722 (addhstbyaddr): Likewise.
7723 (addhstbynamev6): Likewise.
7724 (addhstbyaddrv6): Likewise.
7725 * nscd/pwdcache.c (addpwbyname): Likewise.
7726 (addpwbyuid): Likewise.
7728 2002-03-21 Andreas Jaeger <aj@suse.de>
7730 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7731 _fpstate): Add separate struct for x86-64.
7733 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7734 user_fpregs_struct): Change member names to follow kernel.
7736 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7738 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7739 Correctly close the UDP connection right away [PR libc/3120].
7741 2002-03-20 Andreas Jaeger <aj@suse.de>
7743 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7744 user_fpregs_struct): Fix for changed kernel struct.
7745 (struct user_regs_struct): Likewise.
7746 (struct user): Likewise.
7747 Add 32-bit x86 compatibility.
7749 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7751 2002-03-19 Andreas Jaeger <aj@suse.de>
7753 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7755 2002-03-18 Andreas Jaeger <aj@suse.de>
7757 * iconvdata/Makefile: Only run tests when shared libs are
7760 2002-03-17 Andreas Jaeger <aj@suse.de>
7762 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7764 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7766 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7769 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7770 (CAUSE_SHIFT): New macro.
7771 Patch by Hartvig Ekner <hartvige@mips.com>.
7773 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7774 * sysdeps/generic/unwind-pe.h: Likewise.
7776 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7779 * libio/stdio.c (AL2): Define variant when visibility attribute is
7782 * include/libc-symbols.h (_INTVARDEF): Define variant when
7783 visibility attribute is not supported.
7785 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7787 * po/fr.po: Update from translation team.
7789 2002-02-25 Bruno Haible <bruno@clisp.org>
7791 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7793 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7795 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7796 buffers if _IO_file_attach failed.
7798 * libio/fileops.c (_IO_file_open): Close file descriptor if
7799 _IO_SEEKOFF call failed.
7801 2002-03-15 H.J. Lu <hjl@gnu.org>
7802 Ulrich Drepper <drepper@redhat.com>
7804 * configure.in: Check for availability of
7805 init_array/fini_array/preinit_array handling in binutils.
7806 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7807 * config.make.in (have-initfini-array): New variable.
7809 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7811 * stdio-common/tst-printf.c (main): Comment out one test which
7812 checked the compiler's ability to fold floating-point constants
7813 but not really printf.
7814 (rfg3): Make s const.
7815 * stdio-common/tst-printf.sh: Adjust for removed test.
7817 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7818 internal function. Adjust for internal_function calling convention.
7819 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7820 as internal_function.
7822 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7825 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7826 declaration and definition.
7827 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7829 * nss/getXXent_r.c: Likewise.
7830 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7833 * include/time.h: Declare __localtime_r as hidden.
7835 * include/aliases.h: Declare __getaliasent_r as hidden.
7836 * include/grp.h: Declare __getgrent_r as hidden.
7837 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7838 __getservent_r, and __getprotoent_r as hidden.
7839 * include/pwd.h: Declare __getpwent_r as hidden.
7840 * include/shadow.h: Declare __getspent_r as hidden.
7841 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7843 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7844 and __gconv_transliterate as hidden.
7845 Add internal_function to __gconv_get_path declaration.
7846 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7847 definition. Add attribute_hidden to __gconv_read_conf definition.
7849 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7851 * elf/rtld.c: Declare _environ as hidden.
7852 * sysdeps/generic/dl-environ.c: Likewise.
7853 * sysdeps/generic/dl-sysdep.c: Likewise.
7855 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7856 _dl_mcount_internal as hidden.
7858 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7859 * sysdeps/generic/dl-brk.c: New file.
7860 * sysdeps/generic/dl-sbrk.c: New file.
7861 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7862 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7864 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7865 (__errno_location): New function. Declare errno as hidden.
7866 * elf/rtld.c (_dl_argc): Define as hidden.
7867 (_dl_skip_args): Define as hidden.
7868 (_begin, _end): Declare as hidden.
7869 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7870 * sysdeps/generic/entry.h (_start): Declare as hidden.
7871 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7872 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7873 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7874 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7876 2002-03-14 Roland McGrath <roland@frob.com>
7878 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7880 * Makeconfig (%.v.i, %.v): New implicit rules.
7881 (preprocess-versions): Variable removed.
7882 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7883 shlib-versions input files as dependencies.
7884 ($(common-objpfx)soversions.i): Depend on that instead of the input
7885 files. Use it as input instead of using a pipeline.
7886 (postclean-generated): Append soversions.i, shlib-versions.v, and
7887 shlib-versions.v.i here.
7888 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7889 the Versions.def input files as dependencies.
7890 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7891 ($(common-objpfx)Versions.all): Depend on that instead of the input
7892 files. Use it as input instead of using a pipeline.
7893 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7894 (postclean-generated): Append those .v and .v.i files here.
7896 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7898 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7899 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7902 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7904 * sysdeps/generic/mp_clz_tab.c: New file.
7905 * sysdeps/i386/mp_clz_tab.c: New file.
7906 * sysdeps/hppa/mp_clz_tab.c: New file.
7907 * sysdeps/powerpc/mp_clz_tab.c: New file.
7908 * stdlib/Makefile (aux): Revert last patch.
7909 * math/Makefile (gmp-objs): Likewise.
7911 2002-03-13 Paul Eggert <eggert@twinsun.com>
7913 * time/strftime.c: Comment fixes for references to obsolescent
7914 standards, In most cases the simplest fix is to remove the
7915 confusing comments. Cross-referencing all the standards properly
7916 is a bit of a pain, and it should be enough to put that info in
7917 the documentation as I did in my recent time.texi patch.
7919 2002-03-13 Paul Eggert <eggert@twinsun.com>
7921 * manual/time.texi (Formatting Calendar Time):
7922 ISO C99 also specifies the E and O modifiers.
7923 %P is a GNU extension, and is not in ISO C99.
7924 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7925 %T is also in ISO C99.
7926 The RFC 822 example is not valid in arbitrary locales.
7927 Reword the POSIX.2 wording slightly, to make it a bit clearer
7928 that POSIX.2 formats are also supported by later POSIX versions.
7929 If a format was introduced in ISO C99 it is also required by
7932 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7934 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7935 _sys_nerr_internal with INTVARDEF2.
7936 * include/libc-symbols.h (INTVARDEF2): New macro.
7937 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7938 (_sys_nerr_internal): Library.
7940 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7941 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7943 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7945 2002-03-13 Wolfram Gloger <wg@malloc.de>
7947 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7949 2002-03-02 Andreas Schwab <schwab@suse.de>
7951 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7952 'h' flag and positional arg.
7953 * stdio-common/tst-printf.c (rfg3): New function to test
7954 positional arguments.
7955 (main): Fix some warnings.
7957 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7959 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7960 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7962 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7964 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7966 * include/locale.h (_nl_C_locobj): Declare as hidden.
7968 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7969 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7971 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7973 * include/sys/gmon.h: Declare _gmonparam as hidden.
7975 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7976 (__ctype32_wctrans): Likewise.
7977 (__ctype32_width): Likewise.
7979 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7982 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7984 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7985 hidden. Change all users of these variables.
7987 * posix/regex_internal.h (__re_error_msgid): Renamed from
7988 re_error_msgid. Declare as hidden.
7989 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7992 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7993 (__printf_function_table): Likewise.
7994 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7996 (__printf_function_table): Likewise.
7998 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7999 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8001 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8002 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8004 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8005 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8007 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8009 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8010 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8011 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8012 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8013 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8014 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8015 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8016 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8017 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8018 _nl_C_LC_CTYPE_width: Declare as hidden.
8019 * include/locale.h: Declare _nl_locale_file_list.
8020 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8021 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8022 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8023 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8024 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8025 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8026 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8027 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8028 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8029 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8030 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8031 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8032 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8033 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8034 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8035 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8036 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8037 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8038 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8039 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8040 _nl_C_LC_CTYPE_width, and as hidden.
8041 * locale/findlocale.c: Declare _nl_C as hidden.
8042 * locale/newlocale.c: Likewise.
8043 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8044 _nl_locale_file_list.
8045 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8046 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8047 Define _nl_C_locobj as hidden.
8049 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8050 (_mtrace_line): Likewise.
8052 * include/time.h: Declare __mon_yday as hidden.
8053 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8055 * libio/libioP.h: Declare __libio_codecvt as hidden.
8056 * libio/fileops.c: Declare __libio_translit as hidden.
8057 * libio/iofwide.c: Define __libio_translit as hidden.
8059 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8060 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8061 * login/getutline_r.c: Likewise.
8062 * login/utmpname.c: Likewise.
8064 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8065 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8066 __libc_utmp_file_name as hidden.
8068 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8069 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8070 * locale/freelocale.c: Likewise.
8071 * locale/lc-time.c: Likewise.
8073 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8074 (__libc_ptyname2): Likewise.
8075 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8077 (__libc_ptyname2): Likewise.
8079 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8080 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8081 * sysdeps/generic/init-first.c: Likewise.
8082 * sysdeps/i386/init-first.c: Likewise.
8083 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8084 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8085 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8086 * sysdeps/sh/init-first.c: Likewise.
8087 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8088 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8090 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8091 (_itowa_upper_digits): Likewise.
8093 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8094 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8097 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8098 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8099 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8100 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8102 * gmon/gmon.c (__bb_head): Define as hidden.
8103 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8105 * argp/argp-parse.c (_argp_hang): Define as static.
8107 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8108 handling in latest compilers.
8110 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8112 * libio/fileops.c (_IO_file_jumps): Likewise.
8113 * libio/stdfiles.c (_IO_list_all): Likewise.
8114 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8116 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8118 * include/malloc.h: Add __libc_malloc_initialized declaration
8119 here. Mark variable hidden.
8120 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8122 * elf/dl-open.c (__libc_argc): Declare as hidden.
8123 (__libc_argv): Likewise.
8124 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8125 (__libc_argv): Likewise.
8126 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8127 __libc_argv as hidden.
8128 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8129 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8130 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8131 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8133 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8134 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8135 * stdlib/erand48.c: Likewise.
8136 * stdlib/jrand48.c: Likewise.
8137 * stdlib/lcong48.c: Likewise.
8138 * stdlib/lrand48.c: Likewise.
8139 * stdlib/mrand48.c: Likewise.
8140 * stdlib/nrand48.c: Likewise.
8141 * stdlib/seed48.c: Likewise.
8142 * stdlib/srand48.c: Likewise.
8144 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8145 (_itoa_lower_digits_internal): New declaration.
8146 (_itoa_upper_digits_internal): New declaration.
8147 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8148 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8149 (_itoa_upper_digits_internal): New declaration.
8150 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8152 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8153 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8155 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8156 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8158 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8159 (_itowa_lower_digits): Likewise.
8160 (_itowa_upper_digits): Likewise.
8161 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8162 (_itowa_upper_digits): Likewise.
8164 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8165 not already defined.
8166 (GERMANIC_PLURAL): Declare as hidden.
8168 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8169 (attribute_hidden): Define as empty macro if not already defined.
8171 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8172 (__gconv_max_path_elem_len): Likewise.
8173 (__gconv_path_envvar): Likewise.
8175 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8176 * stdlib/Makefile (aux): Remove mp_clz_tab.
8177 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8179 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8181 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8183 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8184 _nl_category_names, _nl_category_name_sizes, _nl_current,
8185 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8187 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8188 (_nl_current_default_domain): Likewise
8189 (_nl_state_lock): Likewise.
8190 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8191 (_nl_current_default_domain): Likewise
8192 (_nl_state_lock): Likewise.
8193 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8195 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8196 (_fpioconst_pow10): Likewise.
8198 * include/time.h (_tmbuf): Add attribute_hidden.
8200 * time/tzset.c (tzstring_list): Define as static.
8202 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8203 __use_tzfile declaration.
8205 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8206 and __wcsmbs_last_locale declaration.
8208 2002-02-25 Paul Eggert <eggert@twinsun.com>
8210 * timezone/Makefile (tzbases): Move systemv from here...
8211 (tzlinks): to here, since the entries in systemv were all changed
8212 from Zone to Link lines in tz-2001a. Bug reported (and patch
8213 tested) by Peter Breitenlohner.
8215 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8217 * time/tst-posixtz.c (tests): Add new tests.
8218 (main): Test whether tzset() sets daylight properly.
8220 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8222 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8223 __tzname_cur_max setting...
8224 (tzset_internal): ...here.
8226 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8228 * time/tzset.c (compute_change): Don't return any value.
8229 (tz_compute): Likewise. Don't handle southern hemisphere here.
8230 (__tz_convert): But here.
8232 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8234 * manual/examples/mkfsock.c: Include <string.h> as well.
8235 Patch by Alain De Carolis <alaind@wseurope.com>.
8237 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8239 * posix/regexec.c (re_match): Fix incorrect register sizes.
8240 (re_search): Likewise.
8242 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8244 * posix/regcomp.c (regfree): Remove a disused condition.
8245 * posix/regex_internal.c (re_acquire_state): Likewise.
8246 (re_acquire_state_context): Likewise.
8247 (register_state): Remove a redundant malloc invocation.
8248 * posix/regex_internal.h: (re_state_table_entry): Simplify
8251 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8253 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8254 handling conditions.
8255 (regerror): Likewise.
8256 (regfree): Likewise.
8257 (re_compile_internal): Likewise.
8258 (init_dfa): Likewise.
8259 (init_word_char): Likewise.
8260 (create_initial_state): Likewise.
8261 (analyze): Likewise.
8262 (analyze_tree): Likewise.
8263 (duplicate_node): Likewise.
8264 (calc_eclosure): Likewise.
8265 (calc_eclosure_iter): Likewise.
8267 (parse_reg_exp): Likewise.
8268 (parse_branch): Likewise.
8269 (parse_expression): Likewise.
8270 (parse_subexp): Likewise.
8271 (parse_dup_op): Likewise.
8272 (parse_bracket_exp): Likewise.
8273 (build_equiv_class): Likewise.
8274 (build_charclass): Likewise.
8275 (build_word_op): Likewise.
8276 (fetch_number): Likewise.
8277 (create_tree): Likewise.
8278 (duplicate_tree): Likewise.
8279 * posix/regex.c (BE): New macro.
8280 * posix/regexec.c (re_match): Add __builtin_expect to error
8281 handling conditions.
8282 (re_match_2): Likewise.
8283 (re_search): Likewise.
8284 (re_search_internal): Likewise.
8285 (check_matching): Likewise.
8286 (proceed_next_node): Likewise.
8287 (set_regs): Likewise.
8288 (sift_states_backward): Likewise.
8289 (add_epsilon_backreference): Likewise.
8290 (transit_state): Likewise.
8291 (transit_state_sb): Likewise.
8292 (transit_state_mb): Likewise.
8293 (transit_state_bkref): Likewise.
8294 (transit_state_bkref_loop): Likewise.
8295 (build_trtable): Likewise.
8296 (group_nodes_into_DFAstates): Likewise.
8297 (match_ctx_init): Likewise.
8298 (match_ctx_add_entry): Likewise.
8299 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8300 to error handling conditions.
8301 (re_string_construct_toupper): Likewise.
8302 (build_wcs_buffer): Likewise.
8303 (build_wcs_upper_buffer): Likewise.
8304 (build_upper_buffer): Likewise.
8305 (re_string_translate_buffer): Likewise.
8306 (re_node_set_alloc): Likewise.
8307 (re_node_set_init_1): Likewise.
8308 (re_node_set_init_2): Likewise.
8309 (re_node_set_init_copy): Likewise.
8310 (re_node_set_intersect): Likewise.
8311 (re_node_set_init_union): Likewise.
8312 (re_node_set_merge): Likewise.
8313 (re_node_set_insert): Likewise.
8314 (re_dfa_add_node): Likewise.
8315 (re_acquire_state): Likewise.
8316 (re_acquire_state_context): Likewise.
8317 (create_new_state_common): Likewise.
8318 (register_state): Likewise.
8319 (create_ci_new_state): Likewise.
8320 (create_cd_new_state): Likewise.
8321 (re_string_context_at): Remove redundant condition.
8323 2002-01-16 Roger Sayle <roger@eyesopen.com>
8325 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8327 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8329 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8331 * sysdeps/i386/elf/configure.in: Fix comment.
8333 * sysdeps/sparc/sparc64/configure.in: New file.
8334 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8335 if .dynamic comes before .got.
8336 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8338 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8339 HP_TIMING_ACCUM): Fix typos.
8341 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8343 * string/strfry.c: Add some more randomness to the seed.
8344 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8346 * po/es.po: Update from translation team.
8347 * po/fr.po: Likewise.
8349 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8351 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8352 when determining type of format.
8353 Patch by James Antill <james@anqd.org> [PR libc/2787].
8355 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8357 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8359 2002-03-11 Roland McGrath <roland@frob.com>
8361 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8363 * Versions.def (libc): Add GLIBC_2.2.6.
8364 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8365 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8366 __errno_location instead of __hurd_errno_location, and don't inline it.
8367 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8368 * hurd/errno.c: New file.
8369 * hurd/Makefile (routines): Add errno.
8371 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8373 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8374 ridiculously large widths and precisions [PR libc/3026].
8376 2002-03-11 Andreas Jaeger <aj@suse.de>
8378 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8380 Patch by Susanne Oberhauser <froh@SuSE.de>.
8382 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8384 * inet/rexec.c (ahostbuf): Define as static.
8386 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8387 (__ctype32_wctrans): Likewise.
8388 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8389 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8390 (__ctype32_wctrans): Likewise.
8391 (__ctype32_width): Likewise.
8393 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8394 They were never exported anyway.
8396 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8397 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8399 * include/sys/gmon.h: Declare _gmonparam.
8401 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8402 symbols for getdents64. They were never exported.
8404 2002-03-09 Roland McGrath <roland@frob.com>
8406 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8407 Reported by Jon Arney <jarney1@cox.net>.
8409 2002-02-23 Roland McGrath <roland@frob.com>
8411 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8413 (__hurd_errno_location): Function removed.
8415 2002-03-06 Andreas Jaeger <aj@suse.de>
8417 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8420 2002-03-04 Andreas Jaeger <aj@suse.de>
8422 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8424 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8427 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8429 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8431 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8433 * sysdeps/x86_64/bits/setjmp.h: New file.
8435 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8437 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8439 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8441 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8442 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8444 2002-02-28 Bo Thorsen <bo@suse.de>
8446 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8449 2002-03-03 Andreas Jaeger <aj@suse.de>
8451 * sysdeps/x86_64/bits/wordsize.h: New file.
8453 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8454 * elf/tst-tlsmod1.c: Likewise.
8456 * posix/regcomp.c: Get regex.h from include dir for internal
8459 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8460 to libc-internal.h and include it.
8461 * include/libc-internal.h: Add __init_misc.
8463 * misc/init-misc.c: Include libc-internal.h for prototypes.
8465 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8467 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8470 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8472 * posix/regcomp.c: Compatibility changes to allow using the code
8475 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8477 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8480 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8482 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8483 of .str elements in the returned data structure.
8485 * elf/elf.h: Add Alpha TLS bits.
8487 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8489 * sysdeps/unix/sysv/linux/nice.c: New file.
8491 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8493 * elf/Makefile (dl-routines): Add dl-origin.
8494 (elide-routines.os): Add dl-origin.
8495 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8496 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8498 * include/libc-symbols.c: Define attribute_hidden depending on
8499 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8501 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8502 * elf/dl-load.c: Likewise.
8503 * elf/rtld.c: Likewise.
8504 * include/unistd.h: Declare __libc_enable_secure_internal.
8505 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8506 Use INTUSE with __libc_enable_secure.
8507 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8509 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8510 * elf/dl-error.c: Likewise,
8511 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8513 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8514 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8515 function definition. Use INTDEF with _dl_get_origin.
8516 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8518 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8519 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8521 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8522 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8523 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8525 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8526 * elf/dl-deps.c: Likewise.
8527 * elf/dl-error.c: Likewise.
8528 * elf/dl-fini.c: Likewise.
8529 * elf/dl-init.c: Likewise.
8530 * elf/dl-load.c: Likewise.
8531 * elf/dl-lookup.c: Likewise.
8532 * elf/dl-reloc.c: Likewise.
8533 * elf/dl-version.c: Likewise.
8534 * elf/do-lookup.h: Likewise.
8535 * sysdeps/arm/dl-machine.h: Likewise.
8536 * sysdeps/cris/dl-machine.h: Likewise.
8537 * sysdeps/hppa/dl-machine.h: Likewise.
8538 * sysdeps/i386/dl-machine.h: Likewise.
8539 * sysdeps/m68k/dl-machine.h: Likewise.
8540 * sysdeps/powerpc/dl-machine.h: Likewise.
8541 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8542 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8543 * sysdeps/sh/dl-machine.h: Likewise.
8544 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8545 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8546 * sysdeps/x86_64/dl-machine.h: Likewise.
8547 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8548 _dl_argv[0]. Use INTUSE with _dl_argv.
8549 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8550 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8552 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8554 * elf/rtld.c (_rtld_global): Remove .protected.
8555 (_rtld_local): Strong alias to _rtld_global.
8556 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8558 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8559 _rtld_local instead of _rtld_global.
8560 (_rtld_local): Add hidden extern, possibly in .sdata section.
8561 * configure.in: Add tests for visibility attribute and .sdata.
8562 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8563 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8564 * sysdeps/arm/dl-machine.h: Likewise.
8565 * sysdeps/generic/ldsodefs.h: Likewise.
8566 * sysdeps/hppa/dl-machine.h: Likewise.
8567 * sysdeps/cris/dl-machine.h: Likewise.
8568 * sysdeps/i386/dl-machine.h: Likewise.
8569 * sysdeps/ia64/dl-machine.h: Likewise.
8570 * sysdeps/m68k/dl-machine.h: Likewise.
8571 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8572 * sysdeps/mips/dl-machine.h: Likewise.
8573 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8574 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8575 * sysdeps/sh/dl-machine.h: Likewise.
8576 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8577 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8578 * sysdeps/x86_64/dl-machine.h: Likewise.
8580 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8582 * login/login.c (login): Always initialize ut_line field
8585 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8587 * sysdeps/i386/Makefile (sysdep_routines): Add
8589 (shared-only-routines): Likewise.
8590 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8591 (shared-only-routines): Likewise.
8592 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8593 (shared-only-routines): Likewise.
8594 * sysdeps/wordsize-32/divdi3.c: New file.
8596 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8598 * locale/iso-4217.def: Remove obsolete currencies for countries
8601 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8603 * posix/regcomp.c (regcomp): Remove a redundant condition.
8604 (init_word_char): Add a check on malloc failure.
8605 (create_initial_state): Likewise.
8606 (duplicate_node): Likewise.
8607 (calc_eclosure): Likewise.
8608 (calc_eclosure_iter): Likewise.
8609 (parse_expression): Likewise.
8610 (parse_bracket_exp): Remove unnecessary malloc invocations.
8611 (build_equiv_class): Likewise.
8612 (build_charclass): Likewise.
8613 * posix/regex_internal.c (re_node_set_intersect): Add a check
8615 (re_node_set_add_intersect): Likewise.
8616 (re_node_set_merge): Likewise.
8617 (re_acquire_state): Likewise.
8618 (re_acquire_state_context): Likewise.
8619 (create_newstate_common): Likewise.
8620 (register_state): Likewise.
8621 (create_ci_newstate): Likewise.
8622 (create_cd_newstate): Likewise.
8623 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8624 and re_acquire_state_context.
8625 * posix/regexec.c (regexec): Suit it to the error handling of
8627 (re_match): Likewise.
8628 (re_search): Likewise.
8629 (re_search_internal): Add a check on malloc failure.
8630 (acquire_init_state_context): Likewise.
8631 (check_matching): Likewise.
8632 (proceed_next_node): Likewise.
8633 (set_regs): Likewise.
8634 (sift_states_backward): Likewise.
8635 (sift_states_iter_bkref): Likewise.
8636 (add_epsilon_backreference): Likewise.
8637 (transit_state): Likewise.
8638 (transit_state_sb): Likewise.
8639 (transit_state_mb): Likewise.
8640 (transit_state_bkref_loop): Likewise.
8641 (build_trtable): Likewise.
8642 (group_nodes_into_DFAstates): Likewise.
8643 (match_ctx_init): Likewise.
8644 (match_ctx_add_entry): Likewise.
8646 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8648 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8649 l_libname if profiling is enabled [PR libc/2916].
8651 * sysdeps/ia64/dl-tls.h: New file.
8653 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8655 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8656 Work around an Alpha gas bug.
8658 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8660 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8661 uses read to load the catalog.
8662 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8664 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8666 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8667 regex_internal.c, and regex_internal.h.
8668 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8669 * posix/regex.c: Complete rewrite.
8670 * posix/regexec.c: New file.
8671 * posix/regcomp.c: New file.
8672 * posix/regex_internal.c: New file.
8673 * posix/regex_internal.h: New file.
8674 * posix/regex.h (RE_ICASE): New macro.
8675 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8677 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8678 ungetwc. It's a macro.
8679 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8681 Reported by Jason Merrill <jason@redhat.com>.
8683 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8685 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8686 position to fp->_offset if it is set.
8687 * stdio-common/Makefile (tests): Add tst-fdopen.
8688 * stdio-common/tst-fdopen.c: New test.
8690 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8692 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8693 * stdio-common/tst-ungetc.c (main): Add another test.
8695 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8697 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8698 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8699 aliases. Add prototypes for the new aliases.
8700 * assert/assert.c: Likewise.
8701 * include/libc-symbols.h: Likewise.
8702 * include/stdio.h: Likewise.
8703 * include/netinet/in.h: Likewise.
8704 * include/rpc/auth.h: Likewise.
8705 * include/rpc/auth_unix.h: Likewise.
8706 * include/rpc/key_prot.h: Likewise.
8707 * include/rpc/pmap_prot.h: Likewise.
8708 * include/rpc/pmap_rmt.h: Likewise.
8709 * include/rpc/rpc_msg.h: Likewise.
8710 * include/rpc/xdr.h: Likewise.
8711 * inet/gethstbyad_r.c: Likewise.
8712 * inet/gethstbynm2_r.c: Likewise.
8713 * inet/gethstbynm_r.c: Likewise.
8714 * inet/gethstent_r.c: Likewise.
8715 * inet/in6_addr.c: Likewise.
8716 * libio/__fpurge.c: Likewise.
8717 * libio/filedoalloc.c: Likewise.
8718 * libio/fileops.c: Likewise.
8719 * libio/ftello.c: Likewise.
8720 * libio/ftello64.c: Likewise.
8721 * libio/genops.c: Likewise.
8722 * libio/iofclose.c: Likewise.
8723 * libio/iofdopen.c: Likewise.
8724 * libio/iofflush.c: Likewise.
8725 * libio/iofflush_u.c: Likewise.
8726 * libio/iofgetpos.c: Likewise.
8727 * libio/iofgetpos64.c: Likewise.
8728 * libio/iofgets.c: Likewise.
8729 * libio/iofgets_u.c: Likewise.
8730 * libio/iofopen.c: Likewise.
8731 * libio/iofopncook.c: Likewise.
8732 * libio/iofputs.c: Likewise.
8733 * libio/iofread.c: Likewise.
8734 * libio/iofread_u.c: Likewise.
8735 * libio/iofsetpos.c: Likewise.
8736 * libio/iofsetpos64.c: Likewise.
8737 * libio/ioftell.c: Likewise.
8738 * libio/iofwrite.c: Likewise.
8739 * libio/iogetline.c: Likewise.
8740 * libio/iogets.c: Likewise.
8741 * libio/iogetwline.c: Likewise.
8742 * libio/iolibio.h: Likewise.
8743 * libio/iopadn.c: Likewise.
8744 * libio/iopopen.c: Likewise.
8745 * libio/ioseekoff.c: Likewise.
8746 * libio/ioseekpos.c: Likewise.
8747 * libio/iosetbuffer.c: Likewise.
8748 * libio/iosetvbuf.c: Likewise.
8749 * libio/ioungetc.c: Likewise.
8750 * libio/ioungetwc.c: Likewise.
8751 * libio/iovdprintf.c: Likewise.
8752 * libio/iovsprintf.c: Likewise.
8753 * libio/iovsscanf.c: Likewise.
8754 * libio/libioP.h: Likewise.
8755 * libio/memstream.c: Likewise.
8756 * libio/obprintf.c: Likewise.
8757 * libio/oldfileops.c: Likewise.
8758 * libio/oldiofclose.c: Likewise.
8759 * libio/oldiofdopen.c: Likewise.
8760 * libio/oldiofgetpos.c: Likewise.
8761 * libio/oldiofgetpos64.c: Likewise.
8762 * libio/oldiofopen.c: Likewise.
8763 * libio/oldiofsetpos.c: Likewise.
8764 * libio/oldiofsetpos64.c: Likewise.
8765 * libio/oldiopopen.c: Likewise.
8766 * libio/oldstdfiles.c: Likewise.
8767 * libio/putc.c: Likewise.
8768 * libio/setbuf.c: Likewise.
8769 * libio/setlinebuf.c: Likewise.
8770 * libio/stdfiles.c: Likewise.
8771 * libio/stdio.c: Likewise.
8772 * libio/strops.c: Likewise.
8773 * libio/vasprintf.c: Likewise.
8774 * libio/vscanf.c: Likewise.
8775 * libio/vsnprintf.c: Likewise.
8776 * libio/vswprintf.c: Likewise.
8777 * libio/wfiledoalloc.c: Likewise.
8778 * libio/wfileops.c: Likewise.
8779 * libio/wgenops.c: Likewise.
8780 * libio/wstrops.c: Likewise.
8781 * malloc/mtrace.c: Likewise.
8782 * misc/error.c: Likewise.
8783 * misc/syslog.c: Likewise.
8784 * nss/getXXbyYY_r.c: Likewise.
8785 * nss/getXXent_r.c: Likewise.
8786 * nss/hosts-lookup.c: Likewise.
8787 * stdio-common/getw.c
8788 * stdio-common/printf-prs.c: Likewise.
8789 * stdio-common/printf_fp.c: Likewise.
8790 * stdio-common/printf_size.c: Likewise.
8791 * stdio-common/putw.c: Likewise.
8792 * stdio-common/scanf.c: Likewise.
8793 * stdio-common/sprintf.c: Likewise.
8794 * stdio-common/tmpfile64.c: Likewise.
8795 * stdio-common/vfprintf.c: Likewise.
8796 * stdio-common/vfscanf.c: Likewise.
8797 * stdlib/strfmon.c: Likewise.
8798 * sunrpc/auth_des.c: Likewise.
8799 * sunrpc/auth_none.c: Likewise.
8800 * sunrpc/auth_unix.c: Likewise.
8801 * sunrpc/authdes_prot.c: Likewise.
8802 * sunrpc/authuxprot.c: Likewise.
8803 * sunrpc/clnt_perr.c: Likewise.
8804 * sunrpc/clnt_raw.c: Likewise.
8805 * sunrpc/clnt_tcp.c: Likewise.
8806 * sunrpc/clnt_udp.c: Likewise.
8807 * sunrpc/clnt_unix.c: Likewise.
8808 * sunrpc/key_call.c: Likewise.
8809 * sunrpc/key_prot.c: Likewise.
8810 * sunrpc/openchild.c: Likewise.
8811 * sunrpc/pm_getmaps.c: Likewise.
8812 * sunrpc/pm_getport.c: Likewise.
8813 * sunrpc/pmap_clnt.c: Likewise.
8814 * sunrpc/pmap_prot.c: Likewise.
8815 * sunrpc/pmap_prot2.c: Likewise.
8816 * sunrpc/pmap_rmt.c: Likewise.
8817 * sunrpc/rpc_cmsg.c: Likewise.
8818 * sunrpc/rpc_prot.c: Likewise.
8819 * sunrpc/svc_authux.c: Likewise.
8820 * sunrpc/svc_raw.c: Likewise.
8821 * sunrpc/svc_simple.c: Likewise.
8822 * sunrpc/svc_tcp.c: Likewise.
8823 * sunrpc/svc_udp.c: Likewise.
8824 * sunrpc/svc_unix.c: Likewise.
8825 * sunrpc/xdr.c: Likewise.
8826 * sunrpc/xdr_array.c: Likewise.
8827 * sunrpc/xdr_mem.c: Likewise.
8828 * sunrpc/xdr_rec.c: Likewise.
8829 * sunrpc/xdr_ref.c: Likewise.
8830 * sunrpc/xdr_stdio.c: Likewise.
8831 * sysdeps/generic/_strerror.c: Likewise.
8832 * sysdeps/generic/printf_fphex.c: Likewise.
8833 * sysdeps/generic/tmpfile.c: Likewise.
8834 * sysdeps/gnu/errlist.awk: Likewise.
8835 * sysdeps/gnu/errlist.c: Likewise.
8837 * libio/Makefile (routines): Remove iosprint.
8838 * libio/iosprintf.c: Removed
8841 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8843 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8844 non_dynamic_init and exported now.
8845 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8846 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8848 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8849 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8850 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8852 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8854 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8857 * locale/iso-639.def: Add language codes for Walloon.
8859 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8860 total number of relocations performed.
8862 * elf/sprof.c (load_profdata): If do_test provide information as
8863 to why loading failed.
8864 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8867 * csu/set-init.c: Moved to...
8868 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8869 * csu/Makefile: Don't compile set-init.
8870 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8871 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8873 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8874 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8875 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8877 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8880 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8882 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8883 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8884 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8885 (_dl_deallocate_tls): New function.
8886 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8889 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8891 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8892 * stdio-common/tst-fseek.c (main): Add test for this.
8894 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8896 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8898 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8900 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8901 pointer before dereferencing.
8903 2002-02-18 Roland McGrath <roland@frob.com>
8905 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8907 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8908 Use task_policy in place of task_priority.
8910 * sysdeps/generic/bits/mman.h
8911 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8912 * sysdeps/mach/msync.c: New file.
8914 * sysdeps/mach/powerpc/syscall.S: New file.
8916 * mach/msg.c [MACH_MSG_OVERWRITE]
8917 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8918 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8920 * sysdeps/mach/configure.in: Check for clock.defs to put into
8921 mach_interface_list.
8922 * sysdeps/mach/configure: Regenerated.
8924 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8925 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8926 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8927 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8928 (mach-shortcuts): Add device_read_overwrite_request,
8929 device_read_overwrite, vm_read_overwrite, thread_switch.
8931 * configure.in (base_machine): Set to $machine by default.
8932 * configure: Regenerated.
8934 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8935 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8936 * sysdeps/mach/configure: Regenerated.
8937 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8939 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8941 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8943 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8944 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8946 2002-02-17 Roland McGrath <roland@frob.com>
8948 * sysdeps/mach/hurd/times.c
8949 [NO_CREATION_TIME] (startup_time): New static variable.
8950 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8951 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8952 creation_time from task_basic_info.
8953 (__times): Use __gettimeofday instead of __host_get_time.
8955 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8956 Use untyped Mach IPC message format.
8958 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8960 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8961 _S_catch_exception_raise_state_identity,
8962 _hurdsig_fault_catch_exception_raise_state,
8963 _hurdsig_fault_catch_exception_raise_state_identity.
8965 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8967 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8968 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8970 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8971 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8973 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8974 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8975 them as no-op macros.
8976 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8977 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8979 * sysdeps/powerpc/dl-machine.h
8980 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8982 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8983 Use untyped Mach IPC message format.
8985 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8986 Handle untyped Mach IPC message formats.
8988 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8989 Expect different argument conventions when this is defined.
8990 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8991 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8992 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8993 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8994 for OSF Mach variant.
8995 (faulted): Use mig_reply_error_t for REPLY.
8996 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8997 in __thread_set_exception_ports call.
8998 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8999 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9001 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9002 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9003 on Darwin, which includes bogons.
9005 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9006 variable LOADBASE so it's not declared when it's not used.
9008 2002-02-16 Roland McGrath <roland@frob.com>
9010 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9011 to use BI.creation_time.
9013 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9015 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9016 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9017 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9018 host_page_size instead of vm_statistics.
9020 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9021 mach_interface.h here, since not all variants use that name.
9023 * sysdeps/mach/configure.in: Add some checks for Mach headers
9024 to ensure a sane installation.
9025 (mach_interface_list): Define this variable by checking for .defs
9026 files found in various variants.
9027 * configure.in (mach_interface_list): AC_SUBST this.
9028 * config.make.in (mach-interface-list): New substituted variable.
9029 * mach/Makefile (user-interfaces): Define this using the value
9030 of $(mach-interface-list) instead of mach, mach4.
9031 Updated other references to mach_interface to use it as well.
9033 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9035 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9036 mig_reply_error_t for OSF Mach variant.
9038 * mach/Makefile (routines): Remove bootprivport.
9039 * mach/bootprivport.c: File removed. It has never been used.
9041 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9042 Grok the OSF flavor of message format.
9043 (mach_msg_destroy_port): For MAKE_SEND and
9044 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9045 no-senders notification.
9047 2002-02-06 Roland McGrath <roland@frob.com>
9049 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9050 to here if 2.0 compatibility enabled ...
9051 (libc: GLIBC_2.1.3): ... from here.
9053 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9055 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9057 * elf/dl-close.c (_dl_close): Likewise.
9059 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9061 * elf/Makefile: Add rules to build and run tst-tls8.
9062 * elf/tst-tls8.c: New file.
9063 * elf/tst-tlsmod4.c: New file.
9065 * stdlib/test-a64l.c (tests): Add more test cases.
9067 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9068 Reported by Walter Harms <WHarms@bfs.de>.
9070 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9072 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9073 definitions for struct sigcontext.
9074 Suggested by David Mosberger-Tang.
9076 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9078 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9079 for removing reference of module in slotinfo list.
9080 (_dl_close): Use remove_slotinfo.
9081 * sysdeps/generic/dl-tls.c: General pretty printing.
9082 (oom): Define only if SHARED.
9083 (_dl_next_tls_modid): Correct starting point for the case we assume
9084 there is a gap. Add missing instruction grouping (doh!). Correct
9085 tests for reaching maximum index.
9086 * elf/Makefile: Add rules to build and run tst-tls7.
9087 * elf/tst-tls7.c: New file.
9088 * elf/tst-tlsmod3.c: New file.
9090 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9092 * elf/tst-tlsmod2.c: Likewise.
9094 * elf/dl-close.c (_dl_close): When closing an object using TLS
9095 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9096 true. Increment dl_tls_generation only if we closed any TLS-using
9098 * elf/tst-tls6.c: New file.
9099 * elf/Makefile: Add rules to build and run tst-tls6.
9101 * po/da.po: Update from translation team.
9103 * locale/categories.def: Fix typo [PR libc/2948].
9104 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9106 * locale/iso-4217.def: Update from official version [PR libc/2950].
9107 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9108 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9109 message if input is too confusion instead of using assert.
9110 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9111 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9113 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9114 * elf/tst-tls2.c: Likewise.
9115 * elf/tst-tls3.c: Likewise.
9117 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9119 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9121 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9123 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9124 if this is really necessary.
9126 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9128 (free_mem): Free memory for the slotinfo array if possible.
9130 2002-02-12 Andreas Schwab <schwab@suse.de>
9132 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9134 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9136 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9138 (oom): New function.
9139 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9140 (_dl_determine_tlsoffset): Likewise.
9141 (_dl_allocate_tls): Likewise.
9142 (__TLS_GET_ADDR): Define if not already defined.
9143 (_dl_tls_symaddr): New function.
9144 (allocate_and_init): New function.
9145 (__tls_get_addr): Actually implement handling of generation counter
9146 and deferred allocation.
9147 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9148 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9150 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9151 Declare _dl_tls_symaddr.
9152 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9154 * include/link.h (struct link_map): Remove l_tls_nextimage and
9156 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9157 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9158 (_dl_vsym): Likewise.
9159 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9161 (dl_main): Allow PT_TLS be present for empty segment. Remove
9162 nextimage list handling. Instead add all modules using TLS to
9163 dl_tls_dtv_slotinfo_list.
9164 * elf/dl-open.c (dl_open_worker): After successfully loading all
9165 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9166 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9167 empty segment don't do anything. Remove handling of initimage list.
9168 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9169 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9170 * elf/dl-minimal.c: Define __libc_memalign.
9171 * elf/dl-support.c: Remove _dl_initimage_list. Add
9172 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9174 * include/stdlib.h: Declare __libc_memalign.
9176 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9177 * elf/tst-tls4.c: New file.
9178 * elf/tst-tls5.c: New file.
9179 * elf/tst-tlsmod2.c: New file.
9181 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9183 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9185 * elf/tst-tls1.c: Use test-skeleton.c.
9186 * elf/tst-tls2.c: Likewise.
9187 * elf/tst-tls3.c: Likewise.
9189 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9191 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9193 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9195 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9197 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9199 * elf/tst-tls3.c: New file.
9200 * elf/tst-tlsmod1.c: New file.
9201 * elf/Makefile: Add rules to build and run tst-tls3.
9203 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9204 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9207 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9209 * po/fr.po: Update from translation team.
9211 * elf/tls-macros.h: Add alternative macros for use in PIC.
9213 * elf/dl-lookup.c: Include <tls.h>.
9214 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9216 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9217 required by passing pointer to last element of the list.
9219 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9220 l_tls_initimage to a place where it actually is performed.
9222 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9223 after globfree() calls.
9225 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9226 (openaux): Pass open_mode as new last argument to _dl_map_object.
9227 (_dl_map_object_deps): Add new argument open_mode. Initialize
9228 open_mode element of args variable with it.
9229 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9230 _dl_map_object_deps.
9231 * elf/rtld.c (dl_main): Add zero as last parameter to
9232 _dl_map_object_deps call.
9233 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9234 * elf/nodlopen2.c: New file.
9235 * elf/nodlopenmod2.c: New file.
9236 * elf/Makefile: Add rules to build and run nodlopen2.
9238 * elf/tst-tls1.c: Move TLS helper macros to...
9239 * elf/tls-macros.h: ...here. New file.
9240 * elf/tst-tls2.c: New file.
9241 * elf/Makefile (tests): Add tst-tls2.
9242 (distribute): Add tls-macros.h.
9244 * po/sv.po: Update from translation team.
9246 * elf/tst-tls1.c (main): Add complete set of tests. Split
9247 architecture specific definitions from the actual test code.
9249 * po/tr.po: Update from translation team.
9251 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9253 * elf/Makefile (tests): Add tst-tls1.
9254 * elf/tst-tls1.c: New file.
9256 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9257 alignment of TCB for now.
9259 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9260 initialization image for the application itself.
9262 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9263 loop to initialize TLS block.
9265 2002-02-08 Richard Henderson <rth@redhat.com>
9267 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9268 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9270 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9272 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9274 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9276 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9278 * po/ca.po: Update from translation team.
9279 * po/sk.po: Likewise.
9281 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9282 (dl_main): Move dtv/static TLS handling before relocation.
9283 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9284 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9285 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9286 so far uses TLS initialize GL(dl_tls_static_size) and
9287 GL(dl_tls_static_align) to account for the TCB.
9288 (_dl_allocate_tls): New function.
9289 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9290 _dl_initial_dtv_malloced.
9292 * configure.in: Test for __builtin_memset more realistically.
9294 * csu/version.c (banner): If TLS support is available say so.
9296 2002-02-04 H.J. Lu <hjl@gnu.org>
9298 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9300 (__dl_runtime_resolve): Likewise.
9302 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9305 2001-11-15 H.J. Lu <hjl@gnu.org>
9307 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9308 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9310 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9312 2002-02-07 H.J. Lu <hjl@gnu.org>
9314 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9316 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9319 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9321 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9323 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9324 ___tls_get_addr_internal.
9325 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9327 * po/ko.po: Update from translation team.
9329 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9331 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9332 attribute, change __pad{1,2} type to unsigned int.
9333 (struct stat64): Remove packed attribute.
9335 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9337 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9339 2002-02-07 Andreas Schwab <schwab@suse.de>
9341 * configure.in: Fix check for -zcombreloc.
9343 2002-02-06 H.J. Lu <hjl@gnu.org>
9345 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9346 * configure.in: Check if __builtin_memset really works.
9347 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9348 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9350 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9352 * io/bug-ftw3.c (main): Don't try the test if root.
9354 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9356 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9358 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9359 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9360 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9362 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9363 a weak alias for __clone.
9364 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9365 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9366 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9367 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9368 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9369 a weak alias for __mmap64.
9371 2002-02-05 H.J. Lu <hjl@gnu.org>
9373 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9374 (atomic_add): Likewise.
9375 (compare_and_swap): Likewise.
9376 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9378 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9380 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9382 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9383 alignment of the TCB and store total size and alignment of static
9384 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9385 tls_index is a typedef.
9386 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9387 _dl_tls_static_align.
9388 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9389 * elf/dl-support.c: Define _dl_tls_static_size and
9390 _dl_tls_static_align.
9392 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9394 * configure.in: Add --without-tls option.
9395 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9396 --without-tls is given.
9398 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9400 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9402 2002-02-06 Roland McGrath <roland@frob.com>
9404 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9405 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9407 * scripts/versions.awk: Improve error message for missing version.
9408 Each version inherits from the last one only if they have the same
9409 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9410 but not GLIBC_x and FOO_y.
9412 * scripts/firstversions.awk: Handle libraries that don't have each
9413 particular version named in the third column of shlib-versions.
9415 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9417 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9419 * Versions.def [ld]: Add GLIBC_2.3.
9420 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9421 * elf/Makefile (dl-routines): Add dl-tls.
9422 (distribute): Add dl-tls.h.
9423 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9424 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9425 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9426 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9427 along with the other info in the link map. Change queueing of init
9428 images for double linked list. Use _dl_next_tls_modid to compute
9430 * elf/rtld.c (_dl_start_final): Store alignment requirement
9431 along with the other info in rtld map and executable map.
9432 (dl_main): Add ld.so to the init image list if necessary. Compute
9433 final module ID with _dl_next_tls_modid.
9434 * include/link.h (struct link_map): Add l_tls_previmage and
9436 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9437 * sysdeps/i386/elf/Versions: New file.
9438 * sysdeps/generic/dl-tls.c: New file.
9439 * sysdeps/generic/dl-tls.h: New file.
9440 * sysdeps/i386/dl-tls.h: New file.
9442 2002-02-06 Roland McGrath <roland@frob.com>
9444 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9445 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9447 2002-01-05 Roland McGrath <roland@frob.com>
9449 * sysdeps/mach/configure.in: New file.
9450 * sysdeps/mach/configure: New generated file.
9452 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9453 It has never been used by anything.
9455 2002-02-06 H.J. Lu <hjl@gnu.org>
9457 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9460 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9462 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9463 attribute((packed)) to counter stupid people misusing gcc options.
9464 (struct stat64): Likewise.
9466 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9468 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9469 the variables which are used as booleans.
9471 2002-02-06 Andreas Jaeger <aj@suse.de>
9473 * include/libc-symbols.h (INTUSE): Renamed from INT.
9474 * elf/dl-deps.c: Change users.
9475 * sysdeps/generic/dl-sysdep.c: Likewise.
9476 * sysdeps/generic/dl-cache.c: Likewise.
9477 * elf/dl-reloc.c: Likewise.
9478 * elf/rtld.c: Likewise.
9479 * elf/dl-version.c: Likewise.
9480 * elf/dl-load.c: Likewise.
9481 * elf/dl-dst.h: Likewise.
9482 * elf/dl-init.c: Likewise.
9483 * elf/dl-error.c: Likewise.
9484 * elf/dl-fini.c: Likewise.
9485 * elf/dl-runtime.c: Likewise.
9486 * elf/do-lookup.h: Likewise.
9488 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9490 * stdio-common/_itowa.h: Likewise.
9492 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9494 * elf/dl-minimal.c: Define _itoa_lower_digits.
9496 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9499 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9500 loading modules with the DF_STATIC_TLS flag set.
9501 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9503 * include/link.h (struct link_map): Add l_flags field.
9504 * elf/elf.h (DF_STATIC_TLS): New definition.
9506 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9507 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9509 * elf/rtld.c (process_dl_debug): Correct printing help message.
9510 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9513 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9514 definition and pass &errno in use of this variable.
9515 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9517 2002-02-04 Andreas Schwab <schwab@suse.de>
9519 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9520 * locale/programs/charmap-dir.c: Wrap calls that output messages
9521 with WITH_CUR_LOCALE. Include "localedef.h" first.
9522 * locale/programs/charmap.c: Likewise.
9523 * locale/programs/ld-address.c: Likewise.
9524 * locale/programs/ld-collate.c: Likewise.
9525 * locale/programs/ld-ctype.c: Likewise.
9526 * locale/programs/ld-identification.c: Likewise.
9527 * locale/programs/ld-measurement.c: Likewise.
9528 * locale/programs/ld-messages.c: Likewise.
9529 * locale/programs/ld-monetary.c: Likewise.
9530 * locale/programs/ld-name.c: Likewise.
9531 * locale/programs/ld-numeric.c: Likewise.
9532 * locale/programs/ld-paper.c: Likewise.
9533 * locale/programs/ld-telephone.c: Likewise.
9534 * locale/programs/ld-time.c: Likewise.
9535 * locale/programs/linereader.c: Likewise.
9536 * locale/programs/linereader.h: Likewise.
9537 * locale/programs/localedef.c: Likewise.
9538 * locale/programs/locfile.c: Likewise.
9539 * locale/programs/repertoire.c: Likewise.
9541 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9543 * elf/rtld.c (_dl_start_final): Determine load address to locate
9544 ehdr with GL(dl_rtld_map).l_map_start.
9546 * po/ca.po: Update from translation team.
9548 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9549 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9551 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9553 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9555 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9557 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9558 * include/link.h (struct link_map): Add various members for TLS
9560 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9561 _rtld_tlsoffset, add _dl_initimage_list.
9562 * sysdeps/i386/dl-lookupcfg.h: New file.
9563 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9564 TLS relocation. When using TLS we now use RESOLVE_MAP.
9565 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9568 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9571 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9572 thread-pointer as soon as possible.
9573 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9574 elements in rtld_global.
9575 * sysdeps/generic/tls.h: New file.
9576 * elf/Makefile (distribute): Add tls.h.
9577 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9578 relocations. Not complete yet.
9580 * resolv/resolv.h: Allow user to define __need_res_state and only
9581 define __res_start structure then.
9582 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9584 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9585 dl_cpuclock_offset initialization to _dl_start_final.
9586 (_dl_show_auxv): Avoid unnecessary sign extension.
9587 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9589 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9591 * config.h.in: Add HAVE_TLS_SUPPORT.
9592 * sysdeps/i386/elf/configure.in: New file.
9594 2002-02-03 Andreas Schwab <schwab@suse.de>
9596 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9597 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9599 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9601 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9602 alloca if the memory reqirements are too high.
9604 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9606 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9607 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9608 the former is available anyway and speed isn't important here.
9609 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9610 * elf/dl-version.c (match_symbol): Likewise.
9611 (_dl_check_map_versions): Likewise.
9612 * elf/rtld.c (process_envvars): Likewise.
9613 (print_statistics): Likewise.
9614 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9615 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9616 bases. Add assert to catch uses of unimplemented features.
9617 (__strsep): Add assert to catch uses of unimplemented features.
9618 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9619 and avoid inline optimization.
9620 * elf/rtld.c (process_envvars): Likewise.
9621 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9622 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9623 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9625 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9627 * stdio-common/_itoa.h: Minor simplifications of the code.
9628 * stdio-common/_itoa.c: Likewise.
9630 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9631 instead of _dl_printf for debugging info output.
9633 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9634 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9636 2002-02-01 H.J. Lu <hjl@gnu.org>
9638 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9639 (atomic_add): Likewise.
9640 (compare_and_swap): Return 0 only when failed to compare. Use
9643 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9646 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9648 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9650 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9652 * elf/dl-minimal.c (__strsep): New minimal implementation.
9654 2002-02-02 Paul Eggert <eggert@twinsun.com>
9656 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9657 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9658 with tm_isdst > 0 when the requested time falls within a
9659 spring-forward gap [PR libc/2894].
9661 2002-02-03 Andreas Schwab <schwab@suse.de>
9663 * stdio-common/tst-rndseek.c: Increase timeout.
9665 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9667 Change ld.so to not use functions which are exported. One cannot
9668 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9670 * include/libc-symbols.h: Define INT and INTDEF.
9671 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9672 _dl_signal_error_internal, _dl_map_object_internal,
9673 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9674 _dl_lookup_versioned_symbol_internal,
9675 _dl_relocate_object_internal, _dl_debug_state_internal,
9676 _dl_start_profile_internal, and _dl_unload_cache_internal.
9677 * include/dlfcn.h: Declare _dl_catch_error_internal.
9678 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9679 above. Add INTDEF to function definitions.
9680 * elf/dl-debug.c: Likewise.
9681 * elf/dl-deps.c: Likewise.
9682 * elf/dl-dst.h: Likewise.
9683 * elf/dl-error.c: Likewise.
9684 * elf/dl-fini.c: Likewise.
9685 * elf/dl-init.c: Likewise.
9686 * elf/dl-load.c: Likewise.
9687 * elf/dl-lookup.c: Likewise.
9688 * elf/dl-misc.c: Likewise.
9689 * elf/dl-open.c: Likewise.
9690 * elf/dl-profile.c: Likewise.
9691 * elf/dl-reloc.c: Likewise.
9692 * elf/dl-runtime.c: Likewise.
9693 * elf/dl-version.c: Likewise.
9694 * elf/do-lookup.h: Likewise.
9695 * sysdeps/generic/dl-cache.c: Likewise.
9696 * sysdeps/generic/dl-sysdep.c: Likewise.
9697 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9698 instead of _dl_init.
9699 * sysdeps/arm/dl-machine.h: Likewise.
9700 * sysdeps/cris/dl-machine.h: Likewise.
9701 * sysdeps/hppa/dl-machine.h: Likewise.
9702 * sysdeps/i386/dl-machine.h: Likewise.
9703 * sysdeps/ia64/dl-machine.h: Likewise.
9704 * sysdeps/m68k/dl-machine.h: Likewise.
9705 * sysdeps/mips/dl-machine.h: Likewise.
9706 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9707 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9708 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9709 * sysdeps/sh/dl-machine.h: Likewise.
9710 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9711 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9712 * sysdeps/x86_64/dl-machine.h: Likewise.
9713 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9715 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9716 and _dl_debug_initialize.
9718 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9720 * elf/rtld.c (dl_main): Avoid strrchr.
9721 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9722 result of readlink. Search from the back for '/'.
9724 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9725 strncpy if possible.
9727 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9729 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9730 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9731 strspn, and strcspn.
9732 (process_envvars): Don't use strcspn.
9734 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9735 (_dl_dst_substitute): Likewise.
9737 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9739 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9740 code which is never used when relocating ld.so itself.
9742 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9743 starting ld.so itself. Move l_addr variable initialization closer
9745 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9747 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9749 * Versions.def (libc): Add GLIBC_PRIVATE.
9750 (libdb, libnss_db, libdb1): Remove.
9751 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9752 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9753 (libpthread): Add GLIBC_PRIVATE.
9754 (libresolv): Likewise, remove GLIBC_2.1.
9755 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9756 GLIBC_2.2.3, GLIBC_2.3.
9757 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9758 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9759 _dl_sym, _dl_vsym): Likewise.
9760 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9761 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9762 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9763 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9764 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9765 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9766 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9767 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9769 (_dl_object_relocation_scope): Remove.
9770 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9771 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9772 __gconv_cache): Move to GLIBC_PRIVATE.
9773 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9774 __internal_setnetgrent): Likewise.
9775 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9776 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9777 * locale/Versions (__collate_element_hash, __collate_element_strings,
9778 __collate_symbol_classes, __collate_symbol_hash,
9779 __collate_symbol_strings, _nl_current_LC_COLLATE,
9780 _nl_current_LC_CTYPE): Likewise.
9781 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9782 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9783 (libnss_nis, libnss_nisplus): Likewise.
9784 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9785 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9786 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9787 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9788 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9789 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9790 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9791 __ns_get16, __ns_samename): Likewise.
9792 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9793 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9795 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9796 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9797 __libc_connect): Likewise.
9798 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9800 * stdlib/Versions (__libc_system): Likewise.
9801 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9802 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9803 * sysdeps/ia64/fpu/Versions: Likewise.
9804 * sysdeps/ia64/Versions: Likewise.
9805 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9806 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9808 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9809 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9810 __libc_sigaction): Likewise.
9811 * termios/Versions (__libc_tcdrain): Likewise.
9813 * misc/sys/cdefs (__attribute_noinline__): Define.
9814 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9815 __attribute_noinline__.
9817 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9818 * elf/dl-xstat64.c: New file.
9819 * elf/dl-fxstat64.c: New file.
9820 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9821 don't export __fxstat64 at multiple versions.
9822 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9823 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9825 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9827 * locale/program/ld-collate.c (collate_finish): Assign a wide
9828 char collation sequence value to multi character collating
9829 elements, and avoid over writing by non-character elements.
9831 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9833 * elf/Makefile (distribute): Add dl-procinfo.c.
9834 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9835 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9837 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9839 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9841 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9842 _rtld_global struct.
9843 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9844 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9845 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9846 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9847 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9848 _dl_fpu_control_set): Remove unused externs.
9849 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9850 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9851 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9852 related variables in _rtld_global struct.
9853 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9854 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9857 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9859 * sysdeps/generic/dl-procinfo.c: New file.
9861 2002-02-01 Andreas Schwab <schwab@suse.de>
9863 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9865 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9867 * elf/rtld.c (_dl_start): Mark as internal_function.
9868 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9870 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9871 General pretty printing.
9873 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9875 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9876 * elf/dl-reloc.c: Pretty printing.
9877 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9878 procinfo-related variables in rtld_global struct.
9879 * elf/dl-support.c: Likewise.
9880 * elf/rtld.c: Likewise.
9881 * sysdeps/i386/i686/Makefile: Likewise.
9882 * sysdeps/i386/i686/hp-timing.c: Likewise.
9883 * sysdeps/i386/i686/hp-timing.h: Likewise.
9884 * sysdeps/ia64/Makefile: Likewise.
9885 * sysdeps/ia64/hp-timing.c: Likewise.
9886 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9887 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9888 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9889 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9890 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9891 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9892 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9893 * sysdeps/x86_64/Makefile: Likewise.
9895 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9896 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9897 _dl_debug_fd to rtld_global.
9898 * elf/Versions: Likewise.
9899 * elf/dl-close.c: Likewise.
9900 * elf/dl-iteratephdr.c: Likewise.
9901 * elf/dl-lookup.c: Likewise.
9902 * elf/dl-misc.c: Likewise.
9903 * elf/dl-open.c: Likewise.
9904 * elf/dl-support.c: Likewise.
9905 * elf/do-lookup.h: Likewise.
9906 * elf/rtld.c: Likewise.
9907 * sysdeps/generic/dl-cache.c: Likewise.
9908 * sysdeps/generic/dl-sysdep.c: Likewise.
9909 * sysdeps/ia64/Versions: Likewise.
9910 * sysdeps/unix/clock_gettime.c: Likewise.
9911 * sysdeps/unix/clock_settime.c: Likewise.
9912 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9913 * sysdeps/sparc/Versions: Removed.
9914 * sysdeps/i386/i686/Versions : Removed.
9915 * sysdeps/x86_64/Versions: Removed.
9916 * configure.in: Define HAVE_PROTECTED if .protected is available.
9917 * config.h.in: Add entry for HAVE_PROTECTED.
9919 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9921 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9922 code in struct _rtld_global. Export this struct, remove all
9923 exports for the signal variables.
9924 * sysdeps/arm/dl-machine: Likewise.
9925 * sysdeps/generic/dl-origin: Likewise.
9926 * sysdeps/generic/dl-sysdep: Likewise.
9927 * sysdeps/generic/dl-cache: Likewise.
9928 * sysdeps/hppa/dl-fptr: Likewise.
9929 * sysdeps/hppa/dl-machine: Likewise.
9930 * sysdeps/cris/dl-machine: Likewise.
9931 * sysdeps/i386/dl-machine: Likewise.
9932 * sysdeps/ia64/dl-machine: Likewise.
9933 * sysdeps/m68k/dl-machine: Likewise.
9934 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9935 * sysdeps/mips/mips64/dl-machine: Likewise.
9936 * sysdeps/mips/dl-machine: Likewise.
9937 * sysdeps/powerpc/elf/libc-start: Likewise.
9938 * sysdeps/powerpc/dl-machine: Likewise.
9939 * sysdeps/powerpc/dl-start: Likewise.
9940 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9941 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9942 * sysdeps/sh/dl-machine: Likewise.
9943 * sysdeps/s390/s390-32/dl-machine: Likewise.
9944 * sysdeps/s390/s390-64/dl-machine: Likewise.
9945 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9946 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9947 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9948 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9949 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9950 * sysdeps/x86_64/dl-machine: Likewise.
9952 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9954 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9957 2002-01-31 Andreas Schwab <schwab@suse.de>
9959 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9961 2002-01-31 Andreas Schwab <schwab@suse.de>
9963 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9964 reference to _dl_pagesize.
9966 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9968 * Versions.def [ld]: Add GLIBC_2.3.
9969 * elf/dl-addr.c: Move global variables for SHARED code in struct
9970 _rtld_global. Export this struct, remove all exports for the
9972 * elf/dl-close.c: Likewise.
9973 * elf/dl-conflict.c: Likewise.
9974 * elf/dl-debug.c: Likewise.
9975 * elf/dl-deps.c: Likewise.
9976 * elf/dl-dst.h: Likewise.
9977 * elf/dl-error.c: Likewise.
9978 * elf/dl-fini.c: Likewise.
9979 * elf/dl-init.c: Likewise.
9980 * elf/dl-iteratephdr.c: Likewise.
9981 * elf/dl-libc.c: Likewise.
9982 * elf/dl-load.c: Likewise.
9983 * elf/dl-lookup.c: Likewise.
9984 * elf/dl-minimal.c: Likewise.
9985 * elf/dl-object.c: Likewise.
9986 * elf/dl-open.c: Likewise.
9987 * elf/dl-profile.c: Likewise.
9988 * elf/dl-profstub.c: Likewise.
9989 * elf/dl-reloc.c: Likewise.
9990 * elf/dl-runtime.c: Likewise.
9991 * elf/dl-support.c: Likewise.
9992 * elf/dl-sym.c: Likewise.
9993 * elf/dl-version.c: Likewise.
9994 * elf/do-lookup.h: Likewise.
9995 * elf/do-rel.h: Likewise.
9996 * elf/dynamic-link.h: Likewise.
9997 * elf/rtld.c: Likewise.
9998 * sysdeps/generic/dl-cache.c: Likewise.
9999 * sysdeps/generic/dl-sysdep.c: Likewise.
10000 * sysdeps/generic/ldsodefs.h: Likewise.
10001 * sysdeps/generic/libc-start.c: Likewise.
10002 * sysdeps/i386/dl-machine.h: Likewise.
10003 * sysdeps/ia64/dl-fptr.c: Likewise.
10004 * sysdeps/ia64/dl-machine.h: Likewise.
10005 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10006 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10007 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10008 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10009 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10010 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10011 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10012 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10014 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10016 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10018 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10020 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10022 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10024 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10026 2002-01-29 Ben Collins <bcollins@debian.org>
10028 * string/bits/string2.h (__mempcpy): Protect size arg for
10029 addition when using __builtin_memcpy.
10031 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10033 * stdlib/Makefile (tests): Add tst-qsort.
10034 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10036 * manual/signal.texi (Process Signal Mask): Document that
10037 pthread_sigmask, not sigprocmask, must be used in MT programs.
10038 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10040 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10042 * misc/Makefile (tests): Add tst-hsearch.
10043 * misc/tst-hsearch.c: New file.
10045 2002-01-18 Wolfram Gloger <wg@malloc.de>
10047 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10048 * malloc/malloc.h: Likewise.
10049 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10050 * malloc/arena.c: New file.
10051 * malloc/hooks.c: New file.
10052 * malloc/tst-mallocstate.c: New file.
10053 * malloc/Makefile: Add new testcase tst-mallocstate.
10054 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10056 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10058 * stdlib/msort.c: Remove last patch. The optimization violates the
10059 same rule which qsort.c had problems with.
10061 2002-01-27 Paul Eggert <eggert@twinsun.com>
10063 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10064 to a pivot element that lies outside the array to be sorted, as
10065 ISO C99 requires that the comparison function be called only with
10066 addresses of array elements [PR libc/2880].
10068 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10070 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10071 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10073 * timezone/asia: Update from tzdata2002b.
10074 * timezone/australasia: Likewise.
10075 * timezone/backward: Likewise.
10076 * timezone/europe: Likewise.
10077 * timezone/leapseconds: Likewise.
10078 * timezone/iso3166.tab: Likewise.
10079 * timezone/zone.tab: Likewise.
10081 2002-01-23 Richard Henderson <rth@redhat.com>
10083 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10085 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10087 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10088 this element [PR libc/2855].
10090 * string/strcoll.c: Handle zero-length arguments specially
10093 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10095 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10096 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10097 short lengths and constant src.
10098 (strcpy): Don't optimize for gcc 3.0+.
10099 (__stpcpy): For gcc 3.0+, don't use
10100 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10101 for short string literal src.
10103 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10105 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10108 2001-01-22 Paul Eggert <eggert@twinsun.com>
10110 * manual/llio.texi (Linked Channels, Cleaning Streams):
10111 Make it clearer that a just-opened input stream might need cleaning.
10113 2002-01-21 H.J. Lu <hjl@gnu.org>
10115 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10116 Don't use label at end of compound statement.
10118 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10120 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10121 Remove test for negative integer arg; sin_pi does it correctly.
10123 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10125 * nscd/Makefile (distribute): Filter out xmalloc.c.
10127 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10129 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10130 Set offset if read end wasn't the buffer end.
10131 (_IO_file_seekoff_mmap): New function.
10132 (_IO_file_xsgetn_mmap): New function.
10133 (_IO_file_jumps_mmap): Use the two new functions.
10134 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10136 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10137 _IO_file_underflow_mmap.
10138 * libio/iofopen.c: Don't position file descriptor at end of file.
10139 * libio/tst-widetext.c: Improve error messages.
10140 * stdio-common/tst-rndseek.c: Likewise.
10142 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10144 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10145 end of enum for !_GNU_SOURCE.
10146 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10147 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10148 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10149 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10150 values unless _GNU_SOURCE.
10152 * iconvdata/tcvn5712-1.c: Minor cleanups.
10154 2002-01-18 Andreas Schwab <schwab@suse.de>
10156 * sysdeps/unix/sysv/linux/configure.in
10157 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10159 2002-01-16 Roger Sayle <roger@eyesopen.com>
10161 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10162 more efficient "Towers of Hanoi" mergesort.
10163 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10164 for generic, sizeof(int) and sizeof(long) variants respectively.
10166 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10168 * manual/syslog.texi (openlog): Describe possible problems with
10170 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10172 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10173 * nscd/connections.c (begin_drop_privileges): New function.
10174 (finish_drop_privileges): New function.
10175 (nscd_init): Call the new functions which also install all groups
10176 for the server user.
10177 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10178 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10180 2002-01-17 H.J. Lu <hjl@gnu.org>
10182 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10183 `const' from `got'.
10185 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10187 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10188 instructions for pointer operations.
10189 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10191 2002-01-17 Andreas Jaeger <aj@suse.de>
10193 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10194 __uint128_t build-in.
10196 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10197 PowerPC, sync with 2.2 branch.
10199 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10201 * posix/getconf.c: Update copyright year.
10202 * nss/getent.c: Likewise.
10203 * nscd/nscd_nischeck.c: Likewise.
10204 * iconv/iconvconfig.c: Likewise.
10205 * iconv/iconv_prog.c: Likewise.
10206 * elf/ldconfig.c: Likewise.
10207 * catgets/gencat.c: Likewise.
10208 * csu/version.c: Likewise.
10209 * elf/ldd.bash.in: Likewise.
10210 * elf/sprof.c (print_version): Likewise.
10211 * locale/programs/locale.c: Likewise.
10212 * locale/programs/localedef.c: Likewise.
10213 * nscd/nscd.c (print_version): Likewise.
10214 * debug/xtrace.sh: Likewise.
10215 * malloc/memusage.sh: Likewise.
10216 * malloc/mtrace.pl: Likewise.
10218 2002-01-16 Andreas Schwab <schwab@suse.de>
10220 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10221 reliably remove "-ia64" from rtld name.
10223 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10225 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10226 Patch by Yu Shao <yshao@redhat.com>.
10228 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10230 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10231 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10232 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10234 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10236 * sysdeps/s390/fpu/libm-test-ulps: Update.
10238 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10240 * elf/elf.h: Update x86 relocations.
10242 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10244 * locale/programs/charmap.c (new_width): Check whether byte
10245 sequences for both ends of range have the same length.
10247 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10249 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10251 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10253 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10255 (__full_ieee754_sqrt): Add __attribute_used__.
10257 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10259 * sysdeps/generic/group_member.c (__group_member): Also check
10260 groups[0] [PR libc/2781].
10262 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10264 * Makefile (distribute): Add scripts/cpp.
10265 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10266 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10267 unwind-dw2-fde.h, and dwarf2.h.
10268 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10269 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10270 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10271 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10273 2002-01-07 Roland McGrath <roland@frob.com>
10275 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10276 volatile on type of ARGC so the compiler doesn't get clever.
10278 2002-01-07 Andreas Jaeger <aj@suse.de>
10280 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10281 * sysdeps/i386/bits/byteswap.h: Likewise.
10282 * sysdeps/ia64/bits/byteswap.h: Likewise.
10283 * sysdeps/m68k/bits/byteswap.h: Likewise.
10284 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10285 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10287 2002-01-02 Bruno Haible <bruno@clisp.org>
10289 * intl/plural.y: Fix %expect count.
10291 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10293 * elf/Makefile (routines, shared-only-routines): Add
10294 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10295 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10296 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10297 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10298 Optimize if .eh_frame section contains no FDEs.
10299 (__register_frame, __deregister_frame_info_bases,
10300 __deregister_frame): Likewise.
10301 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10302 DW_CFA_restore handling.
10304 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10306 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10308 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10309 for x < 0.25 and restore original range reduction method.
10310 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10312 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10314 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10315 (_IO_file_close_mmap): New function.
10316 (_IO_file_jumps_mmap): New variable.
10317 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10318 trying to convert rest of byte buffer.
10319 (_IO_wfile_underflow_mmap): New function.
10320 (_IO_wfile_jumps_mmap): New variable.
10321 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10322 (__fopen_internal): New function. Split out from _IO_new_fopen.
10323 (_IO_new_fopen): Call __fopen_internal.
10324 * libio/iofopen64.c: Just call __fopen_internal.
10325 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10327 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10328 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10329 _IO_file_close_mmap.
10331 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10332 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10334 * stdio-common/Makefile (tests): Add tst-rndseek.
10335 * stdio-common/tst-rndseek.c: New file.
10337 2002-01-05 Roland McGrath <roland@frob.com>
10339 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10340 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10341 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10342 * sysdeps/mach/hurd/configure: Regenerated.
10344 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10346 * elf/elf.h: Add more TLS definitions.
10348 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10350 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10352 2002-01-02 Roland McGrath <roland@frob.com>
10354 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10355 __sigisemptyset. Don't use MASK uninitialized.
10357 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10358 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10359 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10360 __sigdelset, __sigaddset, __sigorset.
10362 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10363 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10365 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10366 _hurd_ports is null.
10368 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10369 for old CMU and new OSF Mach interface flavors.
10370 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10371 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10373 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10375 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10376 Pass extra arguments to task_create for OSF variant.
10377 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10379 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10380 conditional on [HAVE_AUX_VECTOR].
10382 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10383 mach_msg_timeout_t as type of final argument.
10385 * hurd/privports.c (__get_privileged_ports):
10386 Change host_priv_t to mach_port_t in argument type.
10387 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10390 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10391 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10392 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10393 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10394 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10395 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10397 2002-01-01 Roland McGrath <roland@frob.com>
10399 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10401 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10403 * include/stdlib.h: Define inlines for the _l variants of the strto*
10406 2002-01-01 Roland McGrath <roland@frob.com>
10408 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10410 * mach/Machrules (MIG): Set CPP as well as CC.
10412 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10414 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10415 locale to parse /proc/loadavg [PR libc/2760].
10417 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10419 * elf/dl-conflict.c: Include sys/param.h.
10420 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10421 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10423 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10424 literals to avoid warnings.
10426 2001-12-31 Andreas Jaeger <aj@suse.de>
10428 * configure.in: Don't check for gsed since we do not use it anywhere.
10430 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10432 * io/fts.c: Update from BSD to fix memory leaks.
10434 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10436 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10437 * elf/chroot_canon.c: Likewise.
10438 * elf/dl-object.c: Likewise.
10439 * iconv/iconv_charmap.c: Likewise.
10440 * iconv/iconv_prog.c: Likewise.
10441 * libio/iogetdelim.c: Likewise.
10442 * locale/lc-time.c: Likewise.
10443 * stdlib/canonicalize.c: Likewise.
10444 * sunrpc/svc.c: Likewise.
10445 * sysdeps/generic/glob.c: Likewise.
10447 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10449 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10450 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10451 remove high order bit from the program counter.
10452 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10454 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10456 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10457 unnecessary code and add missing reloc types.
10458 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10459 case for reloc type R_390_NONE.
10461 2001-12-28 Andreas Jaeger <aj@suse.de>
10463 * io/bug-ftw3.c: Include string.h for prototypes.
10465 * crypt/md5test.c (main): Remove unused variable.
10467 * dlfcn/modstatic.c: Add prototype to avoid warning.
10469 2001-12-26 Roland McGrath <roland@frob.com>
10471 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10472 check only (SS->pending & MASK) for the signal to return.
10473 From Jeroen Dekkers <jeroen@dekkers.cx>.
10475 2001-12-22 Roland McGrath <roland@frob.com>
10477 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10478 Use preprocessor #if conditionals instead of `if' to avoid
10479 warnings about divide by zero in dead code.
10481 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10482 _hurd_port_init, and __hurd_self_sigstate.
10484 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10486 2001-12-21 Andreas Jaeger <aj@suse.de>
10488 * elf/dblloadmod1.c: Add prototype to avoid warning.
10489 * elf/dblloadmod2.c: Likewise.
10490 * elf/dblloadmod3.c: Likewise.
10491 * elf/reldepmod5.c: Likewise.
10492 * elf/reldepmod6.c: Likewise.
10494 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10495 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10496 used on all architectures.
10498 * sunrpc/svc_tcp.c: Add noreturn attribute for
10499 svctcp_rendezvous_abort.
10500 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10502 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10505 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10507 * manual/llio.texi (aio_fsync): Fix a typo.
10508 Patch by Tammy Fox <tfox@redhat.com>.
10510 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10512 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10513 stack bias from child stack pointer before passing it to clone syscall.
10515 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10517 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10519 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10520 Reported by Thorsten Kukuk <kukuk@suse.de>.
10522 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10525 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10527 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10529 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10530 conforming: return EBADF if file descriptor is invalid and EINVAL
10531 if file descriptor is no valid tty.
10532 * login/tst-grantpt.c: New file.
10533 * login/Makefile (tests): Add tst-grantpt.
10535 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10537 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10538 different than implemented in last patch.
10539 * io/bug-ftw3.c: Adjust test for changed handling of
10540 inaccessibility of toplevel dir.
10542 2001-12-16 Roland McGrath <roland@frob.com>
10544 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10545 * grp/initgroups.c (internal_getgrouplist): Likewise.
10547 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10548 `default:' to silence new GCC warning.
10549 Rewrite cast of lvalue to silence new GCC warning.
10551 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10553 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10554 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10556 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10558 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10559 Patch by Stephen R. van den Berg.
10561 * crypt/md5.h: Define md5_uintptr.
10563 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10565 * libio/tst_swprintf.c (main): Add test for string argument with
10567 * stdio-common/Makefile (tests): Add tst-sprintf.
10568 * stdio-common/tst-sprintf.c: New file.
10570 2001-12-13 Andreas Schwab <schwab@suse.de>
10572 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10573 zero precision with wide character string format.
10575 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10577 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10578 but have a user supplied buffer, return the empty buffer, not NULL.
10580 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10582 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10583 Patch by Eric Sharkey <sharkey@netrics.com>.
10585 * crypt/md5test.c (main): Add test for multiple calls to
10586 __md5_process_bytes to itererate over input string.
10588 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10590 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10591 from __nis_findfastest. Take timeout value from parameter.
10592 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10593 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10594 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10596 2001-12-12 Andreas Jaeger <aj@suse.de>
10598 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10599 combreloc test so that it works in this case.
10601 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10603 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10605 * sysdeps/sh/Makefile: New file.
10606 * sysdeps/sh/_mcount.S: New file.
10607 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10608 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10610 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10612 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10613 limitation [PR libc/2564].
10615 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10617 * elf/Makefile (dl-routines): Add conflict.
10618 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10619 (ld.so): Add _begin local symbol.
10620 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10622 * elf/dl-deps.c (_dl_build_local_scope): New function.
10623 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10625 * elf/do-rel.h (VALIDX): Define.
10626 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10627 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10629 * elf/dl-conflict.c: New file.
10630 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10631 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10633 (_dl_lookup_symbol_skip): Likewise.
10634 (_dl_lookup_versioned_symbol): Likewise.
10635 (_dl_lookup_versioned_symbol_skip): Likewise.
10636 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10637 define to ElfW(Rel).
10638 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10639 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10641 Don't adjust address dynamic tags if l_addr is 0.
10642 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10643 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10644 (VALIDX, ADDRIDX): Define.
10645 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10646 (dl_main): Print library list for LD_TRACE_PRELINKING.
10647 If prelinking information can be used, skip relocating libraries and
10648 call _dl_resolve_conflicts instead.
10649 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10650 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10651 if LD_TRACE_PRELINKING.
10652 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10654 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10655 (DL_DEBUG_PRELINK): Define.
10656 (_dl_resolve_conflicts): Add prototype.
10658 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10659 .plt for prelinked libraries where prelinking info cannot be used.
10660 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10661 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10662 * sysdeps/arm/bits/link.h: New file.
10663 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10664 content of .got[1].
10665 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10666 (ELF_MACHINE_PLT_REL): Define.
10667 (elf_machine_rela, elf_machine_rela_relative): New functions.
10668 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10669 of adjusting it if prelinked and prelinking cannot be used.
10670 * sysdeps/i386/bits/link.h: New file.
10671 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10672 content of .got[1].
10673 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10674 (ELF_MACHINE_PLT_REL): Define.
10675 (elf_machine_rela, elf_machine_rela_relative): New functions.
10676 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10677 of adjusting it if prelinked and prelinking cannot be used.
10678 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10679 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10680 to find out map for R_PPC_JMP_SLOT relocs.
10681 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10682 (OPCODE_BA): Define.
10683 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10684 libraries where prelinking info cannot be used.
10685 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10686 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10687 (elf_machine_rela): Set value to 0 if relocating conflicts.
10688 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10689 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10690 (sparc64_fixup_plt): Fix a typo.
10691 (elf_machine_rela): Set value to 0 if relocating conflicts.
10692 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10693 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10694 libraries where prelinking info cannot be used.
10695 * sysdeps/sh/bits/link.h: New file.
10696 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10697 content of .got[1].
10698 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10699 of adjusting it if prelinked and prelinking cannot be used.
10700 * sysdeps/s390/s390-32/bits/link.h: New file.
10701 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10702 Save original content of .got[1].
10703 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10704 of adjusting it if prelinked and prelinking cannot be used.
10705 * sysdeps/s390/s390-64/bits/link.h: New file.
10706 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10707 Save original content of .got[1].
10708 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10709 of adjusting it if prelinked and prelinking cannot be used.
10710 * sysdeps/x86_64/bits/link.h: New file.
10711 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10712 Save original content of .got[1].
10713 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10714 of adjusting it if prelinked and prelinking cannot be used.
10716 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10718 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10719 where appropriate instead of numbers. Little optimizations.
10721 2001-12-10 Roland McGrath <roland@frob.com>
10723 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10726 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10727 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10729 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10730 Fix conditionals so this is set by default for stdio and not for libio.
10731 * sysdeps/mach/hurd/configure: Regenerated.
10733 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10735 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10737 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10739 * io/Makefile (tests): Add bug-ftw3.
10740 * io/bug-ftw3.c: New file.
10742 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10743 matches and GLOB_NOCHECK is set.
10744 * posix/globtest.sh: Correct expected result for NOCHECK test.
10746 * po/ca.po: Update from translation team.
10748 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10750 Implement transliteration of characters in strings of the locale
10752 * locale/programs/linereader.c: Adjust for additional parameter to
10754 (get_string): If character <Uxxxx> is not found try to transliterate
10756 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10757 lr_token. Add const to charmap parameter of all functions.
10758 (find_translit, find_translit2): New functions.
10759 * locale/programs/charmap.c: Adjust for additional parameter to
10761 * locale/programs/repertoire.c: Likewise.
10762 * locale/programs/linereader.h: Likewise.
10763 * locale/programs/ld-address.c: Likewise. Add const to charmap
10764 parameter of all functions.
10765 * locale/programs/ld-collate.c: Likewise.
10766 * locale/programs/ld-identification.c: Likewise.
10767 * locale/programs/ld-measurement.c: Likewise.
10768 * locale/programs/ld-messages.c: Likewise.
10769 * locale/programs/ld-monetary.c: Likewise.
10770 * locale/programs/ld-name.c: Likewise.
10771 * locale/programs/ld-numeric.c: Likewise.
10772 * locale/programs/ld-paper.c: Likewise.
10773 * locale/programs/ld-paper.c: Likewise.
10774 * locale/programs/ld-telephone.c: Likewise.
10775 * locale/programs/ld-time.c: Likewise.
10776 * locale/programs/locfile.c: Likewise.
10777 * locale/programs/localedef.c: Likewise.
10778 * locale/programs/localedef.h: Likewise.
10779 * locale/programs/locfile.h: Likewise. Add declaration for
10781 * locale/programs/simple-hash.c: Add const to first parameter of
10782 find_entry, iterate_table, and lookup.
10783 * locale/programs/simple-hash.h: Likewise.
10784 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10786 * include/locale.h: Define __LC_LAST.
10787 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10789 2001-12-07 Geoff Keating <geoffk@redhat.com>
10791 * sysdeps/powerpc/Dist: Update for recent FP changes.
10792 * sysdeps/powerpc/fpu/Dist: Likewise.
10794 2001-12-07 Andreas Schwab <schwab@suse.de>
10796 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10798 2001-12-06 Geoff Keating <geoffk@redhat.com>
10800 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10801 save/restore functions here.
10802 (libm-support): Don't define these functions here.
10803 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10805 * sysdeps/powerpc/fe_nomask.c: Move to...
10806 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10807 * sysdeps/powerpc/fprrest.S: Move to...
10808 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10809 * sysdeps/powerpc/fprsave.S: Move to...
10810 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10812 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10814 * sysdeps/unix/sysv/linux/opensock.c: New file.
10816 2001-12-06 Geoff Keating <geoffk@redhat.com>
10818 * config.make.in (with-fp): Define from configure.
10819 * configure.in: Substitute with_fp.
10820 * configure: Regenerate.
10821 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10822 specified, and don't change FPU environment.
10824 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10826 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10827 * assert/assert.c: Check result of __asprintf call and don't use
10828 string if it failed.
10829 * assert/assert-perr.c: Likewise.
10830 * inet/rcmd.c: Likewise.
10831 * locale/programs/localedef.c (main): Check result of
10832 construct_output_path and exit if it failed.
10833 (construct_output_path): Check result of asprintf and mkdir calls and
10834 fail if they failed.
10835 * posix/getopt.c: Check result of __asprintf calls and fail if
10837 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10839 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10841 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10843 * sysdeps/generic/strncase.c: Likewise.
10844 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10846 2001-12-05 Geoff Keating <geoffk@redhat.com>
10848 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10850 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10851 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10852 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10853 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10854 * sysdeps/powerpc/fclrexcpt.c: Move to...
10855 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10856 * sysdeps/powerpc/fpu_control.h: Move to...
10857 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10859 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10861 * iconvdata/ibm1129.h: Remove duplicate mappings.
10862 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10863 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10864 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10866 * timezone/zic.c: Fix handling of turnaround times.
10867 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10869 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10871 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10874 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10876 * posix/regex.c: For use outside glibc defined bounded pointer
10877 macros here. Patch by Jim Meyering <jim@meyering.net>.
10879 * iconvdata/Makefile (modules): Add TCVN5712-1.
10880 * iconvdata/TESTS: Add TCVN5712-1.
10881 * iconvdata/gconv-modules: Likewise.
10882 * iconvdata/tcvn5712-1.c: New file.
10883 * iconvdata/testdata/TCVN-5712: New file.
10884 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10886 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10888 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10890 2001-12-02 Roland McGrath <roland@frob.com>
10892 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10894 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10895 Reported by Jeff Bailey <jbailey@nisa.net>.
10897 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10898 Reported by Jeff Bailey <jbailey@nisa.net>.
10900 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10901 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10902 Reported by Jeff Bailey <jbailey@nisa.net>.
10904 2001-12-01 Roland McGrath <roland@frob.com>
10906 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10907 missing backslash in test arguments.
10908 * sysdeps/mach/hurd/configure: Regenerated.
10910 2001-11-26 Roland McGrath <roland@frob.com>
10912 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10913 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10915 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10917 * iconvdata/Makefile (modules): Add ARMSCII-8.
10918 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10919 * iconvdata/armscii-8.c: New file.
10921 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10923 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10924 don't match, fix {{a,b},c} globbing, clean up.
10925 Patch by Flavio Veloso <flaviovs@magnux.com>.
10926 * posix/globtest.sh: Add new tests.
10928 2001-11-29 Andreas Jaeger <aj@suse.de>
10930 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10931 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10933 * sysdeps/generic/abort.c: Include libioP.h for
10934 _IO_flush_all_lockp prototype.
10936 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10938 * posix/regex.h: Define __restrict_arr correctly.
10940 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10942 * iconvdata/ibm1163.c: New file.
10943 * iconvdata/ibm1163.h: New file.
10944 * iconvdata/ibm1164.c: New file.
10945 * iconvdata/ibm1164.h: New file.
10946 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10947 * iconvdata/Makefile: Likewise.
10948 * iconvdata/testdata/IBM1163: New file.
10949 * iconvdata/testdata/IBM1163..UTF8: New file.
10950 * iconvdata/testdata/IBM1164: New file.
10951 * iconvdata/testdata/IBM1164..UTF8: New file.
10952 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10954 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10955 * iconvdata/ibm1124.h: Likewise.
10956 * iconvdata/ibm1132.h: Likewise.
10957 * iconvdata/ibm1133.h: Likewise.
10958 * iconvdata/ibm1160.h: Likewise.
10959 * iconvdata/ibm1161.h: Likewise.
10960 * iconvdata/ibm1162.h: Likewise.
10961 * iconvdata/ibm856.h: Likewise.
10962 * iconvdata/ibm922.h: Likewise.
10963 * iconvdata/ibm930.h: Likewise.
10964 * iconvdata/ibm932.h: Likewise.
10965 * iconvdata/ibm933.h: Likewise.
10966 * iconvdata/ibm935.h: Likewise.
10967 * iconvdata/ibm937.h: Likewise.
10968 * iconvdata/ibm939.h: Likewise.
10969 * iconvdata/ibm943.h: Likewise.
10970 * iconvdata/ibm930.c: Pretty printing.
10971 * iconvdata/ibm937.c: Avoid access accross array boundary.
10973 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10974 the current locale's codeset.
10975 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10976 empty input string.
10977 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10978 and from-charset. Don't determine locale's charset here.
10980 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10981 as the old _IO_flush_all but lock only if parameter is nonzero.
10982 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10983 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10984 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10985 if libio is used [PR libc/2575].
10987 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10989 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10990 __signbitl): Only define for ISO C99.
10992 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10994 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10995 herrnop to NETDB_INTERNAL if we run out of buffer space.
10997 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10999 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11000 overflow test for platforms with signed char.
11001 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11003 2001-11-28 Bruno Haible <bruno@clisp.org>
11005 * locale/programs/simple-hash.c (lookup_2): Remove function.
11006 (insert_entry_2): Call lookup instead of lookup_2.
11008 2001-03-04 Bruno Haible <bruno@clisp.org>
11010 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11012 2001-10-31 Bruno Haible <bruno@clisp.org>
11014 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11016 2001-03-21 Bruno Haible <bruno@clisp.org>
11018 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11019 chokes on empty macro arguments.
11020 * intl/plural.y: Add #pragma for alloca on AIX 3.
11022 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11024 * intl/dcigettext.c (guess_category_value): Only implement for
11025 glibc. Otherwise rely on function _nl_locale_name which isn't
11026 present in the glibc sources.
11028 2001-09-24 Bruno Haible <bruno@clisp.org>
11030 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11031 transliteration when building on a glibc system but outside glibc.
11033 2001-09-22 Bruno Haible <bruno@clisp.org>
11035 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11036 * intl/dcigettext.c (plural_eval): Remove function, moved to
11037 intl/plural-eval.c.
11038 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11039 Include plural-eval.c.
11041 2001-09-22 Bruno Haible <bruno@clisp.org>
11043 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11044 don't start with a digit; nplurals must be positive.
11046 2001-09-02 Bruno Haible <bruno@clisp.org>
11048 * intl/plural-exp.h: New file, extracted from gettextP.h.
11049 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11050 * intl/gettextP.h (struct expression, struct parse_args,
11051 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11052 * intl/loadmsgcat.c: Include plural-exp.h.
11053 (PLURAL_PARSE): Move macro to plural-exp.h.
11054 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11056 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11057 EXTRACT_PLURAL_EXPRESSION.
11058 (_nl_unload_domain): Update.
11059 * intl/dcigettext.c: Include plural-exp.h.
11060 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11061 (FREE_EXPRESSION): Move macro to plural-exp.h.
11062 * intl/Makefile (routines): Add plural-exp.
11063 (distribute): Add plural-exp.h.
11065 2001-07-28 Bruno Haible <bruno@clisp.org>
11067 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11068 isdigit, tolower argument to 'unsigned char'.
11069 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11071 * intl/localealias.c (read_alias_file): Cast isspace argument to
11074 2001-10-20 Bruno Haible <bruno@clisp.org>
11076 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11078 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11079 with the variable 'index' in plural_lookup.
11080 * intl/l10nflist.c (strchr): Likewise.
11081 * intl/localealias.c (strchr): Likewise.
11083 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11084 * intl/bindtextdom.c: Likewise.
11085 * intl/dcigettext.c: Likewise.
11086 * intl/dgettext.c: Likewise.
11087 * intl/dngettext.c: Likewise.
11088 * intl/explodename.c: Likewise.
11089 * intl/finddomain.c: Likewise.
11090 * intl/gettext.c: Likewise.
11091 * intl/l10nflist.c: Likewise.
11092 * intl/loadmsgcat.c: Likewise.
11093 * intl/localealias.c: Likewise.
11094 * intl/ngettext.c: Likewise.
11095 * intl/textdomain.c: Likewise.
11096 * intl/gettext.h: Assume <limits.h> exists.
11098 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11100 * stdio-common/Makefile (tests): Add scanf11.
11101 * stdio-common/scanf11.c: New file.
11103 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11105 * version.h (RELEASE): Define as development.
11106 (VERSION): Set to 2.2.90.
11108 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11110 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11111 * nis/nss_nis/nis-grp.c: Likewise.
11112 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11114 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11115 * nis/nss_nis/nis-pwd.c: Likewise.
11116 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11118 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11119 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11120 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11122 * nscd/grpcache.c: Use strtoul instead of atol.
11123 * nscd/pwdcache.c: Likewise.
11124 * nss/getent.c: Likewise.
11126 2001-11-27 Paul Eggert <eggert@twinsun.com>
11128 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11129 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11131 2001-11-19 Bruno Haible <bruno@clisp.org>
11133 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11135 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11136 improves the quality of the hash function, especially for short
11139 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11141 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11142 are found call conv_error and not input_error [PR libc/2669].
11144 * math/bits/mathcalls.h: Mark ceil and floor as const.
11145 Reported by David Mosberger.
11147 2001-11-21 Jim Meyering <meyering@lucent.com>
11149 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11150 Define to be __-prefixed.
11151 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11153 2001-11-26 Andreas Jaeger <aj@suse.de>
11155 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11158 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11160 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11163 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11164 unused variables. Fix threshold for returning 1.0.
11166 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11169 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11170 remove unused variables.
11172 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11174 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11175 include local math header files.
11177 2001-11-22 Andreas Jaeger <aj@suse.de>
11179 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11182 2001-11-21 Andreas Jaeger <aj@suse.de>
11184 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11186 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11189 2001-11-15 Andreas Jaeger <aj@suse.de>
11191 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11192 compilers that support it.
11194 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11195 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11196 * stdlib/stdlib.h: Likewise.
11198 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11200 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11201 statement with gotos.
11202 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11204 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11206 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11208 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11210 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11212 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11213 H.J. Lu <hjl@gnu.org>
11215 * Versions.def (libc): Add GCC_3.0.
11216 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11217 if gcc supports this flag.
11218 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11219 (gcc3): Allow glibc to be compiled with gcc 3.x.
11220 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11221 * config.make.in (static-libgcc, unwind-find-fde): Add.
11222 * Makerules (build-shlib-helper, build-module-helper): Use it.
11223 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11224 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11226 (_fini): Call __deregister_frame_info_bases if
11227 __register_frame_info_bases was used to register.
11228 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11230 (__register_frame_info_bases, __register_frame_info_table_bases,
11231 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11232 * elf/Makefile (routines): Add unwind-dw2-fde.
11233 (shared-only-routines): Add unwind-dw2-fde.
11234 * sysdeps/alpha/gccframe.h: New file.
11235 * sysdeps/arm/gccframe.h: New file.
11236 * sysdeps/generic/framestate.c: New file.
11237 * sysdeps/generic/dwarf2.h: New file.
11238 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11239 * sysdeps/generic/unwind-dw2-fde.c: New file.
11240 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11241 * sysdeps/generic/unwind-dw2-fde.h: New file.
11242 * sysdeps/generic/unwind-dw2.c: New file.
11243 * sysdeps/generic/unwind-pe.h: New file.
11244 * sysdeps/generic/unwind.h: New file.
11245 * sysdeps/hppa/gccframe.h: New file.
11246 * sysdeps/i386/gccframe.h: New file.
11247 * sysdeps/m68k/gccframe.h: New file.
11248 * sysdeps/mips/gccframe.h: New file.
11249 * sysdeps/powerpc/gccframe.h: New file.
11250 * sysdeps/s390/gccframe.h: New file.
11251 * sysdeps/sh/gccframe.h: New file.
11252 * sysdeps/sparc/gccframe.h: New file.
11253 * sysdeps/vax/gccframe.h: New file.
11254 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11255 Set on all architectures except ia64.
11256 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11258 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11259 __deregister_frame_info): Move to elf/Versions.
11260 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11261 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11262 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11263 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11264 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11265 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11266 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11267 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11268 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11269 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11270 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11271 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11272 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11273 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11274 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11275 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11276 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11277 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11279 2001-11-15 Jeff Law <law@redhat.com>
11281 * posix/regex.c (uintptr_t): Do not provide a definition if the
11282 system provided one.
11284 2001-11-13 Roland McGrath <roland@frob.com>
11286 * stdio-common/tmpfile.c: Moved to ...
11287 * sysdeps/generic/tmpfile.c: ... here.
11288 * sysdeps/mach/hurd/tmpfile.c: New file.
11290 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11291 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11292 (fopenport): Define as weak alias.
11294 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11295 * libio/libioP.h: ... to here.
11297 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11299 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11300 program header twice. Construct list with the needed information.
11302 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11304 * po/ca.po: Update from translation team.
11306 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11307 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11308 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11309 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11311 2001-11-10 Andreas Jaeger <aj@suse.de>
11313 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11314 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11315 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11317 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11319 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11321 * elf/dl-load.c (is_dst): New function.
11322 (_dl_dst_count): Use is_dst to check for DST variable.
11323 (_dl_dst_substitute): Likewise.
11325 2001-11-09 Roland McGrath <roland@frob.com>
11327 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11328 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11329 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11330 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11331 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11332 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11333 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11334 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11335 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11336 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11337 * sysdeps/mach/hurd/powerpc/Dist: New file.
11339 * hurd/privports.c (__get_privileged_ports):
11340 Only contact the proc server if necessary for this call.
11341 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11342 Check error return for mach_port_mod_refs.
11344 2001-11-09 Andreas Schwab <schwab@suse.de>
11346 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11348 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11350 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11351 object is always the last in the list.
11352 (_dl_map_object_from_fd): Delete code to remove from object list
11353 when DF_1_NOOPEN is seen. This is done in lose.
11355 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11357 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11359 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11361 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11362 HWCAP_CHECK macro code.
11364 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11365 Now returns MAP_FAILED on error.
11366 * elf/rtld.c: Adjust caller.
11367 * sysdeps/generic/dl-cache.c: Likewise.
11368 * sysdeps/generic/ldsodefs.h: Adjust description.
11370 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11371 (_dl_check_map_versions): Likewise.
11373 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11375 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11376 _dl_signal_error directly, always use lose. Set fd to -1 after
11378 (lose): Don't call close if fd == -1.
11380 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11382 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11383 Also fix typo @code {mbsinit} to @code{mbsinit}.
11385 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11387 * elf/dl-profile.c: Replace state variable with simple flag named
11388 running. Remove commented-out code.
11390 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11391 (_dl_init_paths): Likewise.
11392 (_dl_map_object_from_fd): Likewise.
11393 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11395 2001-11-06 Roland McGrath <roland@frob.com>
11397 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11398 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11400 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11401 sysdeps/powerpc/elf/sysdep.h.
11402 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11404 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11406 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11408 (process_envvars): Some more optimizations.
11409 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11411 * elf/elf.h: Add dynamic tag definitions for prelinking.
11413 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11414 Rewrite code to remove environment varables for SUID binaries.
11415 Small optimization in LD_PROFILE handling.
11416 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11418 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11420 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11422 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11423 strings. Change type of second parameter.
11424 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11427 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11429 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11431 * manual/string.texi: Fix typos.
11432 * manual/examples/argp-ex2.c: Likewise.
11434 2001-11-05 Roland McGrath <roland@frob.com>
11436 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11437 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11438 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11439 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11440 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11441 here, put under [__ELF__].
11443 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11445 * manual/charset.texi: Extensive editing work.
11446 * manual/nss.texi: Likewise.
11447 Changes by Dennis Grace <dgrace@us.ibm.com>.
11449 2001-11-04 Roland McGrath <roland@frob.com>
11451 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11452 parameter to dir_mkfile.
11454 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11456 * string/bits/string2.h (__strndup): If n is smaller than len, set
11458 * string/tester.c (test_strndup): New function.
11461 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11463 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11465 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11466 * scripts/cpp: New file.
11468 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11469 for rtld_search_dirs content. Minor optimizations.
11471 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11473 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11474 avoiding unnecessary duplication.
11476 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11478 * elf/dl-load.c (_dl_map_object): If library was found using
11479 LD_LIBRARY_PATH, don't try RUNPATH list.
11481 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11483 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11484 Correct second argument of register_dump call.
11485 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11488 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11490 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11492 * iconvdata/TESTS: Likewise.
11493 * iconvdata/gconv-modules: Likewise.
11494 * iconvdata/ibm1132.c: New file.
11495 * iconvdata/ibm1132.h: New file.
11496 * iconvdata/ibm1133.c: New file.
11497 * iconvdata/ibm1133.h: New file.
11498 * iconvdata/ibm1162.c: New file.
11499 * iconvdata/ibm1162.h: New file.
11500 * iconvdata/testdata/IBM1132: New file.
11501 * iconvdata/testdata/IBM1132..UTF8: New file.
11502 * iconvdata/testdata/IBM1133: New file.
11503 * iconvdata/testdata/IBM1133..UTF8: New file.
11504 * iconvdata/testdata/IBM1162: New file.
11505 * iconvdata/testdata/IBM1162..UTF8: New file.
11506 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11508 * string/string.h: Fix typo in comment.
11509 * wcsmbs/wchar.h: Likewise.
11511 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11513 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11514 const in type of longopts parameter.
11516 2001-10-29 Andreas Jaeger <aj@suse.de>
11518 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11520 2001-10-29 Kevin Ryde <user42@zip.com.au>
11522 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11523 output, clarify `#' behaviour on 0.
11524 (Floating-Point Conversions): Clarify that %g only uses %e when
11525 the exponent would be greater than 1.
11527 2001-10-28 Roland McGrath <roland@frob.com>
11529 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11530 * sysdeps/mach/powerpc/machine-sp.h: New file.
11531 * sysdeps/mach/powerpc/sysdep.h: New file.
11532 * sysdeps/mach/powerpc/thread_state.h: New file.
11534 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11535 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11536 expect to need the same thing on every platform.
11538 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11539 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11541 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11542 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11543 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11544 Move all these assembly-related definitions to ...
11545 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11547 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11548 by Peter Bruin <pjbruin@dds.nl>.
11550 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11551 packing results for a `poll' call.
11553 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11555 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11557 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11558 bracket expression.
11560 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11562 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11564 2001-10-24 H.J. Lu <hjl@gnu.org>
11566 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11567 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11568 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11570 2001-10-21 Jim Meyering <meyering@lucent.com>
11572 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11573 this code would end up calling gettext even in packages built
11574 with --disable-nls.
11575 * posix/getopt.c (_): Likewise.
11576 * posix/regex.c (_): Likewise.
11578 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11580 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11581 lookup not ip6.int.
11582 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11583 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11585 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11587 * misc/sys/cdefs.h (__attribute_used__): Define.
11588 * elf/rtld.c (_dl_start): Add __attribute_used__.
11589 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11591 2001-10-25 Andreas Schwab <schwab@suse.de>
11593 * stdlib/a64l.c: Expect least significant digit first.
11594 * stdlib/l64a.c: Produce least significant digit first.
11595 * stdlib/Makefile (tests): Add test-a64l.
11596 * stdlib/test-a64l.c: New file.
11597 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11599 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11601 * po/sk.po: Update from translation team.
11603 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11605 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11607 2001-10-18 Andreas Schwab <schwab@suse.de>
11609 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11611 (print_function_ulps): Likewise.
11612 (print_complex_function_ulps): Likewise.
11613 (print_max_error): Likewise.
11614 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11616 2001-10-16 Andreas Schwab <schwab@suse.de>
11618 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11621 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11622 BSD_SETJMP or BSD__SETJMP is defined, resp.
11623 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11624 a tail call to __sigsetjmp that would require extending the
11626 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11627 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11628 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11629 Reported by Jes Sorensen <jes@trained-monkey.org>.
11631 2001-10-16 Andreas Jaeger <aj@suse.de>
11633 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11634 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11635 close PR libc/2589.
11637 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11639 * po/ca.po: New file. Contributed by the translation team.
11641 2001-10-15 Ralf Baechle <ralf@gnu.org>
11643 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11644 a varargs prototype. Remove dependency from kernel header files.
11646 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11647 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11649 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11651 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11652 to generate hexadecimal identifier.
11653 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11655 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11657 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11659 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11661 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11662 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11663 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11665 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11666 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11667 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11668 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11669 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11670 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11672 * timezone/africa: Update from tzdata2001d.
11673 * timezone/asia: Likewise.
11674 * timezone/australasia: Likewise.
11675 * timezone/backward: Likewise.
11676 * timezone/europe: Likewise.
11677 * timezone/leapseconds: Likewise.
11678 * timezone/northamerica: Likewise.
11679 * timezone/southamerica: Likewise.
11680 * timezone/zone.tab: Likewise.
11682 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11684 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11685 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11687 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11689 * elf/elf.h (PT_TLS): New definition.
11691 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11693 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11696 2001-10-07 Roland McGrath <roland@frob.com>
11698 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11700 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11702 * elf/elf.h: Add more ELFOSABI_* constants.
11704 2001-10-04 Ben Collins <bcollins@debian.org>
11706 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11707 decleration of __need_wchar_t.
11709 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11711 * string/bits/string2.h (__strsep_g): Add prototype.
11712 (__strsep): Use it.
11713 * string/Versions (__strsep): Remove.
11714 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11716 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11718 * manua/llio.texi: Clarify file references added by mmap.
11719 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11721 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11723 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11724 Add sc_loadrs and sc_rbs_bas to match current kernel.
11726 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11728 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11730 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11732 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11734 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11735 object has been bumped because of relocation dependency, avoid
11736 duplicates in l_scope.
11737 (show_scope): Fix typos.
11738 * elf/Makefile: Add rules to build and run reldep6.
11739 * elf/reldep6.c: New file.
11740 * elf/reldep6mod0.c: New file.
11741 * elf/reldep6mod1.c: New file.
11742 * elf/reldep6mod2.c: New file.
11743 * elf/reldep6mod3.c: New file.
11744 * elf/reldep6mod4.c: New file.
11746 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11748 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11750 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11751 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11752 for non-lazy binding. Fix .plt[32768+] handling.
11753 (elf_machine_plt_value): Don't add addend.
11754 (elf_machine_rela): Call sparc64_fixup_plt instead of
11755 elf_machine_fixup_plt.
11756 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11757 dynamic linker at 0xfffff800XXXXXXXX.
11759 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11761 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11763 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11765 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11767 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11768 declare __cmsg_data field if its size would be bigger than 0.
11769 (CMSG_DATA): Adjust accordingly.
11770 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11771 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11772 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11773 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11774 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11776 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11778 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11780 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11781 * iconvdata/testdata/IBM1160: New file.
11782 * iconvdata/testdata/IBM1160..UTF8: New file.
11783 * iconvdata/testdata/IBM1161: New file.
11784 * iconvdata/testdata/IBM1161..UTF8: New file.
11785 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11787 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11789 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11790 UL_SETFSIZE computations better.
11792 * rt/Makefile: Remove use of filter for librt again.
11794 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11795 UL_SETFSIZE computations better.
11797 * string/Versions: Export __strsep for GLIBC_2.2.5.
11798 * string/bits/string2.h: Define all __STRING_INLINE functions if
11799 _FORCE_INLINES is defined.
11800 Use int instead of char of parameter types.
11801 (__strsep): Don't use __strsep_g. Don't define it.
11802 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11803 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11805 (__stpcpy_a_small): Renamed from __stpcpy_small.
11806 (__strcspn_c1): Don't define if _FORCE_INLINES.
11807 (__strspn_c1): Likewise.
11809 2001-09-22 Ben Collins <bcollins@debian.org>
11811 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11812 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11813 * sysdeps/ia64/bits/sigaction.h: Likewise.
11814 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11816 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11818 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11820 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11822 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11824 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11826 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11828 2001-09-20 H.J. Lu <hjl@gnu.org>
11830 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11831 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11833 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11834 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11836 2001-09-20 H.J. Lu <hjl@gnu.org>
11838 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11841 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11843 * nss/getent.c: Accept -s parameter to overwrite rules in
11844 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11846 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11847 with as many ".0" as necessary to form a complete address
11848 inet_network understands.
11850 * nss/getent.c: Various cleanups. Use simpler and fewer function
11853 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11855 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11857 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11859 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11861 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11863 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11864 * iconvdata/ibm1160.c: New file.
11865 * iconvdata/ibm1160.h: New file.
11866 * iconvdata/ibm1161.c: New file.
11867 * iconvdata/ibm1161.h: New file.
11868 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11870 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11872 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11873 difference between base address and first PT_LOAD's virtual address,
11874 not the base address.
11876 2001-09-11 Tom Rix <trix@redhat.com>
11878 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11879 ifdef for __getopt_clean_environment.
11880 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11882 2001-09-22 Andreas Jaeger <aj@suse.de>
11884 * elf/reldep4.c (main): Add proper prototype to fix warning.
11886 * elf/reldep5.c (main): Remove unused variable.
11888 * math/math_private.h: Add prototypes.
11890 2001-09-21 Andreas Jaeger <aj@suse.de>
11892 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11893 * sysdeps/x86_64/Dist: New file.
11894 * sysdeps/x86_64/soft-fp/Dist: New file.
11896 * sysdeps/gnu/Dist: Remove eval.c.
11898 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11900 * malloc/memusage.c (realloc): Don't count already allocated
11901 memory in the sums.
11902 (me): Always use dlsym() to find the real implementations.
11904 * malloc/memusage.sh: Make -n option actually do something.
11906 2001-09-20 Andreas Jaeger <aj@suse.de>
11908 * elf/elf.h (R_390_NUM): Correct value.
11910 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11913 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11914 for x86-64, install x86-64 into */lib64.
11916 * shlib-versions: Add x86-64.
11918 * elf/elf.h: Add x86-64 relocations.
11920 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11922 * po/fr.po: Update from translation team.
11924 2001-09-19 Andreas Jaeger <aj@suse.de>
11926 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11927 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11928 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11929 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11930 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11931 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11932 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11933 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11934 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11935 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11936 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11937 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11938 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11939 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11940 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11941 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11942 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11943 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11944 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11945 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11946 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11947 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11948 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11949 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11950 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11951 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11952 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11953 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11954 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11955 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11956 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11957 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11958 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11959 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11960 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11961 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11962 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11963 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11964 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11965 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11966 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11967 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11968 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11969 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11970 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11971 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11972 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11973 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11974 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11975 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11976 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11977 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11978 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11979 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11980 * sysdeps/unix/x86_64/sysdep.S: New file.
11981 * sysdeps/unix/x86_64/sysdep.h: New file.
11982 * sysdeps/x86_64/Implies: New file.
11983 * sysdeps/x86_64/Makefile: New file.
11984 * sysdeps/x86_64/Versions: New file.
11985 * sysdeps/x86_64/__longjmp.S: New file.
11986 * sysdeps/x86_64/abort-instr.h: New file.
11987 * sysdeps/x86_64/atomicity.h: New file.
11988 * sysdeps/x86_64/bits/endian.h: New file.
11989 * sysdeps/x86_64/bits/setjmp.h: New file.
11990 * sysdeps/x86_64/bits/string.h: New file.
11991 * sysdeps/x86_64/bp-asm.h: New file.
11992 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11993 * sysdeps/x86_64/bsd-setjmp.S: New file.
11994 * sysdeps/x86_64/dl-machine.h: New file.
11995 * sysdeps/x86_64/elf/initfini.c: New file.
11996 * sysdeps/x86_64/elf/start.S: New file.
11997 * sysdeps/x86_64/ffs.c: New file.
11998 * sysdeps/x86_64/ffsll.c: New file.
11999 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12000 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12001 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12002 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12003 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12004 * sysdeps/x86_64/fpu/e_expl.c: New file.
12005 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12006 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12007 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12008 * sysdeps/x86_64/fpu/e_logl.S: New file.
12009 * sysdeps/x86_64/fpu/e_powl.S: New file.
12010 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12011 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12012 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12013 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12014 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12015 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12016 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12017 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12018 * sysdeps/x86_64/fpu/fegetround.c: New file.
12019 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12020 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12021 * sysdeps/x86_64/fpu/fesetround.c: New file.
12022 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12023 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12024 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12025 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12026 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12027 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12028 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12029 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12030 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12031 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12032 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12033 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12034 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12035 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12036 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12037 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12038 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12039 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12040 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12041 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12042 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12043 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12044 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12045 * sysdeps/x86_64/gmp-mparam.h: New file.
12046 * sysdeps/x86_64/hp-timing.c: New file.
12047 * sysdeps/x86_64/hp-timing.h: New file.
12048 * sysdeps/x86_64/htonl.S: New file.
12049 * sysdeps/x86_64/memusage.h: New file.
12050 * sysdeps/x86_64/setjmp.S: New file.
12051 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12052 * sysdeps/x86_64/stackinfo.h: New file.
12053 * sysdeps/x86_64/sysdep.h: New file.
12054 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12056 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12059 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12061 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12062 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12064 2001-09-18 Andreas Schwab <schwab@suse.de>
12066 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12067 list, now that l_scope is a pointer.
12069 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12072 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12074 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12075 (elf_machine_rela_relative): Add a missing declaration.
12077 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12079 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12080 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12081 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12082 ldd-rewrite scripts.
12084 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12086 * elf/ldd.bash.in: Update copyright message.
12088 2001-09-17 H.J. Lu <hjl@gnu.org>
12090 * hurd/hurdmalloc.c (bcopy): Removed.
12091 (realloc): Replace bcopy with memcpy.
12092 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12093 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12094 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12096 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12097 (gethostbyaddr): Likewise.
12098 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12100 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12102 * sysdeps/gnu/eval.c: Removed.
12104 2001-09-18 Andreas Jaeger <aj@suse.de>
12106 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12107 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12109 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12110 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12112 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12113 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12115 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12117 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12120 2001-09-14 H.J. Lu <hjl@gnu.org>
12122 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12124 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12126 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12127 Patch by Florian La Roche <laroche@redhat.com>.
12129 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12131 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12134 2001-09-14 Andreas Schwab <schwab@suse.de>
12136 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12137 Sumner <bls@sgi.com>.
12138 * posix/execlp.c: Likewise.
12140 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12142 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12143 is already found earlier in the search scope.
12145 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12147 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12150 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12152 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12154 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12156 * config.h.in: Enforce optimization to be used.
12157 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12158 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12159 * posix/Makefile (annexc-CFLAGS): Define to -O.
12160 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12162 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12164 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12165 Patch by Stephan Kulow.
12167 2001-09-08 Ben Collins <bcollins@debian.org>
12169 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12170 usage of RESOLVE() (r_type, not reloc->r_type).
12172 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12174 * elf/dl-object.c: Avoid allocating extra memory block for name.
12175 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12176 allocated separately.
12177 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12179 2001-09-08 H.J. Lu <hjl@gnu.org>
12181 * po/zh_TW.po: Fix a typo.
12183 2001-09-07 Tom Rix <trix@redhat.com>
12185 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12187 2001-08-26 Tom Rix <trix@redhat.com>
12189 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12190 command line options.
12191 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12192 * sysdeps/unix/sysv/aix/start.c: Removed.
12193 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12194 * sysdeps/unix/sysv/aix/init-first.c: New file.
12195 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12197 2001-09-08 Ben Collins <bcollins@debian.org>
12199 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12200 * sysdeps/generic/dl-machine.h: Likewise.
12201 * sysdeps/hppa/dl-fptr.c: Likewise.
12202 * sysdeps/ia64/dl-fptr.c: Likewise.
12203 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12204 * sysdeps/mips/dl-machine.h: Likewise.
12205 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12206 * sysdeps/powerpc/dl-machine.c: Likewise.
12208 2001-09-07 Ben Collins <bcollins@debian.org>
12210 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12212 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12214 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12216 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12217 dependencies if necessary.
12219 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12220 loaded directly) determine length if l_initfini list by iterating
12221 over its elements. Minor optimizations.
12222 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12223 for dependency objects.
12224 If object was already loaded check whether any of the dependencies
12225 is already on the relocation dependency list. If yes, remove the
12226 latter. Minor optimizations.
12227 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12228 maps here. Search l_initfini list only if the object was loaded
12229 directly and not only as a dependency.
12230 (_dl_lookup_symbol): Add relocation dependency also if object
12231 is not in global scope. Remove test for self-reference here.
12232 (_dl_lookup_versioned_symbol): Likewise.
12233 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12234 element of first name record.
12235 * elf/loadtest.c: Add some more test to recognize early if an object
12237 * elf/Makefile: Add rules to build and run reldep5.
12238 * elf/reldep5.c: New file.
12239 * elf/reldepmod5.c: New file.
12240 * elf/reldepmod6.c: New file.
12242 * elf/reldep2.c: Fix typo.
12244 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12246 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12247 elements. Change l_scope to be a pointer only.
12248 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12249 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12250 here add searchlist of newly open file to the dependency's scope.
12251 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12252 only searchlist from its scope. Free own scope array if necessary.
12253 * elf/Makefile (tests): Add dblload and dblunload now.
12255 2001-09-06 Andreas Jaeger <aj@suse.de>
12257 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12260 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12262 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12264 * elf/dblload.c: New file.
12265 * elf/dblloadmod1.c: New file.
12266 * elf/dblloadmod2.c: New file.
12267 * elf/dblloadmod3.c: New file.
12268 * elf/dblunload.c: New file.
12270 2001-09-04 Richard Henderson <rth@redhat.com>
12272 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12273 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12275 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12277 Correct very misleading message for error in failed runtime relocation.
12278 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12279 place of the error.
12280 (_dl_signal_cerror): Likewise.
12281 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12282 * elf/dl-close.c: Likewise.
12283 * elf/dl-deps.c: Likewise.
12284 * elf/dl-load.c: Likewise.
12285 * elf/dl-lookup.c: Likewise.
12286 * elf/dl-open.c: Likewise.
12287 * elf/dl-reloc.c: Likewise.
12288 * elf/dl-sym.c: Likewise.
12289 * elf/dl-version.c: Likewise.
12290 * sysdeps/generic/dl-sysdep.c: Likewise.
12292 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12294 * iconv/strtab.c (strtabinit): Initialize null Strent.
12295 (newstring): Move len == 0 handling...
12296 (strtabadd): ...here.
12297 If len == 1, return null Strent.
12298 When inserting a suffix of an existing string, check if
12299 it is not equal to some suffix already recorded.
12300 Copy left and right members over if adding longer string.
12302 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12304 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12306 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12307 (__syscall_gethostname): Add prototype.
12309 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12311 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12313 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12315 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12317 2001-08-27 Roland McGrath <roland@frob.com>
12319 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12320 short, copy that much into NAME anyway before returning error.
12322 2001-09-01 Richard Henderson <rth@redhat.com>
12324 * sysdeps/alpha/elf/Dist: Remove file.
12325 * sysdeps/alpha/elf/Makefile: Remove file.
12326 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12327 * sysdeps/alpha/elf/crtend.S: Remove file.
12328 * sysdeps/alpha/elf/initfini.c: New file.
12330 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12332 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12333 * iconv/tst-iconv3.c: Likewise.
12335 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12337 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12339 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12341 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12343 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12344 * iconv/iconv_prog.c (insert_cache): New function.
12345 (print_known_names): If cache is used call insert_cache to use the
12346 information from the cache [PR libc/2509].
12348 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12350 * time/strptime.c (strptime_internal): Recognize 'l' format and
12351 handle it like 'I' for symmetry with strftime.
12353 2001-08-31 Richard Henderson <rth@redhat.com>
12355 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12356 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12357 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12358 (print_statistics): Make scalar unsigned long long.
12359 * sysdeps/alpha/hp-timing.h: New file.
12361 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12363 * stdio-common/perror.c (perror): Save errno early, pass it
12364 down to perror_internal.
12365 (perror_internal): Add errnum argument.
12367 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12369 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12370 Don't add old memory content for R_ALPHA_REFQUAD.
12372 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12374 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12377 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12378 instead of open, __close instead of close, __getpagesize instead
12381 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12382 instead of strnlen.
12383 * include/string.h (strndupa): Redefine here to use __strnlen
12384 instead of strnlen.
12385 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12387 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12390 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12392 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12393 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12394 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12395 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12396 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12397 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12398 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12400 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12402 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12404 2001-08-30 Andreas Jaeger <aj@suse.de>
12406 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12407 contributed Stephen L Moshier.
12409 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12411 * sunrpc/etc.rpc (sgi_fam): Add.
12413 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12415 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12417 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12419 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12420 first is from a previous call.
12421 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12423 2001-08-29 Andreas Schwab <schwab@suse.de>
12425 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12427 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12429 * config.make.in (INSTALL_SCRIPT): Define.
12430 * Makeconfig (INSTALL_SCRIPT): Define.
12431 * Makerules (do-install-script): New macro to install scripts using
12433 (install-bin-script): New rule to install scripts with
12435 (install-bin-script-nosubdir): New rule.
12436 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12437 (distinfo-vars): Add $(install-bin-script).
12438 * Rules (others): Likewise.
12439 * Makefile (glibcbug): Install with install-bin-script.
12440 * debug/Makefile (xtrace): Likewise.
12441 (catchsegv): Likewise.
12442 * elf/Makefile (ldd): Likewise.
12443 * malloc/Makefile (mtrace): Likewise.
12444 * timezone/Makefile (tzselect): Likewise.
12446 2001-08-29 H.J. Lu <hjl@gnu.org>
12448 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12449 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12450 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12452 2001-08-29 Andreas Schwab <schwab@suse.de>
12454 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12456 2001-08-28 H.J. Lu <hjl@gnu.org>
12458 * Makeconfig (combreloc-LDFLAGS): New variable.
12459 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12460 * config.make.in (have-z-combreloc): New variable.
12461 * configure.in: Substitute libc_cv_z_combreloc.
12463 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12465 * po/sv.po: Update from translation team.
12466 * po/fr.po: Likewise.
12467 * po/da.po: Likewise.
12469 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12471 * Makerules: Fix a typo: MD% -> MD5.
12473 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12475 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12476 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12478 2001-08-28 Andreas Jaeger <aj@suse.de>
12480 * manual/libc-texinfo.sh: Add entry about free manuals.
12482 * manual/contrib.texi (Contributors): Fix cross reference.
12484 * manual/libc.texinfo (Copying): Include freemanuals.
12486 * manual/Makefile (appendices): Add freemanuals.
12488 * manual/freemanuals.texi: New file.
12489 Patch by Brian Youmans <3diff@gnu.org>.
12491 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12494 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12495 table on separate page.
12496 Patch by Brian Youmans <3diff@gnu.org>.
12498 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12500 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12501 the connection went down after we first used it try to connect
12502 again and resend the message before printing to the console.
12503 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12505 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12507 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12508 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12511 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12513 * iconv/strtab.c (searchstring): Use correct length for comparison.
12514 (strtabadd): Account total size correct if new string has old string as
12517 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12519 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12521 2001-08-27 Andreas Jaeger <aj@suse.de>
12523 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12525 * math/libm-test.inc (j0_test): Add extra tests.
12526 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12527 not x, in Hankel approximation.
12528 Patches by Stephen L Moshier.
12530 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12532 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12535 * configure.in: Fix test for .rela.dyn section.
12537 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12539 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12541 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12542 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12543 Pass type_class to _dl_lookup_*.
12544 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12545 Pass around just type_class instead of noexec, noplt pair.
12546 (_dl_lookup_versioned_symbol): Likewise.
12547 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12548 noexec, noplt pair.
12549 (_dl_lookup_versioned_symbol_skip): Likewise.
12550 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12551 * elf/do-lookup.h (do_lookup): Likewise.
12552 * include/link.h (struct link_map): Replace noexec and noplt fields
12553 in l_lookup_cache with type_class field.
12554 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12555 ELF_RTYPE_CLASS_COPY): Define.
12556 Adjust prototypes for _dl_lookup_symbol and
12557 _dl_lookup_versioned_symbol.
12558 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12559 elf_machine_lookup_noexec_p): Remove.
12560 (elf_machine_type_class): Define.
12561 * sysdeps/arm/dl-machine.h: Likewise.
12562 * sysdeps/hppa/dl-machine.h: Likewise.
12563 * sysdeps/cris/dl-machine.h: Likewise.
12564 * sysdeps/i386/dl-machine.h: Likewise.
12565 * sysdeps/ia64/dl-machine.h: Likewise.
12566 * sysdeps/m68k/dl-machine.h: Likewise.
12567 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12568 * sysdeps/mips/dl-machine.h: Likewise.
12569 * sysdeps/powerpc/dl-machine.h: Likewise.
12570 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12571 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12572 * sysdeps/sh/dl-machine.h: Likewise.
12573 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12574 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12576 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12578 * manual/message.texi (Advanced gettext functions): Change
12579 description of plural forms for Slovak.
12580 Reported by Marcel Telka <marcel@telka.sk>.
12582 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12583 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12585 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12587 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12588 typo. Patch by Florian La Roche <laroche@redhat.com>.
12590 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12592 * include/link.h (struct link_map): Add l_lookup_cache element.
12593 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12594 (RESOLVE_MAP): Likewise.
12595 (_dl_relocate_object): Remove cache initialization.
12596 * elf/dl-lookup.c: Rip out cache handling code.
12597 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12600 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12601 remove some __builtin_expect.
12602 (_dl_lookup_versioned_symbol): Likewise.
12604 * config.h.in: Add HAVE_Z_COMBRELOC.
12605 * configure.in: Add test for -z combreloc.
12607 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12608 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12609 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12610 case to almost no code.
12612 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12614 * po/tr.po: Update from translation team.
12616 2001-08-24 Andreas Jaeger <aj@suse.de>
12618 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12621 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12623 * elf/rtld.c (print_statistics): Printf % after percent values.
12624 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12626 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12627 don't have to compute the hash value and initialize current_value.
12628 Move reference_name variable to where it is needed.
12629 (_dl_lookup_versioned_symbol): Likewise.
12631 2001-08-24 Roland McGrath <roland@frob.com>
12633 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12634 Just test that strerror returns non-null for a few errno codes.
12636 2001-08-23 Roland McGrath <roland@frob.com>
12638 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12639 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12641 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12643 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12646 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12648 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12651 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12652 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12654 * elf/rtld.c: Include <sys/param.h>.
12655 * elf/dl-reloc.c: Likewise.
12657 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12659 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12660 empty to prevent junk from being generated.
12661 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12663 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12665 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12666 records. Rename endrel to relative, initialize it to r, and use it
12667 in elf_machine_rel_relative calls. Point r after relative relocs.
12669 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12671 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12674 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12676 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12677 necessary. Undefine newly defined macros at the end.
12678 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12679 Rename from elf_machine_rel_relative.
12680 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12681 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12682 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12683 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12685 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12687 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12688 Fix argument types.
12689 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12690 Fix argument types.
12691 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12692 Likewise. Fix argument types.
12693 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12694 Likewise. Fix argument types.
12695 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12696 Fix argument types.
12697 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12698 ElfW(Rel) in argument.
12699 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12702 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12704 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12706 2001-08-24 Andreas Jaeger <aj@suse.de>
12708 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12709 Stephen L Moshier <moshier@mediaone.net>.
12711 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12713 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12714 first if RELCOUNT is set.
12716 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12717 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12718 elf_machine_rel_relative.
12719 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12720 Minor optimizations.
12721 * sysdeps/arm/dl-machine.h: Likewise.
12722 * sysdeps/cris/dl-machine.h: Likewise.
12723 * sysdeps/hppa/dl-machine.h: Likewise.
12724 * sysdeps/i386/dl-machine.h: Likewise.
12725 * sysdeps/ia64/dl-machine.h: Likewise.
12726 * sysdeps/m68k/dl-machine.h: Likewise.
12727 * sysdeps/mips/dl-machine.h: Likewise.
12728 * sysdeps/powerpc/dl-machine.h: Likewise.
12729 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12730 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12731 * sysdeps/sh/dl-machine.h: Likewise.
12732 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12733 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12735 2001-08-23 Roland McGrath <roland@frob.com>
12737 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12739 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12740 sysdeps/mach version. Implement counting ("recursive") mutexes
12741 on top of cthreads mutexes.
12742 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12744 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12745 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12746 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12747 __libc_clean_end): Define these to call the cleanup function after
12748 normal exit when they're supposed to.
12750 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12751 Take new first arg DOIT, a boolean saying whether to really install
12752 any cleanup handler.
12753 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12754 (__libc_cleanup_end): Likewise.
12755 * sysdeps/generic/bits/libc-lock.h: Same changes.
12756 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12757 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12758 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12760 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12761 * sysdeps/generic/bits/stdio-lock.h
12762 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12764 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12766 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12768 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12770 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12772 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12774 (_dl_lookup_versioned_symbol): Likewise.
12775 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12777 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12778 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12779 (lookup_cache, lookup_cache_versioned): Add declarations.
12781 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12783 * stdlib/tst-random.c (main): Swap parameters in fail call.
12784 Patch by Pete Bevin <pete@petebevin.com>.
12786 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12788 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12790 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12792 * malloc/obstack.c: Indent preprocessor directives.
12793 Patch by Jim Meyering <meyering@ascend.com>.
12795 * po/ja.po: Update from translation team.
12797 2001-08-23 Roland McGrath <roland@frob.com>
12799 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12801 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12802 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12804 2001-08-22 Roland McGrath <roland@frob.com>
12806 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12807 __libc_lock_define_recursive.
12808 * elf/dl-open.c: Don't declare it here any more.
12809 * elf/dl-close.c: Likewise.
12810 * elf/dl-lookup.c: Likewise.
12811 * elf/dl-iteratephdr.c: Likewise.
12812 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12813 __libc_lock_unlock_recursive.
12814 * elf/dl-close.c (_dl_close): Likewise
12815 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12816 * elf/dl-open.c (_dl_open): Likewise
12818 * sysdeps/generic/bits/libc-lock.h
12819 (__libc_lock_define_recursive): New macro.
12820 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12821 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12822 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12824 * conform/conformtest.pl (checknamespace): Sort the output list.
12826 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12827 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12828 definitions conditional on [__USE_XOPEN].
12830 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12831 these unconditionally, not only use [__USE_BSD], so as to match
12832 the sysdeps/unix/sysv/linux files.
12834 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12836 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12839 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12842 2001-08-22 Roland McGrath <roland@frob.com>
12844 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12845 conditionalization of sa_handler/sa_sigaction member types to
12846 match the sysdeps/unix/sysv/linux file.
12848 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12850 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12851 symbol sizes a bit better.
12853 * sysdeps/ia64/strncpy.S: Complete rewrite.
12854 Contributed by Jakub Jelinek <jakub@redhat.com>.
12856 * string/stratcliff.c (main): Add strncpy test.
12858 2001-08-22 Roland McGrath <roland@frob.com>
12860 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12861 and don't declare unsetenv or _environ directly.
12862 (unsetenv): Return int, not void. Use __environ instead of _environ.
12864 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12866 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12867 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12868 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12869 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12870 test for cmsg struct size.
12872 2001-04-23 Paul Eggert <eggert@twinsun.com>
12874 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12875 Rename __argc to ___argc in prototypes to avoid compatibility
12876 problems with systems that reserve the identifier "__argc".
12877 Similarly for __argv.
12879 2001-08-21 Roland McGrath <roland@frob.com>
12881 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12883 * mach/Makefile (tests): Removed.
12884 * mach/hello.c: File removed.
12886 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12888 * po/sv.po: Update from translation team.
12890 * stdio-common/vfscanf.c: Fix handling of %l[].
12891 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12893 * libio/Makefile (tests): Add tst-sscanf.
12894 * libio/tst-sscanf.c: New file.
12896 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12897 * malloc/mtrace.c (tr_where): dli_sname always points to a
12898 non-empty string if != NULL.
12899 Reported by Tim Janik <timj@gtk.org>.
12901 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12903 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12904 buf. Free resources on failure.
12905 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12906 (makefd_xprt): Likewise.
12907 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12908 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12909 * sunrpc/auth_unix.c (authunix_create): Likewise.
12911 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12913 * string/strnlen.c: Remove.
12914 * sysdeps/generic/strnlen.c: New file.
12915 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12917 2001-08-21 Roland McGrath <roland@frob.com>
12919 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12920 as a macro, not an extern inline function.
12922 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12923 * Versions.def (libc): Add GLIBC_2.2.5 set.
12924 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12925 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12927 2001-08-20 Roland McGrath <roland@frob.com>
12929 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12930 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12932 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12934 * string/bits/string2.h: Remove strnlen optimization here.
12935 * sysdeps/i386/i486/bits/string.h: Add it here.
12937 2001-08-21 Wolfram Gloger <wg@malloc.de>
12939 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12941 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12943 * po/gl.po: Update from translation team.
12945 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12947 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12948 * misc/err.c (convert_and_print): Likewise.
12950 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12953 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12955 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12956 change of the gregset_t type.
12957 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12959 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12961 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12963 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12965 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12967 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12969 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12971 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12972 before calling the cthreads initialization code.
12974 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12976 * argp/argp-help.c: Fix two problems introduced in last change.
12978 * include/dirent.h: Include <dirstream.h> first.
12980 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12982 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12984 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12985 * sunrpc/xdr_rec.c: Likewise.
12986 * sunrpc/xdr_mem.c: Likewise.
12987 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12988 * sunrpc/rpc_cmsg.c: Likewise.
12989 * sunrpc/getrpcport.c (getrpcport): Likewise.
12990 * sunrpc/clnt_simp.c (callrpc): Likewise.
12991 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12992 * string/envz.c: Likewise.
12994 * po/ko.po: Update from translation team.
12996 * argp/argp-help.c: Handle wide oriented stderr stream.
12998 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13000 * sysdeps/generic/strtol.c: Little optimizations. Add some
13003 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13005 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13006 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13007 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13009 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13011 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13013 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13015 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13016 wchar_t for function declarations and defintions.
13018 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13019 Define suseconds_t if it hasn't happened yet.
13021 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13023 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13025 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13028 * conform/data/stddef.h-data: Remove wint_t.
13030 * conform/conformtest.pl: Change namespace test to take #undef
13031 lines into account.
13033 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13035 * conform/data/sys/socket.h-data: Add sockatmark.
13037 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13039 * io/fts.c: Update from recent BSD source.
13041 2001-08-17 Roland McGrath <roland@frob.com>
13043 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13044 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13047 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13049 * locale/duplocale.c (__duplocale): Also initialize the special
13050 __ctype_* elements.
13052 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13054 2001-08-17 Andreas Jaeger <aj@suse.de>
13056 * misc/getpass.c: Include wchar.h for prototypes.
13057 * malloc/obstack.c: Likewise.
13059 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13061 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13063 * wcsmbs/wcscoll.c: Also define __wcscoll.
13064 * include/wchar.h: Declare __wcscoll.
13066 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13067 * libio/vwprintf.c: Likewise.
13068 * libio/wprintf.c: Likewise.
13070 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13072 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13074 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13075 instead of mbrtowc.
13076 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13077 wcslen, and __wcscoll instead of wcscoll.
13079 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13081 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13082 __getuid instead of getuid.
13084 * stdio-common/perror.c (perror): Use __close instead of close.
13085 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13086 * libio/freopen.c (freopen): Likewise.
13087 * libio/freopen64.c (freopen64): Likewise.
13089 * libio/tst-ungetwc2.c (main): Define str const.
13091 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13092 * libio/fwprintf.c: Also define __fwprintf.
13093 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13094 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13095 * assert/assert-perr.c: Likewise.
13096 * assert/assert.c: Likewise.
13097 * gmon/gmon.c: Likewise.
13098 * inet/rcmd.c: Likewise.
13099 * malloc/obstack.c: Likewise.
13100 * misc/err.c: Likewise.
13101 * misc/error.c: Likewise.
13102 * misc/getpass.c: Likewise.
13103 * posix/getopt.c: Likewise.
13104 * resolv/res_hconf.c: Likewise.
13105 * stdio-common/perror.c: Likewise.
13106 * stdio-common/psignal.c: Likewise.
13107 * stdlib/fmtmsg.c: Likewise.
13108 * sunrpc/auth_unix.c: Likewise.
13109 * sunrpc/clnt_perr.c: Likewise.
13110 * sunrpc/clnt_tcp.c: Likewise.
13111 * sunrpc/clnt_udp.c: Likewise.
13112 * sunrpc/clnt_unix.c: Likewise.
13113 * sunrpc/svc_simple.c: Likewise.
13114 * sunrpc/svc_tcp.c: Likewise.
13115 * sunrpc/svc_udp.c: Likewise.
13116 * sunrpc/svc_unix.c: Likewise.
13117 * sunrpc/xdr.c: Likewise.
13118 * sunrpc/xdr_array.c: Likewise.
13119 * sunrpc/xdr_rec.c: Likewise.
13120 * sunrpc/xdr_ref.c: Likewise.
13121 * sysdeps/generic/wordexp.c: Likewise.
13123 * po/it.po: Update from translation team.
13125 * misc/err.c: Handle wide oriented stderr stream.
13127 2001-08-14 Tom Rix <trix@redhat.com>
13129 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13130 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13132 2001-08-13 Tom Rix <trix@redhat.com>
13134 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13135 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13138 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13140 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13141 Store the access registers to the ucontext structure.
13142 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13145 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13146 Load the access registers from the ucontext structure.
13147 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13150 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13151 offsets to the new ucontext layout.
13152 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13154 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13155 of the ucontext structure.
13156 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13158 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13160 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13161 (error_at_line): Likewise.
13163 * stdio-common/perror.c (perror): Implement according to standard.
13164 The stream orientation must not be changed if the stream was not
13165 oriented before the call.
13166 * stdio-common/Makefile (tests): Add tst-perror.
13167 * stdio-common/tst-perror.c: New file.
13170 See ChangeLog.12 for earlier changes.