1 2002-09-22 Andreas Schwab <schwab@suse.de>
3 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
4 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
7 2002-09-21 Roland McGrath <roland@redhat.com>
9 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
10 Correct the value so it covers all platforms, and is computed
11 from _DL_PLATFORMS_COUNT rather than hard-wired.
12 From Andrew Suffield <asuffield@debian.org>.
14 2002-09-20 Ulrich Drepper <drepper@redhat.com>
16 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
17 locking when using mount tab file.
18 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
19 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
20 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
22 * elf/dl-init.c (_dl_init): Fix test of the size of the
23 preinit_array section.
24 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
25 Reported by Brian Cabral <cabral@ikuni.com>.
27 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
29 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
30 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
31 specific macros copied from sysdeps/powerpc/sysdep.h.
32 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
34 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
35 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
36 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
38 2002-09-19 Bruno Haible <bruno@clisp.org>
40 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
43 2002-09-17 Bruno Haible <bruno@clisp.org>
45 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
46 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
47 also on platforms with !HAVE_UT_TYPE.
48 (proc_utmp_eq): Remove function.
49 (internal_getut_r, pututline_file): Call __utmp_equal instead.
51 2002-09-20 Bruno Haible <bruno@clisp.org>
53 * abi-tags: Add support for FreeBSD with ABI OS value 3.
54 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
56 2002-09-20 Roland McGrath <roland@redhat.com>
58 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
59 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
61 * sysdeps/x86_64/gmp-mparam.h: File removed.
62 * sysdeps/sparc/gmp-mparam.h: File removed.
63 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
64 * sysdeps/ia64/gmp-mparam.h: File removed.
65 * sysdeps/alpha/gmp-mparam.h: File removed.
67 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
69 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
70 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
71 casts. Align __libc_stack_end to 8 bytes.
73 2002-09-20 Roland McGrath <roland@redhat.com>
75 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
76 instead of asm for lrintf, __lrintf aliases.
78 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
79 int array for 32-/64-bit compatibility.
80 From Steven Munroe <sjmunroe@us.ibm.com>.
82 2002-09-17 Bruno Haible <bruno@clisp.org>
84 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
85 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
86 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
87 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
88 for iterating through the list of interfaces.
89 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
91 2002-09-20 Roland McGrath <roland@redhat.com>
93 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
94 Reported by Bruno Haible <bruno@clisp.org>.
96 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
98 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
99 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
100 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
102 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
104 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
105 * sysdeps/powerpc/bits/wordsize.h: New file.
106 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
107 array to int array for 32-/64-bit compatibility.
109 2002-09-20 Roland McGrath <roland@redhat.com>
111 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
113 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
114 Reported by Bruno Haible <bruno@clisp.org>.
116 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
117 before doubling RQ_LEN.
118 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
119 Reported by Bruno Haible <bruno@clisp.org>.
121 2002-09-18 Bruno Haible <bruno@clisp.org>
123 * login/logout.c (logout): Don't assume ut_time has the same size as
125 * login/logwtmp.c (logwtmp): Likewise.
127 * sysdeps/pthread/configure: New file, moved here from
128 linuxthreads/sysdeps/unix/sysv/linux/configure.
130 2002-09-19 Ulrich Drepper <drepper@redhat.com>
132 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
133 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
134 Reported by Glen Nakamura <glen@imodulo.com>.
136 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
138 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
139 thread's sigstate data structure if it has been allocated.
141 2002-09-19 Roland McGrath <roland@redhat.com>
143 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
144 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
146 2002-09-18 Ulrich Drepper <drepper@redhat.com>
148 * version.h (VERSION): Bump to 2.2.94.
150 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
151 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
152 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
155 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
157 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
159 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
163 2002-09-19 Jakub Jelinek <jakub@redhat.com>
165 * sysdeps/wordsize-32/Makefile: New file.
166 * sysdeps/arm/Makefile: Removed.
167 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
168 Don't add divdi3 here.
169 * sysdeps/m68k/Makefile: Likewise.
170 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
171 * sysdeps/sh/Makefile: Likewise.
172 * sysdeps/s390/s390-32/Makefile: Likewise.
174 2002-09-18 Roland McGrath <roland@redhat.com>
176 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
177 the __ctype_* compat symbols, so the relocs generated bind to the
178 right versioned global symbol in the shared object.
180 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
181 from the value taken from the DT_VERSYM table.
182 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
183 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
184 (RESOLVE_GOTSYM): Likewise.
186 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
188 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
189 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
190 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
191 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
192 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
193 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
194 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
195 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
197 2002-09-18 Ulrich Drepper <drepper@redhat.com>
199 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
201 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
202 define sigaction and __sigaction as wrappers around
203 __libc_sigaction which rejects changing SIGCANCEL.
204 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
206 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
209 * signal/allocrtsig.c: Move to...
210 * sysdeps/generic/allocrtsig.c: ...here. New file.
212 2002-09-17 Jakub Jelinek <jakub@redhat.com>
214 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
216 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
217 R_386_TLS_LE): Define.
218 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
220 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
221 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
222 (elf_machine_rel): Handle R_386_TLS_TPOFF.
223 (elf_machine_rela): Likewise.
224 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
226 2002-09-17 Roland McGrath <roland@redhat.com>
228 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
229 file-specific variable override so it compiles properly when using
232 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
234 Ported to PowerPC64 running Linux.
235 * sysdeps/powerpc/powerpc64/Dist: New file.
236 * sysdeps/powerpc/powerpc64/Implies: New file.
237 * sysdeps/powerpc/powerpc64/Makefile: New file.
238 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
239 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
240 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
241 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
242 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
243 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
244 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
245 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
246 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
247 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
248 * sysdeps/powerpc/powerpc64/memset.S: New file.
249 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
250 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
251 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
252 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
253 * sysdeps/powerpc/powerpc64/strchr.S: New file.
254 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
255 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
256 * sysdeps/powerpc/powerpc64/strlen.S: New file.
257 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
258 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
259 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
260 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
269 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
270 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
271 various gcc versions. Dot names required for powerpc64.
272 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
273 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
274 C_SYMBOL_DOT_NAME(alias).
275 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
276 original strong_alias macro.
277 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
278 C_SYMBOL_DOT_NAME(alias).
279 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
280 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
282 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
283 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
284 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
285 (hidden_def): Append hidden_dot_def1 macro to definition.
286 (hidden_ver): Append hidden_dot_def1 macro to definition.
287 (hidden_data_def): New macro. Same as original hidden_def macro.
288 (hidden_data_ver): New macro. Same as original hidden_ver macro.
289 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
290 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
291 (hidden_weak): Append hidden_dot_weak1 macro to definition.
292 (hidden_data_weak): New macro. Same as original hidden_weak macro.
293 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
294 Otherwise defined as __GI_name.
295 (libc_hidden_data_def): New macro. Use hidden_data_def.
296 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
297 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
298 (rtld_hidden_data_def): New macro. Use hidden_data_def.
299 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
300 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
301 (libm_hidden_data_def): New macro. Use hidden_data_def.
302 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
303 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
304 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
306 2002-09-17 Ulrich Drepper <drepper@redhat.com>
308 * include/libc-symbols.h: Change *hidden_proto macros to accept
309 option parameters and pass those to the attribute definition.
310 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
312 * include/unistd.h: Declare __libc_pause.
314 * include/sys/socket.h: Declare __libc_send, __libc_recv,
315 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
317 * include/unistd.h: Declare __libc_fork.
319 2002-09-17 Roland McGrath <roland@redhat.com>
321 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
322 (passwd2des): Define it as an alias.
323 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
325 2002-09-12 Bruno Haible <bruno@clisp.org>
327 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
328 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
330 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
331 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
333 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
335 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
336 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
337 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
338 PowerPC64 does not have separate 64-bit syscalls.
340 2002-09-16 Roland McGrath <roland@redhat.com>
342 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
347 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
349 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
350 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
351 * sysdeps/generic/_exit.c: Likewise.
353 2002-09-12 Jakub Jelinek <jakub@redhat.com>
355 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
357 * elf/rtld.c (struct dl_start_final_info): New.
358 (_dl_start_final): Change second argument to struct
359 dl_start_final_info *. Set start_time from info.
360 (_dl_start): Remove bootstrap_map variable, add info.
361 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
362 store HP_TIMING_NOW result into info.start_time.
364 2002-09-16 Andreas Jaeger <aj@suse.de>
366 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
368 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
370 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
372 * sysdeps/powerpc/abort-instr.h: New file.
374 2002-09-14 Ulrich Drepper <drepper@redhat.com>
376 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
379 * test-skeleton.c (main): Provide more information in case waitpid
382 * include/unistd.h: Declare __exit_thread.
383 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
384 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
385 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
386 * sysdeps/unix/sysv/linux/_exit.c: New file.
387 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
388 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
391 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
393 2002-09-12 Jakub Jelinek <jakub@redhat.com>
395 * sysdeps/i386/dl-machine.h (elf_machine_rel)
396 (case R_386_TLS_DTPMOD32): Don't use addend.
397 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
398 (elf_machine_rela): Add support for TLS relocs.
400 2002-09-14 Roland McGrath <roland@redhat.com>
402 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
404 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
406 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
407 specific asm macros for multiple percision integer math.
409 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
411 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
412 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
413 Remove per-machine conditionals for FLAG_* cases.
414 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
415 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
418 2002-09-10 Alan Modra <amodra@bigpond.net.au>
420 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
422 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
423 lowest address for profiling in __monstartup call.
424 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
426 2002-09-14 Roland McGrath <roland@redhat.com>
428 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
429 instead of __NR_pread.
430 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
431 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
432 instead of __NR_pwrite.
433 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
435 2002-09-13 Roland McGrath <roland@redhat.com>
437 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
439 2002-09-13 Andreas Jaeger <aj@suse.de>
441 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
442 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
444 2002-09-12 Ulrich Drepper <drepper@redhat.com>
446 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
448 2002-09-10 Ulrich Drepper <drepper@redhat.com>
450 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
453 2002-09-12 Roland McGrath <roland@redhat.com>
455 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
456 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
459 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
460 executable if needed, in case it's actually a shared object.
462 2002-09-11 Roland McGrath <roland@redhat.com>
464 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
465 l_map_start to adjust l_tls_initimage.
467 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
468 when using h_errno and it's not set to NETDB_INTERNAL.
469 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
471 * Makefile ($(common-objpfx)testrun.sh): New target.
472 (others): Depend on it.
473 (postclean-generated): Append it.
475 * nss/bug-erange.c: New file.
476 * nss/Makefile (tests): Add it.
478 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
479 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
481 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
482 strncmp, keeps the code smaller for a non-performance-critical case.
484 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
485 no longer wrongly matches arbitrary prefixes of NAME.
486 Reported by Jakub Jelinek <jakub@redhat.com>.
488 2002-09-11 Jakub Jelinek <jakub@redhat.com>
490 * posix/bug-regex11.c (tests): New array.
491 (main): Rewritten to run more different tests.
493 2002-09-10 Roland McGrath <roland@redhat.com>
495 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
496 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
497 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
499 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
500 well so we don't get it declared by include/math.h's hidden_proto.
501 Then do hidden_proto for __isnanf locally so hidden_def works right.
503 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
504 a cast to turn nl_langinfo return value into an integer.
506 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
508 * posix/regexec.c (build_trtable): Fix the destination of
509 newline to prevent wrong states from overwriting.
510 Append break statements to optimization.
512 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
514 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
515 (build_range_exp): Add castings to strlen invocations.
516 (build_collating_symbol): Restore the type of characters from "char"
517 to "unsigned char", and supplement castings.
518 (build_collating_symbol): Likewise.
519 (build_equiv_class): Likewise.
520 (build_charclass): Likewise.
521 (seek_collating_symbol_entry): Likewise.
522 (parse_bracket_exp): Likewise.
523 (build_word_op): Supplement a casting.
524 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
525 (re_string_allocate): Fix castings.
526 (re_string_construct): Likewise.
527 (re_string_construct_common): Likewise.
528 (re_string_realloc_buffers): Likewise.
529 (build_wcs_buffer): Likewise.
530 (build_wcs_upper_buffer): Likewise.
531 (re_string_skip_chars): Likewise.
532 (re_string_reconstruct): Likewise.
533 * posix/regex_internal.h: Restore the type of characters in
534 re_string_t and bracket_elem_t from "char" to "unsigned char".
535 (re_string_elem_size_at): Fix castings.
536 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
537 (transit_state_bkref_loop): Restore the type of characters from
538 "char" to "unsigned char", and append a cast to "char*" pointer in
540 (check_node_accept_bytes): Likewise.
541 (find_collation_sequence_value): Likewise.
543 2002-09-10 Hartvig Ekner <hartvige@mips.com>
545 * sysdeps/mips/memcpy.S: New file.
546 * sysdeps/mips/memset.S: New file.
547 * sysdeps/mips/fpu/e_sqrt.c: New file.
548 * sysdeps/mips/fpu/e_sqrtf.c: New file.
550 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
551 functional before. Also removed all SHLIB_COMPAT stuff.
552 * fpu/fegetenv.c: Likewise.
553 * fpu/fesetenv.c:: Likewise.
554 * fpu/feupdateenv.c: Likewise.
555 * fpu/fgetexcptflg.c: Likewise.
556 * fpu/fraiseexcpt.c: Likewise.
558 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
560 2002-09-09 Jakub Jelinek <jakub@redhat.com>
562 * include/math.h (__finite_internal, __finitef_internal,
563 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
565 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
566 __isinfl, __isnanl): Add hidden_proto.
567 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
569 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
570 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
572 * stdio-common/printf_size.c (printf_size): Likewise.
573 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
574 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
575 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
576 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
577 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
578 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
579 (__finite): Add hidden_def.
580 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
581 (__finitef): Add hidden_def.
582 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
583 (__finitel): Add hidden_def.
584 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
586 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
587 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
589 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
590 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
592 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
593 (__isinfl): Remove INTDEF.
594 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
596 (__isnanl): Remove INTDEF.
597 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
599 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
600 instead of sin and cos.
601 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
603 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
604 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
605 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
607 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
609 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
610 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
611 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
613 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
615 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
617 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
618 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
619 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
621 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
622 __finitel_internal): Remove aliases.
623 (__finite, __finitef, __finitel): Add hidden_def.
624 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
625 __isnanl_internal): Remove aliases.
626 (__isnan, __isnanf, __isnanl): Add hidden_def.
627 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
628 __isinfl_internal): Remove aliases.
629 (__isinf, __isinff, __isinfl): Add hidden_def.
630 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
631 __fpclassifyl): Add libm_hidden_def.
632 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
633 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
634 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
635 (hidden_defx): Define and use.
636 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
638 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
639 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
640 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
642 (__isnan, __isnanf): Add hidden_def.
643 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
644 (__finitel): Add libm_hidden_def.
645 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
647 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
648 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
649 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
650 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
651 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
652 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
653 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
654 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
655 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
656 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
657 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
658 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
659 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
660 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
661 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
662 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
663 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
664 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
665 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
666 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
667 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
668 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
669 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
670 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
671 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
672 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
673 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
675 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
677 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
679 2002-09-09 Jakub Jelinek <jakub@redhat.com>
681 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
682 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
684 2002-09-09 Ulrich Drepper <drepper@redhat.com>
686 * string/stratcliff.c: Some more strncpy tests.
687 Patch by Daniel Jacobowitz <drow@mvista.com>.
689 2002-09-08 Roland McGrath <roland@redhat.com>
691 * resolv/resolv.h: Include <sys/types.h> for u_long even in
692 the [__need_res_state] case.
693 Reported by Bruno Haible <bruno@clisp.org>.
695 2002-09-04 Bruno Haible <bruno@clisp.org>
697 * sysdeps/generic/bits/ustat.h: Comment fix.
698 * io/sys/sendfile.h: Comment fix.
699 * sysdeps/posix/pread.c: Comment fix.
700 * sysdeps/posix/pread64.c: Comment fix.
701 * sysdeps/posix/pwrite.c: Comment fix.
702 * sysdeps/posix/pwrite64.c: Comment fix.
704 2002-09-06 Roland McGrath <roland@redhat.com>
706 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
707 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
708 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
709 (_UTSNAME_MACHINE_LENGTH): Likewise.
710 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
712 2002-09-06 Ulrich Drepper <drepper@redhat.com>
714 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
715 test for filesystem type name of mount points.
717 * include/errno.h: Use errno definition with __thread for now only
720 * test-skeleton.c (main): Improve error message for unexpected
723 2002-09-05 Roland McGrath <roland@redhat.com>
725 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
726 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
728 2002-09-05 Jakub Jelinek <jakub@redhat.com>
730 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
733 2002-09-04 Bruno Haible <bruno@clisp.org>
735 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
736 sigset_get_old_mask): Turn into inline functions.
737 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
738 sigset_get_old_mask): Likewise.
739 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
740 sigset_get_old_mask): Likewise.
741 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
744 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
746 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
748 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
749 _sys_nerr_internal instead of _sys_nerr.
751 * nscd/connections.c (handle_request): Declare CALLER inside #if.
753 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
755 * sysdeps/powerpc/__longjmp.S: Moved to...
756 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
757 * sysdeps/powerpc/add_n.S: Moved to...
758 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
759 * sysdeps/powerpc/addmul_1.S: Moved to...
760 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
761 * sysdeps/powerpc/atomicity.h: Moved to...
762 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
763 * sysdeps/powerpc/backtrace.c: Moved to...
764 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
765 * sysdeps/powerpc/bp-asm.h: Moved to...
766 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
767 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
768 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
769 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
770 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
771 * sysdeps/powerpc/dl-machine.c: Moved to...
772 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
773 * sysdeps/powerpc/dl-machine.h: Moved to...
774 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
775 * sysdeps/powerpc/dl-start.S: Moved to...
776 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
777 * sysdeps/powerpc/gprrest0.S: Moved to...
778 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
779 * sysdeps/powerpc/gprrest1.S: Moved to...
780 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
781 * sysdeps/powerpc/gprsave0.S: Moved to...
782 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
783 * sysdeps/powerpc/gprsave1.S: Moved to...
784 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
785 * sysdeps/powerpc/lshift.S: Moved to...
786 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
787 * sysdeps/powerpc/memset.S: Moved to...
788 * sysdeps/powerpc/powerpc32/memset.S: ...here.
789 * sysdeps/powerpc/mul_1.S: Moved to...
790 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
791 * sysdeps/powerpc/ppc-mcount.S: Moved to...
792 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
793 * sysdeps/powerpc/register-dump.h: Moved to...
794 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
795 * sysdeps/powerpc/rshift.S: Moved to...
796 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
797 * sysdeps/powerpc/setjmp.S: Moved to...
798 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
799 * sysdeps/powerpc/stpcpy.S: Moved to...
800 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
801 * sysdeps/powerpc/strchr.S: Moved to...
802 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
803 * sysdeps/powerpc/strcmp.S: Moved to...
804 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
805 * sysdeps/powerpc/strcpy.S: Moved to...
806 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
807 * sysdeps/powerpc/strlen.S: Moved to...
808 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
809 * sysdeps/powerpc/sub_n.S: Moved to...
810 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
811 * sysdeps/powerpc/submul_1.S: Moved to...
812 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
813 * sysdeps/powerpc/elf/bzero.S: Moved to...
814 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
815 * sysdeps/powerpc/elf/start.S: Moved to...
816 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
817 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
818 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
819 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
820 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
821 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
822 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
823 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
824 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
825 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
826 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
827 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
828 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
829 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
831 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
833 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
835 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
837 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
839 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
841 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
843 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
846 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
848 * FAQ.in: Add powerpc64 to supported targets list. Also state the
849 minimum gcc version is 3.2
850 * README: Add powerpc64 to supported targets list.
851 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
852 Add powerpc64 and machine=powerpc/powerpc64.
853 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
854 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
855 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
856 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
857 * sysdeps/powerpc/powerpc32/Dist: New file.
858 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
859 * sysdeps/powerpc/powerpc32/Implies: New file.
860 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
861 ($(with-fp) = no): Move test to powerpc32/Makefile.
862 ($(subdir) = misc): Move to powerpc32/Makefile.
863 ($(build-shared) = yes): Move to powerpc32/Makefile.
864 ($(subdir) = csu): Move to powerpc32/Makefile.
865 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
866 * sysdeps/powerpc/powerpc32/Makefile: New file.
867 * sysdeps/powerpc/Versions: Remove libgcc functions.
868 * sysdeps/powerpc/powerpc32/Versions: New file.
869 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
870 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
871 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
872 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
873 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
874 ($machine): Add powerpc/powerpc64 to if ... | for
875 libc_cv_slibdir=/libc64.
876 (powerpc*): Set ldd_rewrite_script.
877 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
878 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
881 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
882 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
883 functions. Remove GLIBC_2.2 functions except getrlimit and
884 setrlimit. Moved them to ...
885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
887 2002-09-04 Ulrich Drepper <drepper@redhat.com>
889 * libio/tst-atime.c: Include <errno.h>.
890 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
892 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
894 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
895 warnings of some compilers.
896 (build_collating_symbol): Change the type of characters from
897 "unsigned char" to "char", and append a cast to "char*" pointer in
899 (build_collating_symbol): Likewise.
900 (build_equiv_class): Likewise.
901 (build_charclass): Likewise.
902 (re_compile_pattern): Remove incorrect cast.
903 (re_compile_fastmap_iter): Change the type of characters from
904 "unsigned char" to "char", and append a cast to "char*" pointer
906 (parse_bracket_exp): Likewise.
907 * posix/regex_internal.c (re_string_construct_common): Likewise.
908 (re_string_allocate): Likewise.
909 (re_string_construct): Likewise.
910 (re_string_realloc_buffers): Likewise.
911 (build_wcs_buffer): Likewise.
912 (re_string_reconstruct): Likewise.
913 * posix/regex_internal.h: Change the type of characters in
914 re_string_t and bracket_elem_t from "unsigned char" to "char".
915 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
916 warnings of some compilers.
917 (transit_state_bkref_loop): Change the type of characters from
918 "unsigned char" to "char", and append a cast to "char*" pointer in
920 (check_node_accept_bytes): Likewise.
921 (find_collation_sequence_value): Likewise.
923 2002-09-04 Roland McGrath <roland@redhat.com>
925 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
926 from 1024 to 65536, to avoid buffer overrun.
928 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
930 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
932 2002-09-04 Ulrich Drepper <drepper@redhat.com>
934 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
937 2002-09-04 Jakub Jelinek <jakub@redhat.com>
939 * posix/bug-regex11.c: New test.
940 * posix/Makefile (tests): Add bug-regex11.
942 2002-09-03 Jakub Jelinek <jakub@redhat.com>
944 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
947 2002-09-02 Roland McGrath <roland@redhat.com>
949 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
950 __pthread_initialize_minimal and __libc_check_standard_fds to
951 match the generic version.
953 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
954 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
956 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
957 warnings on platorms where char is unsigned.
959 2002-09-02 Ulrich Drepper <drepper@redhat.com>
961 * version.h (VERSION): Bump to 2.2.93.
963 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
965 2002-09-02 Jakub Jelinek <jakub@redhat.com>
967 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
970 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
972 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
974 2002-09-02 Jakub Jelinek <jakub@redhat.com>
976 * locale/localeinfo.h (struct locale_data): Add private.ctype.
977 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
978 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
979 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
980 (__wcsmbs_load_conv): Remove const from argument.
981 (_nl_cleanup_ctype): New proto.
982 (get_gconv_fcts): New function.
983 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
984 (__wcsmbs_to_wc): Rename back to...
986 (__wcsmbs_gconv_fcts): Rename to...
987 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
989 (__libc_setlocale_lock): New extern.
990 (__wcsmbs_load_conv): Remove const from argument.
991 Initialize new_category->private.ctype instead of a global
993 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
994 update_function_ptrs. No locking is necessary.
995 (_nl_cleanup_ctype): New function.
996 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
997 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
998 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
999 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1000 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1001 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1002 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1003 * wcsmbs/wctob.c (wctob): Likewise.
1004 * stdlib/mblen.c (mblen): Likewise.
1005 * stdlib/mbtowc.c (mbtowc): Likewise.
1006 * stdlib/wctomb.c (wctomb): Likewise.
1007 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1008 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1009 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1012 2002-09-02 Roland McGrath <roland@frob.com>
1014 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1016 2002-09-01 Roland McGrath <roland@redhat.com>
1018 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1019 Variable declarations removed.
1020 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1021 these functions to replace them.
1022 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1023 functions plus an indirection rather than the old global variables.
1024 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1026 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1028 * ctype/ctype-info.c: Revert last reversion back the other way.
1029 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1030 Define real function versions of include/ctype.h inlines here.
1031 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1032 __ctype_tolower_loc, __ctype_toupper_loc.
1033 * locale/lc-ctype.c: Revert last reversion back the other way.
1034 (_nl_postload_ctype): If current thread uses the global locale,
1035 update its tsd vars.
1036 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1037 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1038 CTYPE_TOLOWER, CTYPE_TOUPPER.
1040 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1041 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1042 from __libc_tsd_threadvar_location.
1043 (__libc_tsd_set, __libc_tsd_get): Update uses.
1045 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1047 * ctype/ctype.h: Undo the patch before the last one. Put back the
1048 macro definitions for the standard functions to access the
1049 classification and mapping arrays.
1050 * include/ctype.h: Partly revert last patch. Move the macro
1051 definitions for the exported functions back to the public header.
1052 #undef all the macros defined here before redefining.
1053 * ctype/ctype-info.c: Revert last patch.
1054 * locale/lc-ctype.c: Revert last patch.
1056 * ctype/Makefile (routines): Add isctype.
1057 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1058 * ctype/ctype.h: Add declaration of isctype.
1059 * include/ctype.h: Declare __isctype.
1060 * ctype/isctype.c: New file.
1062 2002-09-01 Roland McGrath <roland@redhat.com>
1064 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1065 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1067 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1069 * locale/findlocale.c (_nl_remove_locale): Don't search in
1070 _nl_locale_file_list if DATA->alloc is ld_archive.
1071 Use _nl_unload_locale to do the rest of the work.
1073 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1074 of new structure to UNDELETABLE.
1076 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1077 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1078 towlower, towupper): Macros removed.
1079 * ctype/ctype.h (__tobody): Put parens around macro argument.
1080 (__isctype): Macro removed.
1081 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1082 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1083 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1084 tolower, toupper): Macros and inlines removed.
1085 * include/ctype.h [! NOT_IN_libc]
1086 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1087 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1088 tolower, toupper): Define here instead, using _NL_CURRENT.
1089 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1091 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1092 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1093 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1094 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1095 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1096 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1097 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1098 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1099 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1100 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1101 (ISSORTMASK): Update use.
1102 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1103 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1104 (_nss_files_getENTNAME_r): Likewise.
1105 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1108 * Makerules (all-nonlib): Renamed from all-tests.
1109 Include $(others) here too.
1110 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1111 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1112 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1113 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1114 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1115 the program modules via cppflags-iterator.mk.
1116 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1117 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1119 2002-08-31 Roland McGrath <roland@redhat.com>
1121 * posix/tst-getconf.sh: If no third arg, work with static linking.
1123 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1125 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1126 [_NL_CURRENT_INDIRECT].
1128 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1130 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1132 2002-08-31 Roland McGrath <roland@redhat.com>
1134 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1135 Instead, make the single allocation of the structure larger to hold
1137 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1138 Instead, calculate size for a single allocation and copy into it.
1139 * locale/freelocale.c (__freelocale): Don't free names individually.
1141 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1143 * locale/xlocale.h (__locale_struct): Move __names member last,
1144 for binary compatibility.
1146 * locale/duplocale.c (__duplocale): Free names from the right array.
1148 * locale/uselocale.c (__uselocale): Return previous locale when
1151 * locale/newlocale.c: Commit changes from 2002-08-30
1152 batch where I failed to commit this file:
1153 (__newlocale): Fill in __names array.
1155 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1157 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1158 errlist-compat.c if versioning==yes.
1160 2002-08-31 Andreas Jaeger <aj@suse.de>
1162 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1163 external functions with hidden attribute.
1164 (elf_machine_rela): Optimize.
1166 * sysdeps/x86_64/memset.S: New file.
1167 * sysdeps/x86_64/bzero.S: New file.
1168 * sysdeps/x86_64/stpcpy.S: New file.
1169 * sysdeps/x86_64/strcat.S: New file.
1170 * sysdeps/x86_64/strchr.S: New file.
1171 * sysdeps/x86_64/strcpy.S: New file.
1172 * sysdeps/x86_64/strcspn.S: New file.
1173 * sysdeps/x86_64/strlen.S: New file.
1174 * sysdeps/x86_64/strpbrk.S: New file.
1175 * sysdeps/x86_64/strspn.S: New file.
1176 * sysdeps/x86_64/strcmp.S: New file.
1177 * sysdeps/x86_64/strtok_r.S: New file.
1178 * sysdeps/x86_64/strtok.S: New file.
1179 * sysdeps/x86_64/memcpy.S: New file.
1180 * sysdeps/x86_64/mempcpy.S: New file.
1182 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1184 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1186 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1188 * stdio-common/Makefile (generated): Add errlist-compat.c.
1190 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1192 * locale/localeinfo.h: Pretty printing.
1194 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1195 form_number handling.
1197 2002-08-31 Andreas Jaeger <aj@suse.de>
1199 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1202 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1205 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1207 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1209 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1210 registers used for passing args.
1212 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1213 all needed registers.
1215 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1218 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1221 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1223 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1224 always_inline attribute.
1226 2002-08-30 Roland McGrath <roland@redhat.com>
1228 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1229 presume it's the stub and bail without error.
1231 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1232 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1234 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1236 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1237 macros replace the i686 versions for 64-bit mode.
1239 * locale/duplocale.c: Include <string.h>.
1241 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1242 [_LIBC] (category_to_name): Don't define the function. Instead
1243 define a macro using _nl_category_names.
1245 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1246 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1247 * locale/global-locale.c (_nl_global_locale): Likewise.
1248 * locale/duplocale.c (__duplocale): strdup __names elements.
1249 * locale/freelocale.c (__freelocale): Free __names elements.
1250 * locale/localename.c (_nl_current_names): Variable removed.
1251 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1252 * locale/localeinfo.h (_nl_current_names): Removed decl.
1253 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1254 _nl_current_names throughout.
1256 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1258 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1259 and sys_nerr in the output file.
1261 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1262 * scripts/cpp: Just use the environment variable.
1264 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1265 * libio/tst-mmap-offend.c (do_test): Likewise.
1266 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1267 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1268 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1270 * locale/localename.c: If the current locale is the global locale, use
1271 _nl_current_names; otherwise use the locale object.
1273 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1275 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1276 'm' to enable mmap I/O.
1277 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1278 former wasn't used (anymore?).
1279 (_IO_FLAGS2_MMAP): New define.
1280 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1281 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1282 _IO_FLAGS2_MMAP bit is set.
1283 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1284 Enable mmap-using mode only if 'm' was set.
1286 2002-08-29 Roland McGrath <roland@frob.com>
1288 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1290 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1291 Change argument type from int to intptr_t.
1293 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1294 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1295 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1296 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1297 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1299 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1301 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1303 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1305 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1306 * assert/assert-perr.c: Add libc_hidden_def.
1307 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1309 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1311 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1312 sys_errlist stuff to ...
1313 * sysdeps/unix/sysv/linux/Versions: ... here.
1315 * mach/mach.h: Include <features.h>.
1317 2002-08-29 Roland McGrath <roland@redhat.com>
1319 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1320 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1321 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1323 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1325 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1326 (norm_add_slashes): alloca -> __alloca
1328 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1330 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1331 string_malloced, it is unlikely to be set.
1332 Only call free with non-NULL workspace.
1333 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1334 -mcpu=ultrasparc, not only tune for it.
1335 (ASFLAGS*): Set unconditionally.
1337 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1338 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1339 p_vaddr/p_offset when computing LOADADDR.
1341 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1343 * version.h (VERSION): Bump to 2.2.92.
1345 * time/Makefile (tst-ftime_l-ENV): New variable.
1347 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1349 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1350 <U017A>, <U017D> and <U0179>. Add missing mappings.
1351 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1353 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1354 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1355 (struct tostruct): Use ACRINDEX as type for link field.
1356 (statuc gmonparam): Likewise for froms.
1357 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1359 (write_call_graph): Use correct type for from_index and to_index.
1360 * gmon/mcount.c: Use correct types for frompcindex and toindex
1362 Patches by Dan Kegel <dank@kegel.com>.
1364 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1367 * time/strptime.c (ISSPACE): New #define. Use isspace or
1368 __isspace_l. Replace calls to isspace.
1369 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1371 2002-08-29 Roland McGrath <roland@redhat.com>
1373 * string/tst-strxfrm.c: Remove __ from function names.
1375 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1377 * include/wchar.h: Declare __mbsrtowcs_l.
1378 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1379 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1380 USE_IN_EXTENDED_LOCALE_MODEL.
1381 * wcsmbs/mbsrtowcs_l: New file.
1382 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1383 define as static. Change all uses.
1384 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1386 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1387 * time/strftime.c: When translating for the extended locale model
1388 use the _l functions.
1389 * time/Makefile (tests): Add tst-ftime_l.
1390 * time/tst-ftime_l.c: New file.
1392 2002-08-28 Roland McGrath <roland@redhat.com>
1394 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1395 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1396 from _nl_find_locale ok if for _nl_C_name.
1398 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1399 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1400 we know they are all linked in.
1402 * NEWS: Added 2.2.6 text from 2.2 branch version.
1404 * time/strptime.c (strptime_internal): Remove spurious const.
1406 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1407 _nl_select_era_entry): Moved to ...
1408 * time/era.c: ... here, new file.
1409 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1410 Add internal_function to definitions. Take an additional argument
1411 giving the `struct locale_data *' to use.
1412 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1413 _nl_parse_alt_digit): Moved to ...
1414 * time/alt_digit.c: ... here, new file.
1415 * time/lc-time-cleanup.c: New file.
1416 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1417 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1418 (_nl_cleanup_time): Declare it.
1419 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1420 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1421 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1422 * time/strftime.c: Pass locale data to helper functions.
1423 * time/strptime.c: Likewise.
1425 * locale/localeinfo.h (struct locale_data): New member `private'
1426 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1427 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1428 * locale/C-collate.c: Update initializer.
1429 * locale/C-identification.c: Likewise.
1430 * locale/C-measurement.c: Likewise.
1431 * locale/C-telephone.c: Likewise.
1432 * locale/C-address.c: Likewise.
1433 * locale/C-name.c: Likewise.
1434 * locale/C-paper.c: Likewise.
1435 * locale/C-time.c: Likewise.
1436 * locale/C-numeric.c: Likewise.
1437 * locale/C-monetary.c: Likewise.
1438 * locale/C-messages.c : Likewise.
1439 * locale/C-ctype.c: Likewise.
1441 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1444 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1446 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1447 (_rtld_global): Use it.
1449 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1450 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1451 object directory. Pass all Versions files to the awk script.
1452 * sysdeps/gnu/errlist-compat.c: Removed.
1453 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1454 first Versions file in the search path which has them.
1455 Allow multiple errlist symbol versions to have the same count of
1457 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1458 of "errlist-compat.c".
1459 * sysdeps/gnu/errlist.c: Regenerated.
1460 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1461 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1462 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1463 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1464 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1465 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1466 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1467 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1468 ECANCELLED if not defined by kernel headers.
1469 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1470 already defined by kernel headers.
1471 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1472 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1473 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1475 * Versions.def (GLIBC_2.3) [librt]: Add.
1477 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1479 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1481 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1482 missing comma to .type directive.
1484 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1486 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1488 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1490 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1492 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1494 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1495 check to close_and_out close. Replace return NULL statements where
1496 fd might be >= 0 with goto close_and_out. Close the file descriptor
1497 when it is no longer needed.
1499 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1501 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1503 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1504 * sysdeps/arm/dl-machine.h: Likewise.
1505 * sysdeps/cris/dl-machine.h: Likewise.
1506 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1507 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1509 2002-08-28 Roland McGrath <roland@redhat.com>
1511 * Makeconfig (default_cflags): Revert unintended change.
1513 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1515 * version.h (VERSION): Bump to 2.2.91.
1517 * configure.in: Disable TLS support by default for now.
1519 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1521 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1524 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1526 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1527 fprintf/fwprintf calls.
1529 2002-08-28 Roland McGrath <roland@redhat.com>
1531 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1532 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1534 * locale/setlocale.c: Declare postload functions weak.
1536 * elf/tst-tls1-static.c: New file.
1537 * elf/tst-tls2-static.c: New file.
1538 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1540 Make uselocale support static linking.
1541 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1542 This file again just defines _nl_C_locobj.
1543 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1544 * locale/global-locale.c: New file. Define _nl_global_locale here,
1545 using all weak references in the initializer.
1546 * locale/Makefile (aux): Add global-locale.
1547 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1548 these unconditional, along with the tsd decl.
1549 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1550 Define it under these conditions.
1551 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1552 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1553 `extern __thread struct locale_data *const *'.
1554 [NL_CURRENT_INDIRECT]
1555 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1556 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1557 the thread variable _nl_current_LC_FOO and also a special absolute
1558 symbol _nl_current_LC_FOO_used.
1559 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1560 Set each _nl_current_LC_FOO symbol to point into the new locale,
1561 using weak references to test if _nl_current_LC_FOO_used was linked in.
1562 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1563 [NL_CURRENT_INDIRECT]: ... with this one.
1564 (_nl_current, _nl_C): Variables removed.
1565 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1566 weak references to _nl_current_LC_FOO_used.
1567 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1568 (free_category): New function, broken out of ...
1569 (free_mem): ... here. Call that.
1570 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1573 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1574 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1575 it is already absolute.
1577 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1578 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1579 [$(build-static) = yes] (tests-static): New variable.
1580 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1582 2002-08-26 Christoph Hellwig <hch@lst.de>
1584 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1585 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1587 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1589 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1591 * sysdeps/s390/Dist: Add bits/link.h.
1593 * sysdeps/sh/Dist: New file.
1595 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1597 * sysdeps/wordsize-32/Dist: New file.
1599 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1600 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1601 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1603 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1606 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1609 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1611 * sysdeps/unix/bsd/sun/Dist: New file.
1613 * sysdeps/unix/bsd/osf/Dist: New file.
1615 * sysdeps/unix/bsd/hp/Dist: New file.
1617 * sysdeps/unix/arm/Dist: New file.
1619 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1621 * sysdeps/mach/hurd/Dist: Add set-init.c.
1623 * sysdeps/i386/Dist: Add bits/link.h.
1625 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1627 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1629 * locale/Makefile (distribute): Add hashval.h.
1631 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1633 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1635 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1636 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1637 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1638 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1640 * libio/stdio.h: Likewise.
1641 * locale/locale.h: Likewise.
1642 * math/math.h: Likewise.
1643 * math/bits/mathcalls.h: Likewise.
1644 * setjmp/setjmp.h: Likewise.
1645 * signal/signal.h: Likewise.
1646 * stdlib/stdlib.h: Likewise.
1647 * string/string.h: Likewise.
1648 * time/time.h: Likewise.
1649 * wcsmbs/wchar.h: Likewise.
1650 * wctype/wctype.h: Likewise.
1652 2002-08-28 Roland McGrath <roland@redhat.com>
1654 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1656 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1657 Roland McGrath <roland@redhat.com>
1659 * locale/hashval.h (compute_hashval): Use prototype defn.
1660 (hashval_t): New macro, defined to unsigned long int
1661 if not already defined.
1662 (compute_hashval): Return hashval_t instead of unsigned long int.
1663 * locale/loadarchive.c (hashval_t): New macro.
1664 * locale/programs/locarchive.c: Include hashval.h directly instead
1666 (compute_hashval, hashval_t): Define these macros first.
1667 (insert_name): Use archive_hashval instead of compute_hashval.
1668 (add_locale, delete_locales_from_archive): Likewise.
1670 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1672 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1673 hash collisions if be_quiet.
1675 2002-08-27 Roland McGrath <roland@redhat.com>
1677 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1678 __uselocale): Don't declare these any more.
1679 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1681 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1682 and treat it as an EOF return.
1683 * sysdeps/unix/readdir_r.c: Likewise.
1685 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1686 From Alexandre Oliva <aoliva@redhat.com>.
1687 * sysdeps/gnu/errlist-compat.c: Regenerated.
1689 2002-08-27 Brian Youmans <3diff@gnu.org>
1691 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1692 wording at request of copyright holder Stephen Moshier.
1693 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1694 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1695 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1696 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1697 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1698 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1699 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1700 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1701 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1702 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1703 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1704 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1705 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1706 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1708 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1710 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1711 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1712 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1713 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1714 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1715 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1716 * wctype/iswctype_l.c (iswctype_l): Likewise.
1718 2002-08-27 Roland McGrath <roland@redhat.com>
1720 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1722 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1723 * stdlib/stdlib.h: Don't declare __*_l names.
1724 * include/stdlib.h: Declare them here instead.
1725 * include/string.h: Don't declare __*_l names.
1726 * string/string.h: Declare them here instead.
1727 * time/time.h: Don't declare __*_l names.
1728 * include/time.h: Declare them here instead.
1729 * wcsmbs/wchar.h: Don't declare __*_l names.
1730 * include/wchar.h: Declare them here instead.
1731 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1732 Don't declare __*_l names.
1733 * include/wctype.h: Declare them here instead.
1734 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1735 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1736 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1737 * include/langinfo.h: Declare it here with __typeof.
1739 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1740 instead, taking an extra __locale_t argument.
1741 * time/Makefile (routines): Add strptime_l.
1742 * time/time.h (__strptime_l, strptime_l): Declare them.
1743 * time/strptime_l.c: New file.
1745 * time/time.h (__strftime_l, strftime_l): Declare them.
1746 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1747 * time/strftime_l.c: New file.
1748 * time/wcsftime_l.c: New file.
1749 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1750 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1751 strftime_l, wcsftime_l.
1752 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1753 or __wcsftime_l instead, taking an extra __locale_t argument.
1755 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1756 (libc: GLIBC_2.3): ... here.
1758 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1760 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1762 * Makefile (distribute): Add LICENSES.
1764 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1767 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1769 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1771 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1773 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1775 * sysdeps/mach/hurd/alpha/Dist: New file.
1777 * sysdeps/arm/Dist: Add bits/link.h.
1779 * sunrpc/Makefile: Distribute thrsvc.
1781 * stdio-common/Makefile: Remove more left-overs from old stdio.
1783 * include/linewrap.h: Removed.
1785 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1787 * intl/Makefile (distribute): Add plural-eval.c.
1789 2002-08-27 Roland McGrath <roland@redhat.com>
1791 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1792 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1793 Say mtab is in either /var/run or /etc.
1795 2002-08-26 Roland McGrath <roland@redhat.com>
1797 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1798 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1800 * sysdeps/gnu/Versions: New file.
1801 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1802 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1803 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1804 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1805 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1806 and _sys_nerr_internal instead of anything else. Make it include
1807 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1808 Make it emit some asm magic if [EMIT_ERR_MAX].
1809 * sysdeps/gnu/errlist.c: Regenerated.
1810 * sysdeps/gnu/errlist-compat.awk: New file.
1811 * sysdeps/gnu/errlist-compat.c: New file (generated).
1812 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1813 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1814 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1815 (SYS_ERRLIST, SYS_NERR): Macros removed.
1816 (sys_nerr, _sys_nerr): Remove these weak aliases.
1817 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1818 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1819 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1821 * include/libc-symbols.h (declare_symbol): New macro.
1822 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1823 * configure.in: New check to define it.
1824 * configure: Regenerated.
1826 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1828 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1829 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1831 * Make-dist: Remove traces of old stdio.
1832 * Makeconfig: Likewise.
1834 * locale/Makefile (localedef-aux): New variable. Only md5
1835 assigned to it. These files are not ddistributed in this directory.
1837 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1838 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1839 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1841 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1843 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1844 set h_errno to NO_RECOVERY [PR libc/4360].
1846 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1848 * libio/Makefile (tests): Add bug-fopena+.
1849 * libio/bug-fopena+.c: New file.
1850 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1851 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1853 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1855 * locale/xlocale.c: Fix the last change. The variable still has
1857 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1858 (__libc_tsd_set): Add _data prefix to variable name.
1860 2002-08-26 Roland McGrath <roland@redhat.com>
1862 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1863 macro with inline function.
1864 (sigset_get_old_mask): Likewise.
1865 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1866 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1867 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1868 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1869 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1870 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1872 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1873 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1875 2002-07-06 Bruno Haible <bruno@clisp.org>
1877 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1878 sigset_get_old_mask): Make it work with larger sigset_t.
1879 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1880 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1881 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1883 2002-08-26 Roland McGrath <roland@redhat.com>
1885 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1886 * manual/filesys.texi (File Times): Document lutimes and futimes.
1887 * misc/Makefile (routines): Add them.
1888 * misc/Versions (libc: GLIBC_2.3): Likewise.
1889 * sysdeps/generic/lutimes.c: New file.
1890 * sysdeps/generic/futimes.c: New file.
1891 * sysdeps/mach/hurd/lutimes.c: New file.
1892 * sysdeps/mach/hurd/futimes.c: New file.
1894 * manual/filesys.texi (File Times): Add explicit note about null
1895 pointer argument to utimes.
1897 2002-08-26 Roland McGrath <roland@frob.com>
1899 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1900 (__ifreq): Add a cast. Remove an unused variable.
1902 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1903 _HURD_THREADVAR_LOCALE.
1905 2002-08-26 Jakub Jelinek <jakub@redhat.com>
1907 * posix/regexec.c (re_search_stub): Return correct match length
1909 * posix/bug-regex10.c: New test.
1910 * posix/Makefile (tests): Add bug-regex10.
1912 2002-08-26 Brian Youmans <3diff@gnu.org>
1914 * COPYING.LIB: Replaced with fresh copy from
1915 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
1916 suggested copying permission notice now says version 2.1 instead
1919 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
1921 * crypt/crypt_util.c: Likewise.
1922 * crypt/ufc.c: Likewise.
1923 * elf/dl-conflict.c: Likewise.
1924 * elf/dl-iteratephdr.c: Likewise.
1925 * iconv/iconvconfig.h: Likewise.
1926 * malloc/arena.c: Likewise.
1927 * malloc/hooks.c: Likewise.
1928 * malloc/malloc.c: Likewise.
1929 * posix/glob/Makefile.ami: Likewise.
1930 * posix/glob/Makefile.in: Likewise.
1931 * stdlib/gmp-impl.h: Likewise.
1932 * stdlib/gmp.h: Likewise.
1933 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
1934 * sysdeps/generic/strnlen.c: Likewise.
1935 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1936 * sysdeps/mach/hurd/recvmsg.c: Likewise.
1937 * sysdeps/mach/hurd/sendmsg.c: Likewise.
1938 * sysdeps/mach/hurd/spawni.c: Likewise.
1939 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1940 * sysdeps/mach/powerpc/sysdep.h: Likewise.
1941 * sysdeps/mach/powerpc/thread_state.h: Likewise.
1942 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1943 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
1944 * sysdeps/x86_64/gmp-mparam.h: Likewise.
1946 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
1947 Lesser GPL copying permission notice from 2 to 2.1.
1948 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
1949 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
1950 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
1951 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1952 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
1953 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
1954 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1955 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
1956 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1957 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
1958 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1959 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1960 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1961 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1962 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1963 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1964 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1965 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1966 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1967 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
1968 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
1969 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1970 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
1971 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1972 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1973 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
1974 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1975 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
1976 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1977 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
1978 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1979 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1980 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1981 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
1982 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1983 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1984 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1985 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
1986 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1987 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
1988 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1989 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1990 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
1991 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
1992 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
1993 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
1994 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
1995 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
1996 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
1997 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
1998 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
1999 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2000 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2001 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2002 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2004 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2005 Moshier and Lesser GPL copying permission notice, per license from
2007 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2008 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2009 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2010 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2011 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2012 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2013 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2014 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2015 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2016 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2017 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2018 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2019 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2020 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2022 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2023 notice, per license from copyright holder Stephen Moshier.
2024 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2025 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2026 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2027 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2028 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2029 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2030 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2031 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2032 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2034 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2036 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2037 (shared-only-routines): Likewise.
2039 2002-08-26 Roland McGrath <roland@redhat.com>
2041 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2042 name of "", store a null pointer instead.
2044 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2045 * configure: Regenerated.
2047 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2048 Initialize this instead of __libc_tsd_LOCALE_data.
2050 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2051 ptsname_r to EINVAL.
2053 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2055 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2056 implementations depend on pthreads.
2057 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2058 * rt/tst-aio64.c (do_test): Likewise.
2059 * rt/tst-aio2.c (do_test): Likewise.
2060 * rt/tst-aio3.c (do_test): Likewise.
2061 * rt/tst-aio4.c (do_test): Likewise.
2062 * rt/tst-aio5.c (do_test): Likewise.
2063 * rt/tst-aio6.c (do_test): Likewise.
2064 * rt/tst-aio7.c (do_test): Likewise.
2066 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2067 void so as to avoid compiler warnings.
2069 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2070 _IO_wide_data_FD, which is never used here.
2073 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2074 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2075 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2077 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2078 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2080 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2081 (closelog): Likewise.
2083 2002-07-06 Bruno Haible <bruno@clisp.org>
2085 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2087 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2088 * sysdeps/unix/alpha/pipe.S: ... here.
2089 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2091 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2093 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2094 * sysdeps/unix/i386/fork.S: Likewise.
2095 * sysdeps/unix/i386/pipe.S: Likewise.
2096 * sysdeps/unix/i386/wait.S: Likewise.
2098 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2099 * sysdeps/unix/arm/fork.S: Likewise.
2101 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2103 (DO_CALL): Swap argument order.
2104 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2106 (DO_CALL): Swap argument order.
2107 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2109 (DO_CALL): Swap argument order.
2110 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2112 (DO_CALL): Swap argument order.
2113 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2115 (DO_CALL): Swap argument order.
2116 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2118 (DO_CALL): Swap argument order.
2119 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2121 (DO_CALL): Swap argument order.
2123 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2124 (L): Define right for ELF.
2125 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2126 Now defined in sysdeps/i386/sysdep.h.
2128 * sysdeps/posix/readv.c: Ansify function definition.
2129 * sysdeps/posix/writev.c: Likewise.
2131 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2132 have the same size. Avoid direct cast from size_t to off_t.
2134 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2135 nul byte in entry[n].ut_user.
2136 (simulate_logout): Likewise.
2138 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2139 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2140 existence of corresponding members of 'struct utmp'.
2141 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2144 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2145 allocate a buffer of at least BUFSIZ bytes, not just of
2146 sizeof (struct dirent).
2148 * sysdeps/generic/glob.c: Include <limits.h>.
2149 (NAME_MAX): Define a fallback.
2150 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2152 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2153 (main): Allocate enough room for a 'struct dirent64' on the stack.
2154 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2157 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2160 * inet/htontest.c: Include <sys/types.h>.
2162 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2164 * include/sys/sysctl.h: Comment fix.
2166 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2168 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2170 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2172 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2173 (__getpeername): New alias.
2174 (__getsockname): New alias.
2175 (__socket): New alias.
2177 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2179 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2180 (__fcntl_internal): New alias.
2181 (__profil): New alias.
2183 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2185 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2186 entry was for getaddr* lookup or not. Add only matching cache
2187 entry. Change all callers [PR libc/4317].
2189 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2190 finding the read position [PR libc/4265].
2191 * libio/Makefile (tests): Add bug-rewind2.
2192 * libio/bug-rewind2.c: New file.
2194 * libio/bug-rewind.c: Fix creation of temp file.
2196 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2198 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2199 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2200 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2201 to ENOENT if no entry is found.
2202 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2204 * nis/nss_compat/compat-initgroups.c: Likewise.
2205 * nis/nss_compat/compat-pwd.c: Likewise.
2206 * nis/nss_compat/compat-spwd.c: Likewise.
2207 * nis/nss_nis/nis-alias.c: Likewise.
2208 * nis/nss_nis/nis-ethers.c: Likewise.
2209 * nis/nss_nis/nis-grp.c: Likewise.
2210 * nis/nss_nis/nis-hosts.c: Likewise.
2211 * nis/nss_nis/nis-initgroups.c: Likewise.
2212 * nis/nss_nis/nis-netgrp.c: Likewise.
2213 * nis/nss_nis/nis-network.c: Likewise.
2214 * nis/nss_nis/nis-proto.c: Likewise.
2215 * nis/nss_nis/nis-publickey.c: Likewise.
2216 * nis/nss_nis/nis-pwd.c: Likewise.
2217 * nis/nss_nis/nis-rpc.c: Likewise.
2218 * nis/nss_nis/nis-service.c: Likewise.
2219 * nis/nss_nis/nis-spwd.c: Likewise.
2220 * resolv/nss_dns/dns-host.c: Likewise.
2221 * resolv/nss_dns/dns-network.c: Likewise.
2222 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2223 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2224 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2225 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2226 * nis/nss_nisplus/nisplus-network.c: Likewise.
2227 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2228 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2229 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2230 * nis/nss_nisplus/nisplus-service.c: Likewise.
2231 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2232 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2233 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2234 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2235 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2237 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2238 declaring __restore and __restore_rt as hidden (if possible).
2240 2002-08-25 Roland McGrath <roland@redhat.com>
2242 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2244 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2245 (getutent_r_file, internal_getut_r): Updated all callers.
2246 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2248 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2250 * locale/programs/locale.c: Don't print aliases for non-existing
2251 locales for 'locale -a'.
2252 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2254 2002-07-19 H.J. Lu <hjl@gnu.org>
2256 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2258 2002-07-16 H.J. Lu <hjl@gnu.org>
2260 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2262 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2264 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2266 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2267 not moved ahead of the fputs call.
2268 * elf/tst-tlsmod2.c (in_dso): Likewise.
2269 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2270 * elf/tst-tlsmod4.c (in_dso): Likewise.
2272 2002-08-25 Andreas Schwab <schwab@suse.de>
2274 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2276 2002-08-25 Roland McGrath <roland@redhat.com>
2278 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2279 resetting handler, to avoid the possibility of a spurious SIGALRM
2280 delivered to the user's handler.
2281 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2283 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2284 set -fkeep-inline-functions, which is not needed for the current file.
2286 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2287 (_dl_setup_hash): Add attribute_hidden.
2288 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2289 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2290 (_dl_new_object, _dl_map_object_deps): Likewise.
2291 (_dl_map_object_deps_internal): Remove decl.
2292 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2294 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2295 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2296 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2297 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2298 instead relying on the compiler to produce only GOTOFF variable refs.
2300 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2302 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2304 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2305 inline to avoid defining it in every file which includes this header.
2307 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2308 defining DONT_USE_BOOTSTRAP_MAP.
2310 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2311 * libio/tst-mmap-setvbuf.c (main): Likewise.
2312 * libio/tst-widetext.c (main): Likewise.
2314 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2316 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2317 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2319 * sysdeps/i386/elf/configure.in: Unconditionally define
2320 PI_STATIC_AND_HIDDEN.
2321 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2322 PI_STATIC_AND_HIDDEN is defined as well.
2323 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2325 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2327 * sysdeps/ia64/bzero.S: Define __bzero as well.
2329 * locale/programs/charmap.c (charmap_new_char): Don't use
2330 ULONG_MAX as maximum UCS4 value.
2332 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2334 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2336 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2337 * malloc/malloc.c (mALLINFo): Likewise.
2339 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2341 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2342 examining result of _IO_do_flush call.
2344 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2345 Use prec not spec when sizing buffers.
2347 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2348 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2349 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2350 * stdio-common/vfscanf.c (inchar): Likewise.
2351 * misc/efgcvt_r.c (fcvt_r): Likewise.
2352 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2353 * elf/readlib.c (process_file): Likewise.
2354 * elf/sprof.c (load_profdata): Likewise.
2355 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2356 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2357 * locale/programs/charmap.c (charmap_read): Likewise.
2358 * libio/fileops.c: Likewise.
2359 * libio/fmemopen.c: Likewise.
2360 * stdlib/strtod.c: Likewise.
2361 * elf/dl-load.c: Likewise.
2362 * iconv/iconvconfig.c: Likewise.
2363 * iconv/iconv_prog.c (process_block): Likewise.
2364 * elf/rtld.c (dl_main): Likewise.
2366 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2367 macro to calm down the compiler.
2369 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2371 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2373 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2374 placement of errno definition.
2375 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2376 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2377 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2378 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2379 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2381 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2382 from 1024 to 65536, to avoid buffer overrun.
2384 2002-08-16 Paul Eggert <eggert@twinsun.com>
2386 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2387 from 1024 to 65536, to avoid buffer overrun.
2388 * resolv/res_query.c (MAXPACKET): Likewise.
2390 2002-08-24 Andreas Jaeger <aj@suse.de>
2392 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2394 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2396 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2399 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2400 Patch by Simon Gee <simong@agile.tv>.
2402 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2403 Prefer reading /proc/stat since it is more uniform across
2406 * manual/texinfo.tex: Update to latest official version.
2408 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2409 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2410 * sysdeps/gnu/bits/shm.h: Likewise.
2411 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2412 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2413 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2414 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2415 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2416 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2417 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2418 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2419 since this is what the kernel says.
2421 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2422 since ssize_t is needed as well. Replace const with __const.
2424 2002-08-23 Roland McGrath <roland@redhat.com>
2426 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2427 __malloc_hook, __realloc_hook, __memalign_hook,
2428 __after_morecore_hook): Variable definitions moved to ...
2429 * malloc/malloc.c: ... here, so as to be before all references.
2431 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2432 global variable reference in an unused asm parameter, to ensure the
2433 compiler has set up the GOT register before we use it.
2435 * malloc/hooks.c: Move variable definitions ahead of uses.
2436 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2437 initializers that make reference to variables they define.
2439 2002-08-23 Andreas Jaeger <aj@suse.de>
2441 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2442 alloca, free, qsort.
2444 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2446 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2447 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2449 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2451 * sysdeps/generic/fgetxattr.c: New file.
2452 * sysdeps/generic/flistxattr.c: New file.
2453 * sysdeps/generic/fremovexattr.c: New file.
2454 * sysdeps/generic/fsetxattr.c: New file.
2455 * sysdeps/generic/getxattr.c: New file.
2456 * sysdeps/generic/listxattr.c: New file.
2457 * sysdeps/generic/lgetxattr.c: New file.
2458 * sysdeps/generic/llistxattr.c: New file.
2459 * sysdeps/generic/lremovexattr.c: New file.
2460 * sysdeps/generic/lsetxattr.c: New file.
2461 * sysdeps/generic/removexattr.c: New file.
2462 * sysdeps/generic/setxattr.c: New file.
2463 * misc/Makefile (headers): Add sys/xattr.h.
2464 (routines): Add *xattr calls.
2465 * misc/Versions: Add *xattr calls with version 2.3.
2466 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2467 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2468 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2469 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2470 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2471 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2472 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2473 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2475 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2477 * sysdeps/powerpc/elf/libc-start.c
2478 (__cache_line_size): Declare.
2479 (__aux_init_cache): New function.
2480 (__libc_start_main): Change type of `auxvec' parameter to
2481 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2483 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2484 (__cache_line_size): Declare.
2485 (__aux_init_cache): New function.
2486 (DL_PLATFORM_INIT): Define.
2487 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2488 value to select the correct stride for dcbz.
2490 2002-08-22 Andreas Jaeger <aj@suse.de>
2492 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2495 2002-08-22 Roland McGrath <roland@redhat.com>
2497 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2498 position indicated by locrectab against file bounds before rounding to
2499 page size. In mapping loop, always set TO before breaking out of
2500 contiguous range coalescing loop.
2502 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2503 (or MAP_COPY if available) instead of MAP_SHARED.
2505 * scripts/firstversions.awk: When encountering a version newer than
2506 the specified earliest version, be sure to emit the specified earliest
2507 version first if any renaming of an older version to that has been.
2509 2002-08-21 Roland McGrath <roland@redhat.com>
2511 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2512 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2513 (Configuring and compiling): Don't mention older GCC versions any more.
2514 * INSTALL: Regenerated.
2516 * manual/install.texi (Configuring and compiling, Installation,
2517 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2519 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2520 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2521 and with noinline otherwise. Remove hack alloca use to prevent
2522 inlining, we can ask for it explicitly nowadays.
2524 * dlfcn/bug-dlsym1.c: New file.
2525 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2526 * dlfcn/Makefile (distribute): Add them.
2527 (tests): Add bug-dlsym1 here.
2528 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2529 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2530 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2532 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2534 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2535 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2537 (_dl_start): Don't use local bootstrap_map variable if
2538 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2539 pass bootstrap_map to _dl_start_final in this case either. Don't
2540 pass start_time to _dl_start_final ever.
2541 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2543 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2544 This cripples the scope lists necessary to search for symbols in
2545 dependencies which are not in the global scope.
2547 * include/setjmp.h (__libc_longjmp): Add declaration.
2549 2002-08-21 Andreas Jaeger <aj@suse.de>
2551 * sysdeps/x86_64/_mcount.S: Fix assembler.
2553 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2554 with biarch support.
2556 2002-08-21 Andreas Jaeger <aj@suse.de>
2558 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2560 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2562 * sysdeps/x86_64/machine-gmon.h: New file.
2563 * sysdeps/x86_64/_mcount.S: New file.
2565 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2567 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2568 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2569 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2570 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2571 to TL_INIT_TP. Otherwise pass 1.
2572 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2573 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2575 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2577 * locale/programs/localedef.c (add_to_readlist): Error about
2578 circular dependencies only if the locale in question hasn't
2580 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2581 CTYPE_LOCALE to load_locale.
2582 * locale/programs/locfile.c (locfile_read): Don't include
2583 unneeded but available locales in locale_mask.
2585 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2586 print any messages about enlarging archive.
2588 2002-08-20 Brian Youmans <3diff@gnu.org>
2590 * manual/contrib.texi: Removed licenses, added acknowledgements
2591 for contributions by Intel, IBM, Craig Metz.
2592 * LICENSES: New file, contains the text of all non-FSF licenses in the
2593 distribution that require putting the notice in the accompanying
2595 * README.template, README: Mention LICENSES.
2597 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2598 new one modelled on the modern BSD license, per recent letter
2599 of permission from CMU.
2600 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2602 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2603 from IBM to FSF, per the recent Software Letter. Changed the
2604 distribution terms from GPL to LGPL.
2606 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2607 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2608 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2609 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2610 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2611 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2612 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2613 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2614 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2615 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2617 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2618 from IBM to FSF, per the recent Software Letter. Corrected the
2619 text of the copying permission notice to say Lesser GPL instead
2620 of GPL in warranty disclaimer paragraph.
2621 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2622 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2623 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2624 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2625 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2626 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2627 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2628 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2629 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2630 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2631 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2632 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2633 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2634 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2635 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2636 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2637 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2638 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2639 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2640 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2641 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2643 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2644 permission notice to say Lesser GPL instead of GPL in warranty
2645 disclaimer paragraph.
2646 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2647 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2648 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2649 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2650 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2651 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2652 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2653 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2654 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2655 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2656 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2657 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2658 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2659 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2660 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2661 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2662 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2663 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2664 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2665 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2666 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2667 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2668 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2670 2002-08-20 Roland McGrath <roland@redhat.com>
2672 Fix ABI compatibility with libc compiled with old tools on powerpc.
2673 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2674 and Jack Howarth <howarth@bromo.med.uc.edu>.
2675 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2676 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2677 pass -DHAVE_DOT_HIDDEN for these files.
2678 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2680 * sysdeps/powerpc/divdi3.c: New file.
2681 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2682 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2684 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2686 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2687 partially overlapping mappings. Remove unneeded (char *) casts.
2688 Never allow duplication of ranges in mapped areas.
2690 2002-08-20 Roland McGrath <roland@redhat.com>
2692 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2693 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2695 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2697 * include/unistd.h: Don't hide _exit.
2699 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2700 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2701 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2702 argument 1 to TLS_INIT_TP.
2703 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2705 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2707 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2708 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2709 memory allocation to...
2710 (allocate_dtv): ...here. New function.
2711 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2712 call allocate_dtv instead of _dl_allocate_tls_storage.
2713 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2714 (_dl_get_tls_static_info): New function.
2715 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2716 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2718 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2720 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2721 immediately if result == NULL.
2723 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2725 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2727 2002-08-18 Roland McGrath <roland@frob.com>
2729 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2730 instead of __file_name_split.
2731 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2733 * sysdeps/mach/hurd/dl-sysdep.c
2734 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2735 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2737 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2739 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2740 in change before last: MAX -> MIN.
2742 2002-08-15 Roland McGrath <roland@redhat.com>
2744 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2745 if seek would go past it.
2746 (mmap_remap_check): If file position is at or past EOF after check,
2747 leave read pointers at EOF and don't seek.
2749 * libio/tst-mmap-offend.c: New file.
2750 * libio/Makefile (tests): Add it.
2752 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2753 the name as passed, rather than the name in the archive dictionary.
2755 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2757 * csu/Makefile: Define elide-routines.os not static-only-routines.
2759 * include/sched.h (__clone): Add varargs at the end.
2761 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2763 (TLS_INIT_HELPER): If defined, use it.
2764 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2766 2002-08-15 Roland McGrath <roland@redhat.com>
2768 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2769 on L->l_prev; it can happen under rtld --verify too.
2771 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2772 header separately, just map an initial window of 2MB from the file
2773 and remap if that is not large enough to cover the whole header.
2775 2002-08-15 Andreas Jaeger <aj@suse.de>
2777 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2779 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2780 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2781 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2782 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2783 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2784 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2785 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2786 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2787 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2788 Patch by Andreas Gruenbacher <agruen@suse.de>.
2790 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2792 2002-08-14 Roland McGrath <roland@redhat.com>
2794 * locale/locarchive.h (struct locale_category_data): Give this name to
2795 the type of locale_data_t's elements.
2796 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2797 (add_locale): Use that to sort the categories by size and put all
2798 those that fit into two pages into the LC_ALL block, instead of
2799 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2800 (show_archive_content): Detect categories inside LC_ALL block
2801 directly, instead of hard-coding.
2802 (oldlocrecentcmp): Compare just on file locations used.
2804 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2806 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2807 (oldlocrecentcmp): New function.
2808 (enlarge_archive): Re-add locales in the order they were added
2810 (add_locale): Put all the small locale files together, if the small
2811 locale file block would occupy less pages if page size aligned, align
2813 (show_archive_content): Adjust for locale archives optimized for speed.
2815 2002-08-14 Roland McGrath <roland@frob.com>
2817 * configure.in: Use "MISSING" as not-found value for MIG.
2818 * sysdeps/mach/configure.in: Fatal if mig not found.
2819 * configure, sysdeps/mach/configure: Regenerated.
2821 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2823 * locale/loadarchive.c (archfname): Add missing slash.
2825 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2826 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2828 2002-08-12 Roland McGrath <roland@redhat.com>
2830 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2831 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2832 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2833 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2834 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2835 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2836 * sysdeps/generic/waitpid.c: Likewise.
2838 * include/net/if.h: New file. Use libc_hidden_proto
2839 for if_nametoindex and if_indextoname.
2840 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2841 * sysdeps/mach/hurd/if_index.c: Likewise.
2842 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2844 * include/grp.h (setgroups): Add libc_hidden_proto.
2845 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2846 * sysdeps/mach/hurd/setgroups.c: Likewise.
2847 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2848 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2850 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2852 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2853 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2854 * sysdeps/generic/setegid.c (setegid): Likewise.
2855 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2856 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2857 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2858 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2859 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2860 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2861 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2862 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2863 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2864 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2865 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2866 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2867 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2869 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2870 __lxstat_internal, __lxstat64_internal): Remove.
2871 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2873 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2874 Remove INTDEF where present, remove #undef at the beginning.
2875 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2876 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2877 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2878 * sysdeps/generic/xstat.c (__xstat): Likewise.
2879 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2880 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2881 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2882 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2883 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2884 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2885 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2886 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2887 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2888 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2889 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2890 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2891 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2892 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2893 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2894 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2895 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2896 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2897 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2898 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2899 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2900 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
2901 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
2902 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2903 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2904 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2905 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2906 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
2907 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
2908 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2909 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2910 * sysdeps/unix/xstat.c (__xstat): Likewise.
2912 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
2913 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
2914 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
2915 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
2916 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
2917 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
2918 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
2920 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
2921 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
2922 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
2923 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
2924 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
2925 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
2926 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
2927 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
2929 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
2930 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
2931 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
2932 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
2933 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2934 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
2935 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
2936 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
2938 * include/string.h (strcoll): Add libc_hidden_proto.
2939 * string/strcoll.c (strcoll): Add libc_hidden_def.
2941 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
2943 2002-08-11 Philip Blundell <philb@gnu.org>
2945 * sysdeps/arm/Makefile: New file.
2947 2002-08-08 Jakub Jelinek <jakub@redhat.com>
2949 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
2950 by another '|', end of regex or enclosing ')', clear branch.
2951 * posix/bug-regex9.c: New test.
2952 * posix/Makefile (tests): Add bug-regex9.
2954 2002-08-12 Roland McGrath <roland@redhat.com>
2956 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
2957 start count condition, use TOTAL instead of variable that was never
2958 set. Fix outer loop termination condition to TOTAL >= after update.
2960 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
2961 dl_tls_static_align and dl_tls_static_nelem.
2963 2002-08-11 Roland McGrath <roland@redhat.com>
2965 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
2966 of the TLS macros, otherwise the compiler might not have initialized
2967 the PIC register yet when we use the PLT via asm.
2968 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2969 * elf/tst-tlsmod2.c (in_dso): Likewise.
2971 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
2973 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
2974 Evaluate argument exactly once. Remove __volatile__ from asm's.
2976 * include/unistd.h: Use libc_hidden_proto for getdomainname
2978 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
2979 * sysdeps/mach/hurd/getdomain.c: Likewise.
2980 * sysdeps/unix/getlogin_r.c: Likewise.
2981 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
2982 * sysdeps/generic/getlogin_r.c: Likewise.
2984 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
2985 * sunrpc/rtime.c: Add libc_hidden_def.
2987 * include/string.h: Use libc_hidden_proto for basename.
2988 * string/basename.c [_LIBC]: Add libc_hidden_def.
2990 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
2992 * locale/loadarchive.c: munmap -> __munmap throughout.
2994 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
2995 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
2996 * sysdeps/generic/gai_strerror.c: Likewise.
2998 * include/sys/errno.h: New file.
3000 * include/signal.h: No libc_hidden_proto for raise,
3001 __libc_current_sigrtmin, __libc_current_sigrtmax.
3002 These need to be overridden by linuxthreads.
3003 * sysdeps/posix/raise.c: Reverted.
3004 * sysdeps/generic/raise.c: Reverted.
3005 * signal/allocrtsig.c: Reverted.
3007 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3009 2002-08-10 Roland McGrath <roland@redhat.com>
3011 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3012 * locale/localeinfo.h: Declare it.
3013 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3014 current locale if it's not in the file list.
3015 Call _nl_archive_subfreeres.
3017 2002-08-10 Andreas Jaeger <aj@suse.de>
3019 * sysdeps/i386/strchr.S: Add comment.
3021 2002-08-10 Roland McGrath <roland@redhat.com>
3023 * include/wchar.h (putwc): Use libc_hidden_proto.
3024 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3025 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3026 * stdio-common/dprintf.c: Add libc_hidden_def.
3027 * stdio-common/fprintf.c: Likewise.
3028 * stdio-common/sprintf.c: Likewise.
3029 * stdio-common/sscanf.c: Likewise.
3030 * libio/iofwrite.c: Likewise.
3031 * libio/memstream.c: Likewise.
3032 * libio/putwc.c: Likewise.
3033 * stdio-common/perror.c: Likewise.
3034 * sysdeps/posix/remove.c: Likewise.
3035 * sysdeps/generic/remove.c: Likewise.
3036 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3037 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3039 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3041 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3042 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3043 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3044 towlower, towupper): Add libc_hidden_weak.
3046 * include/bits/dlfcn.h: New file.
3047 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3049 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3050 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3051 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3052 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3053 * include/shadow.h (_nss_files_parse_spent): Likewise.
3054 * include/netdb.h (_nss_files_parse_protoent,
3055 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3056 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3057 (LINE_PARSER): Use it.
3058 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3059 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3061 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3064 * manual/debug.texi (%MENU%): Remove trailing dot.
3065 Reported by <hayastan132@hotmail.com>.
3067 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3070 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3073 2002-08-09 Roland McGrath <roland@redhat.com>
3075 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3076 name to find codeset name (if any) and normalize it. If the
3077 normalized name differs, look up only that in the archive.
3078 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3079 contains a codeset, normalize the codeset store only the normalized
3080 name in the archive. If not, add an alias containing the locale's
3081 normalized codeset name. Apply codeset name normalization when
3082 matching entries in the alias file.
3084 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3085 decrement HEAD->namehash_used here.
3086 (add_locale): Only need to insert name string when name_offset != 0.
3088 * locale/programs/localedef.c (options): Add -A/--alias-file.
3089 (alias_file): New variable.
3090 (parse_opt): Grok -A, set that.
3091 * locale/programs/localedef.h: Declare it.
3093 * locale/locarchive.h (struct locrecent): Add `refs' member.
3094 * locale/programs/locarchive.c (insert_name): New function, broken out
3096 (add_locale_to_archive): ... here. Call that.
3097 (add_alias): New function.
3098 (add_locale): New static function, add_locale_to_archive renamed.
3099 (add_locale_to_archive): Call that and use add_alias to add an alias
3100 for the name with codeset if the given name lacks it.
3101 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3103 * locale/Makefile (routines): Add loadarchive.
3104 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3105 (_nl_load_locale_from_archive): New function.
3106 * locale/localeinfo.h: Declare it.
3107 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3108 try _nl_load_locale_from_archive first.
3110 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3111 broken out of _nl_load_locale.
3112 (_nl_load_locale): Call that.
3113 * locale/localeinfo.h: Declare it.
3114 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3115 (struct locale_data): Remove unused member `options'.
3116 * locale/findlocale.c (_nl_remove_locale): Update uses.
3117 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3118 * locale/C-collate.c: Update initializer.
3119 * locale/C-identification.c: Likewise.
3120 * locale/C-measurement.c: Likewise.
3121 * locale/C-telephone.c: Likewise.
3122 * locale/C-address.c: Likewise.
3123 * locale/C-name.c: Likewise.
3124 * locale/C-paper.c: Likewise.
3125 * locale/C-time.c: Likewise.
3126 * locale/C-numeric.c: Likewise.
3127 * locale/C-monetary.c: Likewise.
3128 * locale/C-messages.c : Likewise.
3129 * locale/C-ctype.c: Likewise.
3131 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3132 use CHAR_BIT instead of BITSPERBYTE.
3134 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3135 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3136 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3137 (_nl_remove_locale): Likewise.
3138 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3140 * locale/findlocale.c (_nl_default_locale_path): New variable.
3141 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3142 * locale/localeinfo.h: Declare it.
3143 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3144 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3145 * locale/newlocale.c (__newlocale): Likewise.
3147 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3148 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3149 * sysdeps/generic/morecore.c: Likewise.
3150 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3151 (__libc_current_sigrtmax): Likewise.
3153 2002-08-08 Roland McGrath <roland@redhat.com>
3155 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3156 * catgets/open_catalog.c (__open_catalog): Likewise.
3158 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3159 from typo INITIAL_NUM_NANES.
3160 (create_archive): Update use.
3162 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3164 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3166 2002-08-08 Roland McGrath <roland@frob.com>
3168 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3170 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3172 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3173 else and undefine after including wcstol_l.c.
3174 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3176 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3178 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3180 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3182 * configure.in: Make the test for broken_alias_attribute stricter.
3184 2002-05-24 Robert Love <rml@tech9.net>
3186 * posix/Makefile (routines): Add sched_getaffinity and
3188 * posix/sched.h: Add declarations for sched_getaffinity and
3190 * sysdeps/generic/sched_getaffinity.c: New file.
3191 * sysdeps/generic/sched_setaffinity.c: New file.
3192 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3195 2002-08-06 Andreas Schwab <schwab@suse.de>
3197 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3199 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3201 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3204 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3205 It is known to be defined.
3207 * include/string.h: Define index and rindex only if _ISOMAC is not
3210 * elf/rtld.c: Include <errno.h>.
3211 * sysdeps/generic/libc-tls.c: Likewise.
3213 2002-08-07 Roland McGrath <roland@redhat.com>
3215 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3217 (precsize_aton): Likewise.
3219 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3220 the static symbols added in the last change (doofus is me).
3222 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3223 loop to notice missing categories in a composite name.
3225 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3226 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3227 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3228 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3230 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3232 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3234 2002-08-07 Roland McGrath <roland@redhat.com>
3236 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3237 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3238 Reported by Jakub Jelinek <jakub@redhat.com>.
3240 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3242 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3245 2002-08-06 Roland McGrath <roland@redhat.com>
3247 * include/getopt.h: Put private decls inside [_GETOPT_H].
3248 Use libc_hidden_proto for getopt_long, getopt_long_only.
3249 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3250 Add libc_hidden_def.
3252 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3253 Define as a macro for __dl_iterate_phdr.
3255 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3256 made static. Add __ name as a strong alias.
3257 (internal_endnetgrent): Likewise.
3258 (internal_getnetgrent_r): Likewise.
3260 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3262 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3263 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3264 all *_l functions with no __ prefix.
3265 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3266 * ctype/ctype_l.c: Likewise.
3267 * locale/nl_langinfo.c: Likewise.
3268 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3269 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3270 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3271 * wctype/wctype.h [__USE_GNU]: Likewise.
3272 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3273 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3274 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3275 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3276 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3277 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3278 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3279 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3280 (__wcscasecmp_l): Add libc_hidden_def.
3281 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3282 (__wcsncasecmp_l): Add libc_hidden_def.
3283 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3284 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3285 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3286 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3287 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3288 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3289 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3290 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3291 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3292 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3293 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3294 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3295 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3296 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3298 2002-08-05 Roland McGrath <roland@redhat.com>
3300 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3301 netname2user, host2netname, user2netname, key_gendes.
3302 * sunrpc/netname.c: Add libc_hidden_def.
3303 * sunrpc/key_call.c: Likewise.
3305 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3307 * inet/getnameinfo.c: Add libc_hidden_def.
3308 * sysdeps/generic/getaddrinfo.c: Likewise.
3309 * sysdeps/posix/getaddrinfo.c: Likewise.
3311 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3312 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3313 * wcsmbs/wmemset.c: Add libc_hidden_def.
3315 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3316 (index, rindex): Define as macros for strchr, strrchr.
3318 * string/envz.c (envz_strip): index -> strchr
3320 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3321 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3323 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3324 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3326 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3327 * stdlib/wctomb.c: Add libc_hidden_def.
3329 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3330 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3331 * resolv/herror.c: Likewise.
3332 * inet/rcmd.c: Add libc_hidden_def.
3333 * inet/ruserpass.c: Likewise.
3334 * inet/getnetgrent_r.c: Likewise.
3336 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3337 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3338 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3339 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3341 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3342 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3344 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3346 (__libc_system): Call it, putting just the line == NULL test here.
3348 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3349 variables work right.
3351 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3352 * elf/dl-close.c (_dl_close): Likewise.
3354 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3355 in6addr_any, in6addr_loopback. Remove decls for
3356 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3357 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3358 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3359 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3360 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3361 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3362 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3364 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3366 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3368 * inet/ether_aton_r.c: Add libc_hidden_def.
3369 * inet/ether_ntoa_r.c: Likewise.
3371 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3373 * sunrpc/svc.c: Add libc_hidden_def.
3374 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3375 pmap_set, pmap_unset.
3376 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3377 * sunrpc/pm_getport.c: Likewise.
3378 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3379 * sunrpc/publickey.c: Add libc_hidden_def.
3381 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3383 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3384 the other memset call in this function.
3386 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3387 at correct index. Clear BSS region now that memalign is used.
3389 2002-08-05 Roland McGrath <roland@redhat.com>
3391 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3392 * sysdeps/generic/uname.c: Add libc_hidden_def.
3393 * sysdeps/mach/hurd/uname.c: Likewise.
3395 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3397 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3398 wcspbrk): Add libc_hidden_proto.
3399 * time/strftime.c (my_strftime): Add libc_hidden_def.
3400 (strftime): Remove libc_hidden_def.
3401 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3402 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3403 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3404 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3405 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3406 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3408 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3409 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3410 __rpc_thread_createerr): Add libc_hidden_proto.
3411 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3412 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3413 __rpc_thread_createerr): Add libc_hidden_def.
3415 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3416 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3417 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3418 clnt_perror, clnt_sperror): Add libc_hidden_def.
3419 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3421 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3423 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3424 * sunrpc/des_soft.c (des_setparity): Likewise.
3426 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3427 Add libc_hidden_proto.
3428 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3429 Add libc_hidden_def.
3431 2002-08-05 Roland McGrath <roland@redhat.com>
3433 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3434 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3435 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3436 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3437 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3438 old data, abandoning the original memory allocated by rtld at startup,
3439 instead of calling realloc normally.
3441 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3443 * po/fr.po: Update from translation team.
3445 2002-08-04 Roland McGrath <roland@redhat.com>
3447 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3448 then generate a dummy module under the given name, obeying the
3449 normal rules for the "caller" field.
3451 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3452 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3454 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3455 weak here; we declare it weak or strong in the one place we use it.
3456 * sysdeps/generic/libc-start.c: ... which is here.
3457 Don't make the decl weak if [USE_TLS], since static programs need TLS
3458 setup even when single-threaded.
3460 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3462 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3463 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3464 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3465 all these variables.
3467 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3469 * include/stdio.h: Don't define macro magic to redirect function
3470 calls if _ISOMAC is defined.
3472 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3475 2002-08-04 Roland McGrath <roland@redhat.com>
3477 * stdlib/lrand48_r.c: Add libc_hidden_def.
3479 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3480 TCB with __libc_memalign instead of mmap.
3481 (_dl_deallocate_tls): Free it with free instead of munmap.
3483 * Makerules (cpp-srcs-left): When setting this to run
3484 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3485 words. Combine the two loops into one on the concatenated list,
3486 including those as well as $(test-srcs).
3488 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3489 since we align here with optimally minimal waste anyway.
3490 (malloc): Just call that.
3492 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3495 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3496 to compute memory location for l_tls_initimage.
3497 * elf/rtld.c (_dl_start): Likewise.
3498 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3500 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3501 because the .d file is generated in the non-shared case and
3502 so fails to catch them otherwise.
3504 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3505 split out of _dl_allocate_tls.
3506 (_dl_allocate_tls_init): Likewise.
3507 (_dl_allocate_tls): Call those.
3508 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3509 * elf/rtld.c (dl_main): Call them separately instead of calling
3510 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3511 is finished, so that the initializer data has been relocated before we
3512 copy it into the main thread's TLS block.
3514 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3515 loop conditions, prevented the last used module from being initialized.
3517 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3519 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3520 if glob resp. globfree are not macros.
3521 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3522 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3523 Add libc_hidden_ver.
3524 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3526 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3527 instead of libc_hidden_weak.
3528 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3529 libc_hidden_ver instead of libc_hidden_def.
3530 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3531 libc_hidden_ver instead of libc_hidden_def.
3532 (wcstoll, wcstoq): Remove libc_hidden_weak.
3533 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3535 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3537 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3539 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3542 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3544 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3545 to access _sys_siglist.
3546 * string/strsignal.c: Likewise.
3547 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3548 * sysdeps/gnu/siglist.c: Likewise.
3549 * sysdeps/unix/siglist.c: Likewise.
3550 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3552 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3554 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3556 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3558 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3560 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3561 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3562 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3564 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3565 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3567 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3568 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3569 and __gconv_get_cache respectively.
3570 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3571 defined static. Change all users.
3572 (__gconv_get_cache): New function.
3573 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3574 (__gconv_get_alias_db): New function.
3575 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3576 (__conv_modules_db): Likewise.
3577 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3578 and __gconv_get_alias_db.
3579 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3582 * include/stdlib.h: Add prototype and libc_hidden_proto for
3584 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3586 * malloc/obstack.c: Remove fputs macro.
3588 * malloc/mtrace.c: Remove fopen macro.
3590 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3592 * manual/debug.texi: Fix spelling to programmatically.
3593 Reported by <hayastan132@hotmail.com>.
3595 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3597 * include/libio.h: Add libc_hidden_proto for __uflow.
3598 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3599 fgetpos to _IO_* names.
3600 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3601 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3602 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3603 putwc_unlocked, vswscanf.
3604 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3605 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3606 * libio/fseek.c: Likewise.
3607 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3609 * libio/genops.c (__uflow): Add libc_hidden_def.
3610 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3611 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3612 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3613 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3614 * libio/iofread_u.c (fread_unlocked): Likewise.
3615 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3616 * libio/iovswscanf.c (vswscanf): Likewise.
3617 * libio/putwc_u.c (putwc_unlocked): Likewise.
3618 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3619 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3620 * malloc/mtrace.c: Likewise.
3622 * sunrpc/clnt_perr.c: Remove fputs macro.
3623 * sunrpc/svc_simple.c: Likewise.
3624 * sunrpc/svc_tcp.c: Likewise.
3625 * sunrpc/svc_udp.c: Likewise.
3626 * sunrpc/xdr_rec.c: Likewise.
3627 * sunrpc/xdr_ref.c: Likewise.
3629 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3630 iconv_prog, linereader, and charmap-dir.
3631 * locale/Makefile: Likewise for locale and charmap-dir.
3632 * malloc/Makefile: Likewise for memusagestat.
3633 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3634 * sunrpc/Makefile: Likewise for rpc_main.
3635 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3636 * timezone/Makefile: Likewise for zic.
3638 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3640 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3641 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3642 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3643 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3646 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3648 * libio/genops.c (__underflow): Add libc_hidden_def.
3649 * libio/wgenops.c (__wuflow): Likewise.
3650 (__wunderflow): Likewise.
3652 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3653 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3655 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3656 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3658 * include/string.h: Add libc_hidden_proto for __strverscmp.
3659 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3661 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3662 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3663 * sysdeps/posix/sysconf.c: Likewise.
3664 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3665 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3667 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3668 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3669 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3670 __iswxdigit_l, __towlower_l, __towupper_l.
3671 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3672 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3674 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3675 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3676 * sysdeps/mach/hurd/xmknod.c: Likewise.
3677 * sysdeps/unix/xmknod.c: Likewise.
3678 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3679 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3680 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3682 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3684 2002-08-03 Roland McGrath <roland@redhat.com>
3686 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3688 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3689 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3690 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3691 * sysdeps/mach/hurd/setpriority.c: Likewise.
3692 * sysdeps/mach/hurd/getpriority.c: Likewise.
3693 * sysdeps/generic/setpriority.c: Likewise.
3694 * sysdeps/generic/getpriority.c: Likewise.
3696 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3697 * malloc/mcheck.c: Add libc_hidden_def.
3699 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3700 * misc/hsearch_r.c: Add libc_hidden_def.
3702 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3703 * posix/fnmatch.c: Add libc_hidden_weak.
3705 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3706 execl, execle, execlp, execvp, getpid, getsid.
3707 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3708 * sysdeps/unix/alarm.c: Likewise.
3709 * posix/confstr.c: Likewise.
3710 * posix/execvp.c: Likewise.
3711 * posix/execlp.c: Likewise.
3712 * posix/execle.c: Likewise.
3713 * posix/execl.c: Likewise.
3714 * sysdeps/generic/getsid.c: Likewise.
3715 * sysdeps/mach/hurd/getsid.c: Likewise.
3716 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3717 * sysdeps/mach/hurd/getpid.c: Likewise.
3719 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3720 qecvt_r, qfcvt_r, lrand48_r.
3721 * misc/efgcvt_r.c: Add libc_hidden_def.
3723 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3724 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3726 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3727 * locale/nl_langinfo.c: Add libc_hidden_def.
3729 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3730 * sysdeps/generic/glob.c: Add libc_hidden_def.
3731 * sysdeps/generic/glob64.c: Likewise.
3732 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3734 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3736 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3738 * locale/setlocale.c (_nl_current_names): Variable moved ...
3739 * locale/localename.c (_nl_current_names): ... here, new file.
3740 Make it global, with attribute_hidden.
3741 * locale/localeinfo.h: Declare it.
3742 * locale/Makefile (aux): Add localename.
3743 * locale/localename.c (__current_locale_name): New function.
3744 * include/locale.h (__current_locale_name): Declare it.
3745 * intl/dcigettext.c (guess_category_value): Use that instead of
3748 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3749 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3750 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3751 * locale/newlocale.c: Add alias to __ name.
3752 * locale/duplocale.c: Likewise.
3753 * locale/freelocale.c: Likewise.
3754 * locale/uselocale.c: New file.
3755 * locale/Makefile (routines): Add it.
3756 * locale/Versions (libc: GLIBC_2.3): New set.
3757 Add newlocale, duplocale, freelocale, uselocale.
3758 (libc: GLIBC_PRIVATE): Add __uselocale.
3760 * locale/localeinfo.h [SHARED]
3761 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3762 (_NL_CURRENT_DATA): Define using that.
3763 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3764 (_NL_CURRENT_DEFINE): Define to empty.
3765 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3766 conditionalized on this.
3767 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3768 taking initializer of _nl_C_locobj.
3769 [SHARED] (_nl_global_locale): New variable, using that initializer.
3770 (_nl_C_locobj): Use new macro for initialzier.
3771 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3772 [! SHARED] (CATEGORY_USED): New macro.
3773 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3774 (setdata, setlocale): Use that macro instead of examining _nl_current.
3775 (setdata): Set the slot in _nl_global_locale.
3776 Conditionalize setting of _nl_current on [! SHARED].
3777 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3778 declaration as an extern.
3779 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3781 * include/locale.h: Use libc_hidden_proto for setlocale.
3782 * locale/setlocale.c: Add libc_hidden_def.
3784 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3786 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3787 * misc/hsearch_r.c: Add libc_hidden_def.
3788 * misc/lsearch.c: Likewise.
3790 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3792 * misc/getttyent.c: Add libc_hidden_def.
3794 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3795 * malloc/mcheck.c: Add libc_hidden_def.
3797 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3798 * include/argz.h: Use libc_hidden_proto for argz_delete.
3799 * string/argz-delete.c: Add libc_hidden_def.
3800 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3802 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3803 HIDDEN_JUMPTARGET for _exit.
3804 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3805 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3806 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3807 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3809 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3810 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3811 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3812 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3814 * include/stdlib.h: Use libc_hidden_proto for abort,
3815 __strtof_internal, __strtod_internal, __strtold_internal,
3816 __strtol_internal, __strtoll_internal, __strtoul_internal,
3817 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3818 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3819 __strtoul_l_internal, __strtoull_l_internal.
3820 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3821 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3822 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3823 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3824 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3826 * sysdeps/generic/abort.c: Add libc_hidden_def.
3827 * stdlib/strtod.c: Likewise.
3828 * sysdeps/generic/strtol.c: Likewise.
3829 * sysdeps/wordsize-64/strtol.c: Likewise.
3830 * sysdeps/wordsize-64/wcstol.c: Likewise.
3831 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3833 * include/stdlib.h: Use libc_hidden_proto for qsort.
3834 * stdlib/msort.c: Add libc_hidden_def.
3836 * include/utime.h: Use libc_hidden_proto for utime.
3837 * sysdeps/generic/utime.c: Add libc_hidden_def.
3838 * sysdeps/unix/utime.c: Likewise.
3840 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3841 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3842 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3843 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3844 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3846 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3847 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3848 and __libc_current_sigrtmax.
3849 * signal/sigismem.c: Add libc_hidden_def.
3850 * signal/sigfillset.c: Likewise.
3851 * signal/sigempty.c: Likewise.
3852 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3853 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3854 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3855 * sysdeps/posix/raise.c: Likewise.
3856 * sysdeps/generic/raise.c: Likewise.
3858 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3860 * include/string.h: Use libc_hidden_proto for __stpcpy.
3861 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3862 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3863 * sysdeps/generic/stpcpy.c: Likewise.
3864 * sysdeps/i386/stpcpy.S: Likewise.
3865 * sysdeps/i386/i586/stpcpy.S: Likewise.
3866 * sysdeps/powerpc/stpcpy.S: Likewise.
3867 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3868 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3870 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3871 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3872 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3874 * string/strdup.c (__strdup): Likewise.
3875 * string/strndup.c (__strndup): Likewise.
3876 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3877 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3879 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3881 * include/libio.h: New file.
3882 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3883 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3884 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3885 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3886 * sysdeps/unix/common/syscalls.list: Likewise.
3887 * sysdeps/unix/inet/syscalls.list: Likewise.
3888 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3889 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3890 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3891 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3892 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3893 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3894 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3895 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3896 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3897 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3898 * sysdeps/unix/syscalls.list: Likewise.
3900 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3901 Ulrich Drepper <drepper@redhat.com>
3903 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
3904 the arguments is big enough to cause an overflow.
3906 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3908 * assert/assert.c: Use hidden_def not INTDEF.
3910 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3912 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
3915 2002-08-03 Roland McGrath <roland@redhat.com>
3917 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
3918 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
3920 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
3921 * misc/syslog.c: Add libc_hidden_def.
3922 * misc/err.c: Likewise.
3923 * stdlib/exit.c: Likewise.
3924 * stdlib/bsearch.c: Likewise.
3925 * sysdeps/generic/getenv.c: Likewise.
3927 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
3929 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
3930 libc_hidden_weak for every system call symbol defined.
3932 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
3933 timelocal, localtime, strftime.
3934 * time/asctime.c: Add libc_hidden_def.
3935 * time/mktime.c: Likewise.
3936 * time/localtime.c: Likewise.
3937 * time/strftime.c: Likewise.
3938 * time/strptime.c: Likewise.
3939 * sysdeps/generic/time.c: Likewise.
3940 * sysdeps/unix/time.c: Likewise.
3941 * sysdeps/unix/sysv/i386/time.S: Likewise.
3942 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3944 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
3945 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
3946 * resolv/inet_ntop.c: Likewise.
3947 * resolv/inet_pton.c: Likewise.
3948 * inet/inet_mkadr.c: Add libc_hidden_def.
3949 * inet/inet_netof.c: Likewise.
3950 * resolv/inet_addr.c: Likewise.
3952 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
3953 clauses from conditionals for now. Will have to be fixed later
3954 for older compilers.
3956 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
3958 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3960 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
3961 broken alias attribute handling.
3962 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
3964 2002-08-02 Roland McGrath <roland@frob.com>
3966 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
3967 since it sets the variables we use in a -D switch.
3969 2002-08-02 Roland McGrath <roland@redhat.com>
3971 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
3972 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
3973 matches long int, not int.
3975 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
3976 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
3977 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3978 * wctype/wctrans.c (wctrans): Likewise.
3979 * wctype/wctype.c (__wctype): Likewise.
3980 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
3982 2002-08-02 Ulrich Drepper <drepper@redhat.com>
3984 * assert/assert.c (__assert_fail): Fix typo in comment.
3986 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
3987 * sunrpc/rpc_thread.c: Define it without static.
3988 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
3990 2002-08-02 Jakub Jelinek <jakub@redhat.com>
3992 * assert/assert.c (__assert_fail): Remove undef.
3993 Replace INTDEF with libc_hidden_def.
3994 * assert/__assert.c (__assert): Remove INTUSE.
3995 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
3997 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
3998 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
3999 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4000 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4001 libm_hiden_ver): Define.
4002 * include/assert.h (__assert_fail_internal): Remove.
4003 (__assert_fail): Add prototype. Add hidden_proto.
4004 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4006 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4007 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4008 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4009 Add libc_hidden_proto.
4010 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4011 __fcntl): Add libc_hidden_proto. Remove macros.
4012 (__open_internal, __fcntl_internal): Remove.
4013 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4014 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4015 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4017 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4019 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4020 Add libc_hidden_def.
4021 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4022 * sysdeps/generic/open.c (__open): Remove undef.
4023 Add libc_hidden_def. Remove INTDEF.
4024 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4025 Add libc_hidden_def.
4026 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4027 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4028 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4029 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4030 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4031 (__libc_fcntl): Add libc_hidden_def.
4032 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4033 (__open): Remove INTDEF2. Add libc_hidden_weak.
4034 (__libc_open): Add libc_hidden_def.
4035 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4036 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4037 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4038 Add libc_hidden_def.
4039 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4040 Add libc_hidden_def.
4041 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4043 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4044 (__libc_fcntl): Add libc_hidden_def.
4045 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4046 __getpgid_internal, __chown_internal): Remove.
4047 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4048 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4050 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4051 __getpid_internal, __open_internal, __write_internal): Remove.
4052 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4053 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4054 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4055 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4056 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4057 Replace INTDEF with libc_hidden_def.
4058 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4059 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4060 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4061 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4062 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4063 Add libc_hidden_proto.
4064 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4065 * include/sys/select.h (__select): Likewise.
4066 * include/sys/socket.h (__send): Likewise.
4067 * include/sys/statfs.h (__statfs): Likewise.
4068 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4069 __getpid, __getpgid, __setpgid, __close, __read, __write,
4070 __getpagesize, __sbrk): Likewise.
4071 (__chown_internal, __dup2_internal, __getpid_internal,
4072 __getpgid_internal, __close_internal, __write_internal,
4073 __getpagesize_internal): Remove.
4074 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4076 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4077 * include/sched.h (__sched_setscheduler): Likewise.
4078 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4079 * include/stdlib.h (__secure_getenv): Likewise.
4080 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4081 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4082 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4083 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4084 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4085 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4086 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4087 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4088 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4089 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4090 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4091 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4092 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4093 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4094 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4095 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4096 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4097 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4098 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4099 * libio/genops.c (__overflow): Add libc_hidden_def.
4100 * libio/iovdprintf.c: Remove libio.h include.
4101 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4102 libc_hidden_weak): Define to nothing if not defined.
4103 (__overflow, __woverflow): Add libc_hidden_proto.
4104 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4105 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4106 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4107 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4108 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4109 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4110 and libc_hidden_def.
4111 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4112 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4113 (__getpgid): Add libc_hidden_proto.
4114 (__bsd_getpgrp): Remove INTUSE.
4115 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4117 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4118 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4119 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4120 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4121 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4122 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4123 __rpc_thread_createerr): Add libc_hidden_def.
4124 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4126 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4127 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4128 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4129 * sysdeps/generic/chown.c (__chown): Likewise.
4130 * sysdeps/generic/close.c (__close): Likewise.
4131 * sysdeps/generic/dup2.c (__dup2): Likewise.
4132 * sysdeps/generic/pipe.c (__pipe): Likewise.
4133 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4134 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4135 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4136 * sysdeps/generic/read.c (__libc_read): Likewise.
4137 (__read): Add libc_hidden_weak.
4138 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4139 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4140 * sysdeps/generic/select.c (__select): Likewise.
4141 * sysdeps/generic/send.c (__send): Likewise.
4142 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4143 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4144 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4145 * sysdeps/generic/statfs.c (__statfs): Likewise.
4146 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4147 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4148 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4149 Remove undef and INTDEF.
4150 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4151 * sysdeps/generic/getpid.c (__getpid): Likewise.
4152 * sysdeps/generic/write.c (__libc_write): Likewise.
4153 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4154 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4155 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4156 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4157 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4158 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4159 Remove undef and INTDEF.
4160 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4161 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4162 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4163 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4164 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4165 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4166 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4167 (__pipe): Add libc_hidden_def.
4168 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4170 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4171 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4172 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4173 (__read): Add libc_hidden_weak.
4174 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4175 (__libc_pwrite64): Add libc_hidden_def.
4176 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4177 * sysdeps/mach/hurd/select.c (__select): Likewise.
4178 * sysdeps/mach/hurd/send.c (__send): Likewise.
4179 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4180 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4181 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4182 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4183 * sysdeps/posix/dup2.c: Likewise.
4184 Remove undef and INTDEF.
4185 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4186 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4187 (__pwrite64): Add libc_hidden_weak.
4188 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4189 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4190 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4191 * sysdeps/standalone/close.c (__close): Likewise.
4192 * sysdeps/standalone/write.c (__libc_write): Likewise.
4193 (__write): Add libc_hidden_weak.
4194 * sysdeps/standalone/read.c (__read): Likewise.
4195 (__libc_read): Add libc_hidden_def.
4196 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4197 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4198 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4199 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4200 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4201 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4202 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4203 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4204 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4205 __GI___sigaction): Add.
4206 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4207 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4208 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4209 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4210 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4211 __GI___setpgid): Add.
4212 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4213 Remove undef and INTDEF.
4214 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4215 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4216 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4217 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4218 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4219 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4220 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4221 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4222 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4223 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4224 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4225 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4226 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4227 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4228 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4229 __GI___statfs, __GI___send): Add.
4230 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4231 libc_hidden_ver resp. libc_hidden_def.
4232 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4234 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4235 Likewise. Remove undef and INTDEF.
4236 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4237 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4238 __GI___statfs, __GI___send): Add.
4239 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4241 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4243 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4244 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4245 libc_hidden_ver resp. libc_hidden_def.
4246 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4248 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4249 Add libc_hidden_weak.
4250 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4251 Add libc_hidden_def.
4252 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4253 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4255 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4256 resp. libc_hidden_def.
4257 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4259 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4261 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4262 Likewise. Remove undef.
4263 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4265 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4266 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4268 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4270 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4271 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4272 Likewise. Remove undef and INTDEF.
4273 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4275 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4277 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4279 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4280 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4281 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4283 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4284 Add libc_hidden_def.
4285 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4286 __GI___statfs): Add.
4287 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4289 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4290 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4291 Remove undef and INTDEF.
4292 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4293 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4295 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4296 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4298 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4300 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4301 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4302 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4304 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4305 libc_hidden_def. Remove undef and INTDEF.
4306 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4307 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4309 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4310 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4311 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4312 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4313 Remove undef and INTDEF.
4314 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4315 broken visibility attribute handling.
4316 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4318 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4320 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4321 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4323 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4326 2002-06-29 Todd Fries <todd@openbsd.org>
4328 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4330 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4332 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4334 2002-07-30 Roland McGrath <roland@redhat.com>
4336 * resolv/resolv.h (_res): Define macro unconditionally.
4337 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4338 * include/resolv.h: ... here.
4339 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4340 as a __thread variable.
4341 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4342 a __thread variable instead of a global.
4343 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4345 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4348 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4350 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4351 decls of memset and memcpy.
4353 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4354 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4356 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4358 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4359 (__libc_tsd_define): Define using __thread.
4361 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4362 (__rpc_thread_variables): Use __libc_tsd_get.
4363 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4364 __rpc_thread_variables, which might allocate what we're about to free.
4366 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4367 thread-local variable.
4368 * resolv/netdb.h (h_errno): Define macro unconditionally.
4369 [_LIBC] (__set_h_errno): Macro moved to ...
4370 * include/netdb.h: ... here.
4371 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4372 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4373 [! _LIBC_REENTRANT]: #undef h_errno here.
4375 * include/errno.h: Protect from multiple inclusion.
4377 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4378 before defining them, since Linux's <linux/posix_types.h> might have
4381 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4383 * malloc/malloc.c (public_cALLOc): Check for overflow on
4385 * sunrpc/xdr_array.c (xdr_array): Likewise.
4386 * sunrpc/rpc/types.h (mem_free): Add comment.
4387 Patch by Solar Designer <solar@openwall.com>.
4389 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4391 * sysdeps/unix/sysv/linux/kernel-features.h
4392 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4394 2002-08-01 Roland McGrath <roland@redhat.com>
4396 * libio/fileops.c (_IO_file_sync_mmap): New function.
4397 (_IO_file_jumps_mmap): Use it.
4398 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4399 repeat the stat check and resize the mapped buffer as necessary.
4401 2002-07-31 Roland McGrath <roland@redhat.com>
4403 * libio/fileops.c (decide_maybe_mmap): New static function.
4404 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4405 mmap the file contents. Then switch the jump tables to the mmap
4406 tables if it worked, or the vanilla file tables if not.
4407 (_IO_file_underflow_maybe_mmap): New function.
4408 (_IO_file_seekoff_maybe_mmap): New function.
4409 (_IO_file_xsgetn_maybe_mmap): New function.
4410 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4411 * libio/libioP.h: Declare those.
4412 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4413 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4414 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4415 If the stream is read-only, set its jump tables to those new ones.
4416 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4417 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4418 We need the tables set before _IO_file_attach.
4420 * libio/tst-mmap-eofsync.c: New file.
4421 * libio/tst-mmap-fflushsync.c: New file.
4422 * libio/bug-mmap-fflush.c: New file.
4423 * libio/tst-mmap2-eofsync.c: New file.
4424 * libio/Makefile (tests): Add them.
4426 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4427 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4429 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4431 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4432 Declarations moved to <bits/sys_errlist.h>. Include that file.
4433 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4434 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4435 declare sys_errlist and sys_nerr.
4436 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4437 provide declarations.
4439 2002-07-31 Roland McGrath <roland@redhat.com>
4441 * elf/rtld.c (dl_main): Fix typo in error message.
4443 2002-07-31 Roland McGrath <roland@frob.com>
4445 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4446 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4447 sysdeps/mach/hurd/dl-sysdep.c change.
4449 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4451 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4452 -r`/build/include for kernel headers.
4454 * po/fi.po: New file.
4456 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4458 * configure.in (static_nss): Set to `yes' if --disable-shared.
4460 2002-07-23 Bruno Haible <bruno@clisp.org>
4462 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4465 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4467 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4468 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4471 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4473 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4476 2002-07-21 Bruno Haible <bruno@clisp.org>
4478 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4479 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4480 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4481 trans_sysdep_tab_offset.
4482 (struct sysdep_segment): New type.
4483 (struct sysdep_string): New type.
4484 (SEGMENTS_END): New macro.
4485 * intl/gettextP.h (struct sysdep_string_desc): New type.
4486 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4487 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4488 orig_tab, trans_tab, hash_tab to const pointers because they point
4489 into read-only memory.
4490 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4491 (PRI*): Define fallback values.
4492 (get_sysdep_segment_value): New function.
4493 (_nl_load_domain): Distinguish major and minor revision parts. Add
4494 support for minor revision 1 with system dependent strings.
4495 (_nl_unload_domain): Also free the 'malloced' field.
4496 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4497 now done in loadmsgcat.c. Add support for system dependent strings.
4499 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4501 * posix/bug-regex7.c: New file.
4502 * posix/bug-regex8.c: New file.
4503 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4505 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4507 * posix/bug-regex4.c (main): Fix typos.
4508 * posix/bug-regex6.c (main): Likewise.
4510 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4512 * posix/bug-regex6.c (main): Fix warnings.
4514 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4516 * iconv/iconv_prog.c (main): Improve error message for the cases
4517 where -t and/or -f parameter are missing.
4519 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4521 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4522 (re_search): Likewise.
4523 (re_match_2): Likewise.
4524 (re_search_2): Likewise.
4525 (re_search_stub): New function.
4526 (re_search_2_stub): New function.
4527 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4529 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4531 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4532 (re_string_eoi): Use STOP instead of LEN.
4533 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4534 (re_string_construct): Likewise.
4535 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4536 * posix/regexec.c (re_search_internal): Add a new argument STOP
4537 so that it can handle the argument STOP of re_search_2 and re_match_2
4539 (regexec): Adapt to new I/F of re_search_internal.
4540 (re_search_stub): Likewise.
4542 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4544 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4546 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4548 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4549 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4552 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4553 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4554 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4555 alias for adjtimex syscall.
4557 * elf/dl-minimal.c: Define __assert_fail_internal.
4558 * assert/assert.c: Likewise.
4559 * include/assert.h: Define __assert_file macro if !SHARED and not
4562 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4564 * locale/Makefile: Likewise.
4565 * nscd/Makefile: Likewise.
4566 * catgets/Makefile: Likewise.
4568 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4570 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4571 compute current position.
4573 * stdio-common/tst-fseek.c (main): Improve error messages.
4575 * libio/tst-freopen.c (main): Remove unused variable.
4577 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4578 succesful seek call. Simplify error checking.
4580 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4582 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4583 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4585 2002-07-19 Roland McGrath <roland@frob.com>
4587 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4588 __libc_enable_secure is set.
4590 2002-07-24 Roland McGrath <roland@frob.com>
4592 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4593 This implementation supports only IPv4.
4594 * inet/ifaddrs.h: New file.
4595 * sysdeps/generic/ifaddrs.c: New file.
4596 * sysdeps/gnu/ifaddrs.c: New file.
4597 * inet/test-ifaddrs.c: New file.
4598 * inet/Makefile (routines): Add ifaddrs.
4599 (headers): Add ifaddrs.h here.
4600 (tests): Add test-ifaddrs.
4601 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4603 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4604 socket call to get an AF_INET socket, instead of using __opensock.
4605 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4607 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4608 if not -1 use it instead of calling __opensock.
4609 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4610 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4611 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4613 * sysdeps/mach/hurd/ifreq.h: New file.
4614 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4615 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4616 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4618 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4619 which gets moved around. Calculate size of mmap'd buffer instead.
4621 2002-07-24 Philip Blundell <philb@gnu.org>
4623 * sysdeps/unix/arm/brk.S: Improve schedule.
4624 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4625 efficient instruction.
4626 (__socket): Optimize return sequence.
4628 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4630 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4631 sockets on old kernels.
4633 2002-07-22 Philip Blundell <philb@gnu.org>
4635 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4636 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4639 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4641 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4642 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4644 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4645 test to detect duplicate locales.
4647 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4648 position would be before beginning of file.
4649 (_IO_file_seekoff_mmap): Likewise.
4650 * libio/Makefile (tests): Add bug-fseek.
4651 * libio/bug-fseek.c: New file.
4653 * intl/explodename.c: Remove support for CEN-style locale variables.
4654 It was never used and shouldn't be since it's not portable.
4655 * intl/finddomain.c: Likewise.
4656 * intl/l10nflist.c: Likewise.
4657 * intl/loadinfo.h: Likewise.
4658 * locale/findlocale.c: Likewise.
4660 2002-07-24 Roland McGrath <roland@frob.com>
4662 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4663 position, calculate it to take into account an active pushback buffer.
4665 * libio/Makefile (tests): Add bug-ungetc.
4666 * libio/bug-ungetc.c: New file.
4668 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4670 * sysdeps/generic/libc-tls.c: New file.
4671 * csu/Makefile (routines): Add libc-tls.
4672 (static-only-routines): Add libc-tls.
4673 * elf/dl-support.c (_dl_phdr): New variable.
4674 (_dl_phnum): New variable.
4675 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4676 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4677 for !SHARED. First look through auxiliary vector. If TLS always
4678 call __pthread_initialize_minimal.
4680 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4681 in mmap call is never zero.
4683 2002-07-23 Andreas Jaeger <aj@suse.de>
4685 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4686 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4688 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4690 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4691 creation and removal of the temp file.
4693 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4695 * test-skeleton.c (create_temp_file): New function.
4697 2002-07-22 Andreas Jaeger <aj@suse.de>
4699 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4702 2002-07-21 Roland McGrath <roland@frob.com>
4704 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4705 put -I../include before -I../stdlib so we get the right errno.h et al.
4706 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4707 (CFLAGS-wcstof.c): Likewise.
4708 (CFLAGS-wcstold.c): Likewise.
4709 (CFLAGS-wcstod_l.c): Likewise.
4710 (CFLAGS-wcstof_l.c): Likewise.
4711 (CFLAGS-wcstold_l.c): Likewise.
4713 2002-07-19 Roland McGrath <roland@frob.com>
4715 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4717 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4719 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4720 __ASSUME_AT_XID is defined.
4721 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4723 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4724 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4726 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4727 (CFLAGS-wcstof.c): Likewise.
4728 (CFLAGS-wcstold.c): Likewise.
4729 (CFLAGS-wcstod_l.c): Likewise.
4730 (CFLAGS-wcstof_l.c): Likewise.
4731 (CFLAGS-wcstold_l.c): Likewise.
4733 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4735 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4736 __priority_which_t): Always typedef to int for C++.
4738 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4740 * configure.in: Add test for __thread support in compiler.
4741 * config.h.in: Add HAVE___THREAD.
4742 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4743 * include/sys/errno.h: Moved to...
4744 * stdlib/sys/errno.h: ...here. New file.
4745 * stdlib/errno.h: New file. Moved from...
4746 * include/errno.h: ...here. Changed into an internal header defining
4747 libc-local things like __set_errno.
4748 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4750 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4751 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4753 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4755 (_dl_start_final): ...here. Add code to initialize tls elements from
4757 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4758 if USE_TLS && HAVE___THREAD.
4759 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4760 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4761 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4762 * sysdeps/standalone/bits/errno.h: Likewise.
4763 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4764 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4765 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4766 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4767 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4768 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4769 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4770 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4771 use GL(dl_rtld_map), use map parameter.
4772 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4773 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4774 USE_TLS && HAVE___THREAD.
4775 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4776 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4778 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4780 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4781 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4782 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4783 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4784 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4785 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4787 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4789 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4790 MS_INVALIDATE values.
4792 2002-07-17 Andreas Schwab <schwab@suse.de>
4793 Ulrich Drepper <drepper@redhat.com>
4795 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4796 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4797 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4798 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4800 2002-07-01 H.J. Lu <hjl@gnu.org>
4802 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4805 * elf/circlemod1.c (circlemod1): Return int.
4806 * elf/circlemod2.c (circlemod2): Likewise.
4807 * elf/circlemod2a.c (circlemod2): Likewise.
4808 * elf/circlemod3.c (circlemod3): Likewise.
4809 (circlemod3a): A new function.
4811 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4813 * catgets/tst-catgets.c (main): Don't expect results for
4814 untranslated messages.
4816 * glibcbug.in: Fix little typo. Remove STDIO.
4818 * config.h.in: Fail if __FAST_MATH__ is defined.
4819 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4820 (CPPFLAGS-test-idouble.c): Likewise.
4821 (CPPFLAGS-test-ildouble.c): Likewise.
4823 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4825 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4826 * intl/tst-gettext.c: Correctly handle untranslated messages in
4829 * po/de.po: Update from translation team.
4831 2002-07-02 H.J. Lu <hjl@gnu.org>
4833 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4835 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4837 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4840 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4842 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4843 TLS fail if USE_TLS is not defined.
4845 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4846 and adjust state for seek position. [PR libc/4070]
4847 * libio/Makefile (tests): Add bug-rewind.
4848 * libio/bug-rewind.c: New file.
4850 2002-07-12 Philip Blundell <philb@gnu.org>
4852 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4853 (__backtrace): Use it.
4854 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4856 2002-07-12 Philip Blundell <philb@gnu.org>
4858 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4859 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4860 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4861 (elf_machine_rela): Remove unused variable.
4863 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4864 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4867 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4869 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4871 2002-07-14 Andreas Jaeger <aj@suse.de>
4873 * sysdeps/x86_64/bits/link.h: Add biarch support.
4875 2002-07-13 Andreas Jaeger <aj@suse.de>
4877 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4878 Use correct indices.
4879 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4881 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4883 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4884 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4885 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4886 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4887 * sysdeps/s390/s390-32/bits/link.h: Remove.
4888 * sysdeps/s390/s390-64/bits/link.h: Remove.
4889 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4890 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4891 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4892 * sysdeps/s390/bits/wordsize.h: New file.
4893 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4895 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4896 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4897 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4898 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4899 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4900 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
4901 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
4902 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
4903 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
4904 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
4905 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
4906 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
4908 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
4909 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
4910 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
4911 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
4912 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
4913 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
4914 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
4916 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
4917 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
4919 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
4920 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
4921 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
4923 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
4924 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
4925 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
4926 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
4927 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
4928 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
4929 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
4930 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
4932 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
4933 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
4934 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
4936 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
4937 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
4939 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4941 * Versions.def (libc): Add GLIBC_2.3.
4942 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
4943 * stdlib/canonicalize.c: Add compatibility version for realpath
4944 and make new code available in GLIBC_2.3.
4946 2002-07-06 Bruno Haible <bruno@clisp.org>
4948 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
4950 2002-07-11 Ulrich Drepper <drepper@redhat.com>
4952 * resolv/res_hconf.c (_res_hconf_init): Move code into new
4953 function do_init. Use __libc_once.
4954 (do_init): New function.
4956 * iconvdata/iso8859-11.h: Removed.
4957 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
4958 (distribute): Remove iso8859-11.h.
4959 * iconvdata/tst-tables.sh: Add ISO-8859-11.
4961 * stdio-common/vfscanf.c (inchar): Restore errno from previous
4962 underflow operation if c == (W)EOF.
4964 2002-07-03 Jakub Jelinek <jakub@redhat.com>
4966 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
4967 non-zero, adjust exponent.
4968 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
4969 Remove NO_LONG_DOUBLE aliases.
4970 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
4971 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
4972 (__log1pl): Raise divide by zero and invalid exceptions when needed.
4973 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
4975 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
4976 Fix BITS_PER_MP_LIMB 32 extraction.
4977 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
4978 exceptions for qNaNs.
4979 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4980 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
4981 Raise exceptions when needed. Don't recurse unnecessarily.
4982 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
4983 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
4984 exceptions for qNaNs.
4985 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
4986 to fix *quo return value sign.
4987 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
4989 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
4991 2002-07-01 Jakub Jelinek <jakub@redhat.com>
4993 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
4994 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
4997 2002-07-10 Ulrich Drepper <drepper@redhat.com>
4999 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5002 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5003 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5005 * Versions.def (libthread_db): Add GLIBC_2.3.
5007 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5009 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5010 new stream if possible.
5011 * libio/freopen64.c (freopen64): Likewise.
5012 * libio/Makefile (tests): Add tst-freopen.
5013 * libio/tst-freopen.c: New file.
5015 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5017 * libio/stdio.h (obstack_printf): Add format attribute.
5018 (obstack_vprintf): Likewise.
5020 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5022 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5023 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5024 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5027 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5029 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5030 (init_dfa): ...here.
5032 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5034 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5035 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5036 nodes in parse trees.
5037 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5038 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5039 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5040 nodes which can epsilon transit.
5041 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5042 to IS_EPSILON_NODE macro.
5043 * posix/regexec.c (update_regs): New function to update registers
5044 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5045 (proceed_next_node): Use the entities of the nodes to determine
5046 whether the node can transit to.
5047 (set_regs): Use update_regs function to update registers.
5049 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5051 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5052 * posix/bug-regex6.c: New file.
5053 * posix/Makefile (tests): Add bug-regex6.
5054 (bug-regex6-ENV): Set LOCPATH.
5056 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5058 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5059 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5061 2002-07-06 Bruno Haible <bruno@clisp.org>
5063 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5065 2002-07-06 Bruno Haible <bruno@clisp.org>
5067 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5070 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5072 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5074 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5076 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5078 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5079 * sysdeps/generic/bits/ustat.h: Likewise.
5081 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5083 2002-07-08 Andreas Jaeger <aj@suse.de>
5085 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5087 2002-07-08 Andreas Jaeger <aj@suse.de>
5089 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5091 2002-07-06 Andreas Jaeger <aj@suse.de>
5093 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5094 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5095 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5096 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5097 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5098 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5099 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5100 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5101 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5102 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5103 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5105 2002-06-05 Brian Youmans <3diff@gnu.org>
5107 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5108 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5109 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5110 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5111 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5112 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5113 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5114 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5115 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5116 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5117 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5118 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5119 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5120 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5121 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5122 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5123 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5124 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5125 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5126 * sysdeps/ia64/fpu/e_log.S: Likewise.
5127 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5128 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5129 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5130 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5131 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5132 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5133 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5134 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5135 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5136 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5137 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5138 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5139 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5140 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5141 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5142 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5143 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5144 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5145 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5146 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5147 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5148 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5149 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5150 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5151 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5152 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5153 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5154 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5155 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5156 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5157 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5158 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5159 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5160 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5161 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5162 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5163 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5164 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5165 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5166 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5167 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5168 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5169 * sysdeps/ia64/fpu/s_round.S: Likewise.
5170 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5171 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5172 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5173 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5174 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5175 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5176 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5177 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5178 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5179 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5180 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5181 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5182 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5183 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5184 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5185 reflect IBM donation of math library to FSF
5186 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5187 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5188 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5189 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5190 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5191 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5192 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5193 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5194 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5195 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5196 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5197 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5198 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5199 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5200 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5201 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5202 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5203 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5204 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5205 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5206 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5207 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5208 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5209 * sysdeps/vax/__longjmp.c: Likewise.
5210 * sysdeps/vax/setjmp.c: Likewise.
5211 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5212 remove advertising clause
5213 * sysdeps/vax/htonl.s: Likewise.
5214 * sysdeps/vax/htons.s: Likewise.
5215 * libio/wfiledoalloc.c: Likewise.
5216 * stdlib/random.c: Likewise.
5217 * stdlib/random_r.c: Likewise.
5218 * sysdeps/mach/sys/reboot.h: Likewise.
5219 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5220 * sysdeps/posix/getaddrinfo.c: Likewise.
5221 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5222 GPL and corrected pointer to point to the correct license.
5224 2002-07-04 Andreas Jaeger <aj@suse.de>
5226 * scripts/config.guess: New upstream version.
5227 * scripts/config.sub: Likewise.
5229 2002-07-02 Andreas Schwab <schwab@suse.de>
5231 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5232 in parallel to bumping up the buffer pointer.
5234 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5236 * math/libm-test.inc (acos_test): Add missing L suffix for
5238 (cpow_test): Likewise.
5239 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5240 error for acos (0.0625).
5242 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5244 * locale/iso-639.def: Add entry for Ganda.
5245 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5247 (address_finish): Handle entries with two letter ISO 639 code.
5249 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5250 directory if it existed before.
5251 * iconv/iconvconfig.c: Implement --prefix option.
5253 * math/libm-test.inc (cexp_test): Add missing L suffix for
5254 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5255 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5258 2002-05-29 H.J. Lu <hjl@gnu.org>
5260 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5263 2002-05-28 H.J. Lu <hjl@gnu.org>
5265 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5266 are not dlopened on the dependency list of a dlopened object.
5268 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5270 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5271 dependencies if they are created between objects which are created
5272 while processing RTLD_NOW for objects loaded as part of the same
5275 2002-06-14 H.J. Lu <hjl@gnu.org>
5277 * elf/Makefile (tests): Add circleload1.
5278 (modules-names): Add circlemod1, circlemod2, circlemod3,
5279 circlemod1a, circlemod2a and circlemod3a.
5280 ($(objpfx)circleload1): New target.
5281 ($(objpfx)circleload1.out): Likewise.
5282 ($(objpfx)circlemod1.so): Likewise.
5283 ($(objpfx)circlemod2.so): Likewise.
5284 ($(objpfx)circlemod1a.so): Likewise.
5285 ($(objpfx)circlemod2a.so): Likewise.
5286 * elf/circleload1.c: New file.
5287 * elf/circlemod1.c: New file.
5288 * elf/circlemod1a.c: New file.
5289 * elf/circlemod2.c: New file.
5290 * elf/circlemod2a.c: New file.
5291 * elf/circlemod3.c: New file.
5292 * elf/circlemod3a.c: New file.
5294 2002-06-18 Amos Waterland <apw@us.ibm.com>
5296 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5298 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5299 add check for fd not open for writing.
5301 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5302 completed element(s) and do not suspend thread if so. Patch
5303 heavily modified by drepper.
5305 * rt/tst-aio7.c: New file. Regression test for problems which the
5306 above three changes fix.
5307 * rt/Makefile (tests): Add tst-aio7.
5309 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5311 * rt/tst-aio6.c: Fix comment.
5313 * catgets/gencat.c (read_input_file): Handle more than one slash
5314 at end of line correctly [PR libc/3926].
5315 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5317 * catgets/sample.SJIS: Add test case for above bug.
5318 * catgets/test-gencat.c: Adjust test code.
5319 * catgets/test-gencat.sh: Adjust expected results.
5321 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5322 to skip relative relocations.
5323 Patch by Geoff Keating <geoffk@redhat.com>.
5325 2002-05-26 Bruno Haible <bruno@clisp.org>
5327 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5328 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5329 All callers changed.
5330 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5331 STANDARD_FROM_LOOP_ERR_HANDLER.
5332 (utf8_internal_loop): Likewise.
5333 (ucs2_internal_loop): Likewise.
5334 (internal_ucs2_loop): Perform error handling like in
5335 STANDARD_FROM_LOOP_ERR_HANDLER.
5336 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5337 in STANDARD_FROM_LOOP_ERR_HANDLER.
5338 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5340 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5341 in STANDARD_FROM_LOOP_ERR_HANDLER.
5342 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5344 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5345 in STANDARD_FROM_LOOP_ERR_HANDLER.
5346 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5348 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5349 STANDARD_FROM_LOOP_ERR_HANDLER.
5350 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5351 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5352 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5353 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5354 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5355 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5356 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5357 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5358 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5359 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5360 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5361 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5362 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5363 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5364 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5365 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5366 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5367 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5368 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5369 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5370 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5371 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5372 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5373 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5374 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5375 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5376 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5377 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5378 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5379 an error, still set result = __GCONV_ILLEGAL_INPUT.
5380 (BODY for TO_LOOP): Likewise.
5381 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5382 STANDARD_FROM_LOOP_ERR_HANDLER.
5383 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5384 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5385 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5387 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5388 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5389 STANDARD_FROM_LOOP_ERR_HANDLER.
5390 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5391 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5392 STANDARD_FROM_LOOP_ERR_HANDLER.
5393 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5394 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5395 STANDARD_FROM_LOOP_ERR_HANDLER.
5396 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5397 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5398 STANDARD_FROM_LOOP_ERR_HANDLER.
5399 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5400 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5401 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5403 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5404 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5405 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5406 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5408 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5410 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5411 labels in assembler instructions.
5413 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5415 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5416 not enough content is available.
5417 * libio/tst-eof.c: New file.
5418 * libio/Makefile (tests): Add tst-eof.
5420 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5422 * libio/tst-atime.c: New file.
5423 * libio/Makefile (tests): Add tst-atime.
5425 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5426 handling of overly long words.
5428 2002-06-25 Andreas Jaeger <aj@suse.de>
5430 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5431 to not use 32-bit pc relative relocations.
5432 (elf_machine_dynamic): Likewise.
5434 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5436 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5437 (__GETDENTS): Check for failed getdents64 syscall.
5438 * dirent/Makefile (tests): Add bug-readdir1.
5439 * dirent/bug-readdir1.c: New file.
5441 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5443 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5445 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5446 code. Print TLS modid and offset for modules containing PT_TLS
5449 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5451 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5452 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5453 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5454 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5456 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5458 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5459 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5460 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5461 * nss/getXXent_r.c (NEW, NEW1): Define.
5462 (NEW (REENTRANT_GETNAME)): Strong alias to
5463 INTERNAL (REENTRANT_GETNAME).
5464 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5466 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5468 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5469 (_IO_file_jumps_mmap): Use it.
5470 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5471 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5472 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5474 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5475 (_IO_wfile_jumps_mmap): Don't use it anymore.
5476 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5477 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5478 _IO_wdefault_setbuf.
5479 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5480 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5481 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5483 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5485 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5486 * libio/tst-mmap-setvbuf.c: New test.
5488 2002-06-21 Andreas Jaeger <aj@suse.de>
5490 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5492 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5494 * include/unistd.h (__fork_internal): Remove.
5495 (__fork): Don't define to __fork_internal.
5496 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5497 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5498 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5499 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5500 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5502 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5504 * po/hr.po: New file.
5506 2002-06-11 Wolfram Gloger <wg@malloc.de>
5508 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5509 Reported by Michael Meissner <meissner@redhat.com>.
5511 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5513 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5514 Patch by Hans Boehm <hans_boehm@hp.com>.
5516 2002-06-20 Andreas Jaeger <aj@suse.de>
5518 * math/libm-test.inc: Use exact values as input parameters,
5519 compute output parameters with 36 digits for 128-bit long doubles.
5520 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5521 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5522 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5524 2002-06-13 Stephen L Moshier <steve@moshier.net>
5526 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5527 argument or result is subnormal.
5529 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5531 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5533 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5534 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5536 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5538 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5540 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5541 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5542 Reported by Peter A. Buhr.
5544 2002-06-15 Roland McGrath <roland@frob.com>
5546 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5549 * sysdeps/mach/hurd/getcwd.c
5550 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5552 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5553 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5555 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5556 jump to local subroutine.
5558 2002-06-14 Roland McGrath <roland@frob.com>
5560 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5561 * sysdeps/mach/hurd/Makeconfig: ... here.
5563 2002-06-13 Andreas Schwab <schwab@suse.de>
5565 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5566 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5567 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5569 2002-06-13 Roland McGrath <roland@frob.com>
5571 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5572 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5573 Use intptr_t instead of int for argc in stack layout.
5574 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5575 (_dl_init_first): Likewise.
5576 (_hurd_stack_setup): Likewise.
5577 (init1): Add a cast.
5578 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5580 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5581 argument to pfinet_siocgifconf RPC.
5583 2002-06-13 Andreas Schwab <schwab@suse.de>
5585 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5588 2002-06-12 Roland McGrath <roland@frob.com>
5590 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5592 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5593 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5595 2002-06-11 Roland McGrath <roland@frob.com>
5597 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5598 file on [!RTLD_STAT64].
5599 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5601 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5602 (__fdopen): Use INTUSE.
5603 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5605 * stdio-common/tmpfile64.c: File removed.
5606 * sysdeps/generic/tmpfile64.c: New file.
5607 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5608 if not already defined.
5609 (tmpfile): Use it in place of __GT_FILE.
5611 * include/unistd.h: Declare __chown_internal.
5613 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5614 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5616 2002-06-09 Roland McGrath <roland@frob.com>
5618 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5619 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5620 value of HURD_INTERFACE_VERSION >= 20020609.
5621 * sysdeps/mach/hurd/configure: Regenerated.
5622 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5623 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5624 convert a struct stat64 into a struct stat and return 0 or -1
5625 with errno set to EOVERFLOW.
5626 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5627 for struct statfs64 to struct statfs.
5628 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5629 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5630 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5631 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5632 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5633 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5634 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5635 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5636 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5637 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5638 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5639 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5640 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5641 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5642 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5643 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5644 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5645 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5646 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5647 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5648 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5649 Use struct stat64 for io_stat argument.
5650 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5651 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5653 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5654 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5655 * hurd/hurd/fd.h: Update decls.
5656 * sysdeps/mach/hurd/getcwd.c
5657 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5658 and struct dirent64.
5659 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5660 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5661 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5662 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5664 2002-06-08 Roland McGrath <roland@frob.com>
5666 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5667 instead of unsigned long int for __allocation and __size members.
5669 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5671 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5672 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5673 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5674 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5676 2002-06-07 Roland McGrath <roland@frob.com>
5678 * sysdeps/mach/hurd/bits/environments.h: File removed.
5680 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5682 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5683 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5684 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5685 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5686 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5687 (sendfile64): Likewise.
5688 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5689 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5690 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5692 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5694 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5697 2002-06-04 Bruno Haible <bruno@clisp.org>
5699 * sysdeps/cris/stackinfo.h: New file.
5701 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5702 to an integer type before performing bit operations on it.
5704 2002-06-05 Roland McGrath <roland@frob.com>
5706 * sysdeps/generic/sendfile.c: Include <errno.h>.
5707 * sysdeps/generic/sendfile64.c: Likewise.
5709 * io/Makefile (routines): Add sendfile and sendfile64.
5710 (headers): Add sys/sendfile.h to the list.
5711 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5712 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5713 * io/sys/sendfile.h: ... here.
5714 * sysdeps/generic/sendfile.c: New file.
5715 * sysdeps/generic/sendfile64.c: New file.
5717 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5718 Move sendfile, sendfile64 to ...
5719 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5720 * sysdeps/mach/hurd/sendfile.c: New file.
5721 * sysdeps/mach/hurd/sendfile64.c: New file.
5723 * sysdeps/mach/nanosleep.c: New file.
5725 2002-06-04 Roland McGrath <roland@frob.com>
5727 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5728 * sysdeps/alpha/elf/configure: New file (generated).
5730 2002-06-02 Roland McGrath <roland@frob.com>
5732 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5734 2002-06-01 Roland McGrath <roland@frob.com>
5736 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5737 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5739 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5741 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5743 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5744 Remove nstimes setting.
5745 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5746 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5747 there is mix of IPv6 and IPv4 nameservers.
5748 Use nsmap array to find free slots and preserve nameserver ordering.
5751 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5753 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5754 use this header with LFS.
5756 * po/sk.po: Update from translation team.
5758 2002-05-28 Andreas Schwab <schwab@suse.de>
5760 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5761 message when finding object of wrong class.
5763 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5765 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5766 Patch by <radu@netsoft.ro>.
5768 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5770 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5772 * sysdeps/unix/sysv/linux/readahead.c: New file.
5773 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5774 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5775 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5776 Add sendfile64 alias to sendfile syscall.
5777 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5778 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5779 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5780 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5783 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5784 special section for PIC register loading.
5785 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5787 * config.h.in: Define HAVE_HIDDEN.
5788 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5790 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5792 2002-05-28 Roland McGrath <roland@frob.com>
5794 * sysdeps/mach/alpha/setfpucw.c: New file.
5796 2002-05-26 Roland McGrath <roland@frob.com>
5798 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5799 Use integer_t instead of int for IOC_VOID case.
5801 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5803 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5805 2002-05-26 Bruno Haible <bruno@clisp.org>
5807 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5808 end of the ISO-8859-7 from idx table.
5810 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5812 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5814 2002-05-24 David S. Miller <davem@redhat.com>
5816 * string/bits/string2.h (memset): Do not try to optimize when
5817 not _STRING_ARCH_unaligned if GCC will do the right thing.
5819 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5821 * posix/regex.c: Define `inline' as a macro into nothing for the
5822 compilers which lack the keyword.
5823 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5824 for the compatibility of gawk.
5825 * posix/regcomp.c: Add fake implementation of isblank() for the
5826 environments which lack the function.
5827 Don't use free_charset() in case of non-i18n envs.
5828 (build_range_exp): Don't use i18n related code in case of non-i18n
5830 (build_collating_symbol): Likewise.
5831 (build_equiv_class): Likewise.
5832 (build_charclass): Likewise.
5833 (re_compile_fastmap_iter): Likewise.
5834 (parse_bracket_exp): Likewise.
5835 (build_word_op): Likewise.
5836 (regfree): Don't use free_charset() in case of non-i18n envs.
5837 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5838 re_token_type_t in case of non-i18n envs.
5839 Don't define re_charset_t in case of non-i18n envs.
5840 Change the type of wcs of re_string_t from wchar_t to wint_t,
5841 since we store also WEOF.
5842 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5843 the type of wcs of re_string_t from wchar_t to wint_t.
5844 (re_string_reconstruct): Likewise.
5845 (create_ci_newstate): Don't use i18n related code in case of
5847 (create_cd_newstate): Likewise.
5849 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5851 * iconv/loop.c: Fix typo.
5853 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5855 * inet/ether_line.c (ether_line): Fix a typo causing only
5856 lower 4 bits of each ethernet address byte being assigned.
5857 Don't modify what line points to.
5858 * inet/tst-ether_aton.c (main): Add ether_line tests.
5860 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5862 * manual/filesys.texi: Don't make readlink example leak memory
5863 when readlink fails.
5865 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5867 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5868 some more security checks.
5870 2002-05-17 David S. Miller <davem@redhat.com>
5872 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5874 2002-05-16 David S. Miller <davem@redhat.com>
5876 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5877 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5878 (elf_machine_load_address): Likewise.
5879 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5881 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5882 is unaligned, do not forget to fully initialize %g1 magic value.
5884 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5885 register definitions and provide 32-bit variants of structures
5886 during 64-bit builds.
5888 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5889 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5890 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5891 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5892 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5893 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5894 Do not clear implicit one bit here, it must be done post-rounding.
5895 Only pad to the left using left shift if value uses less than the
5896 available fractional bits.
5898 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5900 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
5901 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
5902 (shared-only-routines): Likewise.
5903 * sysdeps/powerpc/libgcc-compat.c: New file.
5904 * sysdeps/wordsize-32/cmpdi2.c: Removed.
5905 * sysdeps/wordsize-32/fixdfdi.c: Removed.
5906 * sysdeps/wordsize-32/fixsfdi.c: Removed.
5907 * sysdeps/wordsize-32/shdi3.c: Removed.
5909 2002-05-16 Bruno Haible <bruno@clisp.org>
5911 * MakeTAGS (libc.pot): Don't sort the output.
5912 * po/header.pot: Update to match xgettext 0.11 output.
5914 2002-05-16 Bruno Haible <bruno@clisp.org>
5916 * MakeTAGS (subdirs): Remove duplicates.
5918 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5920 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
5921 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
5924 2002-05-19 Andreas Jaeger <aj@suse.de>
5926 * sysdeps/unix/sysv/linux/configure.in: Warn against an
5927 installation in /usr/local.
5929 2002-05-16 Bruno Haible <bruno@clisp.org>
5931 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
5932 string as argument of #error.
5934 2002-05-15 Ulrich Drepper <drepper@redhat.com>
5936 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
5937 don't define static. Remove old __realpath function. TC1 of
5938 POSIX 2001 will allow the second parameter to be NULL.
5939 * stdlib/test-canon.c: Comment out test for NULL as second
5940 parameter of realpath.
5942 * time/offtime.c (__offtime): Set errno if overflow is detected.
5944 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
5945 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
5948 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
5951 2002-05-15 Roland McGrath <roland@frob.com>
5953 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
5955 2002-05-12 Bruno Haible <bruno@clisp.org>
5957 * iconvdata/testdata/EUC-JISX0213: New file.
5958 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
5959 * iconvdata/testdata/SHIFT_JISX0213: New file.
5960 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
5961 * iconvdata/testdata/ISO-2022-JP-3: New file.
5962 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
5963 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
5964 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
5965 contains comments indicating precomposed characters.
5967 2002-04-21 Bruno Haible <bruno@clisp.org>
5969 * iconvdata/iso-2022-jp-3.c: New file.
5970 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
5971 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
5972 (LDFLAGS-ISO-2022-JP-3.so): New variable.
5973 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
5974 (distribute): Add iso-2022-jp-3.c.
5976 2002-05-12 Bruno Haible <bruno@clisp.org>
5978 * iconvdata/tst-table-to.c (main): Restore handling of
5979 transliterations, broken by last patch.
5981 2002-05-12 Bruno Haible <bruno@clisp.org>
5983 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
5985 2002-05-12 Bruno Haible <bruno@clisp.org>
5987 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
5988 when there is not enough room in the output buffer.
5989 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5991 2002-04-20 Bruno Haible <bruno@clisp.org>
5993 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
5995 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5996 Also make this macro work if FROM_DIRECTION evaluates to 0.
5997 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
5998 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
5999 of consume_incomplete.
6000 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6001 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6003 * iconvdata/cp1258.c: Likewise.
6004 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6005 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6007 * iconvdata/ibm933.c: Likewise.
6008 * iconvdata/ibm935.c: Likewise.
6009 * iconvdata/ibm937.c: Likewise.
6010 * iconvdata/ibm939.c: Likewise.
6011 * iconvdata/iso-2022-cn.c: Define
6012 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6013 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6014 * iconvdata/iso-2022-cn-ext.c: Likewise.
6015 * iconvdata/iso-2022-jp.c: Define
6016 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6017 {MIN,MAX}_NEEDED_{FROM,TO}.
6018 * iconvdata/tcvn5712-1.c: Define
6019 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6020 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6021 * iconvdata/euc-jisx0213.c: Define
6022 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6023 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6024 * iconvdata/shift_jisx0213.c: Likewise.
6026 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6028 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6029 shdi3, fixdfdi, fixsfdi in csu dir.
6030 (shared-only-routines): Likewise.
6031 * sysdeps/wordsize-32/cmpdi2.c: New file.
6032 * sysdeps/wordsize-32/shdi3.c: New file.
6033 * sysdeps/wordsize-32/fixdfdi.c: New file.
6034 * sysdeps/wordsize-32/fixsfdi.c: New file.
6035 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6036 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6037 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6039 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6040 Only use va_arg if the argument will be used [PR libc/3259].
6042 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6044 * catgets/catgets.c (catopen): Free buffer if internal catalog
6047 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6049 * debug/xtrace.sh: Make more robust. For realtime tracking use
6050 non-buffering methods.
6051 * debug/pcprofiledump.c: Implement -u option.
6052 Patch by Roger Luethi <rl@hellgate.ch>.
6054 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6056 * include/netinet/in.h (bindresvport_internal): Add prototype.
6057 * include/rpc/auth.h (authunix_create_internal,
6058 authunix_create_default_internal, authnone_create_internal,
6059 authdes_pk_create_internal): Add prototypes.
6060 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6061 clntudp_create_internal, clntudp_bufcreate_internal,
6062 clntunix_create_internal): Add prototypes.
6063 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6064 svc_getreq_internal, svc_getreq_common_internal,
6065 svc_getreqset_internal, svc_getreq_poll_internal,
6066 svc_register_internal, svc_unregister_internal,
6067 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6068 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6069 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6070 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6071 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6072 * inet/rcmd.c (rcmd_af): Use __listen.
6073 (rresvport_af): Use __bind.
6074 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6075 authunix_create, authunix_create_default, authnone_create,
6076 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6077 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6078 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6079 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6080 _authenticate, add INTDEF after such function definitions.
6081 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6082 __setsockopt, __getsockname instead of non-__ variants.
6083 * sunrpc/pmap_rmt.c: Likewise.
6084 * sunrpc/rtime.c: Likewise.
6085 * sunrpc/svc_udp.c: Likewise.
6086 * sunrpc/clnt_unix.c: Likewise.
6087 * sunrpc/svc_unix.c: Likewise.
6088 * sunrpc/bindrsvprt.c: Likewise.
6089 * sunrpc/svc_tcp.c: Likewise.
6090 * sunrpc/auth_none.c: Likewise.
6091 * sunrpc/clnt_raw.c: Likewise.
6092 * sunrpc/clnt_tcp.c: Likewise.
6093 * sunrpc/auth_unix.c: Likewise.
6094 * sunrpc/key_call.c: Likewise.
6095 * sunrpc/clnt_gen.c: Likewise.
6096 * sunrpc/pm_getmaps.c: Likewise.
6097 * sunrpc/clnt_simp.c: Likewise.
6098 * sunrpc/pmap_clnt.c: Likewise.
6099 * sunrpc/svc_run.c: Likewise.
6100 * sunrpc/svc.c: Likewise.
6101 * sunrpc/svc_simple.c: Likewise.
6102 * sunrpc/pm_getport.c: Likewise.
6103 * sunrpc/auth_des.c: Likewise.
6104 * sunrpc/svc_auth.c: Likewise.
6105 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6106 __register_frame_info_table_bases, __deregister_frame_info_bases):
6108 (__register_frame_info_bases_internal,
6109 __register_frame_info_table_bases_internal,
6110 __deregister_frame_info_bases_internal): Add prototypes.
6111 (__register_frame_info, __register_frame): Use INTUSE in call to
6112 __register_frame_info_bases.
6113 (__register_frame_info_table): Similarly.
6114 (__deregister_frame_info, __deregister_frame): Similarly.
6115 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6116 sendto as weak alias.
6117 * sysdeps/mach/hurd/sendto.c: Likewise.
6118 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6119 recvfrom as weak alias.
6120 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6121 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6122 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6123 recvmsg as weak alias.
6124 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6125 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6126 sendmsg as weak alias.
6127 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6128 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6129 setsockopt, add setsockopt as weak alias.
6130 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6131 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6133 * sysdeps/mach/hurd/bind.c: Likewise.
6134 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6136 * sysdeps/mach/hurd/listen.c: Likewise.
6137 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6138 getsockname, add getsockname as weak alias.
6139 * sysdeps/mach/hurd/getsockname.c: Likewise.
6140 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6141 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6142 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6143 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6144 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6145 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6147 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6148 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6149 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6150 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6151 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6152 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6153 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6154 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6155 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6156 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6157 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6158 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6160 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6162 * locale/programs/localedef.h (show_archive_content): Add verbose
6164 * locale/programs/localedef.c (main): Adjust caller.
6165 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6167 (nameentcmp, dataentcmp): New functions.
6169 (show_archive_content): Print verbose listing with --list-archive -v.
6171 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6173 * locale/programs/locarchive.c (open_archive): Take extra argument
6174 readonly. If true open file with O_RDONLY and don't create the
6175 archive if it doesn't exist.
6177 (close_archive): Don't do anything if fd element is -1.
6178 * locale/programs/localedef.h (open_archive): Adjust prototype.
6179 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6182 * malloc/malloc.c (__posix_memalign): Correct check for size of
6183 alignment value [PR libc/3444].
6185 * include/stdio.h: Remove references to old stdio implementation.
6187 * libio/Makefile (bug-ungetwc2-ENV): Define.
6189 2002-05-13 Roland McGrath <roland@frob.com>
6191 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6193 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6195 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6197 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6198 Allocate three, not two, more than LEN when appending '/.'.
6199 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6200 if NAME ends with '/.' if it is shorter than 2 chars.
6202 2002-05-12 Roland McGrath <roland@frob.com>
6204 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6205 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6207 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6208 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6210 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6212 * sysdeps/ia64/Makefile: Remove extra endif.
6213 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6215 2002-05-10 Andreas Schwab <schwab@suse.de>
6217 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6219 2002-05-09 Andreas Jaeger <aj@suse.de>
6221 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6222 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6223 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6225 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6226 * sysdeps/wordsize-64/glob.c: ...here.
6227 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6228 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6229 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6231 2002-05-08 Roland McGrath <roland@frob.com>
6233 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6234 O_NOTRANS flag in "." lookup.
6236 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6238 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6240 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6242 * locale/duplocale.c (__duplocale): Update special members only
6243 when allocation succeeded.
6245 2002-05-03 Roland McGrath <roland@frob.com>
6247 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6248 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6250 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6252 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6253 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6254 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6255 * sysdeps/ia64/ia64libgcc.S: New file.
6257 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6259 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6261 * malloc/memusage.c: Distinguish anonymous mmap.
6263 2002-05-01 Roland McGrath <roland@frob.com>
6265 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6266 and use INTDEF on it.
6267 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6269 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6271 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6273 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6275 * malloc/memusage.c: Add support for tracking mmap & friends.
6276 * malloc/memusage.sh: Implement -m/--mmap option.
6278 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6280 * locale/programs/locarchive.c (create_archive): Add archivefname
6281 argument, create fname from it.
6282 (enlarge_archive): Honour output_prefix.
6283 (open_archive): Likewise.
6285 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6287 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6288 too many stpcpy macros.
6290 2002-04-26 Bruno Haible <bruno@clisp.org>
6292 * locale/programs/ld-collate.c (collate_read): Cast first argument
6295 2002-04-26 Bruno Haible <bruno@clisp.org>
6297 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6298 __dcngettext_internal): New declarations.
6299 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6300 attribute declarations.
6302 2002-04-30 Roland McGrath <roland@frob.com>
6304 Removed old GNU stdio implementation; GNU libio is now the only option.
6305 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6306 Define USE_IN_LIBIO unconditionally.
6307 * configure: Regenerated.
6308 * Makeconfig (stdio): Set to libio by default.
6309 * config.make.in (stdio): Variable removed.
6310 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6311 * sysdeps/unix/sysv/linux/configure: Regenerated.
6312 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6313 * sysdeps/mach/hurd/configure: Regenerated.
6314 * stdio/.cvsignore: File removed.
6315 * stdio/Makefile: File removed.
6316 * stdio/Versions: File removed.
6317 * stdio/__fbufsize.c: File removed.
6318 * stdio/__flbf.c: File removed.
6319 * stdio/__fpending.c: File removed.
6320 * stdio/__fpurge.c: File removed.
6321 * stdio/__freadable.c: File removed.
6322 * stdio/__freading.c: File removed.
6323 * stdio/__fsetlocking.c: File removed.
6324 * stdio/__fwritable.c: File removed.
6325 * stdio/__fwriting.c: File removed.
6326 * stdio/clearerr.c: File removed.
6327 * stdio/fclose.c: File removed.
6328 * stdio/fcloseall.c: File removed.
6329 * stdio/feof.c: File removed.
6330 * stdio/ferror.c: File removed.
6331 * stdio/fflush.c: File removed.
6332 * stdio/fgetc.c: File removed.
6333 * stdio/fgetpos.c: File removed.
6334 * stdio/fgets.c: File removed.
6335 * stdio/fileno.c: File removed.
6336 * stdio/fmemopen.c: File removed.
6337 * stdio/fopen.c: File removed.
6338 * stdio/fopncook.c: File removed.
6339 * stdio/fputc.c: File removed.
6340 * stdio/fputs.c: File removed.
6341 * stdio/fread.c: File removed.
6342 * stdio/freopen.c: File removed.
6343 * stdio/fseek.c: File removed.
6344 * stdio/fsetpos.c: File removed.
6345 * stdio/ftell.c: File removed.
6346 * stdio/fwrite.c: File removed.
6347 * stdio/getc.c: File removed.
6348 * stdio/getchar.c: File removed.
6349 * stdio/getdelim.c: File removed.
6350 * stdio/gets.c: File removed.
6351 * stdio/glue.c: File removed.
6352 * stdio/internals.c: File removed.
6353 * stdio/linewrap.c: File removed.
6354 * stdio/linewrap.h: File removed.
6355 * stdio/memstream.c: File removed.
6356 * stdio/newstream.c: File removed.
6357 * stdio/obstream.c: File removed.
6358 * stdio/putc.c: File removed.
6359 * stdio/putchar.c: File removed.
6360 * stdio/puts.c: File removed.
6361 * stdio/rewind.c: File removed.
6362 * stdio/setbuf.c: File removed.
6363 * stdio/setbuffer.c: File removed.
6364 * stdio/setlinebuf.c: File removed.
6365 * stdio/setvbuf.c: File removed.
6366 * stdio/stdio.h: File removed.
6367 * stdio/ungetc.c: File removed.
6368 * stdio/vasprintf.c: File removed.
6369 * stdio/vscanf.c: File removed.
6370 * stdio/vsnprintf.c: File removed.
6371 * stdio/vsprintf.c: File removed.
6372 * stdio/vsscanf.c: File removed.
6373 * sysdeps/generic/defs.c: File removed.
6374 * sysdeps/generic/fdopen.c: File removed.
6375 * sysdeps/generic/pipestream.c: File removed.
6376 * sysdeps/generic/stdio_init.c: File removed.
6377 * sysdeps/generic/sysd-stdio.c: File removed.
6378 * sysdeps/generic/vdprintf.c: File removed.
6379 * sysdeps/mach/hurd/defs.c: File removed.
6380 * sysdeps/mach/hurd/fdopen.c: File removed.
6381 * sysdeps/mach/hurd/pipestream.c: File removed.
6382 * sysdeps/mach/hurd/stdio_init.c: File removed.
6383 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6384 * sysdeps/mach/hurd/vdprintf.c: File removed.
6385 * sysdeps/posix/defs.c: File removed.
6386 * sysdeps/posix/fdopen.c: File removed.
6387 * sysdeps/posix/pipestream.c: File removed.
6388 * sysdeps/posix/stdio_init.c: File removed.
6389 * sysdeps/posix/vdprintf.c: File removed.
6390 * sysdeps/unix/pipestream.c: File removed.
6391 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6392 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6393 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6395 2002-04-29 Roland McGrath <roland@frob.com>
6397 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6399 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6401 * sysdeps/generic/tls.h: Describe what must be defined.
6403 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6404 glob_in_dir [PR libc/3385].
6405 * posix/globtest.sh: Add test case.
6407 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6410 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6412 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6413 _internal symbol handling.
6414 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6416 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6418 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6419 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6421 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6423 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6424 not _LIBC and RE_ENABLE_I18N.
6425 (build_range_exp): Implement for not _LIBC.
6426 (build_collating_symbol): Likewise.
6427 (parse_bracket_exp): Unify redundant error handlings.
6428 Don't erase mbcset for non matching list in multibyte envs.
6429 (build_word_op): Add '_' to matching list for \w operator.
6430 * posix/regex_internal.c (re_string_construct): Invoke
6431 build_upper_buffer in case of not RE_ENABLE_I18N.
6432 (re_string_reconstruct): Don't touch cur_state in case of not
6434 * posix/regex_internal.h (attribute_hidden): New macro in case of
6436 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6437 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6439 (transit_state_mb): Likewise.
6440 (check_node_accept_bytes): Implement the code evaluating range
6441 expression in case of not _LIBC.
6442 (find_collation_sequence_value): Hide in case of not _LIBC.
6444 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6446 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6448 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6451 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6453 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6455 * sysdeps/ia64/strncpy.S: Fix recovery code.
6456 Patch by David Mosberger <davidm@hpl.hp.com>.
6458 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6460 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6463 2002-04-14 Bruno Haible <bruno@clisp.org>
6465 * posix/regex.c (re_max_failures): Add back symbol for binary
6468 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6470 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6471 of buffer building functions.
6472 * posix/regex_internal.c (re_string_allocate): New function.
6473 (re_string_realloc_buffers): New function.
6474 (re_string_skip_chars): New function.
6475 (re_string_reconstruct): New function.
6476 (re_string_construct): Adapt it to new interface of buffer building
6478 (re_string_construct_common): Likewise.
6479 (build_wcs_buffer): Likewise.
6480 (build_wcs_upper_buffer): Likewise.
6481 (build_upper_buffer): Likewise.
6482 (re_string_translate_buffer): Likewise.
6483 (re_string_context_at): Adapt it to variable length buffers.
6484 * posix/regex_internal.h (re_string_t): Add new fields to handle
6485 variable length buffers.
6486 (re_match_context_t): Likewise.
6487 * posix/regexec.c (re_search_internal): Adapt it to new interface
6488 of re_string_t and re_match_context_t.
6489 (acquire_init_state_context): Likewise.
6490 (check_matching): Likewise.
6491 (check_halt_state_context): Likewise.
6492 (proceed_next_node): Likewise.
6493 (set_regs): Likewise.
6494 (sift_states_backward): Likewise.
6495 (clean_state_log_if_need): Likewise.
6496 (sift_states_iter_mb): Likewise.
6497 (sift_states_iter_bkref): Likewise.
6498 (add_epsilon_backreference): Likewise.
6499 (transit_state): Likewise.
6500 (transit_state_sb): Likewise.
6501 (transit_state_mb): Likewise.
6502 (transit_state_bkref): Likewise.
6503 (transit_state_bkref_loop): Likewise.
6504 (check_node_accept): Likewise.
6505 (match_ctx_init): Likewise.
6506 (extend_buffers): New function.
6508 2002-04-21 Bruno Haible <bruno@clisp.org>
6510 * iconvdata/tst-table.sh: For the second check, use the truncated
6511 GB18030 charmap table, like for the first check.
6513 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6515 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6516 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6518 2002-04-23 H.J. Lu <hjl@gnu.org>
6520 * include/math.h (isfinite): Fix a typo.
6522 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6524 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6525 which is created by the test suite.
6527 2002-04-20 Bruno Haible <bruno@clisp.org>
6529 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6530 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6532 2002-04-20 Bruno Haible <bruno@clisp.org>
6534 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6535 to avoid gcc warning.
6537 2002-04-20 Bruno Haible <bruno@clisp.org>
6539 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6540 of data->__statep->__count.
6542 2002-04-20 Bruno Haible <bruno@clisp.org>
6544 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6546 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6548 2002-04-24 Roland McGrath <roland@frob.com>
6550 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6551 use END macro instead of our own .end directive.
6552 Use `callsys' insn mnemonic instead of `call_pal'.
6554 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6556 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6557 macro; we need this for Hurd.
6559 Log entry was missing for 2002/03/24 commit of rev 1.8,
6560 goes with 2002-03-17 changes.
6561 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6562 (sysdep_routines): Append ioperm here.
6563 (sysdep_headers): Append sys/io.h here.
6565 2002-04-23 Roland McGrath <roland@frob.com>
6567 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6568 * sysdeps/mach/hurd/sendto.c: Likewise.
6569 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6570 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6571 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6573 2002-04-22 Roland McGrath <roland@frob.com>
6575 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6576 failure from i386_io_perm_* RPCs to ENOSYS.
6578 2002-04-22 Andreas Jaeger <aj@suse.de>
6580 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6582 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6584 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6585 register instead of destroying %rbx.
6587 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6589 * string/string.h: Declare strerror_r also for XPG6.
6591 2002-04-19 Roland McGrath <roland@frob.com>
6593 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6595 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6597 * Makefile: Add handling of xtests and xcheck targets.
6598 * MakeTAGS: Likewise.
6599 * Makeconfig: Likewise.
6600 * Makerules: Likewise.
6602 * manual/Makefile: Likewise.
6603 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6604 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6606 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6608 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6610 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6611 Delete #ifdef _RPC_THREAD_SAFE_ block.
6612 (authnone_private): Make a struct, not a pointer to struct.
6613 (authnone_private_guard): New once-control variable.
6614 (authnone_create_once): New function, split out of
6615 authnone_create. No need to allocate memory.
6616 (authnone_create): Just call authnone_create_once via
6617 __libc_once, then return &authnone_private->no_client.
6618 (authnone_marshal): Access private data via CLIENT argument,
6619 not authnone_private pointer.
6620 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6621 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6624 2002-04-12 H.J. Lu <hjl@gnu.org>
6626 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6628 2002-04-18 Bruno Haible <bruno@clisp.org>
6630 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6631 FROM_DIRECTION): Make the FROM direction stateless.
6632 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6633 FROM_DIRECTION): Likewise.
6635 2002-04-15 Bruno Haible <bruno@clisp.org>
6637 * iconvdata/JISX0213.TXT: New file.
6638 * iconvdata/jisx0213.h: New file.
6639 * iconvdata/jisx0213.c: New file.
6640 * iconvdata/euc-jisx0213.c: New file.
6641 * iconvdata/shift_jisx0213.c: New file.
6642 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6643 * iconvdata/EUC-JISX0213.precomposed: New file.
6644 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6645 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6646 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6647 which the "to" direction is stateful.
6648 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6649 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6651 (libJISX0213-routines): New variable.
6652 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6653 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6654 (LDFLAGS-libJISX0213.so): New variable.
6655 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6656 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6657 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6659 2002-04-15 Bruno Haible <bruno@clisp.org>
6661 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6662 uint32_t. Update to Unicode 3.2.
6663 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6664 (BODY for TO_LOOP): Handle the ASCII range specially.
6665 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6666 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6667 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6669 2002-04-15 Bruno Haible <bruno@clisp.org>
6671 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6672 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6674 2002-04-15 Bruno Haible <bruno@clisp.org>
6676 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6677 (ucs4_to_cns11643): Update.
6678 * iconvdata/cns11643.c: Update to Unicode 3.2.
6679 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6680 __cns11643_from_ucs4p2_tab): Regenerated.
6681 (__cns11643_from_ucs4p2c_tab): New array.
6682 * iconvdata/cvs11643l1.c: Update comments.
6683 * iconvdata/EUC-TW.irreversible: Remove two entries.
6685 2002-04-15 Bruno Haible <bruno@clisp.org>
6687 * locale/C-translit.h.in: Update to Unicode 3.2.
6688 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6689 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6691 2002-04-15 Bruno Haible <bruno@clisp.org>
6693 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6694 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6696 2002-04-15 Bruno Haible <bruno@clisp.org>
6698 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6699 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6700 always one byte, not 0 bytes in some cases and 2 bytes in others.
6702 * iconvdata/tst-table-from.c (main): Correct the usage message.
6704 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6706 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6707 (parse_dup_op): Fix error handling like "a{}".
6708 (parse_bracket_exp): Add error handling.
6709 (fetch_number): Add error handling for "a{<very_large_number>}".
6711 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6713 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6714 in case that the symbol name is too long.
6715 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6716 in case of REG_ICASE.
6718 2002-04-19 Andreas Jaeger <aj@suse.de>
6720 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6721 <hartvige@mips.com>.
6723 2002-04-15 H.J. Lu <hjl@gnu.org>
6725 * include/math.h (__finitel_internal): Declare only if
6726 __NO_LONG_DOUBLE_MATH is not defined.
6727 (__isinfl_internal): Likewise.
6728 (__isnanl_internal): Likewise.
6730 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6731 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6732 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6733 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6734 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6735 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6736 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6738 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6741 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6742 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6744 2002-04-15 Bruno Haible <bruno@clisp.org>
6746 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6747 (BODY for TO_LOOP): Likewise.
6748 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6749 * iconvdata/tst-table.sh: Add support for encodings which contain
6750 precomposed Unicode characters, known to the iconv converter in both
6751 directions but not listed in the charmap.
6752 * iconvdata/IBM856.irreversible: New file.
6753 * iconvdata/IBM922.irreversible: New file.
6754 * iconvdata/IBM1132.irreversible: New file.
6755 * iconvdata/IBM1133.irreversible: New file.
6756 * iconvdata/IBM1160.irreversible: New file.
6757 * iconvdata/IBM1161.irreversible: New file.
6758 * iconvdata/IBM1163.irreversible: New file.
6759 * iconvdata/IBM1164.irreversible: New file.
6760 * iconvdata/ARMSCII-8.irreversible: New file.
6761 * iconvdata/TCVN5712-1.precomposed: New file.
6762 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6763 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6764 ARMSCII-8, TCVN5712-1.
6765 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6766 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6767 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6768 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6770 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6772 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6773 for EVENING69. Include offsets in TZ environment variable.
6775 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6777 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6778 avoid compiler warnings.
6780 * locale/programs/localedef.c (main): Always call
6781 construct_output_path.
6783 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6785 * locale/programs/locfile.c (to_archive): New variable. To collect
6786 data which has to be added to the locale archive.
6787 (write_all_categories): Take new third parameter with locale name.
6788 Unless no_archive flag set add new locale data to the archive
6789 (write_locale_data): Unless no-archive flag set store generated data
6790 in to_archive data structure instead of generation output file.
6791 Add new parameter with locale category index.
6792 * locale/programs/locfile.h: Add new parameters in declaractions of
6793 write_all_categories and write_locale_data.
6794 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6795 --add-to-archive, and --delete-from-archive options. Pass extra
6796 parameter to write_all_categories.
6797 * locale/programs/localedef.h: Add prototypes for functions in
6799 * locale/locarchive.h: New file.
6800 * locale/programs/locarchive.c: New file.
6801 * locale/Makefile (distribute): Add programs/locarchive.c and
6803 (localedef-modules): Add md5 and locarchive.
6804 Add vpath to crypt subdir for md5.c.
6806 * locale/programs/ld-address.c: Pass locale category ID as new second
6807 parameter to write_locale_data.
6808 * locale/programs/ld-collate.c: Likewise.
6809 * locale/programs/ld-ctype.c: Likewise.
6810 * locale/programs/ld-identification.c: Likewise.
6811 * locale/programs/ld-measurement.c: Likewise.
6812 * locale/programs/ld-messages.c: Likewise.
6813 * locale/programs/ld-monetary.c: Likewise.
6814 * locale/programs/ld-name.c: Likewise.
6815 * locale/programs/ld-numeric.c: Likewise.
6816 * locale/programs/ld-paper.c: Likewise.
6817 * locale/programs/ld-telephone.c: Likewise.
6818 * locale/programs/ld-time.c: Likewise.
6820 * locale/simple-hash.c: Move compute_hashval function from here...
6821 * locale/hashval.h: ...to here. New file.
6822 * locale/simple-hash.h: Add prototype for compute_hashval.
6824 * include/libintl.h: Minor cleanups.
6826 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6828 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6830 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6832 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6834 2002-04-14 Bruno Haible <bruno@clisp.org>
6836 * locale/programs/charmap.c (charmap_read): Don't access result if
6839 2002-02-17 Andreas Schwab <schwab@suse.de>
6841 * elf/reldep7.c: New file.
6842 * elf/reldep7mod1.c: New file.
6843 * elf/reldep7mod2.c: New file.
6844 * elf/Makefile: Add rules to build and run reldep7.
6846 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6848 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6849 the end of the function. Pass original flags to recursive call if
6850 add_dependency failed.
6851 (_dl_lookup_versioned_symbol): Likewise.
6853 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6855 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6856 early, but check whether it overflowed afterwards.
6857 * time/tst-mktime.c (main): Add new tests.
6859 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6861 * debug/xtrace.sh: Fix program name in help message.
6862 Patch by Roger Luethi <rl@hellgate.ch>.
6864 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6865 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6867 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6868 * sysdeps/mach/hurd/lxstat.c: Likewise.
6869 * sysdeps/unix/common/lxstat.c: Likewise.
6870 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6871 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6872 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6873 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6874 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6875 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6876 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6877 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6878 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6880 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6881 prototypes. Add __mbrlen and __mbrtowc macros.
6882 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6883 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6885 * include/unistd.h: Add prototype for __write_internal and add
6886 __libc_write macro is SHARED.
6887 * sysdeps/generic/write.c: Use INTDEF for __write.
6888 * sysdeps/mach/hurd/write.c: Likewise.
6889 * sysdeps/unix/sysv/aix/write.c: Likewise.
6890 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6892 * assert/assert.c: Replace STR_N_SIZE with something usable in
6894 * assert/assert-perr.c: Likewise.
6896 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6897 SA_LEN macro to use it if not NOT_IN_libc.
6898 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6900 * include/fcntl.h: Declare __open_internal and define __open and
6901 __libc_open macros if not NOT_IN_libc.
6902 * sysdeps/generic/open.c: Use INTDEF for __open.
6903 * sysdeps/mach/hurd/open.c: Likewise.
6904 * sysdeps/unix/sysv/aix/open.c: Likewise.
6905 * sysdeps/unix/syscalls.list: Add __open_internal alias.
6907 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
6910 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
6911 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
6912 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
6913 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6915 * include/wctype.h: Declare __iswalpha_l_internal,
6916 __iswdigit_l_internal, __iswspace_l_internal,
6917 __iswxdigit_l_internal, and __iswctype_internal. Define
6918 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
6919 __iswxdigit_l macros if not NOT_IN_libc.
6920 * wctype/iswctype.c: Use INTDEF for __iswctype.
6921 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
6923 * include/math.h: Declare __isinf_internal, __isinfl_internal,
6924 __isnan_internal, and __isnanl_internal.
6925 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
6926 __isnan, and __isnanl.
6927 * stdio-common/printf_size.c: Likewise.
6928 * sysdeps/generic/printf_fphex.c: Likewise.
6929 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
6930 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6931 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
6932 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
6933 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6934 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6935 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6936 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6937 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6938 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6939 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6940 * sysdeps/m68k/s_isinfl.c: Likewise.
6941 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6942 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6944 * include/sys/time.h: Declare __gettimeofday_internal and define
6945 __gettimeofday macro if not NOT_IN_libc.
6946 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
6947 * sysdeps/mach/gettimeofday.c: Likewise.
6948 * sysdeps/posix/gettimeofday.c: Likewise.
6949 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
6950 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
6951 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
6952 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
6954 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
6955 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
6956 Remove __lstat and __fstat inline functions.
6957 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
6958 * sysdeps/mach/hurd/fxstat.c: Likewise.
6959 * sysdeps/unix/fxstat.c: Likewise.
6960 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
6961 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
6962 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6963 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
6964 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
6965 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
6966 * sysdeps/mach/hurd/fxstat64.c: Likewise.
6967 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
6968 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6970 * include/unistd.h: Declare __getpid_internal and define
6971 __getpid macro if not NOT_IN_libc.
6972 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
6973 * sysdeps/generic/getpid.c: Likewise.
6974 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
6975 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
6977 * include/unistd.h: Declare __getpgid_internal and define
6978 __getpgid macro if not NOT_IN_libc.
6979 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
6980 * sysdeps/mach/hurd/getpgid.c: Likewise.
6981 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
6982 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
6983 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6984 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
6986 * include/unistd.h: Declare __getpagesize_internal and define
6987 __getpagesize macro if not NOT_IN_libc.
6988 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
6990 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
6991 * sysdeps/mach/getpagesize.c: Likewise.
6992 * sysdeps/posix/getpagesize.c: Likewise.
6993 * sysdeps/unix/getpagesize.c: Likewise.
6994 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6995 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
6996 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
6997 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
6999 2002-04-13 Andreas Jaeger <aj@suse.de>
7001 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7002 as clobber to reduce register pressure.
7003 (__strpbrk_cg): Likewise.
7004 (__mempcpy_by4): Likewise.
7005 (__strstr_cg): Likewise.
7006 Add prototype for __memrchr.
7008 2002-04-13 Andreas Schwab <schwab@suse.de>
7010 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7011 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7012 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7014 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7016 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7017 check whether the caller prefers getting the most recent version of
7018 a symbol of the earliest version.
7019 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7020 _dl_do_lookup to also take the new parameter and pass it on.
7021 Change 'explicit' parameter of _dl_lookup_symbol and
7022 _dl_lookup_versioned_symbol to flags. Adjust tests.
7023 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7024 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7025 _dl_lookup_versioned_symbol.
7026 * elf/dl-reloc.c: Likewise.
7027 * elf/dl-runtime.c: Likewise.
7028 * elf/dl-sym.c: Likewise.
7029 * sysdeps/mips/dl-machine.h: Likewise.
7031 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7033 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7035 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7037 2002-04-10 Andreas Jaeger <aj@suse.de>
7039 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7041 * include/argz.h: Remove extra char from last patch.
7043 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7045 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7046 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7047 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7048 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7049 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7050 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7052 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7054 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7055 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7056 * intl/ngettext.c: Likewise.
7058 * include/sys/socket.h: Declare __connect_internal and define
7059 __connect macro if not NOT_IN_libc.
7060 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7061 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7062 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7064 * include/unistd.h: Declare __close_internal and define __close macro
7066 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7067 WJUMP3): Add extra parenthesis to avoid expanding element names with
7068 macors like __close.
7069 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7071 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7073 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7074 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7075 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7077 * include/unistd.h: Declare __fork_internal and define __fork macro
7079 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7080 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7081 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7083 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7084 __fsetlocking macro to use it if not NOT_IN_libc.
7085 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7087 * libio/__fbufsize.c: Correct copyright.
7088 * libio/__flbf.c: Likewise.
7089 * libio/__fpending.c: Likewise.
7090 * libio/__fpurge.c: Likewise.
7091 * libio/__freadable.c: Likewise.
7092 * libio/__freading.c: Likewise.
7093 * libio/__fsetlocking.c: Likewise.
7094 * libio/__fwritable.c: Likewise.
7095 * libio/__fwriting.c: Likewise.
7097 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7098 macro to use it if not NOT_IN_libc.
7099 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7101 * include/mntent.h: Declare __setmntent_internal,
7102 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7103 __getmntent_r, and __endmntent macros to use these functions if not
7105 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7108 * include/math.h: Declare __finite_internal, __finitef_internal, and
7109 __finitel_internal. Redefine isfinite macro if in libc or libm using
7111 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7112 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7113 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7114 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7115 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7116 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7117 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7118 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7119 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7120 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7122 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7123 to use this function if not NOT_IN_libc.
7124 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7125 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7126 * sysdeps/mach/hurd/fcntl.c: Likewise.
7127 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7128 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7130 * include/argz.h: Declare __argz_count_internal and
7131 __argz_stringify_internal.
7132 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7134 * string/argz-count.c: Use INTDEF for __argz_count.
7135 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7137 * include/stdlib.h: Declare __cxa_atexit_internal and define
7138 __cxa_atexit macro if not NOT_IN_libc.
7139 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7140 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7142 * assert/assert.c: Use INTDEF for __assert_fail.
7143 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7144 * include/assert.h: Declare __assert_fail_internal.
7146 * extra-lib.mk: Mark assignment to lib with override.
7148 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7150 * Makerules: Use cppflags-iterator.mk to add defines for all test
7153 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7155 * elf/elf.h: Define R_SH_TLS_xxx macros.
7156 * elf/rtld.c: Remove an extra parenthesis.
7157 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7159 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7160 * sysdeps/sh/dl-lookupcfg.h: New file.
7161 * sysdeps/sh/dl-tls.h: New file.
7162 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7163 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7164 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7165 R_SH_TLS_TPOFF32 relocations.
7167 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7169 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7171 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7172 * include/stdlib.h: Likewise.
7174 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7176 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7177 instead of _RTLD_LOCAL.
7178 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7179 * include/unistd.h: Likewise.
7180 * sysdeps/generic/ldsodefs.h: Likewise.
7182 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7183 if in libc or ld.so.
7185 2002-04-08 Andreas Jaeger <aj@suse.de>
7187 * elf/cache.c (print_entry): Support x86-64.
7189 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7191 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7192 with one accessing the locale data structures directly.
7193 * stdio-common/printf-prs.c: Include localeinfo.h for new
7194 MB_CUR_MAX definition.
7196 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7197 is the name of the source file without extension.
7198 * Makefile (distribute): Add cppflags-iterator.mk.
7199 * cppflags-iterator.mk: New file.
7200 * extra-lib.mk: For the sources of the library run
7201 cppflags-iterator.mk.
7203 * include/libintl.h: Declare __dcgettext_internal and
7204 _libc_intl_domainname_internal. Define __dcgettext using these
7205 two symbols if used in libc itself.
7206 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7207 _libc_intl_domainname_internal.
7208 * argp/argp-parse.c: Likewise.
7209 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7210 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7211 * intl/gettext.c: Likewise.
7212 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7214 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7216 * posix/regex_internal.c (gettext): Likewise.
7218 2002-04-08 Andreas Jaeger <aj@suse.de>
7220 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7222 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7223 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7224 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7225 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7226 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7227 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7229 2002-04-08 Roland McGrath <roland@frob.com>
7231 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7232 widening __hurd_fail value.
7234 2002-04-07 Roland McGrath <roland@frob.com>
7236 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7237 <mach/machine/alpha_instruction.h>.
7238 (_hurd_setup_sighandler): Take proper arguments for current decls.
7239 Update code to use _hurdsig_catch_fault.
7240 Use `callsys' instruction instead of `call_pal'.
7241 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7243 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7244 (ALIGN, at, AT, fp): New macros.
7246 2002-04-06 Roland McGrath <roland@frob.com>
7248 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7250 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7251 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7253 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7254 * sysdeps/mach/hurd/connect.c: Likewise.
7255 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7256 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7258 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7261 * hurd/catch-exc.c: Use integer_t instead of int.
7262 * hurd/hurdfault.c: Likewise.
7264 * sysdeps/mach/hurd/alpha/exc2signal.c
7265 (_hurd_exception2signal): Rewritten.
7266 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7267 (_hurd_longjmp_thread_state): Rewritten.
7269 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7271 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7272 DB_LOOKUP_FCT prototype.
7273 * nss/getXXent_r.c: Likewise.
7274 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7275 * inet/getaliasname_r.c: Likewise.
7276 * inet/getnetbyad_r.c: Likewise.
7277 * inet/getnetbynm_r.c: Likewise.
7278 * inet/getnetent_r.c: Likewise.
7279 * inet/getproto_r.c: Likewise.
7280 * inet/getprtent_r.c: Likewise.
7281 * inet/getprtname_r.c: Likewise.
7282 * inet/getrpcbyname_r.c: Likewise.
7283 * inet/getrpcbynumber_r.c: Likewise.
7284 * inet/getrpcent_r.c: Likewise.
7285 * inet/getservent_r.c: Likewise.
7286 * inet/getsrvbynm_r.c: Likewise.
7287 * inet/getsrvbypt_r.c: Likewise.
7288 * shadow/getspent_r.c: Likewise.
7289 * shadow/getspnam_r.c: Likewise.
7291 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7293 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7294 Use i686-friendly PIC code.
7295 * sysdeps/i386/elf/setjmp.S: Likewise.
7297 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7299 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7301 * elf/Versions: Remove it here.
7303 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7305 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7306 direction. Reported by H . J . Lu <hjl@lucon.org>.
7308 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7310 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7311 test just before the test runs.
7312 * intl/tst-translit.sh: Likewise.
7313 * intl/tst-codeset.sh: Likewise.
7315 * timezone/zic.c: Update from tzcode2002c.
7316 * timezone/asia: Update from tzdata2002c.
7317 * timezone/backward: Likewise.
7318 * timezone/europe: Likewise.
7319 * timezone/northamerica: Likewise.
7320 * timezone/northamerica: Likewise.
7321 * timezone/northamerica: Likewise.
7322 * timezone/southamerica: Likewise.
7323 * timezone/zone.tab: Likewise.
7325 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7327 * sysdeps/generic/brk.c (__curbrk): Declare.
7328 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7329 * sysdeps/generic/dl-sbrk.c: Likewise.
7330 * sysdeps/unix/arm/dl-brk.S: New file.
7331 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7332 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7333 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7334 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7335 * sysdeps/unix/i386/dl-brk.S: New file.
7336 * sysdeps/unix/mips/dl-brk.S: New file.
7337 * sysdeps/unix/sparc/dl-brk.S: New file.
7338 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7339 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7340 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7341 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7343 2002-04-03 Andreas Schwab <schwab@suse.de>
7345 * Makefile (headers): Add gnu/lib-names.h here instead of
7347 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7349 (install-headers): Add dependency on install-headers-nosubdir.
7350 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7351 instead of install-others.
7352 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7355 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7357 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7358 Reported by Sam Roberts <sroberts@uniserve.com>.
7360 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7362 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7363 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7364 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7365 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7367 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7369 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7370 (RTLD_START): Ditto.
7371 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7372 dependency violation.
7374 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7376 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7377 all variable declarations.
7379 2002-04-04 Andreas Schwab <schwab@suse.de>
7381 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7383 2002-04-04 Andreas Jaeger <aj@suse.de>
7385 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7386 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7388 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7389 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7390 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7392 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7394 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7396 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7397 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7399 * configure.in: Handle all mips entries the same.
7401 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7402 * sysdeps/mips/mips3/*: Likewise.
7403 * sysdeps/mips/p40/bits/endian.h: Likewise.
7405 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7407 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7408 non-null result [PR libc/2600].
7410 * misc/tst-dirname.c: Add more tests.
7412 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7414 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7415 define a code_set_name provide one based on the filename.
7417 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7419 2001-12-28 Andreas Jaeger <aj@suse.de>
7421 * time/mktime.c (__mktime_internal): Check for year < 70
7424 2002-04-03 Andreas Jaeger <aj@suse.de>
7426 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7428 Reported by Andi Kleen <ak@suse.de>.
7430 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7432 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7433 * sysdeps/generic/w_lgammaf.c: Likewise.
7434 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7436 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7437 Adjust for new output format of the backtrace functions.
7439 * misc/syslog.c (vsyslog): Only use cleanup handler if
7440 _LIBC_REENTRANT is defined [PR libc/2924].
7442 * libio/Makefile (tests): Add bug-ungetwc2.
7443 * libio/bug-ungetwc2.c: New file.
7445 * manual/install.texi: Typographical and grammatical cleanup.
7446 Patch by Dennis Grace <dgrace@us.ibm.com>.
7448 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7449 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7451 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7452 always "&". Adjust callers.
7453 Add "_" prefix to several generated definitions.
7454 Patch by paul@serice.net [PR libc/3158].
7456 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7458 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7459 size of _dl_arm_cap_flags.
7460 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7462 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7465 2002-03-22 H.J. Lu <hjl@gnu.org>
7467 * scripts/firstversions.awk: Check the first version.
7469 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7471 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7472 dependencies must be stable to work correctly.
7473 Reported by martin.lubich@datacon.at.
7475 * libio/bug-ungetwc1.c: New file.
7476 * libio/Makefile (tests): Add bug-ungetwc1.
7478 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7479 if stream was last used for writing.
7481 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7482 number [PR libc/3111].
7484 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7486 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7488 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7490 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7491 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7492 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7493 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7494 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7496 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7498 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7501 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7503 * sysdeps/i386/fpu/s_fabs.S: New file.
7504 * sysdeps/i386/fpu/s_fabsf.S: New file.
7505 * sysdeps/i386/fpu/s_fabsl.S: New file.
7506 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7507 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7508 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7510 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7512 * rt/tst-shm.c (do_test): Add one more test for size of shared
7515 2002-03-29 Wolfram Gloger <wg@malloc.de>
7517 * malloc/malloc.c: Add short description and prototypes for
7518 malloc_get_state, malloc_set_state and posix_memalign, for
7519 consistency and to avoid warnings with -Wstrict-prototypes.
7520 Reported by Andreas Jaeger <aj@suse.de>.
7522 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7524 * po/gl.po: Update from translation team.
7526 2002-03-31 Roland McGrath <roland@frob.com>
7528 * hurd/hurdselect.c (_hurd_select): Fix
7529 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7530 Use a union rather than casts to compare mach_msg_type_t as int.
7532 2002-03-25 Roland McGrath <roland@frob.com>
7534 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7535 check off the end of NAME when it's shorter than 2 chars.
7536 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7538 2002-03-17 Roland McGrath <roland@frob.com>
7540 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7541 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7542 * sysdeps/mach/hurd/i386/Dist: Add them.
7543 * sysdeps/mach/hurd/i386/Versions
7544 (libc: GLIBC_2.2.6): New set, add ioperm.
7545 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7546 (mach_interface_list): Check for mach_i386.defs.
7547 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7548 * sysdeps/mach/configure: Regenerated.
7550 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7552 * po/fr.po: Update from translation team.
7554 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7556 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7557 getpriority from syscalls list.
7559 2002-03-28 Andreas Jaeger <aj@suse.de>
7561 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7562 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7563 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7564 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7566 2002-03-27 Andreas Jaeger <aj@suse.de>
7568 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7569 sigcontext): Follow further kernel change.
7571 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7574 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7575 Change for struct sigcontext change.
7577 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7578 Follow changes in struct sigcontext.
7580 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7581 sysycall, use wrapper instead.
7583 2002-03-26 Andreas Jaeger <aj@suse.de>
7585 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7586 read and write accesses as detailed as possible.
7587 (__memcpy_by2): Likewise.
7588 (__memcpy_g): Likewise.
7589 (memmove): Likewise.
7591 (__memset_ccn_by4): Likewise.
7592 (__memset_ccn_by2): Likewise.
7593 (__memset_gcn_by4): Likewise.
7594 (__memset_gcn_by2): Likewise.
7596 (__memrchr): Likewise.
7597 (rawmemchr): Likewise.
7598 (__strlen_g): Likewise.
7599 (__strcpy_g): Likewise.
7600 (__mempcpy_by4): Likewise.
7601 (__mempcpy_by2): Likewise.
7602 (__mempcpy_byn): Likewise.
7603 (__stpcpy_g): Likewise.
7604 (__strncpy_by4): Likewise.
7605 (__strncpy_by2): Likewise.
7606 (__strncpy_byn): Likewise.
7607 (__strncpy_gg): Likewise.
7608 (__strcat_c): Likewise.
7609 (__strcat_g): Likewise.
7610 (__strncat_g): Likewise.
7611 (__strcmp_gg): Likewise.
7612 (__strncmp_g): Likewise.
7613 (__strchr_c): Likewise.
7614 (__strchr_g): Likewise.
7615 (__strchrnul_c): Likewise.
7616 (__strchrnul_g): Likewise.
7617 (__strrchr_c): Likewise.
7618 (__strrchr_g): Likewise.
7619 (__strrchr_c): Likewise.
7620 (__strrchr_g): Likewise.
7621 (__strcspn_c1): Likewise.
7622 (__strcspn_cg): Likewise.
7623 (__strcspn_g): Likewise.
7624 (__strcspn_g): Likewise.
7625 (__strspn_c1): Likewise.
7626 (__strspn_cg): Likewise.
7627 (__strspn_g): Likewise.
7628 (__strspn_g): Likewise.
7629 (__strpbrk_cg): Likewise.
7630 (__strpbrk_g): Likewise.
7631 (__strstr_cg): Likewise.
7632 (__strstr_g): Likewise.
7634 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7635 Michal Ludvig <mludvig@suse.cz>.
7637 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7638 compatibilty, adjust for kernel changes.
7640 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7641 sigcontext): Adjust for kernel changes.
7643 2002-03-25 Andreas Jaeger <aj@suse.de>
7645 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7647 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7649 2002-03-24 Andreas Jaeger <aj@suse.de>
7651 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7653 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7655 * iconv/tst-iconv3.c (main): Use correct printf strings.
7657 2002-03-18 Roland McGrath <roland@frob.com>
7659 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7660 (CMGROUP_MAX): New macro.
7662 2002-03-23 Roland McGrath <roland@frob.com>
7664 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7665 * sysdeps/posix/shm_unlink.c: Likewise.
7667 2002-03-22 Roland McGrath <roland@frob.com>
7669 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7670 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7671 under --enable-libio.
7672 * sysdeps/mach/hurd/configure: Regenerated.
7674 2002-03-23 Roland McGrath <roland@frob.com>
7676 * sysdeps/mach/hurd/i386/Makefile
7677 (sysdep_routines, shared-only-routines): Don't add framestate,
7678 reverting 2001-10-02 change.
7679 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7680 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7681 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7682 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7683 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7684 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7685 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7686 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7687 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7688 Do it here instead, only if [$(unwind-find-fde) = yes].
7690 2002-03-23 Andreas Jaeger <aj@suse.de>
7692 * signal/signal.h: Fix typo. Patch by Steve Kemp
7693 <skx@tardis.ed.ac.uk>.
7695 2002-03-22 Andreas Jaeger <aj@suse.de>
7697 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7700 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7701 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7702 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7703 user_fpregs_struct): Rename fwd.
7705 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7706 Follow sigcontext changes.
7708 2002-03-22 Andreas Jaeger <aj@suse.de>
7710 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7711 changes for NaNs on MIPS.
7712 Patch by Hartvig Ekner <hartvige@mips.com>.
7714 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7716 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7717 Use realloc if too large.
7718 (addgrbyid): Likewise.
7719 * nscd/hstcache.c (addhstbyname): Likewise.
7720 (addhstbyaddr): Likewise.
7721 (addhstbynamev6): Likewise.
7722 (addhstbyaddrv6): Likewise.
7723 * nscd/pwdcache.c (addpwbyname): Likewise.
7724 (addpwbyuid): Likewise.
7726 2002-03-21 Andreas Jaeger <aj@suse.de>
7728 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7729 _fpstate): Add separate struct for x86-64.
7731 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7732 user_fpregs_struct): Change member names to follow kernel.
7734 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7736 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7737 Correctly close the UDP connection right away [PR libc/3120].
7739 2002-03-20 Andreas Jaeger <aj@suse.de>
7741 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7742 user_fpregs_struct): Fix for changed kernel struct.
7743 (struct user_regs_struct): Likewise.
7744 (struct user): Likewise.
7745 Add 32-bit x86 compatibility.
7747 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7749 2002-03-19 Andreas Jaeger <aj@suse.de>
7751 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7753 2002-03-18 Andreas Jaeger <aj@suse.de>
7755 * iconvdata/Makefile: Only run tests when shared libs are
7758 2002-03-17 Andreas Jaeger <aj@suse.de>
7760 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7762 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7764 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7767 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7768 (CAUSE_SHIFT): New macro.
7769 Patch by Hartvig Ekner <hartvige@mips.com>.
7771 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7772 * sysdeps/generic/unwind-pe.h: Likewise.
7774 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7777 * libio/stdio.c (AL2): Define variant when visibility attribute is
7780 * include/libc-symbols.h (_INTVARDEF): Define variant when
7781 visibility attribute is not supported.
7783 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7785 * po/fr.po: Update from translation team.
7787 2002-02-25 Bruno Haible <bruno@clisp.org>
7789 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7791 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7793 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7794 buffers if _IO_file_attach failed.
7796 * libio/fileops.c (_IO_file_open): Close file descriptor if
7797 _IO_SEEKOFF call failed.
7799 2002-03-15 H.J. Lu <hjl@gnu.org>
7800 Ulrich Drepper <drepper@redhat.com>
7802 * configure.in: Check for availability of
7803 init_array/fini_array/preinit_array handling in binutils.
7804 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7805 * config.make.in (have-initfini-array): New variable.
7807 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7809 * stdio-common/tst-printf.c (main): Comment out one test which
7810 checked the compiler's ability to fold floating-point constants
7811 but not really printf.
7812 (rfg3): Make s const.
7813 * stdio-common/tst-printf.sh: Adjust for removed test.
7815 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7816 internal function. Adjust for internal_function calling convention.
7817 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7818 as internal_function.
7820 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7823 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7824 declaration and definition.
7825 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7827 * nss/getXXent_r.c: Likewise.
7828 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7831 * include/time.h: Declare __localtime_r as hidden.
7833 * include/aliases.h: Declare __getaliasent_r as hidden.
7834 * include/grp.h: Declare __getgrent_r as hidden.
7835 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7836 __getservent_r, and __getprotoent_r as hidden.
7837 * include/pwd.h: Declare __getpwent_r as hidden.
7838 * include/shadow.h: Declare __getspent_r as hidden.
7839 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7841 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7842 and __gconv_transliterate as hidden.
7843 Add internal_function to __gconv_get_path declaration.
7844 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7845 definition. Add attribute_hidden to __gconv_read_conf definition.
7847 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7849 * elf/rtld.c: Declare _environ as hidden.
7850 * sysdeps/generic/dl-environ.c: Likewise.
7851 * sysdeps/generic/dl-sysdep.c: Likewise.
7853 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7854 _dl_mcount_internal as hidden.
7856 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7857 * sysdeps/generic/dl-brk.c: New file.
7858 * sysdeps/generic/dl-sbrk.c: New file.
7859 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7860 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7862 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7863 (__errno_location): New function. Declare errno as hidden.
7864 * elf/rtld.c (_dl_argc): Define as hidden.
7865 (_dl_skip_args): Define as hidden.
7866 (_begin, _end): Declare as hidden.
7867 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7868 * sysdeps/generic/entry.h (_start): Declare as hidden.
7869 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7870 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7871 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7872 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7874 2002-03-14 Roland McGrath <roland@frob.com>
7876 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7878 * Makeconfig (%.v.i, %.v): New implicit rules.
7879 (preprocess-versions): Variable removed.
7880 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7881 shlib-versions input files as dependencies.
7882 ($(common-objpfx)soversions.i): Depend on that instead of the input
7883 files. Use it as input instead of using a pipeline.
7884 (postclean-generated): Append soversions.i, shlib-versions.v, and
7885 shlib-versions.v.i here.
7886 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7887 the Versions.def input files as dependencies.
7888 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7889 ($(common-objpfx)Versions.all): Depend on that instead of the input
7890 files. Use it as input instead of using a pipeline.
7891 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7892 (postclean-generated): Append those .v and .v.i files here.
7894 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7896 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7897 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7900 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7902 * sysdeps/generic/mp_clz_tab.c: New file.
7903 * sysdeps/i386/mp_clz_tab.c: New file.
7904 * sysdeps/hppa/mp_clz_tab.c: New file.
7905 * sysdeps/powerpc/mp_clz_tab.c: New file.
7906 * stdlib/Makefile (aux): Revert last patch.
7907 * math/Makefile (gmp-objs): Likewise.
7909 2002-03-13 Paul Eggert <eggert@twinsun.com>
7911 * time/strftime.c: Comment fixes for references to obsolescent
7912 standards, In most cases the simplest fix is to remove the
7913 confusing comments. Cross-referencing all the standards properly
7914 is a bit of a pain, and it should be enough to put that info in
7915 the documentation as I did in my recent time.texi patch.
7917 2002-03-13 Paul Eggert <eggert@twinsun.com>
7919 * manual/time.texi (Formatting Calendar Time):
7920 ISO C99 also specifies the E and O modifiers.
7921 %P is a GNU extension, and is not in ISO C99.
7922 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
7923 %T is also in ISO C99.
7924 The RFC 822 example is not valid in arbitrary locales.
7925 Reword the POSIX.2 wording slightly, to make it a bit clearer
7926 that POSIX.2 formats are also supported by later POSIX versions.
7927 If a format was introduced in ISO C99 it is also required by
7930 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7932 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
7933 _sys_nerr_internal with INTVARDEF2.
7934 * include/libc-symbols.h (INTVARDEF2): New macro.
7935 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
7936 (_sys_nerr_internal): Library.
7938 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
7939 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
7941 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
7943 2002-03-13 Wolfram Gloger <wg@malloc.de>
7945 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
7947 2002-03-02 Andreas Schwab <schwab@suse.de>
7949 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
7950 'h' flag and positional arg.
7951 * stdio-common/tst-printf.c (rfg3): New function to test
7952 positional arguments.
7953 (main): Fix some warnings.
7955 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7957 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
7958 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
7960 2002-03-13 Ulrich Drepper <drepper@redhat.com>
7962 * grp/initgroups.c (__nss_group_data): Declare as hidden.
7964 * include/locale.h (_nl_C_locobj): Declare as hidden.
7966 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
7967 * time/strptime.c (_nl_C_LC_TIME): Likewise.
7969 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
7971 * include/sys/gmon.h: Declare _gmonparam as hidden.
7973 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
7974 (__ctype32_wctrans): Likewise.
7975 (__ctype32_width): Likewise.
7977 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
7980 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
7982 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
7983 hidden. Change all users of these variables.
7985 * posix/regex_internal.h (__re_error_msgid): Renamed from
7986 re_error_msgid. Declare as hidden.
7987 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
7990 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
7991 (__printf_function_table): Likewise.
7992 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
7994 (__printf_function_table): Likewise.
7996 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
7997 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
7999 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8000 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8002 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8003 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8005 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8007 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8008 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8009 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8010 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8011 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8012 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8013 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8014 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8015 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8016 _nl_C_LC_CTYPE_width: Declare as hidden.
8017 * include/locale.h: Declare _nl_locale_file_list.
8018 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8019 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8020 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8021 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8022 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8023 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8024 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8025 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8026 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8027 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8028 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8029 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8030 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8031 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8032 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8033 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8034 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8035 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8036 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8037 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8038 _nl_C_LC_CTYPE_width, and as hidden.
8039 * locale/findlocale.c: Declare _nl_C as hidden.
8040 * locale/newlocale.c: Likewise.
8041 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8042 _nl_locale_file_list.
8043 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8044 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8045 Define _nl_C_locobj as hidden.
8047 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8048 (_mtrace_line): Likewise.
8050 * include/time.h: Declare __mon_yday as hidden.
8051 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8053 * libio/libioP.h: Declare __libio_codecvt as hidden.
8054 * libio/fileops.c: Declare __libio_translit as hidden.
8055 * libio/iofwide.c: Define __libio_translit as hidden.
8057 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8058 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8059 * login/getutline_r.c: Likewise.
8060 * login/utmpname.c: Likewise.
8062 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8063 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8064 __libc_utmp_file_name as hidden.
8066 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8067 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8068 * locale/freelocale.c: Likewise.
8069 * locale/lc-time.c: Likewise.
8071 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8072 (__libc_ptyname2): Likewise.
8073 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8075 (__libc_ptyname2): Likewise.
8077 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8078 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8079 * sysdeps/generic/init-first.c: Likewise.
8080 * sysdeps/i386/init-first.c: Likewise.
8081 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8082 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8083 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8084 * sysdeps/sh/init-first.c: Likewise.
8085 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8086 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8088 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8089 (_itowa_upper_digits): Likewise.
8091 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8092 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8095 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8096 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8097 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8098 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8100 * gmon/gmon.c (__bb_head): Define as hidden.
8101 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8103 * argp/argp-parse.c (_argp_hang): Define as static.
8105 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8106 handling in latest compilers.
8108 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8110 * libio/fileops.c (_IO_file_jumps): Likewise.
8111 * libio/stdfiles.c (_IO_list_all): Likewise.
8112 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8114 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8116 * include/malloc.h: Add __libc_malloc_initialized declaration
8117 here. Mark variable hidden.
8118 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8120 * elf/dl-open.c (__libc_argc): Declare as hidden.
8121 (__libc_argv): Likewise.
8122 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8123 (__libc_argv): Likewise.
8124 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8125 __libc_argv as hidden.
8126 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8127 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8128 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8129 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8131 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8132 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8133 * stdlib/erand48.c: Likewise.
8134 * stdlib/jrand48.c: Likewise.
8135 * stdlib/lcong48.c: Likewise.
8136 * stdlib/lrand48.c: Likewise.
8137 * stdlib/mrand48.c: Likewise.
8138 * stdlib/nrand48.c: Likewise.
8139 * stdlib/seed48.c: Likewise.
8140 * stdlib/srand48.c: Likewise.
8142 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8143 (_itoa_lower_digits_internal): New declaration.
8144 (_itoa_upper_digits_internal): New declaration.
8145 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8146 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8147 (_itoa_upper_digits_internal): New declaration.
8148 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8150 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8151 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8153 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8154 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8156 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8157 (_itowa_lower_digits): Likewise.
8158 (_itowa_upper_digits): Likewise.
8159 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8160 (_itowa_upper_digits): Likewise.
8162 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8163 not already defined.
8164 (GERMANIC_PLURAL): Declare as hidden.
8166 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8167 (attribute_hidden): Define as empty macro if not already defined.
8169 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8170 (__gconv_max_path_elem_len): Likewise.
8171 (__gconv_path_envvar): Likewise.
8173 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8174 * stdlib/Makefile (aux): Remove mp_clz_tab.
8175 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8177 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8179 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8181 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8182 _nl_category_names, _nl_category_name_sizes, _nl_current,
8183 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8185 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8186 (_nl_current_default_domain): Likewise
8187 (_nl_state_lock): Likewise.
8188 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8189 (_nl_current_default_domain): Likewise
8190 (_nl_state_lock): Likewise.
8191 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8193 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8194 (_fpioconst_pow10): Likewise.
8196 * include/time.h (_tmbuf): Add attribute_hidden.
8198 * time/tzset.c (tzstring_list): Define as static.
8200 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8201 __use_tzfile declaration.
8203 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8204 and __wcsmbs_last_locale declaration.
8206 2002-02-25 Paul Eggert <eggert@twinsun.com>
8208 * timezone/Makefile (tzbases): Move systemv from here...
8209 (tzlinks): to here, since the entries in systemv were all changed
8210 from Zone to Link lines in tz-2001a. Bug reported (and patch
8211 tested) by Peter Breitenlohner.
8213 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8215 * time/tst-posixtz.c (tests): Add new tests.
8216 (main): Test whether tzset() sets daylight properly.
8218 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8220 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8221 __tzname_cur_max setting...
8222 (tzset_internal): ...here.
8224 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8226 * time/tzset.c (compute_change): Don't return any value.
8227 (tz_compute): Likewise. Don't handle southern hemisphere here.
8228 (__tz_convert): But here.
8230 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8232 * manual/examples/mkfsock.c: Include <string.h> as well.
8233 Patch by Alain De Carolis <alaind@wseurope.com>.
8235 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8237 * posix/regexec.c (re_match): Fix incorrect register sizes.
8238 (re_search): Likewise.
8240 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8242 * posix/regcomp.c (regfree): Remove a disused condition.
8243 * posix/regex_internal.c (re_acquire_state): Likewise.
8244 (re_acquire_state_context): Likewise.
8245 (register_state): Remove a redundant malloc invocation.
8246 * posix/regex_internal.h: (re_state_table_entry): Simplify
8249 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8251 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8252 handling conditions.
8253 (regerror): Likewise.
8254 (regfree): Likewise.
8255 (re_compile_internal): Likewise.
8256 (init_dfa): Likewise.
8257 (init_word_char): Likewise.
8258 (create_initial_state): Likewise.
8259 (analyze): Likewise.
8260 (analyze_tree): Likewise.
8261 (duplicate_node): Likewise.
8262 (calc_eclosure): Likewise.
8263 (calc_eclosure_iter): Likewise.
8265 (parse_reg_exp): Likewise.
8266 (parse_branch): Likewise.
8267 (parse_expression): Likewise.
8268 (parse_subexp): Likewise.
8269 (parse_dup_op): Likewise.
8270 (parse_bracket_exp): Likewise.
8271 (build_equiv_class): Likewise.
8272 (build_charclass): Likewise.
8273 (build_word_op): Likewise.
8274 (fetch_number): Likewise.
8275 (create_tree): Likewise.
8276 (duplicate_tree): Likewise.
8277 * posix/regex.c (BE): New macro.
8278 * posix/regexec.c (re_match): Add __builtin_expect to error
8279 handling conditions.
8280 (re_match_2): Likewise.
8281 (re_search): Likewise.
8282 (re_search_internal): Likewise.
8283 (check_matching): Likewise.
8284 (proceed_next_node): Likewise.
8285 (set_regs): Likewise.
8286 (sift_states_backward): Likewise.
8287 (add_epsilon_backreference): Likewise.
8288 (transit_state): Likewise.
8289 (transit_state_sb): Likewise.
8290 (transit_state_mb): Likewise.
8291 (transit_state_bkref): Likewise.
8292 (transit_state_bkref_loop): Likewise.
8293 (build_trtable): Likewise.
8294 (group_nodes_into_DFAstates): Likewise.
8295 (match_ctx_init): Likewise.
8296 (match_ctx_add_entry): Likewise.
8297 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8298 to error handling conditions.
8299 (re_string_construct_toupper): Likewise.
8300 (build_wcs_buffer): Likewise.
8301 (build_wcs_upper_buffer): Likewise.
8302 (build_upper_buffer): Likewise.
8303 (re_string_translate_buffer): Likewise.
8304 (re_node_set_alloc): Likewise.
8305 (re_node_set_init_1): Likewise.
8306 (re_node_set_init_2): Likewise.
8307 (re_node_set_init_copy): Likewise.
8308 (re_node_set_intersect): Likewise.
8309 (re_node_set_init_union): Likewise.
8310 (re_node_set_merge): Likewise.
8311 (re_node_set_insert): Likewise.
8312 (re_dfa_add_node): Likewise.
8313 (re_acquire_state): Likewise.
8314 (re_acquire_state_context): Likewise.
8315 (create_new_state_common): Likewise.
8316 (register_state): Likewise.
8317 (create_ci_new_state): Likewise.
8318 (create_cd_new_state): Likewise.
8319 (re_string_context_at): Remove redundant condition.
8321 2002-01-16 Roger Sayle <roger@eyesopen.com>
8323 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8325 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8327 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8329 * sysdeps/i386/elf/configure.in: Fix comment.
8331 * sysdeps/sparc/sparc64/configure.in: New file.
8332 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8333 if .dynamic comes before .got.
8334 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8336 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8337 HP_TIMING_ACCUM): Fix typos.
8339 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8341 * string/strfry.c: Add some more randomness to the seed.
8342 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8344 * po/es.po: Update from translation team.
8345 * po/fr.po: Likewise.
8347 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8349 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8350 when determining type of format.
8351 Patch by James Antill <james@anqd.org> [PR libc/2787].
8353 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8355 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8357 2002-03-11 Roland McGrath <roland@frob.com>
8359 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8361 * Versions.def (libc): Add GLIBC_2.2.6.
8362 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8363 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8364 __errno_location instead of __hurd_errno_location, and don't inline it.
8365 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8366 * hurd/errno.c: New file.
8367 * hurd/Makefile (routines): Add errno.
8369 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8371 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8372 ridiculously large widths and precisions [PR libc/3026].
8374 2002-03-11 Andreas Jaeger <aj@suse.de>
8376 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8378 Patch by Susanne Oberhauser <froh@SuSE.de>.
8380 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8382 * inet/rexec.c (ahostbuf): Define as static.
8384 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8385 (__ctype32_wctrans): Likewise.
8386 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8387 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8388 (__ctype32_wctrans): Likewise.
8389 (__ctype32_width): Likewise.
8391 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8392 They were never exported anyway.
8394 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8395 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8397 * include/sys/gmon.h: Declare _gmonparam.
8399 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8400 symbols for getdents64. They were never exported.
8402 2002-03-09 Roland McGrath <roland@frob.com>
8404 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8405 Reported by Jon Arney <jarney1@cox.net>.
8407 2002-02-23 Roland McGrath <roland@frob.com>
8409 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8411 (__hurd_errno_location): Function removed.
8413 2002-03-06 Andreas Jaeger <aj@suse.de>
8415 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8418 2002-03-04 Andreas Jaeger <aj@suse.de>
8420 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8422 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8425 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8427 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8429 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8431 * sysdeps/x86_64/bits/setjmp.h: New file.
8433 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8435 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8437 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8439 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8440 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8442 2002-02-28 Bo Thorsen <bo@suse.de>
8444 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8447 2002-03-03 Andreas Jaeger <aj@suse.de>
8449 * sysdeps/x86_64/bits/wordsize.h: New file.
8451 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8452 * elf/tst-tlsmod1.c: Likewise.
8454 * posix/regcomp.c: Get regex.h from include dir for internal
8457 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8458 to libc-internal.h and include it.
8459 * include/libc-internal.h: Add __init_misc.
8461 * misc/init-misc.c: Include libc-internal.h for prototypes.
8463 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8465 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8468 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8470 * posix/regcomp.c: Compatibility changes to allow using the code
8473 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8475 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8478 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8480 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8481 of .str elements in the returned data structure.
8483 * elf/elf.h: Add Alpha TLS bits.
8485 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8487 * sysdeps/unix/sysv/linux/nice.c: New file.
8489 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8491 * elf/Makefile (dl-routines): Add dl-origin.
8492 (elide-routines.os): Add dl-origin.
8493 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8494 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8496 * include/libc-symbols.c: Define attribute_hidden depending on
8497 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8499 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8500 * elf/dl-load.c: Likewise.
8501 * elf/rtld.c: Likewise.
8502 * include/unistd.h: Declare __libc_enable_secure_internal.
8503 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8504 Use INTUSE with __libc_enable_secure.
8505 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8507 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8508 * elf/dl-error.c: Likewise,
8509 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8511 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8512 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8513 function definition. Use INTDEF with _dl_get_origin.
8514 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8516 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8517 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8519 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8520 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8521 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8523 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8524 * elf/dl-deps.c: Likewise.
8525 * elf/dl-error.c: Likewise.
8526 * elf/dl-fini.c: Likewise.
8527 * elf/dl-init.c: Likewise.
8528 * elf/dl-load.c: Likewise.
8529 * elf/dl-lookup.c: Likewise.
8530 * elf/dl-reloc.c: Likewise.
8531 * elf/dl-version.c: Likewise.
8532 * elf/do-lookup.h: Likewise.
8533 * sysdeps/arm/dl-machine.h: Likewise.
8534 * sysdeps/cris/dl-machine.h: Likewise.
8535 * sysdeps/hppa/dl-machine.h: Likewise.
8536 * sysdeps/i386/dl-machine.h: Likewise.
8537 * sysdeps/m68k/dl-machine.h: Likewise.
8538 * sysdeps/powerpc/dl-machine.h: Likewise.
8539 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8540 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8541 * sysdeps/sh/dl-machine.h: Likewise.
8542 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8543 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8544 * sysdeps/x86_64/dl-machine.h: Likewise.
8545 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8546 _dl_argv[0]. Use INTUSE with _dl_argv.
8547 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8548 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8550 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8552 * elf/rtld.c (_rtld_global): Remove .protected.
8553 (_rtld_local): Strong alias to _rtld_global.
8554 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8556 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8557 _rtld_local instead of _rtld_global.
8558 (_rtld_local): Add hidden extern, possibly in .sdata section.
8559 * configure.in: Add tests for visibility attribute and .sdata.
8560 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8561 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8562 * sysdeps/arm/dl-machine.h: Likewise.
8563 * sysdeps/generic/ldsodefs.h: Likewise.
8564 * sysdeps/hppa/dl-machine.h: Likewise.
8565 * sysdeps/cris/dl-machine.h: Likewise.
8566 * sysdeps/i386/dl-machine.h: Likewise.
8567 * sysdeps/ia64/dl-machine.h: Likewise.
8568 * sysdeps/m68k/dl-machine.h: Likewise.
8569 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8570 * sysdeps/mips/dl-machine.h: Likewise.
8571 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8572 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8573 * sysdeps/sh/dl-machine.h: Likewise.
8574 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8575 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8576 * sysdeps/x86_64/dl-machine.h: Likewise.
8578 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8580 * login/login.c (login): Always initialize ut_line field
8583 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8585 * sysdeps/i386/Makefile (sysdep_routines): Add
8587 (shared-only-routines): Likewise.
8588 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8589 (shared-only-routines): Likewise.
8590 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8591 (shared-only-routines): Likewise.
8592 * sysdeps/wordsize-32/divdi3.c: New file.
8594 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8596 * locale/iso-4217.def: Remove obsolete currencies for countries
8599 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8601 * posix/regcomp.c (regcomp): Remove a redundant condition.
8602 (init_word_char): Add a check on malloc failure.
8603 (create_initial_state): Likewise.
8604 (duplicate_node): Likewise.
8605 (calc_eclosure): Likewise.
8606 (calc_eclosure_iter): Likewise.
8607 (parse_expression): Likewise.
8608 (parse_bracket_exp): Remove unnecessary malloc invocations.
8609 (build_equiv_class): Likewise.
8610 (build_charclass): Likewise.
8611 * posix/regex_internal.c (re_node_set_intersect): Add a check
8613 (re_node_set_add_intersect): Likewise.
8614 (re_node_set_merge): Likewise.
8615 (re_acquire_state): Likewise.
8616 (re_acquire_state_context): Likewise.
8617 (create_newstate_common): Likewise.
8618 (register_state): Likewise.
8619 (create_ci_newstate): Likewise.
8620 (create_cd_newstate): Likewise.
8621 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8622 and re_acquire_state_context.
8623 * posix/regexec.c (regexec): Suit it to the error handling of
8625 (re_match): Likewise.
8626 (re_search): Likewise.
8627 (re_search_internal): Add a check on malloc failure.
8628 (acquire_init_state_context): Likewise.
8629 (check_matching): Likewise.
8630 (proceed_next_node): Likewise.
8631 (set_regs): Likewise.
8632 (sift_states_backward): Likewise.
8633 (sift_states_iter_bkref): Likewise.
8634 (add_epsilon_backreference): Likewise.
8635 (transit_state): Likewise.
8636 (transit_state_sb): Likewise.
8637 (transit_state_mb): Likewise.
8638 (transit_state_bkref_loop): Likewise.
8639 (build_trtable): Likewise.
8640 (group_nodes_into_DFAstates): Likewise.
8641 (match_ctx_init): Likewise.
8642 (match_ctx_add_entry): Likewise.
8644 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8646 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8647 l_libname if profiling is enabled [PR libc/2916].
8649 * sysdeps/ia64/dl-tls.h: New file.
8651 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8653 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8654 Work around an Alpha gas bug.
8656 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8658 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8659 uses read to load the catalog.
8660 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8662 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8664 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8665 regex_internal.c, and regex_internal.h.
8666 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8667 * posix/regex.c: Complete rewrite.
8668 * posix/regexec.c: New file.
8669 * posix/regcomp.c: New file.
8670 * posix/regex_internal.c: New file.
8671 * posix/regex_internal.h: New file.
8672 * posix/regex.h (RE_ICASE): New macro.
8673 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8675 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8676 ungetwc. It's a macro.
8677 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8679 Reported by Jason Merrill <jason@redhat.com>.
8681 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8683 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8684 position to fp->_offset if it is set.
8685 * stdio-common/Makefile (tests): Add tst-fdopen.
8686 * stdio-common/tst-fdopen.c: New test.
8688 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8690 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8691 * stdio-common/tst-ungetc.c (main): Add another test.
8693 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8695 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8696 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8697 aliases. Add prototypes for the new aliases.
8698 * assert/assert.c: Likewise.
8699 * include/libc-symbols.h: Likewise.
8700 * include/stdio.h: Likewise.
8701 * include/netinet/in.h: Likewise.
8702 * include/rpc/auth.h: Likewise.
8703 * include/rpc/auth_unix.h: Likewise.
8704 * include/rpc/key_prot.h: Likewise.
8705 * include/rpc/pmap_prot.h: Likewise.
8706 * include/rpc/pmap_rmt.h: Likewise.
8707 * include/rpc/rpc_msg.h: Likewise.
8708 * include/rpc/xdr.h: Likewise.
8709 * inet/gethstbyad_r.c: Likewise.
8710 * inet/gethstbynm2_r.c: Likewise.
8711 * inet/gethstbynm_r.c: Likewise.
8712 * inet/gethstent_r.c: Likewise.
8713 * inet/in6_addr.c: Likewise.
8714 * libio/__fpurge.c: Likewise.
8715 * libio/filedoalloc.c: Likewise.
8716 * libio/fileops.c: Likewise.
8717 * libio/ftello.c: Likewise.
8718 * libio/ftello64.c: Likewise.
8719 * libio/genops.c: Likewise.
8720 * libio/iofclose.c: Likewise.
8721 * libio/iofdopen.c: Likewise.
8722 * libio/iofflush.c: Likewise.
8723 * libio/iofflush_u.c: Likewise.
8724 * libio/iofgetpos.c: Likewise.
8725 * libio/iofgetpos64.c: Likewise.
8726 * libio/iofgets.c: Likewise.
8727 * libio/iofgets_u.c: Likewise.
8728 * libio/iofopen.c: Likewise.
8729 * libio/iofopncook.c: Likewise.
8730 * libio/iofputs.c: Likewise.
8731 * libio/iofread.c: Likewise.
8732 * libio/iofread_u.c: Likewise.
8733 * libio/iofsetpos.c: Likewise.
8734 * libio/iofsetpos64.c: Likewise.
8735 * libio/ioftell.c: Likewise.
8736 * libio/iofwrite.c: Likewise.
8737 * libio/iogetline.c: Likewise.
8738 * libio/iogets.c: Likewise.
8739 * libio/iogetwline.c: Likewise.
8740 * libio/iolibio.h: Likewise.
8741 * libio/iopadn.c: Likewise.
8742 * libio/iopopen.c: Likewise.
8743 * libio/ioseekoff.c: Likewise.
8744 * libio/ioseekpos.c: Likewise.
8745 * libio/iosetbuffer.c: Likewise.
8746 * libio/iosetvbuf.c: Likewise.
8747 * libio/ioungetc.c: Likewise.
8748 * libio/ioungetwc.c: Likewise.
8749 * libio/iovdprintf.c: Likewise.
8750 * libio/iovsprintf.c: Likewise.
8751 * libio/iovsscanf.c: Likewise.
8752 * libio/libioP.h: Likewise.
8753 * libio/memstream.c: Likewise.
8754 * libio/obprintf.c: Likewise.
8755 * libio/oldfileops.c: Likewise.
8756 * libio/oldiofclose.c: Likewise.
8757 * libio/oldiofdopen.c: Likewise.
8758 * libio/oldiofgetpos.c: Likewise.
8759 * libio/oldiofgetpos64.c: Likewise.
8760 * libio/oldiofopen.c: Likewise.
8761 * libio/oldiofsetpos.c: Likewise.
8762 * libio/oldiofsetpos64.c: Likewise.
8763 * libio/oldiopopen.c: Likewise.
8764 * libio/oldstdfiles.c: Likewise.
8765 * libio/putc.c: Likewise.
8766 * libio/setbuf.c: Likewise.
8767 * libio/setlinebuf.c: Likewise.
8768 * libio/stdfiles.c: Likewise.
8769 * libio/stdio.c: Likewise.
8770 * libio/strops.c: Likewise.
8771 * libio/vasprintf.c: Likewise.
8772 * libio/vscanf.c: Likewise.
8773 * libio/vsnprintf.c: Likewise.
8774 * libio/vswprintf.c: Likewise.
8775 * libio/wfiledoalloc.c: Likewise.
8776 * libio/wfileops.c: Likewise.
8777 * libio/wgenops.c: Likewise.
8778 * libio/wstrops.c: Likewise.
8779 * malloc/mtrace.c: Likewise.
8780 * misc/error.c: Likewise.
8781 * misc/syslog.c: Likewise.
8782 * nss/getXXbyYY_r.c: Likewise.
8783 * nss/getXXent_r.c: Likewise.
8784 * nss/hosts-lookup.c: Likewise.
8785 * stdio-common/getw.c
8786 * stdio-common/printf-prs.c: Likewise.
8787 * stdio-common/printf_fp.c: Likewise.
8788 * stdio-common/printf_size.c: Likewise.
8789 * stdio-common/putw.c: Likewise.
8790 * stdio-common/scanf.c: Likewise.
8791 * stdio-common/sprintf.c: Likewise.
8792 * stdio-common/tmpfile64.c: Likewise.
8793 * stdio-common/vfprintf.c: Likewise.
8794 * stdio-common/vfscanf.c: Likewise.
8795 * stdlib/strfmon.c: Likewise.
8796 * sunrpc/auth_des.c: Likewise.
8797 * sunrpc/auth_none.c: Likewise.
8798 * sunrpc/auth_unix.c: Likewise.
8799 * sunrpc/authdes_prot.c: Likewise.
8800 * sunrpc/authuxprot.c: Likewise.
8801 * sunrpc/clnt_perr.c: Likewise.
8802 * sunrpc/clnt_raw.c: Likewise.
8803 * sunrpc/clnt_tcp.c: Likewise.
8804 * sunrpc/clnt_udp.c: Likewise.
8805 * sunrpc/clnt_unix.c: Likewise.
8806 * sunrpc/key_call.c: Likewise.
8807 * sunrpc/key_prot.c: Likewise.
8808 * sunrpc/openchild.c: Likewise.
8809 * sunrpc/pm_getmaps.c: Likewise.
8810 * sunrpc/pm_getport.c: Likewise.
8811 * sunrpc/pmap_clnt.c: Likewise.
8812 * sunrpc/pmap_prot.c: Likewise.
8813 * sunrpc/pmap_prot2.c: Likewise.
8814 * sunrpc/pmap_rmt.c: Likewise.
8815 * sunrpc/rpc_cmsg.c: Likewise.
8816 * sunrpc/rpc_prot.c: Likewise.
8817 * sunrpc/svc_authux.c: Likewise.
8818 * sunrpc/svc_raw.c: Likewise.
8819 * sunrpc/svc_simple.c: Likewise.
8820 * sunrpc/svc_tcp.c: Likewise.
8821 * sunrpc/svc_udp.c: Likewise.
8822 * sunrpc/svc_unix.c: Likewise.
8823 * sunrpc/xdr.c: Likewise.
8824 * sunrpc/xdr_array.c: Likewise.
8825 * sunrpc/xdr_mem.c: Likewise.
8826 * sunrpc/xdr_rec.c: Likewise.
8827 * sunrpc/xdr_ref.c: Likewise.
8828 * sunrpc/xdr_stdio.c: Likewise.
8829 * sysdeps/generic/_strerror.c: Likewise.
8830 * sysdeps/generic/printf_fphex.c: Likewise.
8831 * sysdeps/generic/tmpfile.c: Likewise.
8832 * sysdeps/gnu/errlist.awk: Likewise.
8833 * sysdeps/gnu/errlist.c: Likewise.
8835 * libio/Makefile (routines): Remove iosprint.
8836 * libio/iosprintf.c: Removed
8839 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8841 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8842 non_dynamic_init and exported now.
8843 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8844 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8846 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8847 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8848 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8850 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8852 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8855 * locale/iso-639.def: Add language codes for Walloon.
8857 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8858 total number of relocations performed.
8860 * elf/sprof.c (load_profdata): If do_test provide information as
8861 to why loading failed.
8862 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8865 * csu/set-init.c: Moved to...
8866 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8867 * csu/Makefile: Don't compile set-init.
8868 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8869 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8871 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8872 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8873 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8875 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8878 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8880 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8881 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8882 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8883 (_dl_deallocate_tls): New function.
8884 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8887 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8889 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8890 * stdio-common/tst-fseek.c (main): Add test for this.
8892 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8894 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8896 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8898 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8899 pointer before dereferencing.
8901 2002-02-18 Roland McGrath <roland@frob.com>
8903 * sysdeps/mach/hurd/times.c: Fix typo in last change.
8905 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
8906 Use task_policy in place of task_priority.
8908 * sysdeps/generic/bits/mman.h
8909 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
8910 * sysdeps/mach/msync.c: New file.
8912 * sysdeps/mach/powerpc/syscall.S: New file.
8914 * mach/msg.c [MACH_MSG_OVERWRITE]
8915 (__mach_msg_trap, __mach_msg_overwrite): New functions.
8916 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
8918 * sysdeps/mach/configure.in: Check for clock.defs to put into
8919 mach_interface_list.
8920 * sysdeps/mach/configure: Regenerated.
8922 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
8923 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
8924 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
8925 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
8926 (mach-shortcuts): Add device_read_overwrite_request,
8927 device_read_overwrite, vm_read_overwrite, thread_switch.
8929 * configure.in (base_machine): Set to $machine by default.
8930 * configure: Regenerated.
8932 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
8933 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
8934 * sysdeps/mach/configure: Regenerated.
8935 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
8937 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
8939 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
8941 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
8942 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
8944 2002-02-17 Roland McGrath <roland@frob.com>
8946 * sysdeps/mach/hurd/times.c
8947 [NO_CREATION_TIME] (startup_time): New static variable.
8948 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
8949 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
8950 creation_time from task_basic_info.
8951 (__times): Use __gettimeofday instead of __host_get_time.
8953 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
8954 Use untyped Mach IPC message format.
8956 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
8958 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
8959 _S_catch_exception_raise_state_identity,
8960 _hurdsig_fault_catch_exception_raise_state,
8961 _hurdsig_fault_catch_exception_raise_state_identity.
8963 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
8965 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
8966 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
8968 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
8969 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
8971 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
8972 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
8973 them as no-op macros.
8974 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
8975 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
8977 * sysdeps/powerpc/dl-machine.h
8978 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
8980 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
8981 Use untyped Mach IPC message format.
8983 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
8984 Handle untyped Mach IPC message formats.
8986 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
8987 Expect different argument conventions when this is defined.
8988 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
8989 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
8990 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
8991 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
8992 for OSF Mach variant.
8993 (faulted): Use mig_reply_error_t for REPLY.
8994 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
8995 in __thread_set_exception_ports call.
8996 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
8997 __mach_port_set_attributes in place of __mach_port_set_qlimit.
8999 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9000 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9001 on Darwin, which includes bogons.
9003 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9004 variable LOADBASE so it's not declared when it's not used.
9006 2002-02-16 Roland McGrath <roland@frob.com>
9008 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9009 to use BI.creation_time.
9011 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9013 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9014 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9015 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9016 host_page_size instead of vm_statistics.
9018 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9019 mach_interface.h here, since not all variants use that name.
9021 * sysdeps/mach/configure.in: Add some checks for Mach headers
9022 to ensure a sane installation.
9023 (mach_interface_list): Define this variable by checking for .defs
9024 files found in various variants.
9025 * configure.in (mach_interface_list): AC_SUBST this.
9026 * config.make.in (mach-interface-list): New substituted variable.
9027 * mach/Makefile (user-interfaces): Define this using the value
9028 of $(mach-interface-list) instead of mach, mach4.
9029 Updated other references to mach_interface to use it as well.
9031 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9033 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9034 mig_reply_error_t for OSF Mach variant.
9036 * mach/Makefile (routines): Remove bootprivport.
9037 * mach/bootprivport.c: File removed. It has never been used.
9039 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9040 Grok the OSF flavor of message format.
9041 (mach_msg_destroy_port): For MAKE_SEND and
9042 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9043 no-senders notification.
9045 2002-02-06 Roland McGrath <roland@frob.com>
9047 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9048 to here if 2.0 compatibility enabled ...
9049 (libc: GLIBC_2.1.3): ... from here.
9051 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9053 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9055 * elf/dl-close.c (_dl_close): Likewise.
9057 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9059 * elf/Makefile: Add rules to build and run tst-tls8.
9060 * elf/tst-tls8.c: New file.
9061 * elf/tst-tlsmod4.c: New file.
9063 * stdlib/test-a64l.c (tests): Add more test cases.
9065 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9066 Reported by Walter Harms <WHarms@bfs.de>.
9068 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9070 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9071 definitions for struct sigcontext.
9072 Suggested by David Mosberger-Tang.
9074 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9076 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9077 for removing reference of module in slotinfo list.
9078 (_dl_close): Use remove_slotinfo.
9079 * sysdeps/generic/dl-tls.c: General pretty printing.
9080 (oom): Define only if SHARED.
9081 (_dl_next_tls_modid): Correct starting point for the case we assume
9082 there is a gap. Add missing instruction grouping (doh!). Correct
9083 tests for reaching maximum index.
9084 * elf/Makefile: Add rules to build and run tst-tls7.
9085 * elf/tst-tls7.c: New file.
9086 * elf/tst-tlsmod3.c: New file.
9088 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9090 * elf/tst-tlsmod2.c: Likewise.
9092 * elf/dl-close.c (_dl_close): When closing an object using TLS
9093 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9094 true. Increment dl_tls_generation only if we closed any TLS-using
9096 * elf/tst-tls6.c: New file.
9097 * elf/Makefile: Add rules to build and run tst-tls6.
9099 * po/da.po: Update from translation team.
9101 * locale/categories.def: Fix typo [PR libc/2948].
9102 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9104 * locale/iso-4217.def: Update from official version [PR libc/2950].
9105 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9106 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9107 message if input is too confusion instead of using assert.
9108 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9109 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9111 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9112 * elf/tst-tls2.c: Likewise.
9113 * elf/tst-tls3.c: Likewise.
9115 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9117 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9119 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9121 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9122 if this is really necessary.
9124 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9126 (free_mem): Free memory for the slotinfo array if possible.
9128 2002-02-12 Andreas Schwab <schwab@suse.de>
9130 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9132 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9134 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9136 (oom): New function.
9137 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9138 (_dl_determine_tlsoffset): Likewise.
9139 (_dl_allocate_tls): Likewise.
9140 (__TLS_GET_ADDR): Define if not already defined.
9141 (_dl_tls_symaddr): New function.
9142 (allocate_and_init): New function.
9143 (__tls_get_addr): Actually implement handling of generation counter
9144 and deferred allocation.
9145 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9146 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9148 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9149 Declare _dl_tls_symaddr.
9150 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9152 * include/link.h (struct link_map): Remove l_tls_nextimage and
9154 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9155 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9156 (_dl_vsym): Likewise.
9157 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9159 (dl_main): Allow PT_TLS be present for empty segment. Remove
9160 nextimage list handling. Instead add all modules using TLS to
9161 dl_tls_dtv_slotinfo_list.
9162 * elf/dl-open.c (dl_open_worker): After successfully loading all
9163 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9164 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9165 empty segment don't do anything. Remove handling of initimage list.
9166 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9167 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9168 * elf/dl-minimal.c: Define __libc_memalign.
9169 * elf/dl-support.c: Remove _dl_initimage_list. Add
9170 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9172 * include/stdlib.h: Declare __libc_memalign.
9174 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9175 * elf/tst-tls4.c: New file.
9176 * elf/tst-tls5.c: New file.
9177 * elf/tst-tlsmod2.c: New file.
9179 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9181 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9183 * elf/tst-tls1.c: Use test-skeleton.c.
9184 * elf/tst-tls2.c: Likewise.
9185 * elf/tst-tls3.c: Likewise.
9187 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9189 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9191 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9193 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9195 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9197 * elf/tst-tls3.c: New file.
9198 * elf/tst-tlsmod1.c: New file.
9199 * elf/Makefile: Add rules to build and run tst-tls3.
9201 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9202 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9205 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9207 * po/fr.po: Update from translation team.
9209 * elf/tls-macros.h: Add alternative macros for use in PIC.
9211 * elf/dl-lookup.c: Include <tls.h>.
9212 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9214 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9215 required by passing pointer to last element of the list.
9217 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9218 l_tls_initimage to a place where it actually is performed.
9220 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9221 after globfree() calls.
9223 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9224 (openaux): Pass open_mode as new last argument to _dl_map_object.
9225 (_dl_map_object_deps): Add new argument open_mode. Initialize
9226 open_mode element of args variable with it.
9227 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9228 _dl_map_object_deps.
9229 * elf/rtld.c (dl_main): Add zero as last parameter to
9230 _dl_map_object_deps call.
9231 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9232 * elf/nodlopen2.c: New file.
9233 * elf/nodlopenmod2.c: New file.
9234 * elf/Makefile: Add rules to build and run nodlopen2.
9236 * elf/tst-tls1.c: Move TLS helper macros to...
9237 * elf/tls-macros.h: ...here. New file.
9238 * elf/tst-tls2.c: New file.
9239 * elf/Makefile (tests): Add tst-tls2.
9240 (distribute): Add tls-macros.h.
9242 * po/sv.po: Update from translation team.
9244 * elf/tst-tls1.c (main): Add complete set of tests. Split
9245 architecture specific definitions from the actual test code.
9247 * po/tr.po: Update from translation team.
9249 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9251 * elf/Makefile (tests): Add tst-tls1.
9252 * elf/tst-tls1.c: New file.
9254 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9255 alignment of TCB for now.
9257 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9258 initialization image for the application itself.
9260 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9261 loop to initialize TLS block.
9263 2002-02-08 Richard Henderson <rth@redhat.com>
9265 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9266 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9268 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9270 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9272 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9274 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9276 * po/ca.po: Update from translation team.
9277 * po/sk.po: Likewise.
9279 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9280 (dl_main): Move dtv/static TLS handling before relocation.
9281 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9282 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9283 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9284 so far uses TLS initialize GL(dl_tls_static_size) and
9285 GL(dl_tls_static_align) to account for the TCB.
9286 (_dl_allocate_tls): New function.
9287 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9288 _dl_initial_dtv_malloced.
9290 * configure.in: Test for __builtin_memset more realistically.
9292 * csu/version.c (banner): If TLS support is available say so.
9294 2002-02-04 H.J. Lu <hjl@gnu.org>
9296 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9298 (__dl_runtime_resolve): Likewise.
9300 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9303 2001-11-15 H.J. Lu <hjl@gnu.org>
9305 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9306 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9308 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9310 2002-02-07 H.J. Lu <hjl@gnu.org>
9312 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9314 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9317 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9319 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9321 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9322 ___tls_get_addr_internal.
9323 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9325 * po/ko.po: Update from translation team.
9327 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9329 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9330 attribute, change __pad{1,2} type to unsigned int.
9331 (struct stat64): Remove packed attribute.
9333 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9335 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9337 2002-02-07 Andreas Schwab <schwab@suse.de>
9339 * configure.in: Fix check for -zcombreloc.
9341 2002-02-06 H.J. Lu <hjl@gnu.org>
9343 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9344 * configure.in: Check if __builtin_memset really works.
9345 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9346 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9348 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9350 * io/bug-ftw3.c (main): Don't try the test if root.
9352 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9354 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9356 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9357 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9358 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9360 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9361 a weak alias for __clone.
9362 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9363 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9364 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9365 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9366 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9367 a weak alias for __mmap64.
9369 2002-02-05 H.J. Lu <hjl@gnu.org>
9371 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9372 (atomic_add): Likewise.
9373 (compare_and_swap): Likewise.
9374 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9376 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9378 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9380 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9381 alignment of the TCB and store total size and alignment of static
9382 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9383 tls_index is a typedef.
9384 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9385 _dl_tls_static_align.
9386 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9387 * elf/dl-support.c: Define _dl_tls_static_size and
9388 _dl_tls_static_align.
9390 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9392 * configure.in: Add --without-tls option.
9393 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9394 --without-tls is given.
9396 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9398 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9400 2002-02-06 Roland McGrath <roland@frob.com>
9402 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9403 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9405 * scripts/versions.awk: Improve error message for missing version.
9406 Each version inherits from the last one only if they have the same
9407 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9408 but not GLIBC_x and FOO_y.
9410 * scripts/firstversions.awk: Handle libraries that don't have each
9411 particular version named in the third column of shlib-versions.
9413 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9415 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9417 * Versions.def [ld]: Add GLIBC_2.3.
9418 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9419 * elf/Makefile (dl-routines): Add dl-tls.
9420 (distribute): Add dl-tls.h.
9421 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9422 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9423 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9424 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9425 along with the other info in the link map. Change queueing of init
9426 images for double linked list. Use _dl_next_tls_modid to compute
9428 * elf/rtld.c (_dl_start_final): Store alignment requirement
9429 along with the other info in rtld map and executable map.
9430 (dl_main): Add ld.so to the init image list if necessary. Compute
9431 final module ID with _dl_next_tls_modid.
9432 * include/link.h (struct link_map): Add l_tls_previmage and
9434 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9435 * sysdeps/i386/elf/Versions: New file.
9436 * sysdeps/generic/dl-tls.c: New file.
9437 * sysdeps/generic/dl-tls.h: New file.
9438 * sysdeps/i386/dl-tls.h: New file.
9440 2002-02-06 Roland McGrath <roland@frob.com>
9442 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9443 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9445 2002-01-05 Roland McGrath <roland@frob.com>
9447 * sysdeps/mach/configure.in: New file.
9448 * sysdeps/mach/configure: New generated file.
9450 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9451 It has never been used by anything.
9453 2002-02-06 H.J. Lu <hjl@gnu.org>
9455 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9458 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9460 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9461 attribute((packed)) to counter stupid people misusing gcc options.
9462 (struct stat64): Likewise.
9464 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9466 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9467 the variables which are used as booleans.
9469 2002-02-06 Andreas Jaeger <aj@suse.de>
9471 * include/libc-symbols.h (INTUSE): Renamed from INT.
9472 * elf/dl-deps.c: Change users.
9473 * sysdeps/generic/dl-sysdep.c: Likewise.
9474 * sysdeps/generic/dl-cache.c: Likewise.
9475 * elf/dl-reloc.c: Likewise.
9476 * elf/rtld.c: Likewise.
9477 * elf/dl-version.c: Likewise.
9478 * elf/dl-load.c: Likewise.
9479 * elf/dl-dst.h: Likewise.
9480 * elf/dl-init.c: Likewise.
9481 * elf/dl-error.c: Likewise.
9482 * elf/dl-fini.c: Likewise.
9483 * elf/dl-runtime.c: Likewise.
9484 * elf/do-lookup.h: Likewise.
9486 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9488 * stdio-common/_itowa.h: Likewise.
9490 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9492 * elf/dl-minimal.c: Define _itoa_lower_digits.
9494 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9497 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9498 loading modules with the DF_STATIC_TLS flag set.
9499 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9501 * include/link.h (struct link_map): Add l_flags field.
9502 * elf/elf.h (DF_STATIC_TLS): New definition.
9504 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9505 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9507 * elf/rtld.c (process_dl_debug): Correct printing help message.
9508 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9511 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9512 definition and pass &errno in use of this variable.
9513 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9515 2002-02-04 Andreas Schwab <schwab@suse.de>
9517 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9518 * locale/programs/charmap-dir.c: Wrap calls that output messages
9519 with WITH_CUR_LOCALE. Include "localedef.h" first.
9520 * locale/programs/charmap.c: Likewise.
9521 * locale/programs/ld-address.c: Likewise.
9522 * locale/programs/ld-collate.c: Likewise.
9523 * locale/programs/ld-ctype.c: Likewise.
9524 * locale/programs/ld-identification.c: Likewise.
9525 * locale/programs/ld-measurement.c: Likewise.
9526 * locale/programs/ld-messages.c: Likewise.
9527 * locale/programs/ld-monetary.c: Likewise.
9528 * locale/programs/ld-name.c: Likewise.
9529 * locale/programs/ld-numeric.c: Likewise.
9530 * locale/programs/ld-paper.c: Likewise.
9531 * locale/programs/ld-telephone.c: Likewise.
9532 * locale/programs/ld-time.c: Likewise.
9533 * locale/programs/linereader.c: Likewise.
9534 * locale/programs/linereader.h: Likewise.
9535 * locale/programs/localedef.c: Likewise.
9536 * locale/programs/locfile.c: Likewise.
9537 * locale/programs/repertoire.c: Likewise.
9539 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9541 * elf/rtld.c (_dl_start_final): Determine load address to locate
9542 ehdr with GL(dl_rtld_map).l_map_start.
9544 * po/ca.po: Update from translation team.
9546 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9547 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9549 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9551 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9553 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9555 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9556 * include/link.h (struct link_map): Add various members for TLS
9558 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9559 _rtld_tlsoffset, add _dl_initimage_list.
9560 * sysdeps/i386/dl-lookupcfg.h: New file.
9561 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9562 TLS relocation. When using TLS we now use RESOLVE_MAP.
9563 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9566 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9569 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9570 thread-pointer as soon as possible.
9571 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9572 elements in rtld_global.
9573 * sysdeps/generic/tls.h: New file.
9574 * elf/Makefile (distribute): Add tls.h.
9575 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9576 relocations. Not complete yet.
9578 * resolv/resolv.h: Allow user to define __need_res_state and only
9579 define __res_start structure then.
9580 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9582 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9583 dl_cpuclock_offset initialization to _dl_start_final.
9584 (_dl_show_auxv): Avoid unnecessary sign extension.
9585 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9587 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9589 * config.h.in: Add HAVE_TLS_SUPPORT.
9590 * sysdeps/i386/elf/configure.in: New file.
9592 2002-02-03 Andreas Schwab <schwab@suse.de>
9594 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9595 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9597 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9599 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9600 alloca if the memory reqirements are too high.
9602 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9604 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9605 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9606 the former is available anyway and speed isn't important here.
9607 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9608 * elf/dl-version.c (match_symbol): Likewise.
9609 (_dl_check_map_versions): Likewise.
9610 * elf/rtld.c (process_envvars): Likewise.
9611 (print_statistics): Likewise.
9612 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9613 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9614 bases. Add assert to catch uses of unimplemented features.
9615 (__strsep): Add assert to catch uses of unimplemented features.
9616 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9617 and avoid inline optimization.
9618 * elf/rtld.c (process_envvars): Likewise.
9619 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9620 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9621 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9623 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9625 * stdio-common/_itoa.h: Minor simplifications of the code.
9626 * stdio-common/_itoa.c: Likewise.
9628 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9629 instead of _dl_printf for debugging info output.
9631 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9632 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9634 2002-02-01 H.J. Lu <hjl@gnu.org>
9636 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9637 (atomic_add): Likewise.
9638 (compare_and_swap): Return 0 only when failed to compare. Use
9641 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9644 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9646 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9648 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9650 * elf/dl-minimal.c (__strsep): New minimal implementation.
9652 2002-02-02 Paul Eggert <eggert@twinsun.com>
9654 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9655 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9656 with tm_isdst > 0 when the requested time falls within a
9657 spring-forward gap [PR libc/2894].
9659 2002-02-03 Andreas Schwab <schwab@suse.de>
9661 * stdio-common/tst-rndseek.c: Increase timeout.
9663 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9665 Change ld.so to not use functions which are exported. One cannot
9666 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9668 * include/libc-symbols.h: Define INT and INTDEF.
9669 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9670 _dl_signal_error_internal, _dl_map_object_internal,
9671 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9672 _dl_lookup_versioned_symbol_internal,
9673 _dl_relocate_object_internal, _dl_debug_state_internal,
9674 _dl_start_profile_internal, and _dl_unload_cache_internal.
9675 * include/dlfcn.h: Declare _dl_catch_error_internal.
9676 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9677 above. Add INTDEF to function definitions.
9678 * elf/dl-debug.c: Likewise.
9679 * elf/dl-deps.c: Likewise.
9680 * elf/dl-dst.h: Likewise.
9681 * elf/dl-error.c: Likewise.
9682 * elf/dl-fini.c: Likewise.
9683 * elf/dl-init.c: Likewise.
9684 * elf/dl-load.c: Likewise.
9685 * elf/dl-lookup.c: Likewise.
9686 * elf/dl-misc.c: Likewise.
9687 * elf/dl-open.c: Likewise.
9688 * elf/dl-profile.c: Likewise.
9689 * elf/dl-reloc.c: Likewise.
9690 * elf/dl-runtime.c: Likewise.
9691 * elf/dl-version.c: Likewise.
9692 * elf/do-lookup.h: Likewise.
9693 * sysdeps/generic/dl-cache.c: Likewise.
9694 * sysdeps/generic/dl-sysdep.c: Likewise.
9695 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9696 instead of _dl_init.
9697 * sysdeps/arm/dl-machine.h: Likewise.
9698 * sysdeps/cris/dl-machine.h: Likewise.
9699 * sysdeps/hppa/dl-machine.h: Likewise.
9700 * sysdeps/i386/dl-machine.h: Likewise.
9701 * sysdeps/ia64/dl-machine.h: Likewise.
9702 * sysdeps/m68k/dl-machine.h: Likewise.
9703 * sysdeps/mips/dl-machine.h: Likewise.
9704 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9705 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9706 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9707 * sysdeps/sh/dl-machine.h: Likewise.
9708 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9709 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9710 * sysdeps/x86_64/dl-machine.h: Likewise.
9711 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9713 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9714 and _dl_debug_initialize.
9716 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9718 * elf/rtld.c (dl_main): Avoid strrchr.
9719 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9720 result of readlink. Search from the back for '/'.
9722 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9723 strncpy if possible.
9725 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9727 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9728 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9729 strspn, and strcspn.
9730 (process_envvars): Don't use strcspn.
9732 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9733 (_dl_dst_substitute): Likewise.
9735 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9737 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9738 code which is never used when relocating ld.so itself.
9740 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9741 starting ld.so itself. Move l_addr variable initialization closer
9743 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9745 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9747 * Versions.def (libc): Add GLIBC_PRIVATE.
9748 (libdb, libnss_db, libdb1): Remove.
9749 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9750 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9751 (libpthread): Add GLIBC_PRIVATE.
9752 (libresolv): Likewise, remove GLIBC_2.1.
9753 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9754 GLIBC_2.2.3, GLIBC_2.3.
9755 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9756 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9757 _dl_sym, _dl_vsym): Likewise.
9758 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9759 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9760 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9761 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9762 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9763 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9764 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9765 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9767 (_dl_object_relocation_scope): Remove.
9768 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9769 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9770 __gconv_cache): Move to GLIBC_PRIVATE.
9771 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9772 __internal_setnetgrent): Likewise.
9773 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9774 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9775 * locale/Versions (__collate_element_hash, __collate_element_strings,
9776 __collate_symbol_classes, __collate_symbol_hash,
9777 __collate_symbol_strings, _nl_current_LC_COLLATE,
9778 _nl_current_LC_CTYPE): Likewise.
9779 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9780 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9781 (libnss_nis, libnss_nisplus): Likewise.
9782 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9783 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9784 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9785 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9786 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9787 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9788 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9789 __ns_get16, __ns_samename): Likewise.
9790 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9791 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9793 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9794 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9795 __libc_connect): Likewise.
9796 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9798 * stdlib/Versions (__libc_system): Likewise.
9799 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9800 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9801 * sysdeps/ia64/fpu/Versions: Likewise.
9802 * sysdeps/ia64/Versions: Likewise.
9803 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9804 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9806 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9807 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9808 __libc_sigaction): Likewise.
9809 * termios/Versions (__libc_tcdrain): Likewise.
9811 * misc/sys/cdefs (__attribute_noinline__): Define.
9812 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9813 __attribute_noinline__.
9815 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9816 * elf/dl-xstat64.c: New file.
9817 * elf/dl-fxstat64.c: New file.
9818 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9819 don't export __fxstat64 at multiple versions.
9820 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9821 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9823 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9825 * locale/program/ld-collate.c (collate_finish): Assign a wide
9826 char collation sequence value to multi character collating
9827 elements, and avoid over writing by non-character elements.
9829 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9831 * elf/Makefile (distribute): Add dl-procinfo.c.
9832 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9833 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9835 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9837 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9839 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9840 _rtld_global struct.
9841 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9842 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9843 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9844 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9845 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9846 _dl_fpu_control_set): Remove unused externs.
9847 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9848 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9849 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9850 related variables in _rtld_global struct.
9851 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9852 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9855 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9857 * sysdeps/generic/dl-procinfo.c: New file.
9859 2002-02-01 Andreas Schwab <schwab@suse.de>
9861 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9863 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9865 * elf/rtld.c (_dl_start): Mark as internal_function.
9866 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9868 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9869 General pretty printing.
9871 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9873 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9874 * elf/dl-reloc.c: Pretty printing.
9875 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9876 procinfo-related variables in rtld_global struct.
9877 * elf/dl-support.c: Likewise.
9878 * elf/rtld.c: Likewise.
9879 * sysdeps/i386/i686/Makefile: Likewise.
9880 * sysdeps/i386/i686/hp-timing.c: Likewise.
9881 * sysdeps/i386/i686/hp-timing.h: Likewise.
9882 * sysdeps/ia64/Makefile: Likewise.
9883 * sysdeps/ia64/hp-timing.c: Likewise.
9884 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9885 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9886 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9887 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9888 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9889 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9890 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9891 * sysdeps/x86_64/Makefile: Likewise.
9893 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9894 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9895 _dl_debug_fd to rtld_global.
9896 * elf/Versions: Likewise.
9897 * elf/dl-close.c: Likewise.
9898 * elf/dl-iteratephdr.c: Likewise.
9899 * elf/dl-lookup.c: Likewise.
9900 * elf/dl-misc.c: Likewise.
9901 * elf/dl-open.c: Likewise.
9902 * elf/dl-support.c: Likewise.
9903 * elf/do-lookup.h: Likewise.
9904 * elf/rtld.c: Likewise.
9905 * sysdeps/generic/dl-cache.c: Likewise.
9906 * sysdeps/generic/dl-sysdep.c: Likewise.
9907 * sysdeps/ia64/Versions: Likewise.
9908 * sysdeps/unix/clock_gettime.c: Likewise.
9909 * sysdeps/unix/clock_settime.c: Likewise.
9910 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9911 * sysdeps/sparc/Versions: Removed.
9912 * sysdeps/i386/i686/Versions : Removed.
9913 * sysdeps/x86_64/Versions: Removed.
9914 * configure.in: Define HAVE_PROTECTED if .protected is available.
9915 * config.h.in: Add entry for HAVE_PROTECTED.
9917 2002-01-31 Jakub Jelinek <jakub@redhat.com.
9919 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
9920 code in struct _rtld_global. Export this struct, remove all
9921 exports for the signal variables.
9922 * sysdeps/arm/dl-machine: Likewise.
9923 * sysdeps/generic/dl-origin: Likewise.
9924 * sysdeps/generic/dl-sysdep: Likewise.
9925 * sysdeps/generic/dl-cache: Likewise.
9926 * sysdeps/hppa/dl-fptr: Likewise.
9927 * sysdeps/hppa/dl-machine: Likewise.
9928 * sysdeps/cris/dl-machine: Likewise.
9929 * sysdeps/i386/dl-machine: Likewise.
9930 * sysdeps/ia64/dl-machine: Likewise.
9931 * sysdeps/m68k/dl-machine: Likewise.
9932 * sysdeps/mach/hurd/dl-sysdep: Likewise.
9933 * sysdeps/mips/mips64/dl-machine: Likewise.
9934 * sysdeps/mips/dl-machine: Likewise.
9935 * sysdeps/powerpc/elf/libc-start: Likewise.
9936 * sysdeps/powerpc/dl-machine: Likewise.
9937 * sysdeps/powerpc/dl-start: Likewise.
9938 * sysdeps/sparc/sparc32/dl-machine: Likewise.
9939 * sysdeps/sparc/sparc64/dl-machine: Likewise.
9940 * sysdeps/sh/dl-machine: Likewise.
9941 * sysdeps/s390/s390-32/dl-machine: Likewise.
9942 * sysdeps/s390/s390-64/dl-machine: Likewise.
9943 * sysdeps/unix/sysv/aix/libc-start: Likewise.
9944 * sysdeps/unix/sysv/aix/start-libc: Likewise.
9945 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
9946 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
9947 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
9948 * sysdeps/x86_64/dl-machine: Likewise.
9950 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9952 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
9955 2002-01-31 Andreas Schwab <schwab@suse.de>
9957 * sysdeps/posix/readv.c: Check for ssize_t overflow.
9959 2002-01-31 Andreas Schwab <schwab@suse.de>
9961 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
9962 reference to _dl_pagesize.
9964 2002-01-30 Ulrich Drepper <drepper@redhat.com>
9966 * Versions.def [ld]: Add GLIBC_2.3.
9967 * elf/dl-addr.c: Move global variables for SHARED code in struct
9968 _rtld_global. Export this struct, remove all exports for the
9970 * elf/dl-close.c: Likewise.
9971 * elf/dl-conflict.c: Likewise.
9972 * elf/dl-debug.c: Likewise.
9973 * elf/dl-deps.c: Likewise.
9974 * elf/dl-dst.h: Likewise.
9975 * elf/dl-error.c: Likewise.
9976 * elf/dl-fini.c: Likewise.
9977 * elf/dl-init.c: Likewise.
9978 * elf/dl-iteratephdr.c: Likewise.
9979 * elf/dl-libc.c: Likewise.
9980 * elf/dl-load.c: Likewise.
9981 * elf/dl-lookup.c: Likewise.
9982 * elf/dl-minimal.c: Likewise.
9983 * elf/dl-object.c: Likewise.
9984 * elf/dl-open.c: Likewise.
9985 * elf/dl-profile.c: Likewise.
9986 * elf/dl-profstub.c: Likewise.
9987 * elf/dl-reloc.c: Likewise.
9988 * elf/dl-runtime.c: Likewise.
9989 * elf/dl-support.c: Likewise.
9990 * elf/dl-sym.c: Likewise.
9991 * elf/dl-version.c: Likewise.
9992 * elf/do-lookup.h: Likewise.
9993 * elf/do-rel.h: Likewise.
9994 * elf/dynamic-link.h: Likewise.
9995 * elf/rtld.c: Likewise.
9996 * sysdeps/generic/dl-cache.c: Likewise.
9997 * sysdeps/generic/dl-sysdep.c: Likewise.
9998 * sysdeps/generic/ldsodefs.h: Likewise.
9999 * sysdeps/generic/libc-start.c: Likewise.
10000 * sysdeps/i386/dl-machine.h: Likewise.
10001 * sysdeps/ia64/dl-fptr.c: Likewise.
10002 * sysdeps/ia64/dl-machine.h: Likewise.
10003 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10004 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10005 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10006 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10007 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10008 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10009 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10010 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10012 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10014 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10016 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10018 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10020 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10022 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10024 2002-01-29 Ben Collins <bcollins@debian.org>
10026 * string/bits/string2.h (__mempcpy): Protect size arg for
10027 addition when using __builtin_memcpy.
10029 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10031 * stdlib/Makefile (tests): Add tst-qsort.
10032 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10034 * manual/signal.texi (Process Signal Mask): Document that
10035 pthread_sigmask, not sigprocmask, must be used in MT programs.
10036 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10038 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10040 * misc/Makefile (tests): Add tst-hsearch.
10041 * misc/tst-hsearch.c: New file.
10043 2002-01-18 Wolfram Gloger <wg@malloc.de>
10045 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10046 * malloc/malloc.h: Likewise.
10047 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10048 * malloc/arena.c: New file.
10049 * malloc/hooks.c: New file.
10050 * malloc/tst-mallocstate.c: New file.
10051 * malloc/Makefile: Add new testcase tst-mallocstate.
10052 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10054 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10056 * stdlib/msort.c: Remove last patch. The optimization violates the
10057 same rule which qsort.c had problems with.
10059 2002-01-27 Paul Eggert <eggert@twinsun.com>
10061 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10062 to a pivot element that lies outside the array to be sorted, as
10063 ISO C99 requires that the comparison function be called only with
10064 addresses of array elements [PR libc/2880].
10066 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10068 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10069 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10071 * timezone/asia: Update from tzdata2002b.
10072 * timezone/australasia: Likewise.
10073 * timezone/backward: Likewise.
10074 * timezone/europe: Likewise.
10075 * timezone/leapseconds: Likewise.
10076 * timezone/iso3166.tab: Likewise.
10077 * timezone/zone.tab: Likewise.
10079 2002-01-23 Richard Henderson <rth@redhat.com>
10081 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10083 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10085 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10086 this element [PR libc/2855].
10088 * string/strcoll.c: Handle zero-length arguments specially
10091 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10093 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10094 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10095 short lengths and constant src.
10096 (strcpy): Don't optimize for gcc 3.0+.
10097 (__stpcpy): For gcc 3.0+, don't use
10098 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10099 for short string literal src.
10101 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10103 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10106 2001-01-22 Paul Eggert <eggert@twinsun.com>
10108 * manual/llio.texi (Linked Channels, Cleaning Streams):
10109 Make it clearer that a just-opened input stream might need cleaning.
10111 2002-01-21 H.J. Lu <hjl@gnu.org>
10113 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10114 Don't use label at end of compound statement.
10116 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10118 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10119 Remove test for negative integer arg; sin_pi does it correctly.
10121 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10123 * nscd/Makefile (distribute): Filter out xmalloc.c.
10125 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10127 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10128 Set offset if read end wasn't the buffer end.
10129 (_IO_file_seekoff_mmap): New function.
10130 (_IO_file_xsgetn_mmap): New function.
10131 (_IO_file_jumps_mmap): Use the two new functions.
10132 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10134 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10135 _IO_file_underflow_mmap.
10136 * libio/iofopen.c: Don't position file descriptor at end of file.
10137 * libio/tst-widetext.c: Improve error messages.
10138 * stdio-common/tst-rndseek.c: Likewise.
10140 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10142 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10143 end of enum for !_GNU_SOURCE.
10144 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10145 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10146 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10147 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10148 values unless _GNU_SOURCE.
10150 * iconvdata/tcvn5712-1.c: Minor cleanups.
10152 2002-01-18 Andreas Schwab <schwab@suse.de>
10154 * sysdeps/unix/sysv/linux/configure.in
10155 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10157 2002-01-16 Roger Sayle <roger@eyesopen.com>
10159 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10160 more efficient "Towers of Hanoi" mergesort.
10161 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10162 for generic, sizeof(int) and sizeof(long) variants respectively.
10164 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10166 * manual/syslog.texi (openlog): Describe possible problems with
10168 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10170 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10171 * nscd/connections.c (begin_drop_privileges): New function.
10172 (finish_drop_privileges): New function.
10173 (nscd_init): Call the new functions which also install all groups
10174 for the server user.
10175 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10176 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10178 2002-01-17 H.J. Lu <hjl@gnu.org>
10180 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10181 `const' from `got'.
10183 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10185 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10186 instructions for pointer operations.
10187 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10189 2002-01-17 Andreas Jaeger <aj@suse.de>
10191 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10192 __uint128_t build-in.
10194 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10195 PowerPC, sync with 2.2 branch.
10197 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10199 * posix/getconf.c: Update copyright year.
10200 * nss/getent.c: Likewise.
10201 * nscd/nscd_nischeck.c: Likewise.
10202 * iconv/iconvconfig.c: Likewise.
10203 * iconv/iconv_prog.c: Likewise.
10204 * elf/ldconfig.c: Likewise.
10205 * catgets/gencat.c: Likewise.
10206 * csu/version.c: Likewise.
10207 * elf/ldd.bash.in: Likewise.
10208 * elf/sprof.c (print_version): Likewise.
10209 * locale/programs/locale.c: Likewise.
10210 * locale/programs/localedef.c: Likewise.
10211 * nscd/nscd.c (print_version): Likewise.
10212 * debug/xtrace.sh: Likewise.
10213 * malloc/memusage.sh: Likewise.
10214 * malloc/mtrace.pl: Likewise.
10216 2002-01-16 Andreas Schwab <schwab@suse.de>
10218 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10219 reliably remove "-ia64" from rtld name.
10221 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10223 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10224 Patch by Yu Shao <yshao@redhat.com>.
10226 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10228 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10229 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10230 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10232 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10234 * sysdeps/s390/fpu/libm-test-ulps: Update.
10236 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10238 * elf/elf.h: Update x86 relocations.
10240 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10242 * locale/programs/charmap.c (new_width): Check whether byte
10243 sequences for both ends of range have the same length.
10245 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10247 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10249 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10251 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10253 (__full_ieee754_sqrt): Add __attribute_used__.
10255 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10257 * sysdeps/generic/group_member.c (__group_member): Also check
10258 groups[0] [PR libc/2781].
10260 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10262 * Makefile (distribute): Add scripts/cpp.
10263 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10264 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10265 unwind-dw2-fde.h, and dwarf2.h.
10266 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10267 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10268 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10269 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10271 2002-01-07 Roland McGrath <roland@frob.com>
10273 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10274 volatile on type of ARGC so the compiler doesn't get clever.
10276 2002-01-07 Andreas Jaeger <aj@suse.de>
10278 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10279 * sysdeps/i386/bits/byteswap.h: Likewise.
10280 * sysdeps/ia64/bits/byteswap.h: Likewise.
10281 * sysdeps/m68k/bits/byteswap.h: Likewise.
10282 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10283 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10285 2002-01-02 Bruno Haible <bruno@clisp.org>
10287 * intl/plural.y: Fix %expect count.
10289 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10291 * elf/Makefile (routines, shared-only-routines): Add
10292 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10293 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10294 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10295 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10296 Optimize if .eh_frame section contains no FDEs.
10297 (__register_frame, __deregister_frame_info_bases,
10298 __deregister_frame): Likewise.
10299 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10300 DW_CFA_restore handling.
10302 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10304 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10306 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10307 for x < 0.25 and restore original range reduction method.
10308 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10310 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10312 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10313 (_IO_file_close_mmap): New function.
10314 (_IO_file_jumps_mmap): New variable.
10315 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10316 trying to convert rest of byte buffer.
10317 (_IO_wfile_underflow_mmap): New function.
10318 (_IO_wfile_jumps_mmap): New variable.
10319 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10320 (__fopen_internal): New function. Split out from _IO_new_fopen.
10321 (_IO_new_fopen): Call __fopen_internal.
10322 * libio/iofopen64.c: Just call __fopen_internal.
10323 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10325 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10326 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10327 _IO_file_close_mmap.
10329 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10330 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10332 * stdio-common/Makefile (tests): Add tst-rndseek.
10333 * stdio-common/tst-rndseek.c: New file.
10335 2002-01-05 Roland McGrath <roland@frob.com>
10337 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10338 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10339 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10340 * sysdeps/mach/hurd/configure: Regenerated.
10342 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10344 * elf/elf.h: Add more TLS definitions.
10346 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10348 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10350 2002-01-02 Roland McGrath <roland@frob.com>
10352 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10353 __sigisemptyset. Don't use MASK uninitialized.
10355 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10356 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10357 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10358 __sigdelset, __sigaddset, __sigorset.
10360 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10361 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10363 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10364 _hurd_ports is null.
10366 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10367 for old CMU and new OSF Mach interface flavors.
10368 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10369 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10371 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10373 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10374 Pass extra arguments to task_create for OSF variant.
10375 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10377 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10378 conditional on [HAVE_AUX_VECTOR].
10380 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10381 mach_msg_timeout_t as type of final argument.
10383 * hurd/privports.c (__get_privileged_ports):
10384 Change host_priv_t to mach_port_t in argument type.
10385 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10388 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10389 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10390 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10391 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10392 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10393 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10395 2002-01-01 Roland McGrath <roland@frob.com>
10397 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10399 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10401 * include/stdlib.h: Define inlines for the _l variants of the strto*
10404 2002-01-01 Roland McGrath <roland@frob.com>
10406 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10408 * mach/Machrules (MIG): Set CPP as well as CC.
10410 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10412 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10413 locale to parse /proc/loadavg [PR libc/2760].
10415 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10417 * elf/dl-conflict.c: Include sys/param.h.
10418 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10419 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10421 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10422 literals to avoid warnings.
10424 2001-12-31 Andreas Jaeger <aj@suse.de>
10426 * configure.in: Don't check for gsed since we do not use it anywhere.
10428 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10430 * io/fts.c: Update from BSD to fix memory leaks.
10432 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10434 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10435 * elf/chroot_canon.c: Likewise.
10436 * elf/dl-object.c: Likewise.
10437 * iconv/iconv_charmap.c: Likewise.
10438 * iconv/iconv_prog.c: Likewise.
10439 * libio/iogetdelim.c: Likewise.
10440 * locale/lc-time.c: Likewise.
10441 * stdlib/canonicalize.c: Likewise.
10442 * sunrpc/svc.c: Likewise.
10443 * sysdeps/generic/glob.c: Likewise.
10445 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10447 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10448 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10449 remove high order bit from the program counter.
10450 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10452 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10454 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10455 unnecessary code and add missing reloc types.
10456 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10457 case for reloc type R_390_NONE.
10459 2001-12-28 Andreas Jaeger <aj@suse.de>
10461 * io/bug-ftw3.c: Include string.h for prototypes.
10463 * crypt/md5test.c (main): Remove unused variable.
10465 * dlfcn/modstatic.c: Add prototype to avoid warning.
10467 2001-12-26 Roland McGrath <roland@frob.com>
10469 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10470 check only (SS->pending & MASK) for the signal to return.
10471 From Jeroen Dekkers <jeroen@dekkers.cx>.
10473 2001-12-22 Roland McGrath <roland@frob.com>
10475 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10476 Use preprocessor #if conditionals instead of `if' to avoid
10477 warnings about divide by zero in dead code.
10479 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10480 _hurd_port_init, and __hurd_self_sigstate.
10482 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10484 2001-12-21 Andreas Jaeger <aj@suse.de>
10486 * elf/dblloadmod1.c: Add prototype to avoid warning.
10487 * elf/dblloadmod2.c: Likewise.
10488 * elf/dblloadmod3.c: Likewise.
10489 * elf/reldepmod5.c: Likewise.
10490 * elf/reldepmod6.c: Likewise.
10492 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10493 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10494 used on all architectures.
10496 * sunrpc/svc_tcp.c: Add noreturn attribute for
10497 svctcp_rendezvous_abort.
10498 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10500 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10503 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10505 * manual/llio.texi (aio_fsync): Fix a typo.
10506 Patch by Tammy Fox <tfox@redhat.com>.
10508 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10510 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10511 stack bias from child stack pointer before passing it to clone syscall.
10513 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10515 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10517 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10518 Reported by Thorsten Kukuk <kukuk@suse.de>.
10520 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10523 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10525 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10527 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10528 conforming: return EBADF if file descriptor is invalid and EINVAL
10529 if file descriptor is no valid tty.
10530 * login/tst-grantpt.c: New file.
10531 * login/Makefile (tests): Add tst-grantpt.
10533 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10535 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10536 different than implemented in last patch.
10537 * io/bug-ftw3.c: Adjust test for changed handling of
10538 inaccessibility of toplevel dir.
10540 2001-12-16 Roland McGrath <roland@frob.com>
10542 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10543 * grp/initgroups.c (internal_getgrouplist): Likewise.
10545 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10546 `default:' to silence new GCC warning.
10547 Rewrite cast of lvalue to silence new GCC warning.
10549 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10551 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10552 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10554 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10556 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10557 Patch by Stephen R. van den Berg.
10559 * crypt/md5.h: Define md5_uintptr.
10561 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10563 * libio/tst_swprintf.c (main): Add test for string argument with
10565 * stdio-common/Makefile (tests): Add tst-sprintf.
10566 * stdio-common/tst-sprintf.c: New file.
10568 2001-12-13 Andreas Schwab <schwab@suse.de>
10570 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10571 zero precision with wide character string format.
10573 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10575 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10576 but have a user supplied buffer, return the empty buffer, not NULL.
10578 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10580 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10581 Patch by Eric Sharkey <sharkey@netrics.com>.
10583 * crypt/md5test.c (main): Add test for multiple calls to
10584 __md5_process_bytes to itererate over input string.
10586 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10588 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10589 from __nis_findfastest. Take timeout value from parameter.
10590 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10591 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10592 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10594 2001-12-12 Andreas Jaeger <aj@suse.de>
10596 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10597 combreloc test so that it works in this case.
10599 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10601 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10603 * sysdeps/sh/Makefile: New file.
10604 * sysdeps/sh/_mcount.S: New file.
10605 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10606 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10608 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10610 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10611 limitation [PR libc/2564].
10613 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10615 * elf/Makefile (dl-routines): Add conflict.
10616 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10617 (ld.so): Add _begin local symbol.
10618 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10620 * elf/dl-deps.c (_dl_build_local_scope): New function.
10621 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10623 * elf/do-rel.h (VALIDX): Define.
10624 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10625 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10627 * elf/dl-conflict.c: New file.
10628 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10629 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10631 (_dl_lookup_symbol_skip): Likewise.
10632 (_dl_lookup_versioned_symbol): Likewise.
10633 (_dl_lookup_versioned_symbol_skip): Likewise.
10634 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10635 define to ElfW(Rel).
10636 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10637 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10639 Don't adjust address dynamic tags if l_addr is 0.
10640 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10641 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10642 (VALIDX, ADDRIDX): Define.
10643 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10644 (dl_main): Print library list for LD_TRACE_PRELINKING.
10645 If prelinking information can be used, skip relocating libraries and
10646 call _dl_resolve_conflicts instead.
10647 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10648 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10649 if LD_TRACE_PRELINKING.
10650 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10652 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10653 (DL_DEBUG_PRELINK): Define.
10654 (_dl_resolve_conflicts): Add prototype.
10656 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10657 .plt for prelinked libraries where prelinking info cannot be used.
10658 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10659 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10660 * sysdeps/arm/bits/link.h: New file.
10661 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10662 content of .got[1].
10663 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10664 (ELF_MACHINE_PLT_REL): Define.
10665 (elf_machine_rela, elf_machine_rela_relative): New functions.
10666 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10667 of adjusting it if prelinked and prelinking cannot be used.
10668 * sysdeps/i386/bits/link.h: New file.
10669 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10670 content of .got[1].
10671 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10672 (ELF_MACHINE_PLT_REL): Define.
10673 (elf_machine_rela, elf_machine_rela_relative): New functions.
10674 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10675 of adjusting it if prelinked and prelinking cannot be used.
10676 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10677 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10678 to find out map for R_PPC_JMP_SLOT relocs.
10679 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10680 (OPCODE_BA): Define.
10681 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10682 libraries where prelinking info cannot be used.
10683 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10684 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10685 (elf_machine_rela): Set value to 0 if relocating conflicts.
10686 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10687 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10688 (sparc64_fixup_plt): Fix a typo.
10689 (elf_machine_rela): Set value to 0 if relocating conflicts.
10690 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10691 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10692 libraries where prelinking info cannot be used.
10693 * sysdeps/sh/bits/link.h: New file.
10694 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10695 content of .got[1].
10696 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10697 of adjusting it if prelinked and prelinking cannot be used.
10698 * sysdeps/s390/s390-32/bits/link.h: New file.
10699 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10700 Save original content of .got[1].
10701 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10702 of adjusting it if prelinked and prelinking cannot be used.
10703 * sysdeps/s390/s390-64/bits/link.h: New file.
10704 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10705 Save original content of .got[1].
10706 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10707 of adjusting it if prelinked and prelinking cannot be used.
10708 * sysdeps/x86_64/bits/link.h: New file.
10709 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10710 Save original content of .got[1].
10711 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10712 of adjusting it if prelinked and prelinking cannot be used.
10714 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10716 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10717 where appropriate instead of numbers. Little optimizations.
10719 2001-12-10 Roland McGrath <roland@frob.com>
10721 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10724 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10725 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10727 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10728 Fix conditionals so this is set by default for stdio and not for libio.
10729 * sysdeps/mach/hurd/configure: Regenerated.
10731 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10733 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10735 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10737 * io/Makefile (tests): Add bug-ftw3.
10738 * io/bug-ftw3.c: New file.
10740 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10741 matches and GLOB_NOCHECK is set.
10742 * posix/globtest.sh: Correct expected result for NOCHECK test.
10744 * po/ca.po: Update from translation team.
10746 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10748 Implement transliteration of characters in strings of the locale
10750 * locale/programs/linereader.c: Adjust for additional parameter to
10752 (get_string): If character <Uxxxx> is not found try to transliterate
10754 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10755 lr_token. Add const to charmap parameter of all functions.
10756 (find_translit, find_translit2): New functions.
10757 * locale/programs/charmap.c: Adjust for additional parameter to
10759 * locale/programs/repertoire.c: Likewise.
10760 * locale/programs/linereader.h: Likewise.
10761 * locale/programs/ld-address.c: Likewise. Add const to charmap
10762 parameter of all functions.
10763 * locale/programs/ld-collate.c: Likewise.
10764 * locale/programs/ld-identification.c: Likewise.
10765 * locale/programs/ld-measurement.c: Likewise.
10766 * locale/programs/ld-messages.c: Likewise.
10767 * locale/programs/ld-monetary.c: Likewise.
10768 * locale/programs/ld-name.c: Likewise.
10769 * locale/programs/ld-numeric.c: Likewise.
10770 * locale/programs/ld-paper.c: Likewise.
10771 * locale/programs/ld-paper.c: Likewise.
10772 * locale/programs/ld-telephone.c: Likewise.
10773 * locale/programs/ld-time.c: Likewise.
10774 * locale/programs/locfile.c: Likewise.
10775 * locale/programs/localedef.c: Likewise.
10776 * locale/programs/localedef.h: Likewise.
10777 * locale/programs/locfile.h: Likewise. Add declaration for
10779 * locale/programs/simple-hash.c: Add const to first parameter of
10780 find_entry, iterate_table, and lookup.
10781 * locale/programs/simple-hash.h: Likewise.
10782 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10784 * include/locale.h: Define __LC_LAST.
10785 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10787 2001-12-07 Geoff Keating <geoffk@redhat.com>
10789 * sysdeps/powerpc/Dist: Update for recent FP changes.
10790 * sysdeps/powerpc/fpu/Dist: Likewise.
10792 2001-12-07 Andreas Schwab <schwab@suse.de>
10794 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10796 2001-12-06 Geoff Keating <geoffk@redhat.com>
10798 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10799 save/restore functions here.
10800 (libm-support): Don't define these functions here.
10801 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10803 * sysdeps/powerpc/fe_nomask.c: Move to...
10804 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10805 * sysdeps/powerpc/fprrest.S: Move to...
10806 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10807 * sysdeps/powerpc/fprsave.S: Move to...
10808 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10810 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10812 * sysdeps/unix/sysv/linux/opensock.c: New file.
10814 2001-12-06 Geoff Keating <geoffk@redhat.com>
10816 * config.make.in (with-fp): Define from configure.
10817 * configure.in: Substitute with_fp.
10818 * configure: Regenerate.
10819 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10820 specified, and don't change FPU environment.
10822 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10824 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10825 * assert/assert.c: Check result of __asprintf call and don't use
10826 string if it failed.
10827 * assert/assert-perr.c: Likewise.
10828 * inet/rcmd.c: Likewise.
10829 * locale/programs/localedef.c (main): Check result of
10830 construct_output_path and exit if it failed.
10831 (construct_output_path): Check result of asprintf and mkdir calls and
10832 fail if they failed.
10833 * posix/getopt.c: Check result of __asprintf calls and fail if
10835 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10837 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10839 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10841 * sysdeps/generic/strncase.c: Likewise.
10842 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10844 2001-12-05 Geoff Keating <geoffk@redhat.com>
10846 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10848 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10849 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10850 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10851 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10852 * sysdeps/powerpc/fclrexcpt.c: Move to...
10853 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10854 * sysdeps/powerpc/fpu_control.h: Move to...
10855 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10857 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10859 * iconvdata/ibm1129.h: Remove duplicate mappings.
10860 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10861 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10862 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10864 * timezone/zic.c: Fix handling of turnaround times.
10865 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10867 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10869 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10872 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10874 * posix/regex.c: For use outside glibc defined bounded pointer
10875 macros here. Patch by Jim Meyering <jim@meyering.net>.
10877 * iconvdata/Makefile (modules): Add TCVN5712-1.
10878 * iconvdata/TESTS: Add TCVN5712-1.
10879 * iconvdata/gconv-modules: Likewise.
10880 * iconvdata/tcvn5712-1.c: New file.
10881 * iconvdata/testdata/TCVN-5712: New file.
10882 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10884 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10886 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10888 2001-12-02 Roland McGrath <roland@frob.com>
10890 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10892 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10893 Reported by Jeff Bailey <jbailey@nisa.net>.
10895 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10896 Reported by Jeff Bailey <jbailey@nisa.net>.
10898 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10899 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10900 Reported by Jeff Bailey <jbailey@nisa.net>.
10902 2001-12-01 Roland McGrath <roland@frob.com>
10904 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
10905 missing backslash in test arguments.
10906 * sysdeps/mach/hurd/configure: Regenerated.
10908 2001-11-26 Roland McGrath <roland@frob.com>
10910 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
10911 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
10913 2001-11-30 Ulrich Drepper <drepper@redhat.com>
10915 * iconvdata/Makefile (modules): Add ARMSCII-8.
10916 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
10917 * iconvdata/armscii-8.c: New file.
10919 2001-11-29 Jakub Jelinek <jakub@redhat.com>
10921 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
10922 don't match, fix {{a,b},c} globbing, clean up.
10923 Patch by Flavio Veloso <flaviovs@magnux.com>.
10924 * posix/globtest.sh: Add new tests.
10926 2001-11-29 Andreas Jaeger <aj@suse.de>
10928 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
10929 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
10931 * sysdeps/generic/abort.c: Include libioP.h for
10932 _IO_flush_all_lockp prototype.
10934 2001-11-29 Ulrich Drepper <drepper@redhat.com>
10936 * posix/regex.h: Define __restrict_arr correctly.
10938 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10940 * iconvdata/ibm1163.c: New file.
10941 * iconvdata/ibm1163.h: New file.
10942 * iconvdata/ibm1164.c: New file.
10943 * iconvdata/ibm1164.h: New file.
10944 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
10945 * iconvdata/Makefile: Likewise.
10946 * iconvdata/testdata/IBM1163: New file.
10947 * iconvdata/testdata/IBM1163..UTF8: New file.
10948 * iconvdata/testdata/IBM1164: New file.
10949 * iconvdata/testdata/IBM1164..UTF8: New file.
10950 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10952 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
10953 * iconvdata/ibm1124.h: Likewise.
10954 * iconvdata/ibm1132.h: Likewise.
10955 * iconvdata/ibm1133.h: Likewise.
10956 * iconvdata/ibm1160.h: Likewise.
10957 * iconvdata/ibm1161.h: Likewise.
10958 * iconvdata/ibm1162.h: Likewise.
10959 * iconvdata/ibm856.h: Likewise.
10960 * iconvdata/ibm922.h: Likewise.
10961 * iconvdata/ibm930.h: Likewise.
10962 * iconvdata/ibm932.h: Likewise.
10963 * iconvdata/ibm933.h: Likewise.
10964 * iconvdata/ibm935.h: Likewise.
10965 * iconvdata/ibm937.h: Likewise.
10966 * iconvdata/ibm939.h: Likewise.
10967 * iconvdata/ibm943.h: Likewise.
10968 * iconvdata/ibm930.c: Pretty printing.
10969 * iconvdata/ibm937.c: Avoid access accross array boundary.
10971 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
10972 the current locale's codeset.
10973 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
10974 empty input string.
10975 * iconv/iconv_prog.c: Pass empty strings as default value for to-
10976 and from-charset. Don't determine locale's charset here.
10978 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
10979 as the old _IO_flush_all but lock only if parameter is nonzero.
10980 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
10981 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
10982 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
10983 if libio is used [PR libc/2575].
10985 2001-11-28 Jakub Jelinek <jakub@redhat.com>
10987 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
10988 __signbitl): Only define for ISO C99.
10990 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
10992 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
10993 herrnop to NETDB_INTERNAL if we run out of buffer space.
10995 2001-11-28 Ulrich Drepper <drepper@redhat.com>
10997 * nss/nss_files/files-XXX.c (internal_getent): Correct input
10998 overflow test for platforms with signed char.
10999 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11001 2001-11-28 Bruno Haible <bruno@clisp.org>
11003 * locale/programs/simple-hash.c (lookup_2): Remove function.
11004 (insert_entry_2): Call lookup instead of lookup_2.
11006 2001-03-04 Bruno Haible <bruno@clisp.org>
11008 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11010 2001-10-31 Bruno Haible <bruno@clisp.org>
11012 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11014 2001-03-21 Bruno Haible <bruno@clisp.org>
11016 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11017 chokes on empty macro arguments.
11018 * intl/plural.y: Add #pragma for alloca on AIX 3.
11020 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11022 * intl/dcigettext.c (guess_category_value): Only implement for
11023 glibc. Otherwise rely on function _nl_locale_name which isn't
11024 present in the glibc sources.
11026 2001-09-24 Bruno Haible <bruno@clisp.org>
11028 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11029 transliteration when building on a glibc system but outside glibc.
11031 2001-09-22 Bruno Haible <bruno@clisp.org>
11033 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11034 * intl/dcigettext.c (plural_eval): Remove function, moved to
11035 intl/plural-eval.c.
11036 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11037 Include plural-eval.c.
11039 2001-09-22 Bruno Haible <bruno@clisp.org>
11041 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11042 don't start with a digit; nplurals must be positive.
11044 2001-09-02 Bruno Haible <bruno@clisp.org>
11046 * intl/plural-exp.h: New file, extracted from gettextP.h.
11047 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11048 * intl/gettextP.h (struct expression, struct parse_args,
11049 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11050 * intl/loadmsgcat.c: Include plural-exp.h.
11051 (PLURAL_PARSE): Move macro to plural-exp.h.
11052 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11054 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11055 EXTRACT_PLURAL_EXPRESSION.
11056 (_nl_unload_domain): Update.
11057 * intl/dcigettext.c: Include plural-exp.h.
11058 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11059 (FREE_EXPRESSION): Move macro to plural-exp.h.
11060 * intl/Makefile (routines): Add plural-exp.
11061 (distribute): Add plural-exp.h.
11063 2001-07-28 Bruno Haible <bruno@clisp.org>
11065 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11066 isdigit, tolower argument to 'unsigned char'.
11067 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11069 * intl/localealias.c (read_alias_file): Cast isspace argument to
11072 2001-10-20 Bruno Haible <bruno@clisp.org>
11074 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11076 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11077 with the variable 'index' in plural_lookup.
11078 * intl/l10nflist.c (strchr): Likewise.
11079 * intl/localealias.c (strchr): Likewise.
11081 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11082 * intl/bindtextdom.c: Likewise.
11083 * intl/dcigettext.c: Likewise.
11084 * intl/dgettext.c: Likewise.
11085 * intl/dngettext.c: Likewise.
11086 * intl/explodename.c: Likewise.
11087 * intl/finddomain.c: Likewise.
11088 * intl/gettext.c: Likewise.
11089 * intl/l10nflist.c: Likewise.
11090 * intl/loadmsgcat.c: Likewise.
11091 * intl/localealias.c: Likewise.
11092 * intl/ngettext.c: Likewise.
11093 * intl/textdomain.c: Likewise.
11094 * intl/gettext.h: Assume <limits.h> exists.
11096 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11098 * stdio-common/Makefile (tests): Add scanf11.
11099 * stdio-common/scanf11.c: New file.
11101 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11103 * version.h (RELEASE): Define as development.
11104 (VERSION): Set to 2.2.90.
11106 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11108 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11109 * nis/nss_nis/nis-grp.c: Likewise.
11110 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11112 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11113 * nis/nss_nis/nis-pwd.c: Likewise.
11114 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11116 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11117 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11118 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11120 * nscd/grpcache.c: Use strtoul instead of atol.
11121 * nscd/pwdcache.c: Likewise.
11122 * nss/getent.c: Likewise.
11124 2001-11-27 Paul Eggert <eggert@twinsun.com>
11126 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11127 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11129 2001-11-19 Bruno Haible <bruno@clisp.org>
11131 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11133 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11134 improves the quality of the hash function, especially for short
11137 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11139 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11140 are found call conv_error and not input_error [PR libc/2669].
11142 * math/bits/mathcalls.h: Mark ceil and floor as const.
11143 Reported by David Mosberger.
11145 2001-11-21 Jim Meyering <meyering@lucent.com>
11147 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11148 Define to be __-prefixed.
11149 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11151 2001-11-26 Andreas Jaeger <aj@suse.de>
11153 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11156 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11158 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11161 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11162 unused variables. Fix threshold for returning 1.0.
11164 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11167 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11168 remove unused variables.
11170 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11172 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11173 include local math header files.
11175 2001-11-22 Andreas Jaeger <aj@suse.de>
11177 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11180 2001-11-21 Andreas Jaeger <aj@suse.de>
11182 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11184 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11187 2001-11-15 Andreas Jaeger <aj@suse.de>
11189 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11190 compilers that support it.
11192 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11193 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11194 * stdlib/stdlib.h: Likewise.
11196 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11198 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11199 statement with gotos.
11200 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11202 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11204 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11206 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11208 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11210 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11211 H.J. Lu <hjl@gnu.org>
11213 * Versions.def (libc): Add GCC_3.0.
11214 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11215 if gcc supports this flag.
11216 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11217 (gcc3): Allow glibc to be compiled with gcc 3.x.
11218 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11219 * config.make.in (static-libgcc, unwind-find-fde): Add.
11220 * Makerules (build-shlib-helper, build-module-helper): Use it.
11221 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11222 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11224 (_fini): Call __deregister_frame_info_bases if
11225 __register_frame_info_bases was used to register.
11226 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11228 (__register_frame_info_bases, __register_frame_info_table_bases,
11229 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11230 * elf/Makefile (routines): Add unwind-dw2-fde.
11231 (shared-only-routines): Add unwind-dw2-fde.
11232 * sysdeps/alpha/gccframe.h: New file.
11233 * sysdeps/arm/gccframe.h: New file.
11234 * sysdeps/generic/framestate.c: New file.
11235 * sysdeps/generic/dwarf2.h: New file.
11236 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11237 * sysdeps/generic/unwind-dw2-fde.c: New file.
11238 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11239 * sysdeps/generic/unwind-dw2-fde.h: New file.
11240 * sysdeps/generic/unwind-dw2.c: New file.
11241 * sysdeps/generic/unwind-pe.h: New file.
11242 * sysdeps/generic/unwind.h: New file.
11243 * sysdeps/hppa/gccframe.h: New file.
11244 * sysdeps/i386/gccframe.h: New file.
11245 * sysdeps/m68k/gccframe.h: New file.
11246 * sysdeps/mips/gccframe.h: New file.
11247 * sysdeps/powerpc/gccframe.h: New file.
11248 * sysdeps/s390/gccframe.h: New file.
11249 * sysdeps/sh/gccframe.h: New file.
11250 * sysdeps/sparc/gccframe.h: New file.
11251 * sysdeps/vax/gccframe.h: New file.
11252 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11253 Set on all architectures except ia64.
11254 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11256 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11257 __deregister_frame_info): Move to elf/Versions.
11258 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11259 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11260 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11261 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11262 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11263 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11264 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11265 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11266 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11267 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11268 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11269 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11270 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11271 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11272 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11273 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11274 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11275 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11277 2001-11-15 Jeff Law <law@redhat.com>
11279 * posix/regex.c (uintptr_t): Do not provide a definition if the
11280 system provided one.
11282 2001-11-13 Roland McGrath <roland@frob.com>
11284 * stdio-common/tmpfile.c: Moved to ...
11285 * sysdeps/generic/tmpfile.c: ... here.
11286 * sysdeps/mach/hurd/tmpfile.c: New file.
11288 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11289 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11290 (fopenport): Define as weak alias.
11292 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11293 * libio/libioP.h: ... to here.
11295 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11297 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11298 program header twice. Construct list with the needed information.
11300 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11302 * po/ca.po: Update from translation team.
11304 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11305 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11306 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11307 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11309 2001-11-10 Andreas Jaeger <aj@suse.de>
11311 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11312 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11313 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11315 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11317 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11319 * elf/dl-load.c (is_dst): New function.
11320 (_dl_dst_count): Use is_dst to check for DST variable.
11321 (_dl_dst_substitute): Likewise.
11323 2001-11-09 Roland McGrath <roland@frob.com>
11325 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11326 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11327 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11328 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11329 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11330 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11331 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11332 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11333 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11334 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11335 * sysdeps/mach/hurd/powerpc/Dist: New file.
11337 * hurd/privports.c (__get_privileged_ports):
11338 Only contact the proc server if necessary for this call.
11339 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11340 Check error return for mach_port_mod_refs.
11342 2001-11-09 Andreas Schwab <schwab@suse.de>
11344 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11346 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11348 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11349 object is always the last in the list.
11350 (_dl_map_object_from_fd): Delete code to remove from object list
11351 when DF_1_NOOPEN is seen. This is done in lose.
11353 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11355 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11357 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11359 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11360 HWCAP_CHECK macro code.
11362 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11363 Now returns MAP_FAILED on error.
11364 * elf/rtld.c: Adjust caller.
11365 * sysdeps/generic/dl-cache.c: Likewise.
11366 * sysdeps/generic/ldsodefs.h: Adjust description.
11368 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11369 (_dl_check_map_versions): Likewise.
11371 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11373 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11374 _dl_signal_error directly, always use lose. Set fd to -1 after
11376 (lose): Don't call close if fd == -1.
11378 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11380 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11381 Also fix typo @code {mbsinit} to @code{mbsinit}.
11383 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11385 * elf/dl-profile.c: Replace state variable with simple flag named
11386 running. Remove commented-out code.
11388 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11389 (_dl_init_paths): Likewise.
11390 (_dl_map_object_from_fd): Likewise.
11391 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11393 2001-11-06 Roland McGrath <roland@frob.com>
11395 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11396 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11398 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11399 sysdeps/powerpc/elf/sysdep.h.
11400 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11402 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11404 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11406 (process_envvars): Some more optimizations.
11407 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11409 * elf/elf.h: Add dynamic tag definitions for prelinking.
11411 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11412 Rewrite code to remove environment varables for SUID binaries.
11413 Small optimization in LD_PROFILE handling.
11414 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11416 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11418 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11420 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11421 strings. Change type of second parameter.
11422 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11425 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11427 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11429 * manual/string.texi: Fix typos.
11430 * manual/examples/argp-ex2.c: Likewise.
11432 2001-11-05 Roland McGrath <roland@frob.com>
11434 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11435 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11436 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11437 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11438 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11439 here, put under [__ELF__].
11441 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11443 * manual/charset.texi: Extensive editing work.
11444 * manual/nss.texi: Likewise.
11445 Changes by Dennis Grace <dgrace@us.ibm.com>.
11447 2001-11-04 Roland McGrath <roland@frob.com>
11449 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11450 parameter to dir_mkfile.
11452 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11454 * string/bits/string2.h (__strndup): If n is smaller than len, set
11456 * string/tester.c (test_strndup): New function.
11459 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11461 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11463 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11464 * scripts/cpp: New file.
11466 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11467 for rtld_search_dirs content. Minor optimizations.
11469 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11471 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11472 avoiding unnecessary duplication.
11474 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11476 * elf/dl-load.c (_dl_map_object): If library was found using
11477 LD_LIBRARY_PATH, don't try RUNPATH list.
11479 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11481 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11482 Correct second argument of register_dump call.
11483 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11486 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11488 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11490 * iconvdata/TESTS: Likewise.
11491 * iconvdata/gconv-modules: Likewise.
11492 * iconvdata/ibm1132.c: New file.
11493 * iconvdata/ibm1132.h: New file.
11494 * iconvdata/ibm1133.c: New file.
11495 * iconvdata/ibm1133.h: New file.
11496 * iconvdata/ibm1162.c: New file.
11497 * iconvdata/ibm1162.h: New file.
11498 * iconvdata/testdata/IBM1132: New file.
11499 * iconvdata/testdata/IBM1132..UTF8: New file.
11500 * iconvdata/testdata/IBM1133: New file.
11501 * iconvdata/testdata/IBM1133..UTF8: New file.
11502 * iconvdata/testdata/IBM1162: New file.
11503 * iconvdata/testdata/IBM1162..UTF8: New file.
11504 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11506 * string/string.h: Fix typo in comment.
11507 * wcsmbs/wchar.h: Likewise.
11509 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11511 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11512 const in type of longopts parameter.
11514 2001-10-29 Andreas Jaeger <aj@suse.de>
11516 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11518 2001-10-29 Kevin Ryde <user42@zip.com.au>
11520 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11521 output, clarify `#' behaviour on 0.
11522 (Floating-Point Conversions): Clarify that %g only uses %e when
11523 the exponent would be greater than 1.
11525 2001-10-28 Roland McGrath <roland@frob.com>
11527 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11528 * sysdeps/mach/powerpc/machine-sp.h: New file.
11529 * sysdeps/mach/powerpc/sysdep.h: New file.
11530 * sysdeps/mach/powerpc/thread_state.h: New file.
11532 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11533 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11534 expect to need the same thing on every platform.
11536 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11537 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11539 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11540 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11541 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11542 Move all these assembly-related definitions to ...
11543 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11545 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11546 by Peter Bruin <pjbruin@dds.nl>.
11548 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11549 packing results for a `poll' call.
11551 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11553 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11555 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11556 bracket expression.
11558 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11560 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11562 2001-10-24 H.J. Lu <hjl@gnu.org>
11564 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11565 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11566 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11568 2001-10-21 Jim Meyering <meyering@lucent.com>
11570 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11571 this code would end up calling gettext even in packages built
11572 with --disable-nls.
11573 * posix/getopt.c (_): Likewise.
11574 * posix/regex.c (_): Likewise.
11576 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11578 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11579 lookup not ip6.int.
11580 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11581 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11583 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11585 * misc/sys/cdefs.h (__attribute_used__): Define.
11586 * elf/rtld.c (_dl_start): Add __attribute_used__.
11587 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11589 2001-10-25 Andreas Schwab <schwab@suse.de>
11591 * stdlib/a64l.c: Expect least significant digit first.
11592 * stdlib/l64a.c: Produce least significant digit first.
11593 * stdlib/Makefile (tests): Add test-a64l.
11594 * stdlib/test-a64l.c: New file.
11595 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11597 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11599 * po/sk.po: Update from translation team.
11601 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11603 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11605 2001-10-18 Andreas Schwab <schwab@suse.de>
11607 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11609 (print_function_ulps): Likewise.
11610 (print_complex_function_ulps): Likewise.
11611 (print_max_error): Likewise.
11612 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11614 2001-10-16 Andreas Schwab <schwab@suse.de>
11616 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11619 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11620 BSD_SETJMP or BSD__SETJMP is defined, resp.
11621 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11622 a tail call to __sigsetjmp that would require extending the
11624 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11625 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11626 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11627 Reported by Jes Sorensen <jes@trained-monkey.org>.
11629 2001-10-16 Andreas Jaeger <aj@suse.de>
11631 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11632 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11633 close PR libc/2589.
11635 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11637 * po/ca.po: New file. Contributed by the translation team.
11639 2001-10-15 Ralf Baechle <ralf@gnu.org>
11641 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11642 a varargs prototype. Remove dependency from kernel header files.
11644 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11645 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11647 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11649 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11650 to generate hexadecimal identifier.
11651 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11653 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11655 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11657 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11659 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11660 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11661 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11663 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11664 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11665 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11666 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11667 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11668 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11670 * timezone/africa: Update from tzdata2001d.
11671 * timezone/asia: Likewise.
11672 * timezone/australasia: Likewise.
11673 * timezone/backward: Likewise.
11674 * timezone/europe: Likewise.
11675 * timezone/leapseconds: Likewise.
11676 * timezone/northamerica: Likewise.
11677 * timezone/southamerica: Likewise.
11678 * timezone/zone.tab: Likewise.
11680 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11682 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11683 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11685 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11687 * elf/elf.h (PT_TLS): New definition.
11689 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11691 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11694 2001-10-07 Roland McGrath <roland@frob.com>
11696 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11698 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11700 * elf/elf.h: Add more ELFOSABI_* constants.
11702 2001-10-04 Ben Collins <bcollins@debian.org>
11704 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11705 decleration of __need_wchar_t.
11707 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11709 * string/bits/string2.h (__strsep_g): Add prototype.
11710 (__strsep): Use it.
11711 * string/Versions (__strsep): Remove.
11712 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11714 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11716 * manua/llio.texi: Clarify file references added by mmap.
11717 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11719 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11721 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11722 Add sc_loadrs and sc_rbs_bas to match current kernel.
11724 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11726 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11728 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11730 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11732 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11733 object has been bumped because of relocation dependency, avoid
11734 duplicates in l_scope.
11735 (show_scope): Fix typos.
11736 * elf/Makefile: Add rules to build and run reldep6.
11737 * elf/reldep6.c: New file.
11738 * elf/reldep6mod0.c: New file.
11739 * elf/reldep6mod1.c: New file.
11740 * elf/reldep6mod2.c: New file.
11741 * elf/reldep6mod3.c: New file.
11742 * elf/reldep6mod4.c: New file.
11744 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11746 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11748 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11749 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11750 for non-lazy binding. Fix .plt[32768+] handling.
11751 (elf_machine_plt_value): Don't add addend.
11752 (elf_machine_rela): Call sparc64_fixup_plt instead of
11753 elf_machine_fixup_plt.
11754 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11755 dynamic linker at 0xfffff800XXXXXXXX.
11757 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11759 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11761 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11763 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11765 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11766 declare __cmsg_data field if its size would be bigger than 0.
11767 (CMSG_DATA): Adjust accordingly.
11768 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11769 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11770 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11771 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11772 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11773 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11774 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11776 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11778 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11779 * iconvdata/testdata/IBM1160: New file.
11780 * iconvdata/testdata/IBM1160..UTF8: New file.
11781 * iconvdata/testdata/IBM1161: New file.
11782 * iconvdata/testdata/IBM1161..UTF8: New file.
11783 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11785 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11787 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11788 UL_SETFSIZE computations better.
11790 * rt/Makefile: Remove use of filter for librt again.
11792 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11793 UL_SETFSIZE computations better.
11795 * string/Versions: Export __strsep for GLIBC_2.2.5.
11796 * string/bits/string2.h: Define all __STRING_INLINE functions if
11797 _FORCE_INLINES is defined.
11798 Use int instead of char of parameter types.
11799 (__strsep): Don't use __strsep_g. Don't define it.
11800 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11801 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11803 (__stpcpy_a_small): Renamed from __stpcpy_small.
11804 (__strcspn_c1): Don't define if _FORCE_INLINES.
11805 (__strspn_c1): Likewise.
11807 2001-09-22 Ben Collins <bcollins@debian.org>
11809 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11810 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11811 * sysdeps/ia64/bits/sigaction.h: Likewise.
11812 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11814 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11816 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11818 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11820 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11822 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11824 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11826 2001-09-20 H.J. Lu <hjl@gnu.org>
11828 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11829 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11831 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11832 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11834 2001-09-20 H.J. Lu <hjl@gnu.org>
11836 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11839 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11841 * nss/getent.c: Accept -s parameter to overwrite rules in
11842 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11844 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11845 with as many ".0" as necessary to form a complete address
11846 inet_network understands.
11848 * nss/getent.c: Various cleanups. Use simpler and fewer function
11851 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11853 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11855 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11857 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11859 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11861 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11862 * iconvdata/ibm1160.c: New file.
11863 * iconvdata/ibm1160.h: New file.
11864 * iconvdata/ibm1161.c: New file.
11865 * iconvdata/ibm1161.h: New file.
11866 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11868 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11870 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11871 difference between base address and first PT_LOAD's virtual address,
11872 not the base address.
11874 2001-09-11 Tom Rix <trix@redhat.com>
11876 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11877 ifdef for __getopt_clean_environment.
11878 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11880 2001-09-22 Andreas Jaeger <aj@suse.de>
11882 * elf/reldep4.c (main): Add proper prototype to fix warning.
11884 * elf/reldep5.c (main): Remove unused variable.
11886 * math/math_private.h: Add prototypes.
11888 2001-09-21 Andreas Jaeger <aj@suse.de>
11890 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11891 * sysdeps/x86_64/Dist: New file.
11892 * sysdeps/x86_64/soft-fp/Dist: New file.
11894 * sysdeps/gnu/Dist: Remove eval.c.
11896 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11898 * malloc/memusage.c (realloc): Don't count already allocated
11899 memory in the sums.
11900 (me): Always use dlsym() to find the real implementations.
11902 * malloc/memusage.sh: Make -n option actually do something.
11904 2001-09-20 Andreas Jaeger <aj@suse.de>
11906 * elf/elf.h (R_390_NUM): Correct value.
11908 * Versions.def: Add missing versions 2.2.3 for libthread_db and
11911 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
11912 for x86-64, install x86-64 into */lib64.
11914 * shlib-versions: Add x86-64.
11916 * elf/elf.h: Add x86-64 relocations.
11918 2001-09-19 Ulrich Drepper <drepper@redhat.com>
11920 * po/fr.po: Update from translation team.
11922 2001-09-19 Andreas Jaeger <aj@suse.de>
11924 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
11925 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
11926 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
11927 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11928 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
11929 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
11930 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
11931 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
11932 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
11933 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
11934 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
11935 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
11936 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
11937 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
11938 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
11939 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
11940 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
11941 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11942 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
11943 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
11944 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
11945 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
11946 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
11947 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
11948 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
11949 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
11950 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
11951 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
11952 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
11953 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
11954 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
11955 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
11956 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
11957 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
11958 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
11959 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
11960 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
11961 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
11962 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
11963 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
11964 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
11965 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
11966 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
11967 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
11968 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
11969 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
11970 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
11971 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
11972 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11973 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
11974 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
11975 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
11976 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
11977 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
11978 * sysdeps/unix/x86_64/sysdep.S: New file.
11979 * sysdeps/unix/x86_64/sysdep.h: New file.
11980 * sysdeps/x86_64/Implies: New file.
11981 * sysdeps/x86_64/Makefile: New file.
11982 * sysdeps/x86_64/Versions: New file.
11983 * sysdeps/x86_64/__longjmp.S: New file.
11984 * sysdeps/x86_64/abort-instr.h: New file.
11985 * sysdeps/x86_64/atomicity.h: New file.
11986 * sysdeps/x86_64/bits/endian.h: New file.
11987 * sysdeps/x86_64/bits/setjmp.h: New file.
11988 * sysdeps/x86_64/bits/string.h: New file.
11989 * sysdeps/x86_64/bp-asm.h: New file.
11990 * sysdeps/x86_64/bsd-_setjmp.S: New file.
11991 * sysdeps/x86_64/bsd-setjmp.S: New file.
11992 * sysdeps/x86_64/dl-machine.h: New file.
11993 * sysdeps/x86_64/elf/initfini.c: New file.
11994 * sysdeps/x86_64/elf/start.S: New file.
11995 * sysdeps/x86_64/ffs.c: New file.
11996 * sysdeps/x86_64/ffsll.c: New file.
11997 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
11998 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
11999 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12000 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12001 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12002 * sysdeps/x86_64/fpu/e_expl.c: New file.
12003 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12004 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12005 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12006 * sysdeps/x86_64/fpu/e_logl.S: New file.
12007 * sysdeps/x86_64/fpu/e_powl.S: New file.
12008 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12009 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12010 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12011 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12012 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12013 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12014 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12015 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12016 * sysdeps/x86_64/fpu/fegetround.c: New file.
12017 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12018 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12019 * sysdeps/x86_64/fpu/fesetround.c: New file.
12020 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12021 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12022 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12023 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12024 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12025 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12026 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12027 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12028 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12029 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12030 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12031 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12032 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12033 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12034 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12035 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12036 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12037 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12038 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12039 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12040 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12041 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12042 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12043 * sysdeps/x86_64/gmp-mparam.h: New file.
12044 * sysdeps/x86_64/hp-timing.c: New file.
12045 * sysdeps/x86_64/hp-timing.h: New file.
12046 * sysdeps/x86_64/htonl.S: New file.
12047 * sysdeps/x86_64/memusage.h: New file.
12048 * sysdeps/x86_64/setjmp.S: New file.
12049 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12050 * sysdeps/x86_64/stackinfo.h: New file.
12051 * sysdeps/x86_64/sysdep.h: New file.
12052 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12054 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12057 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12059 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12060 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12062 2001-09-18 Andreas Schwab <schwab@suse.de>
12064 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12065 list, now that l_scope is a pointer.
12067 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12070 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12072 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12073 (elf_machine_rela_relative): Add a missing declaration.
12075 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12077 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12078 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12079 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12080 ldd-rewrite scripts.
12082 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12084 * elf/ldd.bash.in: Update copyright message.
12086 2001-09-17 H.J. Lu <hjl@gnu.org>
12088 * hurd/hurdmalloc.c (bcopy): Removed.
12089 (realloc): Replace bcopy with memcpy.
12090 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12091 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12092 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12094 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12095 (gethostbyaddr): Likewise.
12096 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12098 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12100 * sysdeps/gnu/eval.c: Removed.
12102 2001-09-18 Andreas Jaeger <aj@suse.de>
12104 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12105 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12107 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12108 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12110 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12111 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12113 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12115 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12118 2001-09-14 H.J. Lu <hjl@gnu.org>
12120 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12122 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12124 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12125 Patch by Florian La Roche <laroche@redhat.com>.
12127 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12129 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12132 2001-09-14 Andreas Schwab <schwab@suse.de>
12134 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12135 Sumner <bls@sgi.com>.
12136 * posix/execlp.c: Likewise.
12138 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12140 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12141 is already found earlier in the search scope.
12143 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12145 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12148 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12150 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12152 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12154 * config.h.in: Enforce optimization to be used.
12155 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12156 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12157 * posix/Makefile (annexc-CFLAGS): Define to -O.
12158 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12160 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12162 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12163 Patch by Stephan Kulow.
12165 2001-09-08 Ben Collins <bcollins@debian.org>
12167 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12168 usage of RESOLVE() (r_type, not reloc->r_type).
12170 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12172 * elf/dl-object.c: Avoid allocating extra memory block for name.
12173 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12174 allocated separately.
12175 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12177 2001-09-08 H.J. Lu <hjl@gnu.org>
12179 * po/zh_TW.po: Fix a typo.
12181 2001-09-07 Tom Rix <trix@redhat.com>
12183 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12185 2001-08-26 Tom Rix <trix@redhat.com>
12187 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12188 command line options.
12189 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12190 * sysdeps/unix/sysv/aix/start.c: Removed.
12191 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12192 * sysdeps/unix/sysv/aix/init-first.c: New file.
12193 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12195 2001-09-08 Ben Collins <bcollins@debian.org>
12197 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12198 * sysdeps/generic/dl-machine.h: Likewise.
12199 * sysdeps/hppa/dl-fptr.c: Likewise.
12200 * sysdeps/ia64/dl-fptr.c: Likewise.
12201 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12202 * sysdeps/mips/dl-machine.h: Likewise.
12203 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12204 * sysdeps/powerpc/dl-machine.c: Likewise.
12206 2001-09-07 Ben Collins <bcollins@debian.org>
12208 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12210 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12212 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12214 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12215 dependencies if necessary.
12217 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12218 loaded directly) determine length if l_initfini list by iterating
12219 over its elements. Minor optimizations.
12220 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12221 for dependency objects.
12222 If object was already loaded check whether any of the dependencies
12223 is already on the relocation dependency list. If yes, remove the
12224 latter. Minor optimizations.
12225 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12226 maps here. Search l_initfini list only if the object was loaded
12227 directly and not only as a dependency.
12228 (_dl_lookup_symbol): Add relocation dependency also if object
12229 is not in global scope. Remove test for self-reference here.
12230 (_dl_lookup_versioned_symbol): Likewise.
12231 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12232 element of first name record.
12233 * elf/loadtest.c: Add some more test to recognize early if an object
12235 * elf/Makefile: Add rules to build and run reldep5.
12236 * elf/reldep5.c: New file.
12237 * elf/reldepmod5.c: New file.
12238 * elf/reldepmod6.c: New file.
12240 * elf/reldep2.c: Fix typo.
12242 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12244 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12245 elements. Change l_scope to be a pointer only.
12246 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12247 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12248 here add searchlist of newly open file to the dependency's scope.
12249 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12250 only searchlist from its scope. Free own scope array if necessary.
12251 * elf/Makefile (tests): Add dblload and dblunload now.
12253 2001-09-06 Andreas Jaeger <aj@suse.de>
12255 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12258 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12260 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12262 * elf/dblload.c: New file.
12263 * elf/dblloadmod1.c: New file.
12264 * elf/dblloadmod2.c: New file.
12265 * elf/dblloadmod3.c: New file.
12266 * elf/dblunload.c: New file.
12268 2001-09-04 Richard Henderson <rth@redhat.com>
12270 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12271 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12273 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12275 Correct very misleading message for error in failed runtime relocation.
12276 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12277 place of the error.
12278 (_dl_signal_cerror): Likewise.
12279 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12280 * elf/dl-close.c: Likewise.
12281 * elf/dl-deps.c: Likewise.
12282 * elf/dl-load.c: Likewise.
12283 * elf/dl-lookup.c: Likewise.
12284 * elf/dl-open.c: Likewise.
12285 * elf/dl-reloc.c: Likewise.
12286 * elf/dl-sym.c: Likewise.
12287 * elf/dl-version.c: Likewise.
12288 * sysdeps/generic/dl-sysdep.c: Likewise.
12290 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12292 * iconv/strtab.c (strtabinit): Initialize null Strent.
12293 (newstring): Move len == 0 handling...
12294 (strtabadd): ...here.
12295 If len == 1, return null Strent.
12296 When inserting a suffix of an existing string, check if
12297 it is not equal to some suffix already recorded.
12298 Copy left and right members over if adding longer string.
12300 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12302 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12304 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12305 (__syscall_gethostname): Add prototype.
12307 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12309 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12311 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12313 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12315 2001-08-27 Roland McGrath <roland@frob.com>
12317 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12318 short, copy that much into NAME anyway before returning error.
12320 2001-09-01 Richard Henderson <rth@redhat.com>
12322 * sysdeps/alpha/elf/Dist: Remove file.
12323 * sysdeps/alpha/elf/Makefile: Remove file.
12324 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12325 * sysdeps/alpha/elf/crtend.S: Remove file.
12326 * sysdeps/alpha/elf/initfini.c: New file.
12328 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12330 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12331 * iconv/tst-iconv3.c: Likewise.
12333 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12335 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12337 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12339 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12341 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12342 * iconv/iconv_prog.c (insert_cache): New function.
12343 (print_known_names): If cache is used call insert_cache to use the
12344 information from the cache [PR libc/2509].
12346 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12348 * time/strptime.c (strptime_internal): Recognize 'l' format and
12349 handle it like 'I' for symmetry with strftime.
12351 2001-08-31 Richard Henderson <rth@redhat.com>
12353 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12354 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12355 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12356 (print_statistics): Make scalar unsigned long long.
12357 * sysdeps/alpha/hp-timing.h: New file.
12359 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12361 * stdio-common/perror.c (perror): Save errno early, pass it
12362 down to perror_internal.
12363 (perror_internal): Add errnum argument.
12365 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12367 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12368 Don't add old memory content for R_ALPHA_REFQUAD.
12370 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12372 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12375 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12376 instead of open, __close instead of close, __getpagesize instead
12379 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12380 instead of strnlen.
12381 * include/string.h (strndupa): Redefine here to use __strnlen
12382 instead of strnlen.
12383 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12385 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12388 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12390 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12391 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12392 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12393 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12394 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12395 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12396 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12398 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12400 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12402 2001-08-30 Andreas Jaeger <aj@suse.de>
12404 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12405 contributed Stephen L Moshier.
12407 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12409 * sunrpc/etc.rpc (sgi_fam): Add.
12411 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12413 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12415 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12417 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12418 first is from a previous call.
12419 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12421 2001-08-29 Andreas Schwab <schwab@suse.de>
12423 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12425 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12427 * config.make.in (INSTALL_SCRIPT): Define.
12428 * Makeconfig (INSTALL_SCRIPT): Define.
12429 * Makerules (do-install-script): New macro to install scripts using
12431 (install-bin-script): New rule to install scripts with
12433 (install-bin-script-nosubdir): New rule.
12434 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12435 (distinfo-vars): Add $(install-bin-script).
12436 * Rules (others): Likewise.
12437 * Makefile (glibcbug): Install with install-bin-script.
12438 * debug/Makefile (xtrace): Likewise.
12439 (catchsegv): Likewise.
12440 * elf/Makefile (ldd): Likewise.
12441 * malloc/Makefile (mtrace): Likewise.
12442 * timezone/Makefile (tzselect): Likewise.
12444 2001-08-29 H.J. Lu <hjl@gnu.org>
12446 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12447 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12448 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12450 2001-08-29 Andreas Schwab <schwab@suse.de>
12452 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12454 2001-08-28 H.J. Lu <hjl@gnu.org>
12456 * Makeconfig (combreloc-LDFLAGS): New variable.
12457 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12458 * config.make.in (have-z-combreloc): New variable.
12459 * configure.in: Substitute libc_cv_z_combreloc.
12461 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12463 * po/sv.po: Update from translation team.
12464 * po/fr.po: Likewise.
12465 * po/da.po: Likewise.
12467 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12469 * Makerules: Fix a typo: MD% -> MD5.
12471 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12473 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12474 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12476 2001-08-28 Andreas Jaeger <aj@suse.de>
12478 * manual/libc-texinfo.sh: Add entry about free manuals.
12480 * manual/contrib.texi (Contributors): Fix cross reference.
12482 * manual/libc.texinfo (Copying): Include freemanuals.
12484 * manual/Makefile (appendices): Add freemanuals.
12486 * manual/freemanuals.texi: New file.
12487 Patch by Brian Youmans <3diff@gnu.org>.
12489 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12492 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12493 table on separate page.
12494 Patch by Brian Youmans <3diff@gnu.org>.
12496 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12498 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12499 the connection went down after we first used it try to connect
12500 again and resend the message before printing to the console.
12501 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12503 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12505 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12506 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12509 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12511 * iconv/strtab.c (searchstring): Use correct length for comparison.
12512 (strtabadd): Account total size correct if new string has old string as
12515 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12517 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12519 2001-08-27 Andreas Jaeger <aj@suse.de>
12521 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12523 * math/libm-test.inc (j0_test): Add extra tests.
12524 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12525 not x, in Hankel approximation.
12526 Patches by Stephen L Moshier.
12528 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12530 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12533 * configure.in: Fix test for .rela.dyn section.
12535 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12537 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12539 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12540 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12541 Pass type_class to _dl_lookup_*.
12542 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12543 Pass around just type_class instead of noexec, noplt pair.
12544 (_dl_lookup_versioned_symbol): Likewise.
12545 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12546 noexec, noplt pair.
12547 (_dl_lookup_versioned_symbol_skip): Likewise.
12548 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12549 * elf/do-lookup.h (do_lookup): Likewise.
12550 * include/link.h (struct link_map): Replace noexec and noplt fields
12551 in l_lookup_cache with type_class field.
12552 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12553 ELF_RTYPE_CLASS_COPY): Define.
12554 Adjust prototypes for _dl_lookup_symbol and
12555 _dl_lookup_versioned_symbol.
12556 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12557 elf_machine_lookup_noexec_p): Remove.
12558 (elf_machine_type_class): Define.
12559 * sysdeps/arm/dl-machine.h: Likewise.
12560 * sysdeps/hppa/dl-machine.h: Likewise.
12561 * sysdeps/cris/dl-machine.h: Likewise.
12562 * sysdeps/i386/dl-machine.h: Likewise.
12563 * sysdeps/ia64/dl-machine.h: Likewise.
12564 * sysdeps/m68k/dl-machine.h: Likewise.
12565 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12566 * sysdeps/mips/dl-machine.h: Likewise.
12567 * sysdeps/powerpc/dl-machine.h: Likewise.
12568 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12569 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12570 * sysdeps/sh/dl-machine.h: Likewise.
12571 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12572 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12574 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12576 * manual/message.texi (Advanced gettext functions): Change
12577 description of plural forms for Slovak.
12578 Reported by Marcel Telka <marcel@telka.sk>.
12580 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12581 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12583 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12585 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12586 typo. Patch by Florian La Roche <laroche@redhat.com>.
12588 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12590 * include/link.h (struct link_map): Add l_lookup_cache element.
12591 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12592 (RESOLVE_MAP): Likewise.
12593 (_dl_relocate_object): Remove cache initialization.
12594 * elf/dl-lookup.c: Rip out cache handling code.
12595 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12598 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12599 remove some __builtin_expect.
12600 (_dl_lookup_versioned_symbol): Likewise.
12602 * config.h.in: Add HAVE_Z_COMBRELOC.
12603 * configure.in: Add test for -z combreloc.
12605 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12606 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12607 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12608 case to almost no code.
12610 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12612 * po/tr.po: Update from translation team.
12614 2001-08-24 Andreas Jaeger <aj@suse.de>
12616 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12619 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12621 * elf/rtld.c (print_statistics): Printf % after percent values.
12622 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12624 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12625 don't have to compute the hash value and initialize current_value.
12626 Move reference_name variable to where it is needed.
12627 (_dl_lookup_versioned_symbol): Likewise.
12629 2001-08-24 Roland McGrath <roland@frob.com>
12631 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12632 Just test that strerror returns non-null for a few errno codes.
12634 2001-08-23 Roland McGrath <roland@frob.com>
12636 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12637 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12639 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12641 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12644 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12646 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12649 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12650 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12652 * elf/rtld.c: Include <sys/param.h>.
12653 * elf/dl-reloc.c: Likewise.
12655 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12657 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12658 empty to prevent junk from being generated.
12659 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12661 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12663 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12664 records. Rename endrel to relative, initialize it to r, and use it
12665 in elf_machine_rel_relative calls. Point r after relative relocs.
12667 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12669 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12672 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12674 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12675 necessary. Undefine newly defined macros at the end.
12676 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12677 Rename from elf_machine_rel_relative.
12678 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12679 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12680 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12681 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12683 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12685 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12686 Fix argument types.
12687 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12688 Fix argument types.
12689 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12690 Likewise. Fix argument types.
12691 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12692 Likewise. Fix argument types.
12693 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12694 Fix argument types.
12695 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12696 ElfW(Rel) in argument.
12697 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12700 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12702 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12704 2001-08-24 Andreas Jaeger <aj@suse.de>
12706 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12707 Stephen L Moshier <moshier@mediaone.net>.
12709 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12711 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12712 first if RELCOUNT is set.
12714 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12715 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12716 elf_machine_rel_relative.
12717 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12718 Minor optimizations.
12719 * sysdeps/arm/dl-machine.h: Likewise.
12720 * sysdeps/cris/dl-machine.h: Likewise.
12721 * sysdeps/hppa/dl-machine.h: Likewise.
12722 * sysdeps/i386/dl-machine.h: Likewise.
12723 * sysdeps/ia64/dl-machine.h: Likewise.
12724 * sysdeps/m68k/dl-machine.h: Likewise.
12725 * sysdeps/mips/dl-machine.h: Likewise.
12726 * sysdeps/powerpc/dl-machine.h: Likewise.
12727 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12728 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12729 * sysdeps/sh/dl-machine.h: Likewise.
12730 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12731 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12733 2001-08-23 Roland McGrath <roland@frob.com>
12735 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12737 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12738 sysdeps/mach version. Implement counting ("recursive") mutexes
12739 on top of cthreads mutexes.
12740 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12742 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12743 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12744 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12745 __libc_clean_end): Define these to call the cleanup function after
12746 normal exit when they're supposed to.
12748 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12749 Take new first arg DOIT, a boolean saying whether to really install
12750 any cleanup handler.
12751 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12752 (__libc_cleanup_end): Likewise.
12753 * sysdeps/generic/bits/libc-lock.h: Same changes.
12754 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12755 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12756 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12758 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12759 * sysdeps/generic/bits/stdio-lock.h
12760 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12762 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12764 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12766 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12768 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12770 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12772 (_dl_lookup_versioned_symbol): Likewise.
12773 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12775 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12776 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12777 (lookup_cache, lookup_cache_versioned): Add declarations.
12779 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12781 * stdlib/tst-random.c (main): Swap parameters in fail call.
12782 Patch by Pete Bevin <pete@petebevin.com>.
12784 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12786 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12788 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12790 * malloc/obstack.c: Indent preprocessor directives.
12791 Patch by Jim Meyering <meyering@ascend.com>.
12793 * po/ja.po: Update from translation team.
12795 2001-08-23 Roland McGrath <roland@frob.com>
12797 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12799 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12800 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12802 2001-08-22 Roland McGrath <roland@frob.com>
12804 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12805 __libc_lock_define_recursive.
12806 * elf/dl-open.c: Don't declare it here any more.
12807 * elf/dl-close.c: Likewise.
12808 * elf/dl-lookup.c: Likewise.
12809 * elf/dl-iteratephdr.c: Likewise.
12810 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12811 __libc_lock_unlock_recursive.
12812 * elf/dl-close.c (_dl_close): Likewise
12813 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12814 * elf/dl-open.c (_dl_open): Likewise
12816 * sysdeps/generic/bits/libc-lock.h
12817 (__libc_lock_define_recursive): New macro.
12818 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12819 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12820 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12822 * conform/conformtest.pl (checknamespace): Sort the output list.
12824 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12825 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12826 definitions conditional on [__USE_XOPEN].
12828 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12829 these unconditionally, not only use [__USE_BSD], so as to match
12830 the sysdeps/unix/sysv/linux files.
12832 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12834 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12837 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12840 2001-08-22 Roland McGrath <roland@frob.com>
12842 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12843 conditionalization of sa_handler/sa_sigaction member types to
12844 match the sysdeps/unix/sysv/linux file.
12846 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12848 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12849 symbol sizes a bit better.
12851 * sysdeps/ia64/strncpy.S: Complete rewrite.
12852 Contributed by Jakub Jelinek <jakub@redhat.com>.
12854 * string/stratcliff.c (main): Add strncpy test.
12856 2001-08-22 Roland McGrath <roland@frob.com>
12858 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12859 and don't declare unsetenv or _environ directly.
12860 (unsetenv): Return int, not void. Use __environ instead of _environ.
12862 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12864 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12865 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12866 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12867 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12868 test for cmsg struct size.
12870 2001-04-23 Paul Eggert <eggert@twinsun.com>
12872 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12873 Rename __argc to ___argc in prototypes to avoid compatibility
12874 problems with systems that reserve the identifier "__argc".
12875 Similarly for __argv.
12877 2001-08-21 Roland McGrath <roland@frob.com>
12879 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12881 * mach/Makefile (tests): Removed.
12882 * mach/hello.c: File removed.
12884 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12886 * po/sv.po: Update from translation team.
12888 * stdio-common/vfscanf.c: Fix handling of %l[].
12889 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12891 * libio/Makefile (tests): Add tst-sscanf.
12892 * libio/tst-sscanf.c: New file.
12894 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12895 * malloc/mtrace.c (tr_where): dli_sname always points to a
12896 non-empty string if != NULL.
12897 Reported by Tim Janik <timj@gtk.org>.
12899 2001-08-22 Jakub Jelinek <jakub@redhat.com>
12901 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
12902 buf. Free resources on failure.
12903 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
12904 (makefd_xprt): Likewise.
12905 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
12906 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
12907 * sunrpc/auth_unix.c (authunix_create): Likewise.
12909 2001-08-21 Jakub Jelinek <jakub@redhat.com>
12911 * string/strnlen.c: Remove.
12912 * sysdeps/generic/strnlen.c: New file.
12913 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
12915 2001-08-21 Roland McGrath <roland@frob.com>
12917 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
12918 as a macro, not an extern inline function.
12920 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
12921 * Versions.def (libc): Add GLIBC_2.2.5 set.
12922 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
12923 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
12925 2001-08-20 Roland McGrath <roland@frob.com>
12927 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
12928 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
12930 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12932 * string/bits/string2.h: Remove strnlen optimization here.
12933 * sysdeps/i386/i486/bits/string.h: Add it here.
12935 2001-08-21 Wolfram Gloger <wg@malloc.de>
12937 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
12939 2001-08-21 Ulrich Drepper <drepper@redhat.com>
12941 * po/gl.po: Update from translation team.
12943 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12945 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
12946 * misc/err.c (convert_and_print): Likewise.
12948 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
12951 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12953 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
12954 change of the gregset_t type.
12955 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
12957 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
12959 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
12961 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12963 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
12965 * string/strnlen.c: Fix the implementation. We cannot use memchr.
12967 2001-08-18 Mark Kettenis <kettenis@gnu.org>
12969 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
12970 before calling the cthreads initialization code.
12972 2001-08-20 Ulrich Drepper <drepper@redhat.com>
12974 * argp/argp-help.c: Fix two problems introduced in last change.
12976 * include/dirent.h: Include <dirstream.h> first.
12978 2001-08-19 Ulrich Drepper <drepper@redhat.com>
12980 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
12982 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
12983 * sunrpc/xdr_rec.c: Likewise.
12984 * sunrpc/xdr_mem.c: Likewise.
12985 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
12986 * sunrpc/rpc_cmsg.c: Likewise.
12987 * sunrpc/getrpcport.c (getrpcport): Likewise.
12988 * sunrpc/clnt_simp.c (callrpc): Likewise.
12989 * sunrpc/clnt_gen.c (clnt_create): Likewise.
12990 * string/envz.c: Likewise.
12992 * po/ko.po: Update from translation team.
12994 * argp/argp-help.c: Handle wide oriented stderr stream.
12996 2001-08-18 Ulrich Drepper <drepper@redhat.com>
12998 * sysdeps/generic/strtol.c: Little optimizations. Add some
13001 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13003 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13004 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13005 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13007 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13009 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13011 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13013 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13014 wchar_t for function declarations and defintions.
13016 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13017 Define suseconds_t if it hasn't happened yet.
13019 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13021 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13023 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13026 * conform/data/stddef.h-data: Remove wint_t.
13028 * conform/conformtest.pl: Change namespace test to take #undef
13029 lines into account.
13031 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13033 * conform/data/sys/socket.h-data: Add sockatmark.
13035 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13037 * io/fts.c: Update from recent BSD source.
13039 2001-08-17 Roland McGrath <roland@frob.com>
13041 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13042 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13045 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13047 * locale/duplocale.c (__duplocale): Also initialize the special
13048 __ctype_* elements.
13050 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13052 2001-08-17 Andreas Jaeger <aj@suse.de>
13054 * misc/getpass.c: Include wchar.h for prototypes.
13055 * malloc/obstack.c: Likewise.
13057 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13059 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13061 * wcsmbs/wcscoll.c: Also define __wcscoll.
13062 * include/wchar.h: Declare __wcscoll.
13064 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13065 * libio/vwprintf.c: Likewise.
13066 * libio/wprintf.c: Likewise.
13068 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13070 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13072 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13073 instead of mbrtowc.
13074 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13075 wcslen, and __wcscoll instead of wcscoll.
13077 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13079 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13080 __getuid instead of getuid.
13082 * stdio-common/perror.c (perror): Use __close instead of close.
13083 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13084 * libio/freopen.c (freopen): Likewise.
13085 * libio/freopen64.c (freopen64): Likewise.
13087 * libio/tst-ungetwc2.c (main): Define str const.
13089 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13090 * libio/fwprintf.c: Also define __fwprintf.
13091 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13092 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13093 * assert/assert-perr.c: Likewise.
13094 * assert/assert.c: Likewise.
13095 * gmon/gmon.c: Likewise.
13096 * inet/rcmd.c: Likewise.
13097 * malloc/obstack.c: Likewise.
13098 * misc/err.c: Likewise.
13099 * misc/error.c: Likewise.
13100 * misc/getpass.c: Likewise.
13101 * posix/getopt.c: Likewise.
13102 * resolv/res_hconf.c: Likewise.
13103 * stdio-common/perror.c: Likewise.
13104 * stdio-common/psignal.c: Likewise.
13105 * stdlib/fmtmsg.c: Likewise.
13106 * sunrpc/auth_unix.c: Likewise.
13107 * sunrpc/clnt_perr.c: Likewise.
13108 * sunrpc/clnt_tcp.c: Likewise.
13109 * sunrpc/clnt_udp.c: Likewise.
13110 * sunrpc/clnt_unix.c: Likewise.
13111 * sunrpc/svc_simple.c: Likewise.
13112 * sunrpc/svc_tcp.c: Likewise.
13113 * sunrpc/svc_udp.c: Likewise.
13114 * sunrpc/svc_unix.c: Likewise.
13115 * sunrpc/xdr.c: Likewise.
13116 * sunrpc/xdr_array.c: Likewise.
13117 * sunrpc/xdr_rec.c: Likewise.
13118 * sunrpc/xdr_ref.c: Likewise.
13119 * sysdeps/generic/wordexp.c: Likewise.
13121 * po/it.po: Update from translation team.
13123 * misc/err.c: Handle wide oriented stderr stream.
13125 2001-08-14 Tom Rix <trix@redhat.com>
13127 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13128 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13130 2001-08-13 Tom Rix <trix@redhat.com>
13132 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13133 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13136 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13138 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13139 Store the access registers to the ucontext structure.
13140 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13143 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13144 Load the access registers from the ucontext structure.
13145 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13148 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13149 offsets to the new ucontext layout.
13150 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13152 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13153 of the ucontext structure.
13154 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13156 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13158 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13159 (error_at_line): Likewise.
13161 * stdio-common/perror.c (perror): Implement according to standard.
13162 The stream orientation must not be changed if the stream was not
13163 oriented before the call.
13164 * stdio-common/Makefile (tests): Add tst-perror.
13165 * stdio-common/tst-perror.c: New file.
13168 See ChangeLog.12 for earlier changes.