1 2002-09-23 Ulrich Drepper <drepper@redhat.com>
3 * po/zh_CN.po: New file.
5 2002-09-23 Roland McGrath <roland@redhat.com>
7 * catgets/open_catalog.c (__open_catalog): Don't use a value type
8 as the __builtin_expect expression, just the Boolean value.
10 * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
11 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
12 * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
13 * iconvdata/tst-loading.c (main): Likewise.
14 * catgets/tst-catgets.c (main): Likewise.
15 * stdlib/tst-xpg-basename.c (main): Likewise.
16 * stdlib/tst-bsearch.c (main): Likewise.
17 * stdio-common/test-vfprintf.c (main): Likewise.
18 * stdio-common/tst-rndseek.c (do_test): Likewise.
19 * libio/tst_swprintf.c (main): Likewise.
20 * libio/tst-fgetws.c (main): Likewise.
21 * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
22 * time/tst-posixtz.c (main): Likewise.
23 * time/tst-strptime.c (test_tm): Likewise.
24 * time/tst-strptime.c (main): Likewise.
25 * time/tst-getdate.c (main): Likewise.
26 * posix/tst-mmap.c (main): Likewise.
27 * posix/tst-getaddrinfo.c (do_test): Likewise.
28 * io/tst-getcwd.c (do_test): Likewise.
29 * resolv/tst-aton.c (main): Likewise.
30 * inet/tst-network.c (main): Likewise.
31 * libio/tst-fgetws.c (main): Likewise.
32 * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
33 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
36 * stdlib/msort.c (qsort): Add a cast to silence warning.
37 * stdio-common/vfprintf.c (process_string_arg): Likewise.
38 * libio/oldfileops.c (_IO_old_do_write): Likewise.
39 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
40 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
41 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
42 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
43 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44 * sysdeps/unix/grantpt.c (grantpt): Likewise.
45 * libio/tst-widetext.c (main): Likewise.
46 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
47 * rt/tst-aio.c (test_file): Likewise.
48 * rt/tst-aio64.c (test_file): Likewise.
49 * resolv/tst-aton.c (main): Likewise.
51 * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
53 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
54 instead of uint32_t in these macros.
56 2002-09-22 Bruno Haible <bruno@clisp.org>
58 * iconv/iconv_prog.c (main): Provide an error message that identifies
61 * iconvdata/tscii.c: New file.
62 * iconvdata/testdata/TSCII: New file.
63 * iconvdata/testdata/TSCII..UTF8: New file.
64 * iconvdata/TSCII.precomposed: New file.
65 * iconvdata/TSCII.irreversible: New file.
66 * iconvdata/gconv-modules (TSCII): New module.
67 * iconvdata/Makefile (modules): Add TSCII.
68 (distribute): Add tscii.c.
69 * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
71 * iconvdata/tst-tables.sh: Add TSCII.
72 * iconvdata/TESTS: Add TSCII.
74 Revert 2002-04-18 patch.
75 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
76 FROM_DIRECTION): Make the FROM direction stateful again.
77 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
78 FROM_DIRECTION): Likewise.
80 * iconvdata/tst-e2big.c: New file.
81 * iconvdata/Makefile (tests): Add tst-e2big.
83 2002-09-23 Roland McGrath <roland@redhat.com>
85 * elf/Makefile (test-extras): Define this instead of test-srcs.
86 * Makerules (all-nonlib): Include $(test-extras) too.
88 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
90 * sysdeps/hppa/abort-instr.h: New file.
92 2002-09-22 Roland McGrath <roland@frob.com>
94 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
96 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
98 2002-09-22 Andreas Schwab <schwab@suse.de>
100 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
102 * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
103 (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
106 2002-09-21 Roland McGrath <roland@redhat.com>
108 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
109 Correct the value so it covers all platforms, and is computed
110 from _DL_PLATFORMS_COUNT rather than hard-wired.
111 From Andrew Suffield <asuffield@debian.org>.
113 2002-09-20 Ulrich Drepper <drepper@redhat.com>
115 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
116 locking when using mount tab file.
117 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
118 * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
119 * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
121 * elf/dl-init.c (_dl_init): Fix test of the size of the
122 preinit_array section.
123 (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
124 Reported by Brian Cabral <cabral@ikuni.com>.
126 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
128 * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
129 * sysdeps/powerpc/powerpc32/sysdep.h: New file. Define powerpc32
130 specific macros copied from sysdeps/powerpc/sysdep.h.
131 * sysdeps/powerpc/powerpc64/sysdep.h: New file. Define powerpc64
133 * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
134 [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
135 [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
137 2002-09-19 Bruno Haible <bruno@clisp.org>
139 * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
142 2002-09-17 Bruno Haible <bruno@clisp.org>
144 * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
145 * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
146 also on platforms with !HAVE_UT_TYPE.
147 (proc_utmp_eq): Remove function.
148 (internal_getut_r, pututline_file): Call __utmp_equal instead.
150 2002-09-20 Bruno Haible <bruno@clisp.org>
152 * abi-tags: Add support for FreeBSD with ABI OS value 3.
153 * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
155 2002-09-20 Roland McGrath <roland@redhat.com>
157 * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
158 (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
160 * sysdeps/x86_64/gmp-mparam.h: File removed.
161 * sysdeps/sparc/gmp-mparam.h: File removed.
162 * sysdeps/mips/mips64/gmp-mparam.h: File removed.
163 * sysdeps/ia64/gmp-mparam.h: File removed.
164 * sysdeps/alpha/gmp-mparam.h: File removed.
166 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
168 * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
169 load, so as to work on both 32-bit and 64-bit. Remove unnecessary
170 casts. Align __libc_stack_end to 8 bytes.
172 2002-09-20 Roland McGrath <roland@redhat.com>
174 * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
175 instead of asm for lrintf, __lrintf aliases.
177 * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
178 int array for 32-/64-bit compatibility.
179 From Steven Munroe <sjmunroe@us.ibm.com>.
181 2002-09-17 Bruno Haible <bruno@clisp.org>
183 * sysdeps/generic/ifreq.h (__if_nextreq): New function.
184 * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
185 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
186 * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
187 for iterating through the list of interfaces.
188 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
190 2002-09-20 Roland McGrath <roland@redhat.com>
192 * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
193 Reported by Bruno Haible <bruno@clisp.org>.
195 * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
197 * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
198 * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
199 isatty unmodified. Reported by Bruno Haible <bruno@clisp.org>.
201 2002-09-20 Steven Munroe <sjmunroe@us.ibm.com>
203 * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
204 * sysdeps/powerpc/bits/wordsize.h: New file.
205 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
206 array to int array for 32-/64-bit compatibility.
208 2002-09-20 Roland McGrath <roland@redhat.com>
210 * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
212 * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
213 Reported by Bruno Haible <bruno@clisp.org>.
215 * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
216 before doubling RQ_LEN.
217 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
218 Reported by Bruno Haible <bruno@clisp.org>.
220 2002-09-18 Bruno Haible <bruno@clisp.org>
222 * login/logout.c (logout): Don't assume ut_time has the same size as
224 * login/logwtmp.c (logwtmp): Likewise.
226 * sysdeps/pthread/configure: New file, moved here from
227 linuxthreads/sysdeps/unix/sysv/linux/configure.
229 2002-09-19 Ulrich Drepper <drepper@redhat.com>
231 * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
232 (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
233 Reported by Glen Nakamura <glen@imodulo.com>.
235 2002-09-19 Neal H. Walfield <neal@cs.uml.edu>
237 * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
238 thread's sigstate data structure if it has been allocated.
240 2002-09-19 Roland McGrath <roland@redhat.com>
242 * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
243 [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
245 2002-09-18 Ulrich Drepper <drepper@redhat.com>
247 * version.h (VERSION): Bump to 2.2.94.
249 * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
250 * sysdeps/powerpc/powerpc32/fpu/Dist: ...here. New file.
251 * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
254 * sysdeps/i386/Makefile: Remove obsolete db2 rules.
256 * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
258 * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
262 2002-09-19 Jakub Jelinek <jakub@redhat.com>
264 * sysdeps/wordsize-32/Makefile: New file.
265 * sysdeps/arm/Makefile: Removed.
266 * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
267 Don't add divdi3 here.
268 * sysdeps/m68k/Makefile: Likewise.
269 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
270 * sysdeps/sh/Makefile: Likewise.
271 * sysdeps/s390/s390-32/Makefile: Likewise.
273 2002-09-18 Roland McGrath <roland@redhat.com>
275 * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
276 the __ctype_* compat symbols, so the relocs generated bind to the
277 right versioned global symbol in the shared object.
279 * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
280 from the value taken from the DT_VERSYM table.
281 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
282 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
283 (RESOLVE_GOTSYM): Likewise.
285 * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
287 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
288 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
289 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
290 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
291 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
292 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
293 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
294 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
296 2002-09-18 Ulrich Drepper <drepper@redhat.com>
298 * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
300 * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
301 define sigaction and __sigaction as wrappers around
302 __libc_sigaction which rejects changing SIGCANCEL.
303 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
305 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
308 * signal/allocrtsig.c: Move to...
309 * sysdeps/generic/allocrtsig.c: ...here. New file.
311 2002-09-17 Jakub Jelinek <jakub@redhat.com>
313 * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
315 * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
316 R_386_TLS_LE): Define.
317 (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
319 * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
320 ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
321 (elf_machine_rel): Handle R_386_TLS_TPOFF.
322 (elf_machine_rela): Likewise.
323 Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
325 2002-09-17 Roland McGrath <roland@redhat.com>
327 * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
328 file-specific variable override so it compiles properly when using
331 2002-09-17 Steven Munroe <sjmunroe@us.ibm.com>
333 Ported to PowerPC64 running Linux.
334 * sysdeps/powerpc/powerpc64/Dist: New file.
335 * sysdeps/powerpc/powerpc64/Implies: New file.
336 * sysdeps/powerpc/powerpc64/Makefile: New file.
337 * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
338 * sysdeps/powerpc/powerpc64/atomicity.h: New file.
339 * sysdeps/powerpc/powerpc64/backtrace.c: New file.
340 * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
341 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
342 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
343 * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
344 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
345 * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
346 * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
347 * sysdeps/powerpc/powerpc64/memset.S: New file.
348 * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
349 * sysdeps/powerpc/powerpc64/register-dump.h: New file.
350 * sysdeps/powerpc/powerpc64/setjmp.S: New file.
351 * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
352 * sysdeps/powerpc/powerpc64/strchr.S: New file.
353 * sysdeps/powerpc/powerpc64/strcmp.S: New file.
354 * sysdeps/powerpc/powerpc64/strcpy.S: New file.
355 * sysdeps/powerpc/powerpc64/strlen.S: New file.
356 * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
357 * sysdeps/powerpc/powerpc64/elf/start.S: New file.
358 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
359 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
368 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
369 (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
370 various gcc versions. Dot names required for powerpc64.
371 [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
372 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
373 C_SYMBOL_DOT_NAME(alias).
374 [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
375 original strong_alias macro.
376 [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
377 C_SYMBOL_DOT_NAME(alias).
378 [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
379 [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
381 Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
382 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro. Generate
383 .global C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
384 (hidden_def): Append hidden_dot_def1 macro to definition.
385 (hidden_ver): Append hidden_dot_def1 macro to definition.
386 (hidden_data_def): New macro. Same as original hidden_def macro.
387 (hidden_data_ver): New macro. Same as original hidden_ver macro.
388 [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro. Generate
389 .weakext C_SYMBOL_DOT_NAME(alias). Otherwise an empty macro.
390 (hidden_weak): Append hidden_dot_weak1 macro to definition.
391 (hidden_data_weak): New macro. Same as original hidden_weak macro.
392 [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
393 Otherwise defined as __GI_name.
394 (libc_hidden_data_def): New macro. Use hidden_data_def.
395 (libc_hidden_data_weak): New macro. Use hidden_data_weak.
396 (libc_hidden_data_ver): New macro. Use hidden_data_ver.
397 (rtld_hidden_data_def): New macro. Use hidden_data_def.
398 (rtld_hidden_data_weak): New macro. Use hidden_data_weak.
399 (rtld_hidden_data_ver): New macro. Use hidden_data_ver.
400 (libm_hidden_data_def): New macro. Use hidden_data_def.
401 (libm_hidden_data_weak): New macro. Use hidden_data_weak.
402 (libm_hidden_data_ver): New macro. Use hidden_data_ver.
403 * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
405 2002-09-17 Ulrich Drepper <drepper@redhat.com>
407 * include/libc-symbols.h: Change *hidden_proto macros to accept
408 option parameters and pass those to the attribute definition.
409 * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
411 * include/unistd.h: Declare __libc_pause.
413 * include/sys/socket.h: Declare __libc_send, __libc_recv,
414 __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
416 * include/unistd.h: Declare __libc_fork.
418 2002-09-17 Roland McGrath <roland@redhat.com>
420 * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
421 (passwd2des): Define it as an alias.
422 (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
424 2002-09-12 Bruno Haible <bruno@clisp.org>
426 * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
427 * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
429 * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
430 * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
432 2002-09-05 Steven Munroe <sjmunroe@us.ibm.com>
434 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
435 (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
436 __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
437 PowerPC64 does not have separate 64-bit syscalls.
439 2002-09-16 Roland McGrath <roland@redhat.com>
441 * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
446 * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
448 * include/unistd.h: Uncomment libc_hidden_proto for _exit.
449 * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
450 * sysdeps/generic/_exit.c: Likewise.
452 2002-09-12 Jakub Jelinek <jakub@redhat.com>
454 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
456 * elf/rtld.c (struct dl_start_final_info): New.
457 (_dl_start_final): Change second argument to struct
458 dl_start_final_info *. Set start_time from info.
459 (_dl_start): Remove bootstrap_map variable, add info.
460 Define bootstrap_map as macro. If not DONT_USE_BOOTSTRAP_MAP,
461 store HP_TIMING_NOW result into info.start_time.
463 2002-09-16 Andreas Jaeger <aj@suse.de>
465 * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
467 * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
469 2002-09-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
471 * sysdeps/powerpc/abort-instr.h: New file.
473 2002-09-14 Ulrich Drepper <drepper@redhat.com>
475 * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
478 * test-skeleton.c (main): Provide more information in case waitpid
481 * include/unistd.h: Declare __exit_thread.
482 * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
483 Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
484 * sysdeps/unix/sysv/linux/exit-thread.S: New file.
485 * sysdeps/unix/sysv/linux/_exit.c: New file.
486 * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
487 * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
490 * configure.in: Add dl_iterate_phdr to test using -nostdlib.
492 2002-09-12 Jakub Jelinek <jakub@redhat.com>
494 * sysdeps/i386/dl-machine.h (elf_machine_rel)
495 (case R_386_TLS_DTPMOD32): Don't use addend.
496 [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
497 (elf_machine_rela): Add support for TLS relocs.
499 2002-09-14 Roland McGrath <roland@redhat.com>
501 * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
503 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
505 * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
506 specific asm macros for multiple percision integer math.
508 2002-06-04 Steven Munroe <sjmunroe@us.ibm.com>
510 * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
511 * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
512 Remove per-machine conditionals for FLAG_* cases.
513 * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
514 * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
517 2002-09-10 Alan Modra <amodra@bigpond.net.au>
519 * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
521 (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
522 lowest address for profiling in __monstartup call.
523 * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
525 2002-09-14 Roland McGrath <roland@redhat.com>
527 * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
528 instead of __NR_pread.
529 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
530 * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
531 instead of __NR_pwrite.
532 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
534 2002-09-13 Roland McGrath <roland@redhat.com>
536 * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
538 2002-09-13 Andreas Jaeger <aj@suse.de>
540 * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
541 syscall. Patch by Guido Guenther <agx@sigxcpu.org>.
543 2002-09-12 Ulrich Drepper <drepper@redhat.com>
545 * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
547 2002-09-10 Ulrich Drepper <drepper@redhat.com>
549 * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
552 2002-09-12 Roland McGrath <roland@redhat.com>
554 * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
555 (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
558 * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
559 executable if needed, in case it's actually a shared object.
561 2002-09-11 Roland McGrath <roland@redhat.com>
563 * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
564 l_map_start to adjust l_tls_initimage.
566 * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
567 when using h_errno and it's not set to NETDB_INTERNAL.
568 * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
570 * Makefile ($(common-objpfx)testrun.sh): New target.
571 (others): Depend on it.
572 (postclean-generated): Append it.
574 * nss/bug-erange.c: New file.
575 * nss/Makefile (tests): Add it.
577 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
578 instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
580 * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
581 strncmp, keeps the code smaller for a non-performance-critical case.
583 * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
584 no longer wrongly matches arbitrary prefixes of NAME.
585 Reported by Jakub Jelinek <jakub@redhat.com>.
587 2002-09-11 Jakub Jelinek <jakub@redhat.com>
589 * posix/bug-regex11.c (tests): New array.
590 (main): Rewritten to run more different tests.
592 2002-09-10 Roland McGrath <roland@redhat.com>
594 * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
595 (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
596 Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
598 * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
599 well so we don't get it declared by include/math.h's hidden_proto.
600 Then do hidden_proto for __isnanf locally so hidden_def works right.
602 * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
603 a cast to turn nl_langinfo return value into an integer.
605 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
607 * posix/regexec.c (build_trtable): Fix the destination of
608 newline to prevent wrong states from overwriting.
609 Append break statements to optimization.
611 2002-09-10 Isamu Hasegawa <isamu@yamato.ibm.com>
613 * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
614 (build_range_exp): Add castings to strlen invocations.
615 (build_collating_symbol): Restore the type of characters from "char"
616 to "unsigned char", and supplement castings.
617 (build_collating_symbol): Likewise.
618 (build_equiv_class): Likewise.
619 (build_charclass): Likewise.
620 (seek_collating_symbol_entry): Likewise.
621 (parse_bracket_exp): Likewise.
622 (build_word_op): Supplement a casting.
623 * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
624 (re_string_allocate): Fix castings.
625 (re_string_construct): Likewise.
626 (re_string_construct_common): Likewise.
627 (re_string_realloc_buffers): Likewise.
628 (build_wcs_buffer): Likewise.
629 (build_wcs_upper_buffer): Likewise.
630 (re_string_skip_chars): Likewise.
631 (re_string_reconstruct): Likewise.
632 * posix/regex_internal.h: Restore the type of characters in
633 re_string_t and bracket_elem_t from "char" to "unsigned char".
634 (re_string_elem_size_at): Fix castings.
635 * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
636 (transit_state_bkref_loop): Restore the type of characters from
637 "char" to "unsigned char", and append a cast to "char*" pointer in
639 (check_node_accept_bytes): Likewise.
640 (find_collation_sequence_value): Likewise.
642 2002-09-10 Hartvig Ekner <hartvige@mips.com>
644 * sysdeps/mips/memcpy.S: New file.
645 * sysdeps/mips/memset.S: New file.
646 * sysdeps/mips/fpu/e_sqrt.c: New file.
647 * sysdeps/mips/fpu/e_sqrtf.c: New file.
649 * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
650 functional before. Also removed all SHLIB_COMPAT stuff.
651 * fpu/fegetenv.c: Likewise.
652 * fpu/fesetenv.c:: Likewise.
653 * fpu/feupdateenv.c: Likewise.
654 * fpu/fgetexcptflg.c: Likewise.
655 * fpu/fraiseexcpt.c: Likewise.
657 * sysdeps/mips/fpu/fsetexcptflg.c: New file.
659 2002-09-09 Jakub Jelinek <jakub@redhat.com>
661 * include/math.h (__finite_internal, __finitef_internal,
662 __finitel_internal, __isinf_internal, __isnan_internal): Remove.
664 (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
665 __isinfl, __isnanl): Add hidden_proto.
666 (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
668 * math/Makefile (libm-calls): Add s_isinf and s_isnan.
669 * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
671 * stdio-common/printf_size.c (printf_size): Likewise.
672 * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
673 * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
674 * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
675 * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
676 * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
677 * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
678 (__finite): Add hidden_def.
679 * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
680 (__finitef): Add hidden_def.
681 * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
682 (__finitel): Add hidden_def.
683 * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF. Add
685 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
686 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
688 * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
689 * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF. Add
691 * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
692 (__isinfl): Remove INTDEF.
693 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF. Add
695 (__isnanl): Remove INTDEF.
696 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
698 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
699 instead of sin and cos.
700 * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
702 * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
703 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
704 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
706 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
708 * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
709 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
710 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
712 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
714 * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
716 * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
717 * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
718 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
720 * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
721 __finitel_internal): Remove aliases.
722 (__finite, __finitef, __finitel): Add hidden_def.
723 * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
724 __isnanl_internal): Remove aliases.
725 (__isnan, __isnanf, __isnanl): Add hidden_def.
726 * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
727 __isinfl_internal): Remove aliases.
728 (__isinf, __isinff, __isinfl): Add hidden_def.
729 * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
730 __fpclassifyl): Add libm_hidden_def.
731 * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
732 * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF. Add hidden_def.
733 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
734 (hidden_defx): Define and use.
735 * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
737 * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
738 * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
739 * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
741 (__isnan, __isnanf): Add hidden_def.
742 * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
743 (__finitel): Add libm_hidden_def.
744 * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
746 * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
747 * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
748 * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
749 * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
750 * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
751 * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
752 * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
753 * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
754 * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
755 * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
756 * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
757 * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
758 * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
759 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
760 * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
761 * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
762 * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
763 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
764 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
765 * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
766 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
767 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
768 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
769 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
770 * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
771 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
772 * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
774 2002-09-09 Steven Munroe <sjmunroe@us.ibm.com>
776 * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
778 2002-09-09 Jakub Jelinek <jakub@redhat.com>
780 * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
781 LD_DEBUG=statistics or LD_TRACE_PRELINKING.
783 2002-09-09 Ulrich Drepper <drepper@redhat.com>
785 * string/stratcliff.c: Some more strncpy tests.
786 Patch by Daniel Jacobowitz <drow@mvista.com>.
788 2002-09-08 Roland McGrath <roland@redhat.com>
790 * resolv/resolv.h: Include <sys/types.h> for u_long even in
791 the [__need_res_state] case.
792 Reported by Bruno Haible <bruno@clisp.org>.
794 2002-09-04 Bruno Haible <bruno@clisp.org>
796 * sysdeps/generic/bits/ustat.h: Comment fix.
797 * io/sys/sendfile.h: Comment fix.
798 * sysdeps/posix/pread.c: Comment fix.
799 * sysdeps/posix/pread64.c: Comment fix.
800 * sysdeps/posix/pwrite.c: Comment fix.
801 * sysdeps/posix/pwrite64.c: Comment fix.
803 2002-09-06 Roland McGrath <roland@redhat.com>
805 * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
806 to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
807 (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
808 (_UTSNAME_MACHINE_LENGTH): Likewise.
809 (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
811 2002-09-06 Ulrich Drepper <drepper@redhat.com>
813 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
814 test for filesystem type name of mount points.
816 * include/errno.h: Use errno definition with __thread for now only
819 * test-skeleton.c (main): Improve error message for unexpected
822 2002-09-05 Roland McGrath <roland@redhat.com>
824 * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
825 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
827 2002-09-05 Jakub Jelinek <jakub@redhat.com>
829 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
832 2002-09-04 Bruno Haible <bruno@clisp.org>
834 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
835 sigset_get_old_mask): Turn into inline functions.
836 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
837 sigset_get_old_mask): Likewise.
838 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
839 sigset_get_old_mask): Likewise.
840 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
843 * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
845 * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
847 (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
848 _sys_nerr_internal instead of _sys_nerr.
850 * nscd/connections.c (handle_request): Declare CALLER inside #if.
852 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
854 * sysdeps/powerpc/__longjmp.S: Moved to...
855 * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
856 * sysdeps/powerpc/add_n.S: Moved to...
857 * sysdeps/powerpc/powerpc32/add_n.S: ...here.
858 * sysdeps/powerpc/addmul_1.S: Moved to...
859 * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
860 * sysdeps/powerpc/atomicity.h: Moved to...
861 * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
862 * sysdeps/powerpc/backtrace.c: Moved to...
863 * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
864 * sysdeps/powerpc/bp-asm.h: Moved to...
865 * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
866 * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
867 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
868 * sysdeps/powerpc/bsd-setjmp.S: Moved to...
869 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
870 * sysdeps/powerpc/dl-machine.c: Moved to...
871 * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
872 * sysdeps/powerpc/dl-machine.h: Moved to...
873 * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
874 * sysdeps/powerpc/dl-start.S: Moved to...
875 * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
876 * sysdeps/powerpc/gprrest0.S: Moved to...
877 * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
878 * sysdeps/powerpc/gprrest1.S: Moved to...
879 * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
880 * sysdeps/powerpc/gprsave0.S: Moved to...
881 * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
882 * sysdeps/powerpc/gprsave1.S: Moved to...
883 * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
884 * sysdeps/powerpc/lshift.S: Moved to...
885 * sysdeps/powerpc/powerpc32/lshift.S: ...here.
886 * sysdeps/powerpc/memset.S: Moved to...
887 * sysdeps/powerpc/powerpc32/memset.S: ...here.
888 * sysdeps/powerpc/mul_1.S: Moved to...
889 * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
890 * sysdeps/powerpc/ppc-mcount.S: Moved to...
891 * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
892 * sysdeps/powerpc/register-dump.h: Moved to...
893 * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
894 * sysdeps/powerpc/rshift.S: Moved to...
895 * sysdeps/powerpc/powerpc32/rshift.S: ...here.
896 * sysdeps/powerpc/setjmp.S: Moved to...
897 * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
898 * sysdeps/powerpc/stpcpy.S: Moved to...
899 * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
900 * sysdeps/powerpc/strchr.S: Moved to...
901 * sysdeps/powerpc/powerpc32/strchr.S: ...here.
902 * sysdeps/powerpc/strcmp.S: Moved to...
903 * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
904 * sysdeps/powerpc/strcpy.S: Moved to...
905 * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
906 * sysdeps/powerpc/strlen.S: Moved to...
907 * sysdeps/powerpc/powerpc32/strlen.S: ...here.
908 * sysdeps/powerpc/sub_n.S: Moved to...
909 * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
910 * sysdeps/powerpc/submul_1.S: Moved to...
911 * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
912 * sysdeps/powerpc/elf/bzero.S: Moved to...
913 * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
914 * sysdeps/powerpc/elf/start.S: Moved to...
915 * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
916 * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
917 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
918 * sysdeps/powerpc/fpu/fprrest.S: Moved to...
919 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
920 * sysdeps/powerpc/fpu/fprsave.S: Moved to...
921 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
922 * sysdeps/powerpc/fpu/setjmp.S: Moved to...
923 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
924 * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
925 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
926 * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
927 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
928 * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
929 * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
930 * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
932 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
934 * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
936 * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
938 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
940 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
942 Support PowerPC64. Separate powerpc into powerpc/powerpc32 and
945 2002-07-29 Steven Munroe <sjmunroe@us.ibm.com>
947 * FAQ.in: Add powerpc64 to supported targets list. Also state the
948 minimum gcc version is 3.2
949 * README: Add powerpc64 to supported targets list.
950 * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
951 Add powerpc64 and machine=powerpc/powerpc64.
952 (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
953 * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
954 * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
955 gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
956 * sysdeps/powerpc/powerpc32/Dist: New file.
957 * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
958 * sysdeps/powerpc/powerpc32/Implies: New file.
959 * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
960 ($(with-fp) = no): Move test to powerpc32/Makefile.
961 ($(subdir) = misc): Move to powerpc32/Makefile.
962 ($(build-shared) = yes): Move to powerpc32/Makefile.
963 ($(subdir) = csu): Move to powerpc32/Makefile.
964 (sysdep-rtld-routines): Remove dl-start. Moved these bits to ...
965 * sysdeps/powerpc/powerpc32/Makefile: New file.
966 * sysdeps/powerpc/Versions: Remove libgcc functions.
967 * sysdeps/powerpc/powerpc32/Versions: New file.
968 * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
969 * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
970 * sysdeps/unix/sysv/linux/configure.in (powerpc*):
971 Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
972 libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
973 ($machine): Add powerpc/powerpc64 to if ... | for
974 libc_cv_slibdir=/libc64.
975 (powerpc*): Set ldd_rewrite_script.
976 * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
977 * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
980 * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
981 * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
982 functions. Remove GLIBC_2.2 functions except getrlimit and
983 setrlimit. Moved them to ...
984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
986 2002-09-04 Ulrich Drepper <drepper@redhat.com>
988 * libio/tst-atime.c: Include <errno.h>.
989 (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
991 2002-09-03 Isamu Hasegawa <isamu@yamato.ibm.com>
993 * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
994 warnings of some compilers.
995 (build_collating_symbol): Change the type of characters from
996 "unsigned char" to "char", and append a cast to "char*" pointer in
998 (build_collating_symbol): Likewise.
999 (build_equiv_class): Likewise.
1000 (build_charclass): Likewise.
1001 (re_compile_pattern): Remove incorrect cast.
1002 (re_compile_fastmap_iter): Change the type of characters from
1003 "unsigned char" to "char", and append a cast to "char*" pointer
1005 (parse_bracket_exp): Likewise.
1006 * posix/regex_internal.c (re_string_construct_common): Likewise.
1007 (re_string_allocate): Likewise.
1008 (re_string_construct): Likewise.
1009 (re_string_realloc_buffers): Likewise.
1010 (build_wcs_buffer): Likewise.
1011 (re_string_reconstruct): Likewise.
1012 * posix/regex_internal.h: Change the type of characters in
1013 re_string_t and bracket_elem_t from "unsigned char" to "char".
1014 * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1015 warnings of some compilers.
1016 (transit_state_bkref_loop): Change the type of characters from
1017 "unsigned char" to "char", and append a cast to "char*" pointer in
1019 (check_node_accept_bytes): Likewise.
1020 (find_collation_sequence_value): Likewise.
1022 2002-09-04 Roland McGrath <roland@redhat.com>
1024 * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1025 from 1024 to 65536, to avoid buffer overrun.
1027 2002-09-03 Gerhard Tonn <ton@de.ibm.com>
1029 * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1031 2002-09-04 Ulrich Drepper <drepper@redhat.com>
1033 * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1036 2002-09-04 Jakub Jelinek <jakub@redhat.com>
1038 * posix/bug-regex11.c: New test.
1039 * posix/Makefile (tests): Add bug-regex11.
1041 2002-09-03 Jakub Jelinek <jakub@redhat.com>
1043 * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1046 2002-09-02 Roland McGrath <roland@redhat.com>
1048 * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1049 __pthread_initialize_minimal and __libc_check_standard_fds to
1050 match the generic version.
1052 * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1053 warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1055 * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1056 warnings on platorms where char is unsigned.
1058 2002-09-02 Ulrich Drepper <drepper@redhat.com>
1060 * version.h (VERSION): Bump to 2.2.93.
1062 * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1064 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1066 * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1069 2002-09-02 Jack Howarth <howarth@bromo.msbb.uc.edu>
1071 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1073 2002-09-02 Jakub Jelinek <jakub@redhat.com>
1075 * locale/localeinfo.h (struct locale_data): Add private.ctype.
1076 * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1077 __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1078 (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1079 (__wcsmbs_load_conv): Remove const from argument.
1080 (_nl_cleanup_ctype): New proto.
1081 (get_gconv_fcts): New function.
1082 * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1083 (__wcsmbs_to_wc): Rename back to...
1085 (__wcsmbs_gconv_fcts): Rename to...
1086 (__wcsmbs_gconv_fcts_c): ... this. Make const. Use to_wc.
1088 (__libc_setlocale_lock): New extern.
1089 (__wcsmbs_load_conv): Remove const from argument.
1090 Initialize new_category->private.ctype instead of a global
1092 (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1093 update_function_ptrs. No locking is necessary.
1094 (_nl_cleanup_ctype): New function.
1095 * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1096 update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1097 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1098 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1099 * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1100 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1101 * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1102 * wcsmbs/wctob.c (wctob): Likewise.
1103 * stdlib/mblen.c (mblen): Likewise.
1104 * stdlib/mbtowc.c (mbtowc): Likewise.
1105 * stdlib/wctomb.c (wctomb): Likewise.
1106 * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1107 Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1108 * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1111 2002-09-02 Roland McGrath <roland@frob.com>
1113 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1115 2002-09-01 Roland McGrath <roland@redhat.com>
1117 * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1118 Variable declarations removed.
1119 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1120 these functions to replace them.
1121 (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1122 functions plus an indirection rather than the old global variables.
1123 * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1125 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1127 * ctype/ctype-info.c: Revert last reversion back the other way.
1128 Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1129 Define real function versions of include/ctype.h inlines here.
1130 * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1131 __ctype_tolower_loc, __ctype_toupper_loc.
1132 * locale/lc-ctype.c: Revert last reversion back the other way.
1133 (_nl_postload_ctype): If current thread uses the global locale,
1134 update its tsd vars.
1135 * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1136 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1137 CTYPE_TOLOWER, CTYPE_TOUPPER.
1139 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1140 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1141 from __libc_tsd_threadvar_location.
1142 (__libc_tsd_set, __libc_tsd_get): Update uses.
1144 2002-09-01 Ulrich Drepper <drepper@redhat.com>
1146 * ctype/ctype.h: Undo the patch before the last one. Put back the
1147 macro definitions for the standard functions to access the
1148 classification and mapping arrays.
1149 * include/ctype.h: Partly revert last patch. Move the macro
1150 definitions for the exported functions back to the public header.
1151 #undef all the macros defined here before redefining.
1152 * ctype/ctype-info.c: Revert last patch.
1153 * locale/lc-ctype.c: Revert last patch.
1155 * ctype/Makefile (routines): Add isctype.
1156 * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1157 * ctype/ctype.h: Add declaration of isctype.
1158 * include/ctype.h: Declare __isctype.
1159 * ctype/isctype.c: New file.
1161 2002-09-01 Roland McGrath <roland@redhat.com>
1163 * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1164 TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1166 * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1168 * locale/findlocale.c (_nl_remove_locale): Don't search in
1169 _nl_locale_file_list if DATA->alloc is ld_archive.
1170 Use _nl_unload_locale to do the rest of the work.
1172 * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1173 of new structure to UNDELETABLE.
1175 * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1176 iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1177 towlower, towupper): Macros removed.
1178 * ctype/ctype.h (__tobody): Put parens around macro argument.
1179 (__isctype): Macro removed.
1180 (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1181 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1182 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1183 tolower, toupper): Macros and inlines removed.
1184 * include/ctype.h [! NOT_IN_libc]
1185 (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1186 ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1187 tolower, toupper): Define here instead, using _NL_CURRENT.
1188 * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1190 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1191 * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1192 Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1193 (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1194 (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1195 * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1196 conditional on SHLIB_COMPAT. Don't set removed variables at all.
1197 * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1198 * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1199 * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1200 (ISSORTMASK): Update use.
1201 * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1202 * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1203 (_nss_files_getENTNAME_r): Likewise.
1204 * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1207 * Makerules (all-nonlib): Renamed from all-tests.
1208 Include $(others) here too.
1209 * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1210 CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1211 CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1212 CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1213 CPPFLAGS-charmap-dir): Variables removed. Instead, catch all
1214 the program modules via cppflags-iterator.mk.
1215 * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1216 Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1218 2002-08-31 Roland McGrath <roland@redhat.com>
1220 * posix/tst-getconf.sh: If no third arg, work with static linking.
1222 * locale/categories.def (LC_TIME): No more _nl_postload_time.
1224 * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1225 [_NL_CURRENT_INDIRECT].
1227 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1229 * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1231 2002-08-31 Roland McGrath <roland@redhat.com>
1233 * locale/newlocale.c (__newlocale): Don't use strdup for names.
1234 Instead, make the single allocation of the structure larger to hold
1236 * locale/duplocale.c (__duplocale): Don't strdup names individually.
1237 Instead, calculate size for a single allocation and copy into it.
1238 * locale/freelocale.c (__freelocale): Don't free names individually.
1240 * locale/newlocale.c (__newlocale): Don't leak old data or names.
1242 * locale/xlocale.h (__locale_struct): Move __names member last,
1243 for binary compatibility.
1245 * locale/duplocale.c (__duplocale): Free names from the right array.
1247 * locale/uselocale.c (__uselocale): Return previous locale when
1250 * locale/newlocale.c: Commit changes from 2002-08-30
1251 batch where I failed to commit this file:
1252 (__newlocale): Fill in __names array.
1254 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1256 * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1257 errlist-compat.c if versioning==yes.
1259 2002-08-31 Andreas Jaeger <aj@suse.de>
1261 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1262 external functions with hidden attribute.
1263 (elf_machine_rela): Optimize.
1265 * sysdeps/x86_64/memset.S: New file.
1266 * sysdeps/x86_64/bzero.S: New file.
1267 * sysdeps/x86_64/stpcpy.S: New file.
1268 * sysdeps/x86_64/strcat.S: New file.
1269 * sysdeps/x86_64/strchr.S: New file.
1270 * sysdeps/x86_64/strcpy.S: New file.
1271 * sysdeps/x86_64/strcspn.S: New file.
1272 * sysdeps/x86_64/strlen.S: New file.
1273 * sysdeps/x86_64/strpbrk.S: New file.
1274 * sysdeps/x86_64/strspn.S: New file.
1275 * sysdeps/x86_64/strcmp.S: New file.
1276 * sysdeps/x86_64/strtok_r.S: New file.
1277 * sysdeps/x86_64/strtok.S: New file.
1278 * sysdeps/x86_64/memcpy.S: New file.
1279 * sysdeps/x86_64/mempcpy.S: New file.
1281 * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1283 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1285 2002-08-31 Ulrich Drepper <drepper@redhat.com>
1287 * stdio-common/Makefile (generated): Add errlist-compat.c.
1289 * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1291 * locale/localeinfo.h: Pretty printing.
1293 * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1294 form_number handling.
1296 2002-08-31 Andreas Jaeger <aj@suse.de>
1298 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1301 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1304 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1306 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1308 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1309 registers used for passing args.
1311 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1312 all needed registers.
1314 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1317 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1320 2002-08-30 Ulrich Drepper <drepper@redhat.com>
1322 * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1323 always_inline attribute.
1325 2002-08-30 Roland McGrath <roland@redhat.com>
1327 * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1328 presume it's the stub and bail without error.
1330 * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1331 neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1333 * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1335 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1336 macros replace the i686 versions for 64-bit mode.
1338 * locale/duplocale.c: Include <string.h>.
1340 * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1341 [_LIBC] (category_to_name): Don't define the function. Instead
1342 define a macro using _nl_category_names.
1344 * locale/xlocale.h (struct __locale_struct): New member `__names'.
1345 * locale/xlocale.c (_nl_C_locobj): Update initializer.
1346 * locale/global-locale.c (_nl_global_locale): Likewise.
1347 * locale/duplocale.c (__duplocale): strdup __names elements.
1348 * locale/freelocale.c (__freelocale): Free __names elements.
1349 * locale/localename.c (_nl_current_names): Variable removed.
1350 (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1351 * locale/localeinfo.h (_nl_current_names): Removed decl.
1352 * locale/setlocale.c: Use _nl_global_locale->__names in place of
1353 _nl_current_names throughout.
1355 * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1357 * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1358 and sys_nerr in the output file.
1360 * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1361 * scripts/cpp: Just use the environment variable.
1363 * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1364 * libio/tst-mmap-offend.c (do_test): Likewise.
1365 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1366 * libio/tst-mmap-eofsync.c (do_test): Likewise.
1367 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1369 * locale/localename.c: If the current locale is the global locale, use
1370 _nl_current_names; otherwise use the locale object.
1372 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1374 * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1375 'm' to enable mmap I/O.
1376 * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2. The
1377 former wasn't used (anymore?).
1378 (_IO_FLAGS2_MMAP): New define.
1379 * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1380 * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1381 _IO_FLAGS2_MMAP bit is set.
1382 * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1383 Enable mmap-using mode only if 'm' was set.
1385 2002-08-29 Roland McGrath <roland@frob.com>
1387 * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1389 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1390 Change argument type from int to intptr_t.
1392 * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1393 initializer on [! _HURD_THREADVAR_H] (bad kludge).
1394 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1395 _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1396 * hurd/hurdsig.c (_hurdsig_init): Likewise. Zero other slots.
1398 * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1400 * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1402 * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1404 * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1405 * assert/assert-perr.c: Add libc_hidden_def.
1406 * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1408 * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1410 * sysdeps/gnu/Versions: File removed. Moved all #errlist-compat
1411 sys_errlist stuff to ...
1412 * sysdeps/unix/sysv/linux/Versions: ... here.
1414 * mach/mach.h: Include <features.h>.
1416 2002-08-29 Roland McGrath <roland@redhat.com>
1418 * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1419 * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1420 define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1422 * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1424 * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1425 (norm_add_slashes): alloca -> __alloca
1427 2002-08-29 Jakub Jelinek <jakub@redhat.com>
1429 * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1430 string_malloced, it is unlikely to be set.
1431 Only call free with non-NULL workspace.
1432 * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1433 -mcpu=ultrasparc, not only tune for it.
1434 (ASFLAGS*): Set unconditionally.
1436 * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1437 ElfW(Addr). Don't mask upper 32-bits and lower 12 bits off from
1438 p_vaddr/p_offset when computing LOADADDR.
1440 2002-08-29 Ulrich Drepper <drepper@redhat.com>
1442 * version.h (VERSION): Bump to 2.2.92.
1444 * time/Makefile (tst-ftime_l-ENV): New variable.
1446 * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1448 * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1449 <U017A>, <U017D> and <U0179>. Add missing mappings.
1450 Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1452 * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1453 Define ARCINDEX. Bump MAXARCS to 1 << 20.
1454 (struct tostruct): Use ACRINDEX as type for link field.
1455 (statuc gmonparam): Likewise for froms.
1456 * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1458 (write_call_graph): Use correct type for from_index and to_index.
1459 * gmon/mcount.c: Use correct types for frompcindex and toindex
1461 Patches by Dan Kegel <dank@kegel.com>.
1463 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1466 * time/strptime.c (ISSPACE): New #define. Use isspace or
1467 __isspace_l. Replace calls to isspace.
1468 (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1470 2002-08-29 Roland McGrath <roland@redhat.com>
1472 * string/tst-strxfrm.c: Remove __ from function names.
1474 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1476 * include/wchar.h: Declare __mbsrtowcs_l.
1477 * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1478 * wcsmbs/mbsrtowcs.c: Add support for compilation with
1479 USE_IN_EXTENDED_LOCALE_MODEL.
1480 * wcsmbs/mbsrtowcs_l: New file.
1481 * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc. Don't
1482 define as static. Change all uses.
1483 (__wcsmbs_getfct): Renamed from getfct. Don't define as static.
1485 * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1486 * time/strftime.c: When translating for the extended locale model
1487 use the _l functions.
1488 * time/Makefile (tests): Add tst-ftime_l.
1489 * time/tst-ftime_l.c: New file.
1491 2002-08-28 Roland McGrath <roland@redhat.com>
1493 * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1494 * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1495 from _nl_find_locale ok if for _nl_C_name.
1497 * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1498 iterator to refer to each category's _nl_current_LC_FOO symbol, so
1499 we know they are all linked in.
1501 * NEWS: Added 2.2.6 text from 2.2 branch version.
1503 * time/strptime.c (strptime_internal): Remove spurious const.
1505 * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1506 _nl_select_era_entry): Moved to ...
1507 * time/era.c: ... here, new file.
1508 (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1509 Add internal_function to definitions. Take an additional argument
1510 giving the `struct locale_data *' to use.
1511 * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1512 _nl_parse_alt_digit): Moved to ...
1513 * time/alt_digit.c: ... here, new file.
1514 * time/lc-time-cleanup.c: New file.
1515 * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1516 * locale/localeinfo.h (_nl_postload_time): Remove decl.
1517 (_nl_cleanup_time): Declare it.
1518 (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1519 (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1520 * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1521 * time/strftime.c: Pass locale data to helper functions.
1522 * time/strptime.c: Likewise.
1524 * locale/localeinfo.h (struct locale_data): New member `private'
1525 * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1526 (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1527 * locale/C-collate.c: Update initializer.
1528 * locale/C-identification.c: Likewise.
1529 * locale/C-measurement.c: Likewise.
1530 * locale/C-telephone.c: Likewise.
1531 * locale/C-address.c: Likewise.
1532 * locale/C-name.c: Likewise.
1533 * locale/C-paper.c: Likewise.
1534 * locale/C-time.c: Likewise.
1535 * locale/C-numeric.c: Likewise.
1536 * locale/C-monetary.c: Likewise.
1537 * locale/C-messages.c : Likewise.
1538 * locale/C-ctype.c: Likewise.
1540 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1543 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1545 * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1546 (_rtld_global): Use it.
1548 * sysdeps/gnu/Dist: Remove errlist-compat.c.
1549 * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1550 object directory. Pass all Versions files to the awk script.
1551 * sysdeps/gnu/errlist-compat.c: Removed.
1552 * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1553 first Versions file in the search path which has them.
1554 Allow multiple errlist symbol versions to have the same count of
1556 * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1557 of "errlist-compat.c".
1558 * sysdeps/gnu/errlist.c: Regenerated.
1559 * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1560 comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1561 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1562 (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1563 * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1564 * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1565 * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1566 * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1567 ECANCELLED if not defined by kernel headers.
1568 * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1569 already defined by kernel headers.
1570 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1571 * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1572 aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1574 * Versions.def (GLIBC_2.3) [librt]: Add.
1576 * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1578 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1580 * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1581 missing comma to .type directive.
1583 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1585 * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1587 * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1589 (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1591 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1593 * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1594 check to close_and_out close. Replace return NULL statements where
1595 fd might be >= 0 with goto close_and_out. Close the file descriptor
1596 when it is no longer needed.
1598 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1600 * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1602 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1603 * sysdeps/arm/dl-machine.h: Likewise.
1604 * sysdeps/cris/dl-machine.h: Likewise.
1605 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1606 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1608 2002-08-28 Roland McGrath <roland@redhat.com>
1610 * Makeconfig (default_cflags): Revert unintended change.
1612 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1614 * version.h (VERSION): Bump to 2.2.91.
1616 * configure.in: Disable TLS support by default for now.
1618 * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1620 * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1623 * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1625 * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1626 fprintf/fwprintf calls.
1628 2002-08-28 Roland McGrath <roland@redhat.com>
1630 * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1631 to use $(filter ...) instead. Same bug fixed in aix conditionals.
1633 * locale/setlocale.c: Declare postload functions weak.
1635 * elf/tst-tls1-static.c: New file.
1636 * elf/tst-tls2-static.c: New file.
1637 * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1639 Make uselocale support static linking.
1640 * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1641 This file again just defines _nl_C_locobj.
1642 (_nl_C_locobj): Use a categories.def iterator in the initializer.
1643 * locale/global-locale.c: New file. Define _nl_global_locale here,
1644 using all weak references in the initializer.
1645 * locale/Makefile (aux): Add global-locale.
1646 * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1647 these unconditional, along with the tsd decl.
1648 [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1649 Define it under these conditions.
1650 [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1651 Don't declare _nl_current. Declare _nl_current_LC_FOO as
1652 `extern __thread struct locale_data *const *'.
1653 [NL_CURRENT_INDIRECT]
1654 (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1655 [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten. Define
1656 the thread variable _nl_current_LC_FOO and also a special absolute
1657 symbol _nl_current_LC_FOO_used.
1658 * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1659 Set each _nl_current_LC_FOO symbol to point into the new locale,
1660 using weak references to test if _nl_current_LC_FOO_used was linked in.
1661 * locale/setlocale.c [! SHARED]: Replace this conditional ...
1662 [NL_CURRENT_INDIRECT]: ... with this one.
1663 (_nl_current, _nl_C): Variables removed.
1664 [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1665 weak references to _nl_current_LC_FOO_used.
1666 [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1667 (free_category): New function, broken out of ...
1668 (free_mem): ... here. Call that.
1669 (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1672 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1673 PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1674 it is already absolute.
1676 * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1677 [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1678 [$(build-static) = yes] (tests-static): New variable.
1679 ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1681 2002-08-26 Christoph Hellwig <hch@lst.de>
1683 * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1684 formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1686 2002-08-28 Ulrich Drepper <drepper@redhat.com>
1688 * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1690 * sysdeps/s390/Dist: Add bits/link.h.
1692 * sysdeps/sh/Dist: New file.
1694 * sysdeps/ia64/Dist: Add ia64libgcc.S.
1696 * sysdeps/wordsize-32/Dist: New file.
1698 * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1699 * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1700 * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1702 * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1705 * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1708 * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1710 * sysdeps/unix/bsd/sun/Dist: New file.
1712 * sysdeps/unix/bsd/osf/Dist: New file.
1714 * sysdeps/unix/bsd/hp/Dist: New file.
1716 * sysdeps/unix/arm/Dist: New file.
1718 * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
1720 * sysdeps/mach/hurd/Dist: Add set-init.c.
1722 * sysdeps/i386/Dist: Add bits/link.h.
1724 * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
1726 * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
1728 * locale/Makefile (distribute): Add hashval.h.
1730 * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
1732 * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
1734 * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
1735 __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
1736 __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
1737 * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
1739 * libio/stdio.h: Likewise.
1740 * locale/locale.h: Likewise.
1741 * math/math.h: Likewise.
1742 * math/bits/mathcalls.h: Likewise.
1743 * setjmp/setjmp.h: Likewise.
1744 * signal/signal.h: Likewise.
1745 * stdlib/stdlib.h: Likewise.
1746 * string/string.h: Likewise.
1747 * time/time.h: Likewise.
1748 * wcsmbs/wchar.h: Likewise.
1749 * wctype/wctype.h: Likewise.
1751 2002-08-28 Roland McGrath <roland@redhat.com>
1753 * locale/tst-C-locale.c (run_test): Remove __ from function names.
1755 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1756 Roland McGrath <roland@redhat.com>
1758 * locale/hashval.h (compute_hashval): Use prototype defn.
1759 (hashval_t): New macro, defined to unsigned long int
1760 if not already defined.
1761 (compute_hashval): Return hashval_t instead of unsigned long int.
1762 * locale/loadarchive.c (hashval_t): New macro.
1763 * locale/programs/locarchive.c: Include hashval.h directly instead
1765 (compute_hashval, hashval_t): Define these macros first.
1766 (insert_name): Use archive_hashval instead of compute_hashval.
1767 (add_locale, delete_locales_from_archive): Likewise.
1769 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1771 * locale/programs/locarchive.c (insert_name): Suppress warnings about
1772 hash collisions if be_quiet.
1774 2002-08-27 Roland McGrath <roland@redhat.com>
1776 * locale/locale.h (__newlocale, __duplocale, __freelocale,
1777 __uselocale): Don't declare these any more.
1778 * include/locale.h (__uselocale): Declare here instead, using __typeof.
1780 * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
1781 and treat it as an EOF return.
1782 * sysdeps/unix/readdir_r.c: Likewise.
1784 * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
1785 From Alexandre Oliva <aoliva@redhat.com>.
1786 * sysdeps/gnu/errlist-compat.c: Regenerated.
1788 2002-08-27 Brian Youmans <3diff@gnu.org>
1790 * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
1791 wording at request of copyright holder Stephen Moshier.
1792 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1793 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1794 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1795 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1796 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1797 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1798 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1799 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1800 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1801 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1802 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1803 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1804 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1805 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1807 2002-08-28 Jakub Jelinek <jakub@redhat.com>
1809 * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
1810 * ctype/ctype-extn.c (isblank_l): Add weak alias.
1811 * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
1812 * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
1813 * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
1814 * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
1815 * wctype/iswctype_l.c (iswctype_l): Likewise.
1817 2002-08-27 Roland McGrath <roland@redhat.com>
1819 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
1821 * ctype/ctype.h (__exctype_l): Don't declare __ name.
1822 * stdlib/stdlib.h: Don't declare __*_l names.
1823 * include/stdlib.h: Declare them here instead.
1824 * include/string.h: Don't declare __*_l names.
1825 * string/string.h: Declare them here instead.
1826 * time/time.h: Don't declare __*_l names.
1827 * include/time.h: Declare them here instead.
1828 * wcsmbs/wchar.h: Don't declare __*_l names.
1829 * include/wchar.h: Declare them here instead.
1830 * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
1831 Don't declare __*_l names.
1832 * include/wctype.h: Declare them here instead.
1833 * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
1834 * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
1835 * locale/langinfo.h: Don't declare __nl_langinfo_l.
1836 * include/langinfo.h: Declare it here with __typeof.
1838 * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
1839 instead, taking an extra __locale_t argument.
1840 * time/Makefile (routines): Add strptime_l.
1841 * time/time.h (__strptime_l, strptime_l): Declare them.
1842 * time/strptime_l.c: New file.
1844 * time/time.h (__strftime_l, strftime_l): Declare them.
1845 * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
1846 * time/strftime_l.c: New file.
1847 * time/wcsftime_l.c: New file.
1848 * time/Makefile (routines): Add strftime_l, wcsftime_l.
1849 * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
1850 strftime_l, wcsftime_l.
1851 * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
1852 or __wcsftime_l instead, taking an extra __locale_t argument.
1854 * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
1855 (libc: GLIBC_2.3): ... here.
1857 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1859 * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
1861 * Makefile (distribute): Add LICENSES.
1863 * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
1866 * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
1868 * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
1870 * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
1872 * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
1874 * sysdeps/mach/hurd/alpha/Dist: New file.
1876 * sysdeps/arm/Dist: Add bits/link.h.
1878 * sunrpc/Makefile: Distribute thrsvc.
1880 * stdio-common/Makefile: Remove more left-overs from old stdio.
1882 * include/linewrap.h: Removed.
1884 * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
1886 * intl/Makefile (distribute): Add plural-eval.c.
1888 2002-08-27 Roland McGrath <roland@redhat.com>
1890 * manual/sysinfo.texi (Mount Information): Correct file name to macro
1891 assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
1892 Say mtab is in either /var/run or /etc.
1894 2002-08-26 Roland McGrath <roland@redhat.com>
1896 * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
1897 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1899 * sysdeps/gnu/Versions: New file.
1900 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
1901 _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
1902 * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
1903 ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
1904 * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
1905 and _sys_nerr_internal instead of anything else. Make it include
1906 "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
1907 Make it emit some asm magic if [EMIT_ERR_MAX].
1908 * sysdeps/gnu/errlist.c: Regenerated.
1909 * sysdeps/gnu/errlist-compat.awk: New file.
1910 * sysdeps/gnu/errlist-compat.c: New file (generated).
1911 * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
1912 (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
1913 (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
1914 (SYS_ERRLIST, SYS_NERR): Macros removed.
1915 (sys_nerr, _sys_nerr): Remove these weak aliases.
1916 * sysdeps/unix/sysv/linux/errlist.c: File removed.
1917 * sysdeps/unix/sysv/linux/errlist.h: File removed.
1918 * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
1920 * include/libc-symbols.h (declare_symbol): New macro.
1921 * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
1922 * configure.in: New check to define it.
1923 * configure: Regenerated.
1925 2002-08-27 Ulrich Drepper <drepper@redhat.com>
1927 * stdio-common/Makefile (headers): Remove bits/stdio_lim.h. This
1928 file isn't distributed. Add special rules to install bits/stdio_lim.h.
1930 * Make-dist: Remove traces of old stdio.
1931 * Makeconfig: Likewise.
1933 * locale/Makefile (localedef-aux): New variable. Only md5
1934 assigned to it. These files are not ddistributed in this directory.
1936 * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1937 * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
1938 * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1940 * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
1942 * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
1943 set h_errno to NO_RECOVERY [PR libc/4360].
1945 2002-08-26 Ulrich Drepper <drepper@redhat.com>
1947 * libio/Makefile (tests): Add bug-fopena+.
1948 * libio/bug-fopena+.c: New file.
1949 * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
1950 file for _IO_IS_APPENDING if file isn't opened for reading, too.
1952 * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
1954 * locale/xlocale.c: Fix the last change. The variable still has
1956 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1957 (__libc_tsd_set): Add _data prefix to variable name.
1959 2002-08-26 Roland McGrath <roland@redhat.com>
1961 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
1962 macro with inline function.
1963 (sigset_get_old_mask): Likewise.
1964 * sysdeps/posix/sigblock.c (__sigblock): Update callers.
1965 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1966 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1967 * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
1968 * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
1969 (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
1971 * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
1972 * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
1974 2002-07-06 Bruno Haible <bruno@clisp.org>
1976 * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
1977 sigset_get_old_mask): Make it work with larger sigset_t.
1978 * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
1979 * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
1980 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1982 2002-08-26 Roland McGrath <roland@redhat.com>
1984 * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
1985 * manual/filesys.texi (File Times): Document lutimes and futimes.
1986 * misc/Makefile (routines): Add them.
1987 * misc/Versions (libc: GLIBC_2.3): Likewise.
1988 * sysdeps/generic/lutimes.c: New file.
1989 * sysdeps/generic/futimes.c: New file.
1990 * sysdeps/mach/hurd/lutimes.c: New file.
1991 * sysdeps/mach/hurd/futimes.c: New file.
1993 * manual/filesys.texi (File Times): Add explicit note about null
1994 pointer argument to utimes.
1996 2002-08-26 Roland McGrath <roland@frob.com>
1998 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
1999 (__ifreq): Add a cast. Remove an unused variable.
2001 * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2002 _HURD_THREADVAR_LOCALE.
2004 2002-08-26 Jakub Jelinek <jakub@redhat.com>
2006 * posix/regexec.c (re_search_stub): Return correct match length
2008 * posix/bug-regex10.c: New test.
2009 * posix/Makefile (tests): Add bug-regex10.
2011 2002-08-26 Brian Youmans <3diff@gnu.org>
2013 * COPYING.LIB: Replaced with fresh copy from
2014 ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2015 suggested copying permission notice now says version 2.1 instead
2018 * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2020 * crypt/crypt_util.c: Likewise.
2021 * crypt/ufc.c: Likewise.
2022 * elf/dl-conflict.c: Likewise.
2023 * elf/dl-iteratephdr.c: Likewise.
2024 * iconv/iconvconfig.h: Likewise.
2025 * malloc/arena.c: Likewise.
2026 * malloc/hooks.c: Likewise.
2027 * malloc/malloc.c: Likewise.
2028 * posix/glob/Makefile.ami: Likewise.
2029 * posix/glob/Makefile.in: Likewise.
2030 * stdlib/gmp-impl.h: Likewise.
2031 * stdlib/gmp.h: Likewise.
2032 * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2033 * sysdeps/generic/strnlen.c: Likewise.
2034 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2035 * sysdeps/mach/hurd/recvmsg.c: Likewise.
2036 * sysdeps/mach/hurd/sendmsg.c: Likewise.
2037 * sysdeps/mach/hurd/spawni.c: Likewise.
2038 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2039 * sysdeps/mach/powerpc/sysdep.h: Likewise.
2040 * sysdeps/mach/powerpc/thread_state.h: Likewise.
2041 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2042 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2043 * sysdeps/x86_64/gmp-mparam.h: Likewise.
2045 * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2046 Lesser GPL copying permission notice from 2 to 2.1.
2047 * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2048 * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2049 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2050 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2051 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2052 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2053 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2054 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2055 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2056 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2057 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2058 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2059 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2060 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2061 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2062 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2063 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2064 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2065 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2066 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2067 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2068 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2069 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2070 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2071 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2072 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2073 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2074 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2075 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2076 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2077 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2078 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2079 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2080 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2081 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2082 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2083 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2084 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2085 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2086 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2087 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2088 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2089 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2090 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2091 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2092 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2093 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2094 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2095 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2096 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2097 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2098 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2099 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2100 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2101 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2103 * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2104 Moshier and Lesser GPL copying permission notice, per license from
2106 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2107 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2108 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2109 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2110 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2111 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2112 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2113 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2114 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2115 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2116 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2117 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2118 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2119 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2121 * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2122 notice, per license from copyright holder Stephen Moshier.
2123 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2124 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2125 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2126 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2127 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2128 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2129 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2130 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2131 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2133 2002-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2135 * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2136 (shared-only-routines): Likewise.
2138 2002-08-26 Roland McGrath <roland@redhat.com>
2140 * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2141 name of "", store a null pointer instead.
2143 * configure.in (elf): Set to yes for freebsd*, netbsd*.
2144 * configure: Regenerated.
2146 * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2147 Initialize this instead of __libc_tsd_LOCALE_data.
2149 * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2150 ptsname_r to EINVAL.
2152 * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2154 * rt/Makefile: Revert last change, it was inappropriate to presume aio
2155 implementations depend on pthreads.
2156 * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2157 * rt/tst-aio64.c (do_test): Likewise.
2158 * rt/tst-aio2.c (do_test): Likewise.
2159 * rt/tst-aio3.c (do_test): Likewise.
2160 * rt/tst-aio4.c (do_test): Likewise.
2161 * rt/tst-aio5.c (do_test): Likewise.
2162 * rt/tst-aio6.c (do_test): Likewise.
2163 * rt/tst-aio7.c (do_test): Likewise.
2165 * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2166 void so as to avoid compiler warnings.
2168 * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2169 _IO_wide_data_FD, which is never used here.
2172 [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2173 * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2174 * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2176 * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2177 * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2179 * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2180 (closelog): Likewise.
2182 2002-07-06 Bruno Haible <bruno@clisp.org>
2184 * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2186 * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2187 * sysdeps/unix/alpha/pipe.S: ... here.
2188 * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2190 * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2192 * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2193 * sysdeps/unix/i386/fork.S: Likewise.
2194 * sysdeps/unix/i386/pipe.S: Likewise.
2195 * sysdeps/unix/i386/wait.S: Likewise.
2197 * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2198 * sysdeps/unix/arm/fork.S: Likewise.
2200 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2202 (DO_CALL): Swap argument order.
2203 * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2205 (DO_CALL): Swap argument order.
2206 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2208 (DO_CALL): Swap argument order.
2209 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2211 (DO_CALL): Swap argument order.
2212 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2214 (DO_CALL): Swap argument order.
2215 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2217 (DO_CALL): Swap argument order.
2218 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2220 (DO_CALL): Swap argument order.
2222 * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2223 (L): Define right for ELF.
2224 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2225 Now defined in sysdeps/i386/sysdep.h.
2227 * sysdeps/posix/readv.c: Ansify function definition.
2228 * sysdeps/posix/writev.c: Likewise.
2230 * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2231 have the same size. Avoid direct cast from size_t to off_t.
2233 * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2234 nul byte in entry[n].ut_user.
2235 (simulate_logout): Likewise.
2237 * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2238 _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2239 existence of corresponding members of 'struct utmp'.
2240 * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2243 * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2244 allocate a buffer of at least BUFSIZ bytes, not just of
2245 sizeof (struct dirent).
2247 * sysdeps/generic/glob.c: Include <limits.h>.
2248 (NAME_MAX): Define a fallback.
2249 (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2251 * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2252 (main): Allocate enough room for a 'struct dirent64' on the stack.
2253 * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2256 * sysdeps/unix/sysv/linux/init-first.c: Don't include
2259 * inet/htontest.c: Include <sys/types.h>.
2261 * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2263 * include/sys/sysctl.h: Comment fix.
2265 * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2267 * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2269 * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2271 * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2272 (__getpeername): New alias.
2273 (__getsockname): New alias.
2274 (__socket): New alias.
2276 * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2278 * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2279 (__fcntl_internal): New alias.
2280 (__profil): New alias.
2282 2002-08-26 Ulrich Drepper <drepper@redhat.com>
2284 * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2285 entry was for getaddr* lookup or not. Add only matching cache
2286 entry. Change all callers [PR libc/4317].
2288 * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2289 finding the read position [PR libc/4265].
2290 * libio/Makefile (tests): Add bug-rewind2.
2291 * libio/bug-rewind2.c: New file.
2293 * libio/bug-rewind.c: Fix creation of temp file.
2295 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2297 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2298 neither SUCCESS nor TRYAGAIN [PR libc/4259].
2299 * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2300 to ENOENT if no entry is found.
2301 * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2303 * nis/nss_compat/compat-initgroups.c: Likewise.
2304 * nis/nss_compat/compat-pwd.c: Likewise.
2305 * nis/nss_compat/compat-spwd.c: Likewise.
2306 * nis/nss_nis/nis-alias.c: Likewise.
2307 * nis/nss_nis/nis-ethers.c: Likewise.
2308 * nis/nss_nis/nis-grp.c: Likewise.
2309 * nis/nss_nis/nis-hosts.c: Likewise.
2310 * nis/nss_nis/nis-initgroups.c: Likewise.
2311 * nis/nss_nis/nis-netgrp.c: Likewise.
2312 * nis/nss_nis/nis-network.c: Likewise.
2313 * nis/nss_nis/nis-proto.c: Likewise.
2314 * nis/nss_nis/nis-publickey.c: Likewise.
2315 * nis/nss_nis/nis-pwd.c: Likewise.
2316 * nis/nss_nis/nis-rpc.c: Likewise.
2317 * nis/nss_nis/nis-service.c: Likewise.
2318 * nis/nss_nis/nis-spwd.c: Likewise.
2319 * resolv/nss_dns/dns-host.c: Likewise.
2320 * resolv/nss_dns/dns-network.c: Likewise.
2321 * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2322 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2323 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2324 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2325 * nis/nss_nisplus/nisplus-network.c: Likewise.
2326 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2327 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2328 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2329 * nis/nss_nisplus/nisplus-service.c: Likewise.
2330 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2331 * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2332 * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2333 * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2334 * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2336 * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2337 declaring __restore and __restore_rt as hidden (if possible).
2339 2002-08-25 Roland McGrath <roland@redhat.com>
2341 * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2343 * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2344 (getutent_r_file, internal_getut_r): Updated all callers.
2345 (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2347 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2349 * locale/programs/locale.c: Don't print aliases for non-existing
2350 locales for 'locale -a'.
2351 Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2353 2002-07-19 H.J. Lu <hjl@gnu.org>
2355 * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2357 2002-07-16 H.J. Lu <hjl@gnu.org>
2359 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2361 * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2363 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2365 * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2366 not moved ahead of the fputs call.
2367 * elf/tst-tlsmod2.c (in_dso): Likewise.
2368 * elf/tst-tlsmod3.c (in_dso2): Likewise.
2369 * elf/tst-tlsmod4.c (in_dso): Likewise.
2371 2002-08-25 Andreas Schwab <schwab@suse.de>
2373 * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2375 2002-08-25 Roland McGrath <roland@redhat.com>
2377 * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2378 resetting handler, to avoid the possibility of a spurious SIGALRM
2379 delivered to the user's handler.
2380 Reported by Amit D. Chaudhary <amitc@brocade.com>,
2382 * misc/Makefile (CFLAGS-init-misc.c): Variable removed. It served to
2383 set -fkeep-inline-functions, which is not needed for the current file.
2385 * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2386 (_dl_setup_hash): Add attribute_hidden.
2387 (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2388 (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2389 (_dl_new_object, _dl_map_object_deps): Likewise.
2390 (_dl_map_object_deps_internal): Remove decl.
2391 * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2393 * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2394 && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2395 && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2396 (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2397 instead relying on the compiler to produce only GOTOFF variable refs.
2399 2002-08-25 Ulrich Drepper <drepper@redhat.com>
2401 * elf/dl-load.c: Fix typo in comment. Add a few more __builtin_expect.
2403 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2404 inline to avoid defining it in every file which includes this header.
2406 * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2407 defining DONT_USE_BOOTSTRAP_MAP.
2409 * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2410 * libio/tst-mmap-setvbuf.c (main): Likewise.
2411 * libio/tst-widetext.c (main): Likewise.
2413 * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2415 * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2416 * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2418 * sysdeps/i386/elf/configure.in: Unconditionally define
2419 PI_STATIC_AND_HIDDEN.
2420 * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2421 PI_STATIC_AND_HIDDEN is defined as well.
2422 * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2424 2002-08-24 Ulrich Drepper <drepper@redhat.com>
2426 * sysdeps/ia64/bzero.S: Define __bzero as well.
2428 * locale/programs/charmap.c (charmap_new_char): Don't use
2429 ULONG_MAX as maximum UCS4 value.
2431 * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2433 * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2435 * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2436 * malloc/malloc.c (mALLINFo): Likewise.
2438 * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2440 * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2441 examining result of _IO_do_flush call.
2443 * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2444 Use prec not spec when sizing buffers.
2446 * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2447 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2448 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2449 * stdio-common/vfscanf.c (inchar): Likewise.
2450 * misc/efgcvt_r.c (fcvt_r): Likewise.
2451 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2452 * elf/readlib.c (process_file): Likewise.
2453 * elf/sprof.c (load_profdata): Likewise.
2454 * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2455 * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2456 * locale/programs/charmap.c (charmap_read): Likewise.
2457 * libio/fileops.c: Likewise.
2458 * libio/fmemopen.c: Likewise.
2459 * stdlib/strtod.c: Likewise.
2460 * elf/dl-load.c: Likewise.
2461 * iconv/iconvconfig.c: Likewise.
2462 * iconv/iconv_prog.c (process_block): Likewise.
2463 * elf/rtld.c (dl_main): Likewise.
2465 * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2466 macro to calm down the compiler.
2468 * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2470 * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2472 * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2473 placement of errno definition.
2474 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2475 * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2476 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2477 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2478 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2480 * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2481 from 1024 to 65536, to avoid buffer overrun.
2483 2002-08-16 Paul Eggert <eggert@twinsun.com>
2485 * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2486 from 1024 to 65536, to avoid buffer overrun.
2487 * resolv/res_query.c (MAXPACKET): Likewise.
2489 2002-08-24 Andreas Jaeger <aj@suse.de>
2491 * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2493 2002-08-23 Ulrich Drepper <drepper@redhat.com>
2495 * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2498 * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2499 Patch by Simon Gee <simong@agile.tv>.
2501 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2502 Prefer reading /proc/stat since it is more uniform across
2505 * manual/texinfo.tex: Update to latest official version.
2507 * sysvipc/sys/shm.h: Remove SHMLBA definition.
2508 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2509 * sysdeps/gnu/bits/shm.h: Likewise.
2510 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2511 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2512 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2513 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2514 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2515 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2516 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2517 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2518 since this is what the kernel says.
2520 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2521 since ssize_t is needed as well. Replace const with __const.
2523 2002-08-23 Roland McGrath <roland@redhat.com>
2525 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2526 __malloc_hook, __realloc_hook, __memalign_hook,
2527 __after_morecore_hook): Variable definitions moved to ...
2528 * malloc/malloc.c: ... here, so as to be before all references.
2530 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2531 global variable reference in an unused asm parameter, to ensure the
2532 compiler has set up the GOT register before we use it.
2534 * malloc/hooks.c: Move variable definitions ahead of uses.
2535 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2536 initializers that make reference to variables they define.
2538 2002-08-23 Andreas Jaeger <aj@suse.de>
2540 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2541 alloca, free, qsort.
2543 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2545 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2546 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2548 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2550 * sysdeps/generic/fgetxattr.c: New file.
2551 * sysdeps/generic/flistxattr.c: New file.
2552 * sysdeps/generic/fremovexattr.c: New file.
2553 * sysdeps/generic/fsetxattr.c: New file.
2554 * sysdeps/generic/getxattr.c: New file.
2555 * sysdeps/generic/listxattr.c: New file.
2556 * sysdeps/generic/lgetxattr.c: New file.
2557 * sysdeps/generic/llistxattr.c: New file.
2558 * sysdeps/generic/lremovexattr.c: New file.
2559 * sysdeps/generic/lsetxattr.c: New file.
2560 * sysdeps/generic/removexattr.c: New file.
2561 * sysdeps/generic/setxattr.c: New file.
2562 * misc/Makefile (headers): Add sys/xattr.h.
2563 (routines): Add *xattr calls.
2564 * misc/Versions: Add *xattr calls with version 2.3.
2565 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2566 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2567 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2568 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2569 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2570 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2571 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2572 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2574 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
2576 * sysdeps/powerpc/elf/libc-start.c
2577 (__cache_line_size): Declare.
2578 (__aux_init_cache): New function.
2579 (__libc_start_main): Change type of `auxvec' parameter to
2580 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
2582 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2583 (__cache_line_size): Declare.
2584 (__aux_init_cache): New function.
2585 (DL_PLATFORM_INIT): Define.
2586 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2587 value to select the correct stride for dcbz.
2589 2002-08-22 Andreas Jaeger <aj@suse.de>
2591 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2594 2002-08-22 Roland McGrath <roland@redhat.com>
2596 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2597 position indicated by locrectab against file bounds before rounding to
2598 page size. In mapping loop, always set TO before breaking out of
2599 contiguous range coalescing loop.
2601 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2602 (or MAP_COPY if available) instead of MAP_SHARED.
2604 * scripts/firstversions.awk: When encountering a version newer than
2605 the specified earliest version, be sure to emit the specified earliest
2606 version first if any renaming of an older version to that has been.
2608 2002-08-21 Roland McGrath <roland@redhat.com>
2610 * configure.in: Make GCC version check require 3.[2-9]* and no others.
2611 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2612 (Configuring and compiling): Don't mention older GCC versions any more.
2613 * INSTALL: Regenerated.
2615 * manual/install.texi (Configuring and compiling, Installation,
2616 Running make install, Linux): Linux -> GNU/Linux where appropriate.
2618 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2619 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2620 and with noinline otherwise. Remove hack alloca use to prevent
2621 inlining, we can ask for it explicitly nowadays.
2623 * dlfcn/bug-dlsym1.c: New file.
2624 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2625 * dlfcn/Makefile (distribute): Add them.
2626 (tests): Add bug-dlsym1 here.
2627 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2628 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2629 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2631 2002-08-21 Ulrich Drepper <drepper@redhat.com>
2633 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
2634 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2636 (_dl_start): Don't use local bootstrap_map variable if
2637 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
2638 pass bootstrap_map to _dl_start_final in this case either. Don't
2639 pass start_time to _dl_start_final ever.
2640 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2642 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2643 This cripples the scope lists necessary to search for symbols in
2644 dependencies which are not in the global scope.
2646 * include/setjmp.h (__libc_longjmp): Add declaration.
2648 2002-08-21 Andreas Jaeger <aj@suse.de>
2650 * sysdeps/x86_64/_mcount.S: Fix assembler.
2652 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2653 with biarch support.
2655 2002-08-21 Andreas Jaeger <aj@suse.de>
2657 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2659 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2661 * sysdeps/x86_64/machine-gmon.h: New file.
2662 * sysdeps/x86_64/_mcount.S: New file.
2664 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2666 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
2667 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2668 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2669 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2670 to TL_INIT_TP. Otherwise pass 1.
2671 * include/link.h (struct link_map): Add l_tls_tp_initialized.
2672 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2674 2002-08-15 Jakub Jelinek <jakub@redhat.com>
2676 * locale/programs/localedef.c (add_to_readlist): Error about
2677 circular dependencies only if the locale in question hasn't
2679 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2680 CTYPE_LOCALE to load_locale.
2681 * locale/programs/locfile.c (locfile_read): Don't include
2682 unneeded but available locales in locale_mask.
2684 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2685 print any messages about enlarging archive.
2687 2002-08-20 Brian Youmans <3diff@gnu.org>
2689 * manual/contrib.texi: Removed licenses, added acknowledgements
2690 for contributions by Intel, IBM, Craig Metz.
2691 * LICENSES: New file, contains the text of all non-FSF licenses in the
2692 distribution that require putting the notice in the accompanying
2694 * README.template, README: Mention LICENSES.
2696 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2697 new one modelled on the modern BSD license, per recent letter
2698 of permission from CMU.
2699 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2701 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2702 from IBM to FSF, per the recent Software Letter. Changed the
2703 distribution terms from GPL to LGPL.
2705 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2706 copying permission notice (Lesser GPL), per recent IBM Software Letter.
2707 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2708 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2709 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2710 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2711 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2712 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2713 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2714 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2716 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
2717 from IBM to FSF, per the recent Software Letter. Corrected the
2718 text of the copying permission notice to say Lesser GPL instead
2719 of GPL in warranty disclaimer paragraph.
2720 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2721 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2722 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2723 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2724 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2725 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2726 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2727 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2728 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2729 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2730 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2731 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2732 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2733 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2734 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2735 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2736 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2737 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2738 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2739 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2740 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2742 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
2743 permission notice to say Lesser GPL instead of GPL in warranty
2744 disclaimer paragraph.
2745 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2746 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2747 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2748 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2749 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2750 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2751 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2752 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2753 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2754 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2755 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2756 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2757 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2758 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2759 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2760 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2761 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2762 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2763 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2764 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2765 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2766 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2767 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2769 2002-08-20 Roland McGrath <roland@redhat.com>
2771 Fix ABI compatibility with libc compiled with old tools on powerpc.
2772 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2773 and Jack Howarth <howarth@bromo.med.uc.edu>.
2774 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
2775 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
2776 pass -DHAVE_DOT_HIDDEN for these files.
2777 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
2779 * sysdeps/powerpc/divdi3.c: New file.
2780 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
2781 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
2783 2002-08-20 Jakub Jelinek <jakub@redhat.com>
2785 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
2786 partially overlapping mappings. Remove unneeded (char *) casts.
2787 Never allow duplication of ranges in mapped areas.
2789 2002-08-20 Roland McGrath <roland@redhat.com>
2791 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
2792 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
2794 2002-08-20 Ulrich Drepper <drepper@redhat.com>
2796 * include/unistd.h: Don't hide _exit.
2798 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
2799 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
2800 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
2801 argument 1 to TLS_INIT_TP.
2802 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
2804 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
2806 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
2807 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
2808 memory allocation to...
2809 (allocate_dtv): ...here. New function.
2810 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
2811 call allocate_dtv instead of _dl_allocate_tls_storage.
2812 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
2813 (_dl_get_tls_static_info): New function.
2814 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
2815 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
2817 2002-08-19 Ulrich Drepper <drepper@redhat.com>
2819 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
2820 immediately if result == NULL.
2822 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2824 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2826 2002-08-18 Roland McGrath <roland@frob.com>
2828 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
2829 instead of __file_name_split.
2830 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
2832 * sysdeps/mach/hurd/dl-sysdep.c
2833 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
2834 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
2836 2002-08-16 Jakub Jelinek <jakub@redhat.com>
2838 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
2839 in change before last: MAX -> MIN.
2841 2002-08-15 Roland McGrath <roland@redhat.com>
2843 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
2844 if seek would go past it.
2845 (mmap_remap_check): If file position is at or past EOF after check,
2846 leave read pointers at EOF and don't seek.
2848 * libio/tst-mmap-offend.c: New file.
2849 * libio/Makefile (tests): Add it.
2851 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
2852 the name as passed, rather than the name in the archive dictionary.
2854 2002-08-15 Ulrich Drepper <drepper@redhat.com>
2856 * csu/Makefile: Define elide-routines.os not static-only-routines.
2858 * include/sched.h (__clone): Add varargs at the end.
2860 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
2862 (TLS_INIT_HELPER): If defined, use it.
2863 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
2865 2002-08-15 Roland McGrath <roland@redhat.com>
2867 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
2868 on L->l_prev; it can happen under rtld --verify too.
2870 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
2871 header separately, just map an initial window of 2MB from the file
2872 and remap if that is not large enough to cover the whole header.
2874 2002-08-15 Andreas Jaeger <aj@suse.de>
2876 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
2878 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2879 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2880 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2881 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2882 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2883 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2884 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2885 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2886 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2887 Patch by Andreas Gruenbacher <agruen@suse.de>.
2889 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
2891 2002-08-14 Roland McGrath <roland@redhat.com>
2893 * locale/locarchive.h (struct locale_category_data): Give this name to
2894 the type of locale_data_t's elements.
2895 * locale/programs/locarchive.c (cmpcategorysize): New static function.
2896 (add_locale): Use that to sort the categories by size and put all
2897 those that fit into two pages into the LC_ALL block, instead of
2898 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
2899 (show_archive_content): Detect categories inside LC_ALL block
2900 directly, instead of hard-coding.
2901 (oldlocrecentcmp): Compare just on file locations used.
2903 2002-08-14 Jakub Jelinek <jakub@redhat.com>
2905 * locale/programs/locarchive.c (struct oldlocrecent): New type.
2906 (oldlocrecentcmp): New function.
2907 (enlarge_archive): Re-add locales in the order they were added
2909 (add_locale): Put all the small locale files together, if the small
2910 locale file block would occupy less pages if page size aligned, align
2912 (show_archive_content): Adjust for locale archives optimized for speed.
2914 2002-08-14 Roland McGrath <roland@frob.com>
2916 * configure.in: Use "MISSING" as not-found value for MIG.
2917 * sysdeps/mach/configure.in: Fatal if mig not found.
2918 * configure, sysdeps/mach/configure: Regenerated.
2920 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2922 * locale/loadarchive.c (archfname): Add missing slash.
2924 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
2925 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
2927 2002-08-12 Roland McGrath <roland@redhat.com>
2929 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
2930 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
2931 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
2932 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
2933 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
2934 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
2935 * sysdeps/generic/waitpid.c: Likewise.
2937 * include/net/if.h: New file. Use libc_hidden_proto
2938 for if_nametoindex and if_indextoname.
2939 * sysdeps/generic/if_index.c: Add libc_hidden_def.
2940 * sysdeps/mach/hurd/if_index.c: Likewise.
2941 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2943 * include/grp.h (setgroups): Add libc_hidden_proto.
2944 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
2945 * sysdeps/mach/hurd/setgroups.c: Likewise.
2946 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
2947 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2949 2002-08-13 Jakub Jelinek <jakub@redhat.com>
2951 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
2952 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
2953 * sysdeps/generic/setegid.c (setegid): Likewise.
2954 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
2955 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
2956 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
2957 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
2958 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
2959 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
2960 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
2961 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
2962 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
2963 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
2964 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
2965 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
2966 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
2968 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
2969 __lxstat_internal, __lxstat64_internal): Remove.
2970 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
2972 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
2973 Remove INTDEF where present, remove #undef at the beginning.
2974 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
2975 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
2976 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
2977 * sysdeps/generic/xstat.c (__xstat): Likewise.
2978 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
2979 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
2980 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2981 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2982 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2983 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2984 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
2985 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
2986 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
2987 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
2988 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
2989 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
2990 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
2991 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
2992 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
2993 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
2994 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
2995 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
2996 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
2997 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
2998 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
2999 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3000 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3001 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3002 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3003 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3004 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3005 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3006 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3007 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3008 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3009 * sysdeps/unix/xstat.c (__xstat): Likewise.
3011 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3012 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3013 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3014 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3015 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3016 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3017 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3019 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3020 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3021 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3022 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3023 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3024 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3025 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3026 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3028 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3029 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3030 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3031 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3032 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3033 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3034 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3035 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3037 * include/string.h (strcoll): Add libc_hidden_proto.
3038 * string/strcoll.c (strcoll): Add libc_hidden_def.
3040 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3042 2002-08-11 Philip Blundell <philb@gnu.org>
3044 * sysdeps/arm/Makefile: New file.
3046 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3048 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3049 by another '|', end of regex or enclosing ')', clear branch.
3050 * posix/bug-regex9.c: New test.
3051 * posix/Makefile (tests): Add bug-regex9.
3053 2002-08-12 Roland McGrath <roland@redhat.com>
3055 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3056 start count condition, use TOTAL instead of variable that was never
3057 set. Fix outer loop termination condition to TOTAL >= after update.
3059 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3060 dl_tls_static_align and dl_tls_static_nelem.
3062 2002-08-11 Roland McGrath <roland@redhat.com>
3064 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3065 of the TLS macros, otherwise the compiler might not have initialized
3066 the PIC register yet when we use the PLT via asm.
3067 * elf/tst-tlsmod3.c (in_dso2): Likewise.
3068 * elf/tst-tlsmod2.c (in_dso): Likewise.
3070 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3072 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3073 Evaluate argument exactly once. Remove __volatile__ from asm's.
3075 * include/unistd.h: Use libc_hidden_proto for getdomainname
3077 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3078 * sysdeps/mach/hurd/getdomain.c: Likewise.
3079 * sysdeps/unix/getlogin_r.c: Likewise.
3080 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3081 * sysdeps/generic/getlogin_r.c: Likewise.
3083 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3084 * sunrpc/rtime.c: Add libc_hidden_def.
3086 * include/string.h: Use libc_hidden_proto for basename.
3087 * string/basename.c [_LIBC]: Add libc_hidden_def.
3089 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3091 * locale/loadarchive.c: munmap -> __munmap throughout.
3093 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3094 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3095 * sysdeps/generic/gai_strerror.c: Likewise.
3097 * include/sys/errno.h: New file.
3099 * include/signal.h: No libc_hidden_proto for raise,
3100 __libc_current_sigrtmin, __libc_current_sigrtmax.
3101 These need to be overridden by linuxthreads.
3102 * sysdeps/posix/raise.c: Reverted.
3103 * sysdeps/generic/raise.c: Reverted.
3104 * signal/allocrtsig.c: Reverted.
3106 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
3108 2002-08-10 Roland McGrath <roland@redhat.com>
3110 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3111 * locale/localeinfo.h: Declare it.
3112 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3113 current locale if it's not in the file list.
3114 Call _nl_archive_subfreeres.
3116 2002-08-10 Andreas Jaeger <aj@suse.de>
3118 * sysdeps/i386/strchr.S: Add comment.
3120 2002-08-10 Roland McGrath <roland@redhat.com>
3122 * include/wchar.h (putwc): Use libc_hidden_proto.
3123 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3124 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3125 * stdio-common/dprintf.c: Add libc_hidden_def.
3126 * stdio-common/fprintf.c: Likewise.
3127 * stdio-common/sprintf.c: Likewise.
3128 * stdio-common/sscanf.c: Likewise.
3129 * libio/iofwrite.c: Likewise.
3130 * libio/memstream.c: Likewise.
3131 * libio/putwc.c: Likewise.
3132 * stdio-common/perror.c: Likewise.
3133 * sysdeps/posix/remove.c: Likewise.
3134 * sysdeps/generic/remove.c: Likewise.
3135 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
3136 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
3138 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3140 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3141 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
3142 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3143 towlower, towupper): Add libc_hidden_weak.
3145 * include/bits/dlfcn.h: New file.
3146 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3148 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3149 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3150 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3151 * include/pwd.h (_nss_files_parse_pwent): Likewise.
3152 * include/shadow.h (_nss_files_parse_spent): Likewise.
3153 * include/netdb.h (_nss_files_parse_protoent,
3154 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3155 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3156 (LINE_PARSER): Use it.
3157 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3158 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3160 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3163 * manual/debug.texi (%MENU%): Remove trailing dot.
3164 Reported by <hayastan132@hotmail.com>.
3166 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3169 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3172 2002-08-09 Roland McGrath <roland@redhat.com>
3174 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3175 name to find codeset name (if any) and normalize it. If the
3176 normalized name differs, look up only that in the archive.
3177 * locale/programs/locarchive.c (add_locale_to_archive): If the name
3178 contains a codeset, normalize the codeset store only the normalized
3179 name in the archive. If not, add an alias containing the locale's
3180 normalized codeset name. Apply codeset name normalization when
3181 matching entries in the alias file.
3183 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3184 decrement HEAD->namehash_used here.
3185 (add_locale): Only need to insert name string when name_offset != 0.
3187 * locale/programs/localedef.c (options): Add -A/--alias-file.
3188 (alias_file): New variable.
3189 (parse_opt): Grok -A, set that.
3190 * locale/programs/localedef.h: Declare it.
3192 * locale/locarchive.h (struct locrecent): Add `refs' member.
3193 * locale/programs/locarchive.c (insert_name): New function, broken out
3195 (add_locale_to_archive): ... here. Call that.
3196 (add_alias): New function.
3197 (add_locale): New static function, add_locale_to_archive renamed.
3198 (add_locale_to_archive): Call that and use add_alias to add an alias
3199 for the name with codeset if the given name lacks it.
3200 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3202 * locale/Makefile (routines): Add loadarchive.
3203 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3204 (_nl_load_locale_from_archive): New function.
3205 * locale/localeinfo.h: Declare it.
3206 * locale/findlocale.c (_nl_find_locale): If using default locale path,
3207 try _nl_load_locale_from_archive first.
3209 * locale/loadlocale.c (_nl_intern_locale_data): New function,
3210 broken out of _nl_load_locale.
3211 (_nl_load_locale): Call that.
3212 * locale/localeinfo.h: Declare it.
3213 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3214 (struct locale_data): Remove unused member `options'.
3215 * locale/findlocale.c (_nl_remove_locale): Update uses.
3216 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3217 * locale/C-collate.c: Update initializer.
3218 * locale/C-identification.c: Likewise.
3219 * locale/C-measurement.c: Likewise.
3220 * locale/C-telephone.c: Likewise.
3221 * locale/C-address.c: Likewise.
3222 * locale/C-name.c: Likewise.
3223 * locale/C-paper.c: Likewise.
3224 * locale/C-time.c: Likewise.
3225 * locale/C-numeric.c: Likewise.
3226 * locale/C-monetary.c: Likewise.
3227 * locale/C-messages.c : Likewise.
3228 * locale/C-ctype.c: Likewise.
3230 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3231 use CHAR_BIT instead of BITSPERBYTE.
3233 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3234 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3235 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3236 (_nl_remove_locale): Likewise.
3237 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3239 * locale/findlocale.c (_nl_default_locale_path): New variable.
3240 (_nl_find_locale): If LOCALE_PATH is null, default to that.
3241 * locale/localeinfo.h: Declare it.
3242 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3243 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
3244 * locale/newlocale.c (__newlocale): Likewise.
3246 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3247 * inet/rexec.c (rexec_af): Add libc_hidden_def.
3248 * sysdeps/generic/morecore.c: Likewise.
3249 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3250 (__libc_current_sigrtmax): Likewise.
3252 2002-08-08 Roland McGrath <roland@redhat.com>
3254 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3255 * catgets/open_catalog.c (__open_catalog): Likewise.
3257 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3258 from typo INITIAL_NUM_NANES.
3259 (create_archive): Update use.
3261 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3263 * sysdeps/unix/sysv/linux/sigwait.c: New file.
3265 2002-08-08 Roland McGrath <roland@frob.com>
3267 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3269 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3271 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3272 else and undefine after including wcstol_l.c.
3273 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3275 2002-08-08 Ulrich Drepper <drepper@redhat.com>
3277 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3279 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
3281 * configure.in: Make the test for broken_alias_attribute stricter.
3283 2002-05-24 Robert Love <rml@tech9.net>
3285 * posix/Makefile (routines): Add sched_getaffinity and
3287 * posix/sched.h: Add declarations for sched_getaffinity and
3289 * sysdeps/generic/sched_getaffinity.c: New file.
3290 * sysdeps/generic/sched_setaffinity.c: New file.
3291 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3294 2002-08-06 Andreas Schwab <schwab@suse.de>
3296 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3298 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3300 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3303 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3304 It is known to be defined.
3306 * include/string.h: Define index and rindex only if _ISOMAC is not
3309 * elf/rtld.c: Include <errno.h>.
3310 * sysdeps/generic/libc-tls.c: Likewise.
3312 2002-08-07 Roland McGrath <roland@redhat.com>
3314 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3316 (precsize_aton): Likewise.
3318 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3319 the static symbols added in the last change (doofus is me).
3321 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3322 loop to notice missing categories in a composite name.
3324 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3325 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3326 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3327 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3329 2002-08-07 Ulrich Drepper <drepper@redhat.com>
3331 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3333 2002-08-07 Roland McGrath <roland@redhat.com>
3335 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3336 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3337 Reported by Jakub Jelinek <jakub@redhat.com>.
3339 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3341 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3344 2002-08-06 Roland McGrath <roland@redhat.com>
3346 * include/getopt.h: Put private decls inside [_GETOPT_H].
3347 Use libc_hidden_proto for getopt_long, getopt_long_only.
3348 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3349 Add libc_hidden_def.
3351 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3352 Define as a macro for __dl_iterate_phdr.
3354 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3355 made static. Add __ name as a strong alias.
3356 (internal_endnetgrent): Likewise.
3357 (internal_getnetgrent_r): Likewise.
3359 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3361 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3362 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3363 all *_l functions with no __ prefix.
3364 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3365 * ctype/ctype_l.c: Likewise.
3366 * locale/nl_langinfo.c: Likewise.
3367 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3368 * stdlib/stdlib.h [__USE_GNU]: Likewise.
3369 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3370 * wctype/wctype.h [__USE_GNU]: Likewise.
3371 * string/strcoll_l.c (strcoll_l): Define as weak alias.
3372 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3373 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3374 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3375 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3376 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3377 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3378 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3379 (__wcscasecmp_l): Add libc_hidden_def.
3380 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3381 (__wcsncasecmp_l): Add libc_hidden_def.
3382 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3383 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3384 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3385 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3386 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3387 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3388 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3389 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3390 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3391 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3392 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3393 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3394 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3395 * wctype/wctype_l.c (wctype_l) Define as weak alias.
3397 2002-08-05 Roland McGrath <roland@redhat.com>
3399 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3400 netname2user, host2netname, user2netname, key_gendes.
3401 * sunrpc/netname.c: Add libc_hidden_def.
3402 * sunrpc/key_call.c: Likewise.
3404 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3406 * inet/getnameinfo.c: Add libc_hidden_def.
3407 * sysdeps/generic/getaddrinfo.c: Likewise.
3408 * sysdeps/posix/getaddrinfo.c: Likewise.
3410 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3411 * wcsmbs/wmemchr.c: Add libc_hidden_def.
3412 * wcsmbs/wmemset.c: Add libc_hidden_def.
3414 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3415 (index, rindex): Define as macros for strchr, strrchr.
3417 * string/envz.c (envz_strip): index -> strchr
3419 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3420 * sunrpc/rpc_prot.c: Add libc_hidden_def.
3422 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3423 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3425 * include/stdlib.h: Use libc_hidden_proto for wctomb.
3426 * stdlib/wctomb.c: Add libc_hidden_def.
3428 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3429 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3430 * resolv/herror.c: Likewise.
3431 * inet/rcmd.c: Add libc_hidden_def.
3432 * inet/ruserpass.c: Likewise.
3433 * inet/getnetgrent_r.c: Likewise.
3435 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3436 svc_unregister, remove *_internal decls. Use libc_hidden_proto
3437 for svcerr_auth, svcerr_noprog, svcerr_progvers.
3438 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3440 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3441 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3443 * sysdeps/posix/system.c (do_system): New function, guts broken out of
3445 (__libc_system): Call it, putting just the line == NULL test here.
3447 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3448 variables work right.
3450 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3451 * elf/dl-close.c (_dl_close): Likewise.
3453 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3454 in6addr_any, in6addr_loopback. Remove decls for
3455 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3456 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3457 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3458 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3459 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3460 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3461 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3463 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3465 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3467 * inet/ether_aton_r.c: Add libc_hidden_def.
3468 * inet/ether_ntoa_r.c: Likewise.
3470 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3472 * sunrpc/svc.c: Add libc_hidden_def.
3473 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3474 pmap_set, pmap_unset.
3475 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3476 * sunrpc/pm_getport.c: Likewise.
3477 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3478 * sunrpc/publickey.c: Add libc_hidden_def.
3480 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3482 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
3483 the other memset call in this function.
3485 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3486 at correct index. Clear BSS region now that memalign is used.
3488 2002-08-05 Roland McGrath <roland@redhat.com>
3490 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3491 * sysdeps/generic/uname.c: Add libc_hidden_def.
3492 * sysdeps/mach/hurd/uname.c: Likewise.
3494 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3496 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3497 wcspbrk): Add libc_hidden_proto.
3498 * time/strftime.c (my_strftime): Add libc_hidden_def.
3499 (strftime): Remove libc_hidden_def.
3500 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3501 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3502 * wcsmbs/wcsspn.c (wcsspn): Likewise.
3503 * wcsmbs/wcscmp.c (wcscmp): Likewise.
3504 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3505 * wcsmbs/wcscoll.c (wcscoll): Likewise.
3507 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3508 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3509 __rpc_thread_createerr): Add libc_hidden_proto.
3510 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3511 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3512 __rpc_thread_createerr): Add libc_hidden_def.
3514 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3515 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3516 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3517 clnt_perror, clnt_sperror): Add libc_hidden_def.
3518 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3520 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3522 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3523 * sunrpc/des_soft.c (des_setparity): Likewise.
3525 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3526 Add libc_hidden_proto.
3527 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3528 Add libc_hidden_def.
3530 2002-08-05 Roland McGrath <roland@redhat.com>
3532 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3533 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3534 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3535 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3536 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3537 old data, abandoning the original memory allocated by rtld at startup,
3538 instead of calling realloc normally.
3540 2002-08-05 Ulrich Drepper <drepper@redhat.com>
3542 * po/fr.po: Update from translation team.
3544 2002-08-04 Roland McGrath <roland@redhat.com>
3546 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3547 then generate a dummy module under the given name, obeying the
3548 normal rules for the "caller" field.
3550 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3551 actually iterate over the elements. Fix typo p_type -> p_vaddr.
3553 * include/pthread.h: Don't declare __pthread_initialize_minimal as
3554 weak here; we declare it weak or strong in the one place we use it.
3555 * sysdeps/generic/libc-start.c: ... which is here.
3556 Don't make the decl weak if [USE_TLS], since static programs need TLS
3557 setup even when single-threaded.
3559 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3561 * elf/Makefile (test-srcs): Add $(modules-names) to it.
3562 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3563 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3564 all these variables.
3566 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3568 * include/stdio.h: Don't define macro magic to redirect function
3569 calls if _ISOMAC is defined.
3571 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3574 2002-08-04 Roland McGrath <roland@redhat.com>
3576 * stdlib/lrand48_r.c: Add libc_hidden_def.
3578 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3579 TCB with __libc_memalign instead of mmap.
3580 (_dl_deallocate_tls): Free it with free instead of munmap.
3582 * Makerules (cpp-srcs-left): When setting this to run
3583 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3584 words. Combine the two loops into one on the concatenated list,
3585 including those as well as $(test-srcs).
3587 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3588 since we align here with optimally minimal waste anyway.
3589 (malloc): Just call that.
3591 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3594 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3595 to compute memory location for l_tls_initimage.
3596 * elf/rtld.c (_dl_start): Likewise.
3597 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3599 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3600 because the .d file is generated in the non-shared case and
3601 so fails to catch them otherwise.
3603 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3604 split out of _dl_allocate_tls.
3605 (_dl_allocate_tls_init): Likewise.
3606 (_dl_allocate_tls): Call those.
3607 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3608 * elf/rtld.c (dl_main): Call them separately instead of calling
3609 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
3610 is finished, so that the initializer data has been relocated before we
3611 copy it into the main thread's TLS block.
3613 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3614 loop conditions, prevented the last used module from being initialized.
3616 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3618 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3619 if glob resp. globfree are not macros.
3620 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3621 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3622 Add libc_hidden_ver.
3623 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3625 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3626 instead of libc_hidden_weak.
3627 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3628 libc_hidden_ver instead of libc_hidden_def.
3629 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3630 libc_hidden_ver instead of libc_hidden_def.
3631 (wcstoll, wcstoq): Remove libc_hidden_weak.
3632 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3634 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3636 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3638 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3641 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3643 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
3644 to access _sys_siglist.
3645 * string/strsignal.c: Likewise.
3646 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3647 * sysdeps/gnu/siglist.c: Likewise.
3648 * sysdeps/unix/siglist.c: Likewise.
3649 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3651 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3653 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3655 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3657 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3659 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3660 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3661 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3663 * include/time.h: Add libc_hidden_proto for __gmtime_r.
3664 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3666 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3667 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3668 and __gconv_get_cache respectively.
3669 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3670 defined static. Change all users.
3671 (__gconv_get_cache): New function.
3672 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3673 (__gconv_get_alias_db): New function.
3674 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3675 (__conv_modules_db): Likewise.
3676 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3677 and __gconv_get_alias_db.
3678 * iconv/iconv_prog.c: Use the new functions instead of accessing the
3681 * include/stdlib.h: Add prototype and libc_hidden_proto for
3683 * sysdeps/generic/morecore.c: Include <stdlib.h>.
3685 * malloc/obstack.c: Remove fputs macro.
3687 * malloc/mtrace.c: Remove fopen macro.
3689 2002-08-04 Jakub Jelinek <jakub@redhat.com>
3691 * manual/debug.texi: Fix spelling to programmatically.
3692 Reported by <hayastan132@hotmail.com>.
3694 2002-08-04 Ulrich Drepper <drepper@redhat.com>
3696 * include/libio.h: Add libc_hidden_proto for __uflow.
3697 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3698 fgetpos to _IO_* names.
3699 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3700 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3701 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3702 putwc_unlocked, vswscanf.
3703 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3704 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3705 * libio/fseek.c: Likewise.
3706 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
3708 * libio/genops.c (__uflow): Add libc_hidden_def.
3709 * libio/iofflush_u.c (fflush_unlocked): Likewise.
3710 * libio/iofgets_u.c (fgets_unlocked): Likewise.
3711 * libio/iofputs_u.c (fputs_unlocked): Likewise.
3712 * libio/iofputws_u.c (fputws_unlocked): Likewise.
3713 * libio/iofread_u.c (fread_unlocked): Likewise.
3714 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3715 * libio/iovswscanf.c (vswscanf): Likewise.
3716 * libio/putwc_u.c (putwc_unlocked): Likewise.
3717 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
3718 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
3719 * malloc/mtrace.c: Likewise.
3721 * sunrpc/clnt_perr.c: Remove fputs macro.
3722 * sunrpc/svc_simple.c: Likewise.
3723 * sunrpc/svc_tcp.c: Likewise.
3724 * sunrpc/svc_udp.c: Likewise.
3725 * sunrpc/xdr_rec.c: Likewise.
3726 * sunrpc/xdr_ref.c: Likewise.
3728 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
3729 iconv_prog, linereader, and charmap-dir.
3730 * locale/Makefile: Likewise for locale and charmap-dir.
3731 * malloc/Makefile: Likewise for memusagestat.
3732 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
3733 * sunrpc/Makefile: Likewise for rpc_main.
3734 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
3735 * timezone/Makefile: Likewise for zic.
3737 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
3739 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
3740 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
3741 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
3742 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
3745 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
3747 * libio/genops.c (__underflow): Add libc_hidden_def.
3748 * libio/wgenops.c (__wuflow): Likewise.
3749 (__wunderflow): Likewise.
3751 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
3752 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
3754 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
3755 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
3757 * include/string.h: Add libc_hidden_proto for __strverscmp.
3758 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
3760 * include/unistd.h: Add libc_hidden_proto for __sysconf.
3761 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
3762 * sysdeps/posix/sysconf.c: Likewise.
3763 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3764 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3766 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
3767 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3768 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3769 __iswxdigit_l, __towlower_l, __towupper_l.
3770 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
3771 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
3773 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
3774 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
3775 * sysdeps/mach/hurd/xmknod.c: Likewise.
3776 * sysdeps/unix/xmknod.c: Likewise.
3777 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3778 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
3779 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3781 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
3783 2002-08-03 Roland McGrath <roland@redhat.com>
3785 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
3787 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
3788 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3789 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3790 * sysdeps/mach/hurd/setpriority.c: Likewise.
3791 * sysdeps/mach/hurd/getpriority.c: Likewise.
3792 * sysdeps/generic/setpriority.c: Likewise.
3793 * sysdeps/generic/getpriority.c: Likewise.
3795 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
3796 * malloc/mcheck.c: Add libc_hidden_def.
3798 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
3799 * misc/hsearch_r.c: Add libc_hidden_def.
3801 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
3802 * posix/fnmatch.c: Add libc_hidden_weak.
3804 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
3805 execl, execle, execlp, execvp, getpid, getsid.
3806 * sysdeps/generic/alarm.c: Add libc_hidden_def.
3807 * sysdeps/unix/alarm.c: Likewise.
3808 * posix/confstr.c: Likewise.
3809 * posix/execvp.c: Likewise.
3810 * posix/execlp.c: Likewise.
3811 * posix/execle.c: Likewise.
3812 * posix/execl.c: Likewise.
3813 * sysdeps/generic/getsid.c: Likewise.
3814 * sysdeps/mach/hurd/getsid.c: Likewise.
3815 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
3816 * sysdeps/mach/hurd/getpid.c: Likewise.
3818 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
3819 qecvt_r, qfcvt_r, lrand48_r.
3820 * misc/efgcvt_r.c: Add libc_hidden_def.
3822 * include/wordexp.h: Use libc_hidden_proto for wordfree.
3823 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
3825 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
3826 * locale/nl_langinfo.c: Add libc_hidden_def.
3828 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
3829 * sysdeps/generic/glob.c: Add libc_hidden_def.
3830 * sysdeps/generic/glob64.c: Likewise.
3831 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
3833 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
3835 * elf/Makefile (CFLAGS-vismod2.c): New variable.
3837 * locale/setlocale.c (_nl_current_names): Variable moved ...
3838 * locale/localename.c (_nl_current_names): ... here, new file.
3839 Make it global, with attribute_hidden.
3840 * locale/localeinfo.h: Declare it.
3841 * locale/Makefile (aux): Add localename.
3842 * locale/localename.c (__current_locale_name): New function.
3843 * include/locale.h (__current_locale_name): Declare it.
3844 * intl/dcigettext.c (guess_category_value): Use that instead of
3847 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
3848 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
3849 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
3850 * locale/newlocale.c: Add alias to __ name.
3851 * locale/duplocale.c: Likewise.
3852 * locale/freelocale.c: Likewise.
3853 * locale/uselocale.c: New file.
3854 * locale/Makefile (routines): Add it.
3855 * locale/Versions (libc: GLIBC_2.3): New set.
3856 Add newlocale, duplocale, freelocale, uselocale.
3857 (libc: GLIBC_PRIVATE): Add __uselocale.
3859 * locale/localeinfo.h [SHARED]
3860 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
3861 (_NL_CURRENT_DATA): Define using that.
3862 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
3863 (_NL_CURRENT_DEFINE): Define to empty.
3864 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
3865 conditionalized on this.
3866 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
3867 taking initializer of _nl_C_locobj.
3868 [SHARED] (_nl_global_locale): New variable, using that initializer.
3869 (_nl_C_locobj): Use new macro for initialzier.
3870 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
3871 [! SHARED] (CATEGORY_USED): New macro.
3872 [SHARED] (CATEGORY_USED, _nl_C): New macros.
3873 (setdata, setlocale): Use that macro instead of examining _nl_current.
3874 (setdata): Set the slot in _nl_global_locale.
3875 Conditionalize setting of _nl_current on [! SHARED].
3876 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
3877 declaration as an extern.
3878 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
3880 * include/locale.h: Use libc_hidden_proto for setlocale.
3881 * locale/setlocale.c: Add libc_hidden_def.
3883 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
3885 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
3886 * misc/hsearch_r.c: Add libc_hidden_def.
3887 * misc/lsearch.c: Likewise.
3889 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
3891 * misc/getttyent.c: Add libc_hidden_def.
3893 * include/mcheck.h: Use libc_hidden_proto for mcheck.
3894 * malloc/mcheck.c: Add libc_hidden_def.
3896 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
3897 * include/argz.h: Use libc_hidden_proto for argz_delete.
3898 * string/argz-delete.c: Add libc_hidden_def.
3899 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
3901 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
3902 HIDDEN_JUMPTARGET for _exit.
3903 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
3904 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
3905 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3906 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
3908 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
3909 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
3910 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
3911 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
3913 * include/stdlib.h: Use libc_hidden_proto for abort,
3914 __strtof_internal, __strtod_internal, __strtold_internal,
3915 __strtol_internal, __strtoll_internal, __strtoul_internal,
3916 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
3917 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
3918 __strtoul_l_internal, __strtoull_l_internal.
3919 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
3920 __wcstod_internal, __wcstold_internal, __wcstol_internal,
3921 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
3922 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
3923 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
3925 * sysdeps/generic/abort.c: Add libc_hidden_def.
3926 * stdlib/strtod.c: Likewise.
3927 * sysdeps/generic/strtol.c: Likewise.
3928 * sysdeps/wordsize-64/strtol.c: Likewise.
3929 * sysdeps/wordsize-64/wcstol.c: Likewise.
3930 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
3932 * include/stdlib.h: Use libc_hidden_proto for qsort.
3933 * stdlib/msort.c: Add libc_hidden_def.
3935 * include/utime.h: Use libc_hidden_proto for utime.
3936 * sysdeps/generic/utime.c: Add libc_hidden_def.
3937 * sysdeps/unix/utime.c: Likewise.
3939 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
3940 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
3941 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3942 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
3943 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
3945 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
3946 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
3947 and __libc_current_sigrtmax.
3948 * signal/sigismem.c: Add libc_hidden_def.
3949 * signal/sigfillset.c: Likewise.
3950 * signal/sigempty.c: Likewise.
3951 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
3952 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
3953 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
3954 * sysdeps/posix/raise.c: Likewise.
3955 * sysdeps/generic/raise.c: Likewise.
3957 2002-08-03 Ulrich Drepper <drepper@redhat.com>
3959 * include/string.h: Use libc_hidden_proto for __stpcpy.
3960 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
3961 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
3962 * sysdeps/generic/stpcpy.c: Likewise.
3963 * sysdeps/i386/stpcpy.S: Likewise.
3964 * sysdeps/i386/i586/stpcpy.S: Likewise.
3965 * sysdeps/powerpc/stpcpy.S: Likewise.
3966 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
3967 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3969 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
3970 __strncasecmp_l, __strdup, __strndup, __strerror_r.
3971 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
3973 * string/strdup.c (__strdup): Likewise.
3974 * string/strndup.c (__strndup): Likewise.
3975 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
3976 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
3978 2002-08-03 Jakub Jelinek <jakub@redhat.com>
3980 * include/libio.h: New file.
3981 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
3982 * libio/iolibio.h: #include <libio.h>, not "libio.h".
3983 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
3984 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
3985 * sysdeps/unix/common/syscalls.list: Likewise.
3986 * sysdeps/unix/inet/syscalls.list: Likewise.
3987 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3988 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3989 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3990 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3991 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3992 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3993 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3994 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3995 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3996 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
3997 * sysdeps/unix/syscalls.list: Likewise.
3999 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4000 Ulrich Drepper <drepper@redhat.com>
4002 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4003 the arguments is big enough to cause an overflow.
4005 2002-08-03 Ulrich Drepper <drepper@redhat.com>
4007 * assert/assert.c: Use hidden_def not INTDEF.
4009 2002-08-03 Jakub Jelinek <jakub@redhat.com>
4011 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4014 2002-08-03 Roland McGrath <roland@redhat.com>
4016 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4017 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4019 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4020 * misc/syslog.c: Add libc_hidden_def.
4021 * misc/err.c: Likewise.
4022 * stdlib/exit.c: Likewise.
4023 * stdlib/bsearch.c: Likewise.
4024 * sysdeps/generic/getenv.c: Likewise.
4026 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4028 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4029 libc_hidden_weak for every system call symbol defined.
4031 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4032 timelocal, localtime, strftime.
4033 * time/asctime.c: Add libc_hidden_def.
4034 * time/mktime.c: Likewise.
4035 * time/localtime.c: Likewise.
4036 * time/strftime.c: Likewise.
4037 * time/strptime.c: Likewise.
4038 * sysdeps/generic/time.c: Likewise.
4039 * sysdeps/unix/time.c: Likewise.
4040 * sysdeps/unix/sysv/i386/time.S: Likewise.
4041 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4043 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4044 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4045 * resolv/inet_ntop.c: Likewise.
4046 * resolv/inet_pton.c: Likewise.
4047 * inet/inet_mkadr.c: Add libc_hidden_def.
4048 * inet/inet_netof.c: Likewise.
4049 * resolv/inet_addr.c: Likewise.
4051 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4052 clauses from conditionals for now. Will have to be fixed later
4053 for older compilers.
4055 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4057 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4059 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4060 broken alias attribute handling.
4061 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4063 2002-08-02 Roland McGrath <roland@frob.com>
4065 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4066 since it sets the variables we use in a -D switch.
4068 2002-08-02 Roland McGrath <roland@redhat.com>
4070 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4071 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4072 matches long int, not int.
4074 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4075 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4076 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4077 * wctype/wctrans.c (wctrans): Likewise.
4078 * wctype/wctype.c (__wctype): Likewise.
4079 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4081 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4083 * assert/assert.c (__assert_fail): Fix typo in comment.
4085 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4086 * sunrpc/rpc_thread.c: Define it without static.
4087 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4089 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4091 * assert/assert.c (__assert_fail): Remove undef.
4092 Replace INTDEF with libc_hidden_def.
4093 * assert/__assert.c (__assert): Remove INTUSE.
4094 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4096 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4097 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4098 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4099 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4100 libm_hiden_ver): Define.
4101 * include/assert.h (__assert_fail_internal): Remove.
4102 (__assert_fail): Add prototype. Add hidden_proto.
4103 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4105 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4106 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
4107 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4108 Add libc_hidden_proto.
4109 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4110 __fcntl): Add libc_hidden_proto. Remove macros.
4111 (__open_internal, __fcntl_internal): Remove.
4112 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4113 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4114 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4116 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4118 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4119 Add libc_hidden_def.
4120 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4121 * sysdeps/generic/open.c (__open): Remove undef.
4122 Add libc_hidden_def. Remove INTDEF.
4123 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4124 Add libc_hidden_def.
4125 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4126 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4127 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4128 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4129 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4130 (__libc_fcntl): Add libc_hidden_def.
4131 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4132 (__open): Remove INTDEF2. Add libc_hidden_weak.
4133 (__libc_open): Add libc_hidden_def.
4134 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4135 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4136 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4137 Add libc_hidden_def.
4138 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4139 Add libc_hidden_def.
4140 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4142 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
4143 (__libc_fcntl): Add libc_hidden_def.
4144 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4145 __getpgid_internal, __chown_internal): Remove.
4146 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4147 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4149 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4150 __getpid_internal, __open_internal, __write_internal): Remove.
4151 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4152 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4153 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4154 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4155 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4156 Replace INTDEF with libc_hidden_def.
4157 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4158 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4159 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4160 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4161 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4162 Add libc_hidden_proto.
4163 * include/sys/poll.h (__poll): Add libc_hidden_proto.
4164 * include/sys/select.h (__select): Likewise.
4165 * include/sys/socket.h (__send): Likewise.
4166 * include/sys/statfs.h (__statfs): Likewise.
4167 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4168 __getpid, __getpgid, __setpgid, __close, __read, __write,
4169 __getpagesize, __sbrk): Likewise.
4170 (__chown_internal, __dup2_internal, __getpid_internal,
4171 __getpgid_internal, __close_internal, __write_internal,
4172 __getpagesize_internal): Remove.
4173 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4175 * include/printf.h (__printf_fp): Add libc_hidden_proto.
4176 * include/sched.h (__sched_setscheduler): Likewise.
4177 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4178 * include/stdlib.h (__secure_getenv): Likewise.
4179 * include/signal.h (__sigaction, __sigsuspend): Likewise.
4180 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4181 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4182 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4183 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4184 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4185 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4186 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4187 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4188 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4189 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4190 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4191 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4192 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4193 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4194 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4195 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4196 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4197 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4198 * libio/genops.c (__overflow): Add libc_hidden_def.
4199 * libio/iovdprintf.c: Remove libio.h include.
4200 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4201 libc_hidden_weak): Define to nothing if not defined.
4202 (__overflow, __woverflow): Add libc_hidden_proto.
4203 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4204 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4205 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4206 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4207 (DB_LOOKUP_FCT): Add libc_hidden_proto.
4208 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4209 and libc_hidden_def.
4210 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4211 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4212 (__getpgid): Add libc_hidden_proto.
4213 (__bsd_getpgrp): Remove INTUSE.
4214 * resolv/res_init.c (__res_ninit, __res_randomid): Add
4216 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4217 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4218 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4219 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4220 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4221 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4222 __rpc_thread_createerr): Add libc_hidden_def.
4223 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4225 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4226 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4227 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4228 * sysdeps/generic/chown.c (__chown): Likewise.
4229 * sysdeps/generic/close.c (__close): Likewise.
4230 * sysdeps/generic/dup2.c (__dup2): Likewise.
4231 * sysdeps/generic/pipe.c (__pipe): Likewise.
4232 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4233 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4234 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4235 * sysdeps/generic/read.c (__libc_read): Likewise.
4236 (__read): Add libc_hidden_weak.
4237 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4238 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4239 * sysdeps/generic/select.c (__select): Likewise.
4240 * sysdeps/generic/send.c (__send): Likewise.
4241 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4242 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4243 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4244 * sysdeps/generic/statfs.c (__statfs): Likewise.
4245 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4246 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4247 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4248 Remove undef and INTDEF.
4249 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4250 * sysdeps/generic/getpid.c (__getpid): Likewise.
4251 * sysdeps/generic/write.c (__libc_write): Likewise.
4252 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4253 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4254 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4255 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4256 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
4257 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4258 Remove undef and INTDEF.
4259 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4260 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4261 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4262 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4263 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4264 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
4265 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4266 (__pipe): Add libc_hidden_def.
4267 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4269 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4270 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4271 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4272 (__read): Add libc_hidden_weak.
4273 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4274 (__libc_pwrite64): Add libc_hidden_def.
4275 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4276 * sysdeps/mach/hurd/select.c (__select): Likewise.
4277 * sysdeps/mach/hurd/send.c (__send): Likewise.
4278 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4279 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4280 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4281 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4282 * sysdeps/posix/dup2.c: Likewise.
4283 Remove undef and INTDEF.
4284 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4285 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4286 (__pwrite64): Add libc_hidden_weak.
4287 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4288 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4289 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4290 * sysdeps/standalone/close.c (__close): Likewise.
4291 * sysdeps/standalone/write.c (__libc_write): Likewise.
4292 (__write): Add libc_hidden_weak.
4293 * sysdeps/standalone/read.c (__read): Likewise.
4294 (__libc_read): Add libc_hidden_def.
4295 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4296 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4297 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4298 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4299 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4300 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4301 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4302 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4303 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4304 __GI___sigaction): Add.
4305 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4306 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4307 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4308 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4309 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4310 __GI___setpgid): Add.
4311 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4312 Remove undef and INTDEF.
4313 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4314 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4315 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4316 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4317 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4318 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4319 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4320 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4321 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4322 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4323 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4324 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4325 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4326 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4327 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4328 __GI___statfs, __GI___send): Add.
4329 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4330 libc_hidden_ver resp. libc_hidden_def.
4331 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4333 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4334 Likewise. Remove undef and INTDEF.
4335 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4336 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4337 __GI___statfs, __GI___send): Add.
4338 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4340 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4342 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4343 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4344 libc_hidden_ver resp. libc_hidden_def.
4345 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4347 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4348 Add libc_hidden_weak.
4349 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4350 Add libc_hidden_def.
4351 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4352 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4354 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4355 resp. libc_hidden_def.
4356 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4358 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
4360 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4361 Likewise. Remove undef.
4362 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4364 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4365 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4367 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4369 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4370 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4371 Likewise. Remove undef and INTDEF.
4372 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4374 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4376 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4378 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4379 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4380 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4382 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4383 Add libc_hidden_def.
4384 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4385 __GI___statfs): Add.
4386 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4388 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4389 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4390 Remove undef and INTDEF.
4391 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4392 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4394 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4395 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4397 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4399 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4400 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4401 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4403 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4404 libc_hidden_def. Remove undef and INTDEF.
4405 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4406 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4408 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4409 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4410 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4411 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4412 Remove undef and INTDEF.
4413 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4414 broken visibility attribute handling.
4415 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4417 2002-08-02 Ulrich Drepper <drepper@redhat.com>
4419 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4420 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4422 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4425 2002-06-29 Todd Fries <todd@openbsd.org>
4427 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4429 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4431 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4433 2002-07-30 Roland McGrath <roland@redhat.com>
4435 * resolv/resolv.h (_res): Define macro unconditionally.
4436 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4437 * include/resolv.h: ... here.
4438 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4439 as a __thread variable.
4440 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4441 a __thread variable instead of a global.
4442 * resolv/res_data.c [_LIBC]: Don't #undef _res.
4444 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4447 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4449 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4450 decls of memset and memcpy.
4452 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4453 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4455 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4457 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4458 (__libc_tsd_define): Define using __thread.
4460 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4461 (__rpc_thread_variables): Use __libc_tsd_get.
4462 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4463 __rpc_thread_variables, which might allocate what we're about to free.
4465 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4466 thread-local variable.
4467 * resolv/netdb.h (h_errno): Define macro unconditionally.
4468 [_LIBC] (__set_h_errno): Macro moved to ...
4469 * include/netdb.h: ... here.
4470 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4471 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4472 [! _LIBC_REENTRANT]: #undef h_errno here.
4474 * include/errno.h: Protect from multiple inclusion.
4476 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4477 before defining them, since Linux's <linux/posix_types.h> might have
4480 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4482 * malloc/malloc.c (public_cALLOc): Check for overflow on
4484 * sunrpc/xdr_array.c (xdr_array): Likewise.
4485 * sunrpc/rpc/types.h (mem_free): Add comment.
4486 Patch by Solar Designer <solar@openwall.com>.
4488 2002-08-02 Jakub Jelinek <jakub@redhat.com>
4490 * sysdeps/unix/sysv/linux/kernel-features.h
4491 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4493 2002-08-01 Roland McGrath <roland@redhat.com>
4495 * libio/fileops.c (_IO_file_sync_mmap): New function.
4496 (_IO_file_jumps_mmap): Use it.
4497 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
4498 repeat the stat check and resize the mapped buffer as necessary.
4500 2002-07-31 Roland McGrath <roland@redhat.com>
4502 * libio/fileops.c (decide_maybe_mmap): New static function.
4503 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4504 mmap the file contents. Then switch the jump tables to the mmap
4505 tables if it worked, or the vanilla file tables if not.
4506 (_IO_file_underflow_maybe_mmap): New function.
4507 (_IO_file_seekoff_maybe_mmap): New function.
4508 (_IO_file_xsgetn_maybe_mmap): New function.
4509 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4510 * libio/libioP.h: Declare those.
4511 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4512 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4513 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4514 If the stream is read-only, set its jump tables to those new ones.
4515 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4516 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4517 We need the tables set before _IO_file_attach.
4519 * libio/tst-mmap-eofsync.c: New file.
4520 * libio/tst-mmap-fflushsync.c: New file.
4521 * libio/bug-mmap-fflush.c: New file.
4522 * libio/tst-mmap2-eofsync.c: New file.
4523 * libio/Makefile (tests): Add them.
4525 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4526 _IO_file_underflow_mmap fails, it already set the appropriate bit.
4528 2002-07-31 Jeff Bailey <jbailey@gnu.org>
4530 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4531 Declarations moved to <bits/sys_errlist.h>. Include that file.
4532 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4533 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
4534 declare sys_errlist and sys_nerr.
4535 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
4536 provide declarations.
4538 2002-07-31 Roland McGrath <roland@redhat.com>
4540 * elf/rtld.c (dl_main): Fix typo in error message.
4542 2002-07-31 Roland McGrath <roland@frob.com>
4544 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4545 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
4546 sysdeps/mach/hurd/dl-sysdep.c change.
4548 2002-07-28 Ulrich Drepper <drepper@redhat.com>
4550 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4551 -r`/build/include for kernel headers.
4553 * po/fi.po: New file.
4555 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
4557 * configure.in (static_nss): Set to `yes' if --disable-shared.
4559 2002-07-23 Bruno Haible <bruno@clisp.org>
4561 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4564 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4566 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4567 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4570 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4572 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4575 2002-07-21 Bruno Haible <bruno@clisp.org>
4577 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4578 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4579 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4580 trans_sysdep_tab_offset.
4581 (struct sysdep_segment): New type.
4582 (struct sysdep_string): New type.
4583 (SEGMENTS_END): New macro.
4584 * intl/gettextP.h (struct sysdep_string_desc): New type.
4585 (struct loaded_domain): New fields malloced, n_sysdep_strings,
4586 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4587 orig_tab, trans_tab, hash_tab to const pointers because they point
4588 into read-only memory.
4589 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4590 (PRI*): Define fallback values.
4591 (get_sysdep_segment_value): New function.
4592 (_nl_load_domain): Distinguish major and minor revision parts. Add
4593 support for minor revision 1 with system dependent strings.
4594 (_nl_unload_domain): Also free the 'malloced' field.
4595 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4596 now done in loadmsgcat.c. Add support for system dependent strings.
4598 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4600 * posix/bug-regex7.c: New file.
4601 * posix/bug-regex8.c: New file.
4602 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4604 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
4606 * posix/bug-regex4.c (main): Fix typos.
4607 * posix/bug-regex6.c (main): Likewise.
4609 2002-07-27 Ulrich Drepper <drepper@redhat.com>
4611 * posix/bug-regex6.c (main): Fix warnings.
4613 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4615 * iconv/iconv_prog.c (main): Improve error message for the cases
4616 where -t and/or -f parameter are missing.
4618 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
4620 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4621 (re_search): Likewise.
4622 (re_match_2): Likewise.
4623 (re_search_2): Likewise.
4624 (re_search_stub): New function.
4625 (re_search_2_stub): New function.
4626 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4628 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
4630 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4631 (re_string_eoi): Use STOP instead of LEN.
4632 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4633 (re_string_construct): Likewise.
4634 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4635 * posix/regexec.c (re_search_internal): Add a new argument STOP
4636 so that it can handle the argument STOP of re_search_2 and re_match_2
4638 (regexec): Adapt to new I/F of re_search_internal.
4639 (re_search_stub): Likewise.
4641 2002-07-25 Ulrich Drepper <drepper@redhat.com>
4643 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4645 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4647 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4648 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4651 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4652 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4653 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4654 alias for adjtimex syscall.
4656 * elf/dl-minimal.c: Define __assert_fail_internal.
4657 * assert/assert.c: Likewise.
4658 * include/assert.h: Define __assert_file macro if !SHARED and not
4661 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4663 * locale/Makefile: Likewise.
4664 * nscd/Makefile: Likewise.
4665 * catgets/Makefile: Likewise.
4667 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4669 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4670 compute current position.
4672 * stdio-common/tst-fseek.c (main): Improve error messages.
4674 * libio/tst-freopen.c (main): Remove unused variable.
4676 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4677 succesful seek call. Simplify error checking.
4679 2002-07-25 Jakub Jelinek <jakub@redhat.com>
4681 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4682 * sysdeps/ia64/fpu/libm_support.h: Likewise.
4684 2002-07-19 Roland McGrath <roland@frob.com>
4686 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4687 __libc_enable_secure is set.
4689 2002-07-24 Roland McGrath <roland@frob.com>
4691 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4692 This implementation supports only IPv4.
4693 * inet/ifaddrs.h: New file.
4694 * sysdeps/generic/ifaddrs.c: New file.
4695 * sysdeps/gnu/ifaddrs.c: New file.
4696 * inet/test-ifaddrs.c: New file.
4697 * inet/Makefile (routines): Add ifaddrs.
4698 (headers): Add ifaddrs.h here.
4699 (tests): Add test-ifaddrs.
4700 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4702 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4703 socket call to get an AF_INET socket, instead of using __opensock.
4704 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4706 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4707 if not -1 use it instead of calling __opensock.
4708 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4709 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4710 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4712 * sysdeps/mach/hurd/ifreq.h: New file.
4713 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4714 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4715 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
4717 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
4718 which gets moved around. Calculate size of mmap'd buffer instead.
4720 2002-07-24 Philip Blundell <philb@gnu.org>
4722 * sysdeps/unix/arm/brk.S: Improve schedule.
4723 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
4724 efficient instruction.
4725 (__socket): Optimize return sequence.
4727 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4729 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
4730 sockets on old kernels.
4732 2002-07-22 Philip Blundell <philb@gnu.org>
4734 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
4735 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
4738 2002-07-24 Ulrich Drepper <drepper@redhat.com>
4740 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
4741 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
4743 * locale/programs/locarchive.c (add_locale_to_archive): Correct
4744 test to detect duplicate locales.
4746 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
4747 position would be before beginning of file.
4748 (_IO_file_seekoff_mmap): Likewise.
4749 * libio/Makefile (tests): Add bug-fseek.
4750 * libio/bug-fseek.c: New file.
4752 * intl/explodename.c: Remove support for CEN-style locale variables.
4753 It was never used and shouldn't be since it's not portable.
4754 * intl/finddomain.c: Likewise.
4755 * intl/l10nflist.c: Likewise.
4756 * intl/loadinfo.h: Likewise.
4757 * locale/findlocale.c: Likewise.
4759 2002-07-24 Roland McGrath <roland@frob.com>
4761 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
4762 position, calculate it to take into account an active pushback buffer.
4764 * libio/Makefile (tests): Add bug-ungetc.
4765 * libio/bug-ungetc.c: New file.
4767 2002-07-23 Ulrich Drepper <drepper@redhat.com>
4769 * sysdeps/generic/libc-tls.c: New file.
4770 * csu/Makefile (routines): Add libc-tls.
4771 (static-only-routines): Add libc-tls.
4772 * elf/dl-support.c (_dl_phdr): New variable.
4773 (_dl_phnum): New variable.
4774 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
4775 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
4776 for !SHARED. First look through auxiliary vector. If TLS always
4777 call __pthread_initialize_minimal.
4779 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
4780 in mmap call is never zero.
4782 2002-07-23 Andreas Jaeger <aj@suse.de>
4784 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4785 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4787 2002-07-22 Ulrich Drepper <drepper@redhat.com>
4789 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
4790 creation and removal of the temp file.
4792 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
4794 * test-skeleton.c (create_temp_file): New function.
4796 2002-07-22 Andreas Jaeger <aj@suse.de>
4798 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
4801 2002-07-21 Roland McGrath <roland@frob.com>
4803 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
4804 put -I../include before -I../stdlib so we get the right errno.h et al.
4805 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
4806 (CFLAGS-wcstof.c): Likewise.
4807 (CFLAGS-wcstold.c): Likewise.
4808 (CFLAGS-wcstod_l.c): Likewise.
4809 (CFLAGS-wcstof_l.c): Likewise.
4810 (CFLAGS-wcstold_l.c): Likewise.
4812 2002-07-19 Roland McGrath <roland@frob.com>
4814 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
4816 2002-07-20 Ulrich Drepper <drepper@redhat.com>
4818 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
4819 __ASSUME_AT_XID is defined.
4820 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
4822 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
4823 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
4825 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
4826 (CFLAGS-wcstof.c): Likewise.
4827 (CFLAGS-wcstold.c): Likewise.
4828 (CFLAGS-wcstod_l.c): Likewise.
4829 (CFLAGS-wcstof_l.c): Likewise.
4830 (CFLAGS-wcstold_l.c): Likewise.
4832 2002-07-18 Jakub Jelinek <jakub@redhat.com>
4834 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
4835 __priority_which_t): Always typedef to int for C++.
4837 2002-07-19 Ulrich Drepper <drepper@redhat.com>
4839 * configure.in: Add test for __thread support in compiler.
4840 * config.h.in: Add HAVE___THREAD.
4841 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
4842 * include/sys/errno.h: Moved to...
4843 * stdlib/sys/errno.h: ...here. New file.
4844 * stdlib/errno.h: New file. Moved from...
4845 * include/errno.h: ...here. Changed into an internal header defining
4846 libc-local things like __set_errno.
4847 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
4849 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
4850 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
4852 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
4854 (_dl_start_final): ...here. Add code to initialize tls elements from
4856 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
4857 if USE_TLS && HAVE___THREAD.
4858 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
4859 * sysdeps/mach/hurd/bits/errno.h: Likewise.
4860 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4861 * sysdeps/standalone/bits/errno.h: Likewise.
4862 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
4863 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
4864 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
4865 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
4866 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
4867 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
4868 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
4869 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
4870 use GL(dl_rtld_map), use map parameter.
4871 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4872 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
4873 USE_TLS && HAVE___THREAD.
4874 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
4875 definitions. If USE_TLS && HAVE___THREAD store errooor value using
4877 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
4879 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
4880 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
4881 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
4882 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4883 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4884 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4886 2002-07-17 Ulrich Drepper <drepper@redhat.com>
4888 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
4889 MS_INVALIDATE values.
4891 2002-07-17 Andreas Schwab <schwab@suse.de>
4892 Ulrich Drepper <drepper@redhat.com>
4894 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
4895 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4896 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4897 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4899 2002-07-01 H.J. Lu <hjl@gnu.org>
4901 * elf/circleload1.c (load_dso): Call "circlemod1" and check
4904 * elf/circlemod1.c (circlemod1): Return int.
4905 * elf/circlemod2.c (circlemod2): Likewise.
4906 * elf/circlemod2a.c (circlemod2): Likewise.
4907 * elf/circlemod3.c (circlemod3): Likewise.
4908 (circlemod3a): A new function.
4910 2002-07-16 Ulrich Drepper <drepper@redhat.com>
4912 * catgets/tst-catgets.c (main): Don't expect results for
4913 untranslated messages.
4915 * glibcbug.in: Fix little typo. Remove STDIO.
4917 * config.h.in: Fail if __FAST_MATH__ is defined.
4918 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
4919 (CPPFLAGS-test-idouble.c): Likewise.
4920 (CPPFLAGS-test-ildouble.c): Likewise.
4922 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4924 * intl/tst-gettext.sh: Pass -f option to msgfmt.
4925 * intl/tst-gettext.c: Correctly handle untranslated messages in
4928 * po/de.po: Update from translation team.
4930 2002-07-02 H.J. Lu <hjl@gnu.org>
4932 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
4934 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4936 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
4939 2002-07-15 Ulrich Drepper <drepper@redhat.com>
4941 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
4942 TLS fail if USE_TLS is not defined.
4944 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
4945 and adjust state for seek position. [PR libc/4070]
4946 * libio/Makefile (tests): Add bug-rewind.
4947 * libio/bug-rewind.c: New file.
4949 2002-07-12 Philip Blundell <philb@gnu.org>
4951 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
4952 (__backtrace): Use it.
4953 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
4955 2002-07-12 Philip Blundell <philb@gnu.org>
4957 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
4958 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
4959 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
4960 (elf_machine_rela): Remove unused variable.
4962 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
4963 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
4966 2002-07-12 Ulrich Drepper <drepper@redhat.com>
4968 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
4970 2002-07-14 Andreas Jaeger <aj@suse.de>
4972 * sysdeps/x86_64/bits/link.h: Add biarch support.
4974 2002-07-13 Andreas Jaeger <aj@suse.de>
4976 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
4977 Use correct indices.
4978 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
4980 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4982 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
4983 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
4984 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
4985 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
4986 * sysdeps/s390/s390-32/bits/link.h: Remove.
4987 * sysdeps/s390/s390-64/bits/link.h: Remove.
4988 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
4989 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
4990 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
4991 * sysdeps/s390/bits/wordsize.h: New file.
4992 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
4994 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
4995 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
4996 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
4997 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
4998 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
4999 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5000 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5001 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5002 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5003 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5004 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5005 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5007 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5008 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5009 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5010 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5011 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5012 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5013 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5015 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5016 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5018 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5019 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5020 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5022 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5023 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5024 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5025 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5026 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5027 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5028 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5029 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5031 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5032 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5033 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5035 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5036 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5038 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5040 * Versions.def (libc): Add GLIBC_2.3.
5041 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5042 * stdlib/canonicalize.c: Add compatibility version for realpath
5043 and make new code available in GLIBC_2.3.
5045 2002-07-06 Bruno Haible <bruno@clisp.org>
5047 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5049 2002-07-11 Ulrich Drepper <drepper@redhat.com>
5051 * resolv/res_hconf.c (_res_hconf_init): Move code into new
5052 function do_init. Use __libc_once.
5053 (do_init): New function.
5055 * iconvdata/iso8859-11.h: Removed.
5056 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5057 (distribute): Remove iso8859-11.h.
5058 * iconvdata/tst-tables.sh: Add ISO-8859-11.
5060 * stdio-common/vfscanf.c (inchar): Restore errno from previous
5061 underflow operation if c == (W)EOF.
5063 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5065 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5066 non-zero, adjust exponent.
5067 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5068 Remove NO_LONG_DOUBLE aliases.
5069 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5070 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5071 (__log1pl): Raise divide by zero and invalid exceptions when needed.
5072 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5074 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5075 Fix BITS_PER_MP_LIMB 32 extraction.
5076 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5077 exceptions for qNaNs.
5078 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5079 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5080 Raise exceptions when needed. Don't recurse unnecessarily.
5081 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5082 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5083 exceptions for qNaNs.
5084 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5085 to fix *quo return value sign.
5086 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5088 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5090 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5092 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5093 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5096 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5098 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5101 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5102 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
5104 * Versions.def (libthread_db): Add GLIBC_2.3.
5106 2002-07-09 Jakub Jelinek <jakub@redhat.com>
5108 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5109 new stream if possible.
5110 * libio/freopen64.c (freopen64): Likewise.
5111 * libio/Makefile (tests): Add tst-freopen.
5112 * libio/tst-freopen.c: New file.
5114 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5116 * libio/stdio.h (obstack_printf): Add format attribute.
5117 (obstack_vprintf): Likewise.
5119 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5121 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5122 resp. 16 bytes on 32-bit resp. 64-bit platforms.
5123 (re_charset_t, re_string_t): Reorder structure members for 64-bit
5126 2002-07-04 Jakub Jelinek <jakub@redhat.com>
5128 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5129 (init_dfa): ...here.
5131 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5133 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5134 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5135 nodes in parse trees.
5136 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5137 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5138 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5139 nodes which can epsilon transit.
5140 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5141 to IS_EPSILON_NODE macro.
5142 * posix/regexec.c (update_regs): New function to update registers
5143 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5144 (proceed_next_node): Use the entities of the nodes to determine
5145 whether the node can transit to.
5146 (set_regs): Use update_regs function to update registers.
5148 2002-07-03 Jakub Jelinek <jakub@redhat.com>
5150 * posix/bug-regex4.c (main): Remove duplicate setlocale.
5151 * posix/bug-regex6.c: New file.
5152 * posix/Makefile (tests): Add bug-regex6.
5153 (bug-regex6-ENV): Set LOCPATH.
5155 2002-07-10 Ulrich Drepper <drepper@redhat.com>
5157 * Versions.def [libpthread]: Add GLIBC_2.2.6.
5158 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5160 2002-07-06 Bruno Haible <bruno@clisp.org>
5162 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5164 2002-07-06 Bruno Haible <bruno@clisp.org>
5166 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5169 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5171 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5173 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5175 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5177 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5178 * sysdeps/generic/bits/ustat.h: Likewise.
5180 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5182 2002-07-08 Andreas Jaeger <aj@suse.de>
5184 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5186 2002-07-08 Andreas Jaeger <aj@suse.de>
5188 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5190 2002-07-06 Andreas Jaeger <aj@suse.de>
5192 * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5193 * sysdeps/x86_64/fpu/s_copysign.S: New file.
5194 * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5195 * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5196 * sysdeps/x86_64/fpu/s_finitel.S: New file.
5197 * sysdeps/x86_64/fpu/s_fmax.S: New file.
5198 * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5199 * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5200 * sysdeps/x86_64/fpu/s_fmin.S: New file.
5201 * sysdeps/x86_64/fpu/s_fminf.S: New file.
5202 * sysdeps/x86_64/fpu/s_fminl.S: New file.
5204 2002-06-05 Brian Youmans <3diff@gnu.org>
5206 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5207 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5208 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5209 * sysdeps/ia64/fpu/e_asin.S: Likewise.
5210 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5211 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5212 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5213 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5214 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5215 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5216 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5217 * sysdeps/ia64/fpu/e_exp.S: Likewise.
5218 * sysdeps/ia64/fpu/e_expf.S: Likewise.
5219 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5220 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5221 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5222 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5223 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5224 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5225 * sysdeps/ia64/fpu/e_log.S: Likewise.
5226 * sysdeps/ia64/fpu/e_logf.S: Likewise.
5227 * sysdeps/ia64/fpu/e_pow.S: Likewise.
5228 * sysdeps/ia64/fpu/e_powf.S: Likewise.
5229 * sysdeps/ia64/fpu/e_powl.S: Likewise.
5230 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5231 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5232 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5233 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5234 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5235 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5236 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5237 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5238 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5239 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5240 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5241 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5242 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5243 * sysdeps/ia64/fpu/libm_error.c: Likewise.
5244 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5245 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5246 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5247 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5248 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5249 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5250 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5251 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5252 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5253 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5254 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5255 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5256 * sysdeps/ia64/fpu/s_logb.S: Likewise.
5257 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5258 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5259 * sysdeps/ia64/fpu/s_modf.S: Likewise.
5260 * sysdeps/ia64/fpu/s_modff.S: Likewise.
5261 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5262 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5263 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5264 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5265 * sysdeps/ia64/fpu/s_rint.S: Likewise.
5266 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5267 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5268 * sysdeps/ia64/fpu/s_round.S: Likewise.
5269 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5270 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5271 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5272 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5273 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5274 * sysdeps/ia64/fpu/s_significand.S: Likewise.
5275 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5276 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5277 * sysdeps/ia64/fpu/s_tan.S: Likewise.
5278 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5279 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5280 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5281 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5282 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5283 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5284 reflect IBM donation of math library to FSF
5285 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5286 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5287 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5288 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5289 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5290 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5291 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5292 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5293 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5294 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5295 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5296 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5297 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5298 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5299 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5300 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5301 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5302 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5303 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5304 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5305 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5306 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5307 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5308 * sysdeps/vax/__longjmp.c: Likewise.
5309 * sysdeps/vax/setjmp.c: Likewise.
5310 * libio/filedoalloc.c: Fixed BSD copying permission notice to
5311 remove advertising clause
5312 * sysdeps/vax/htonl.s: Likewise.
5313 * sysdeps/vax/htons.s: Likewise.
5314 * libio/wfiledoalloc.c: Likewise.
5315 * stdlib/random.c: Likewise.
5316 * stdlib/random_r.c: Likewise.
5317 * sysdeps/mach/sys/reboot.h: Likewise.
5318 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5319 * sysdeps/posix/getaddrinfo.c: Likewise.
5320 * sunrpc/des_impl.c: Updated license permission notice to Lesser
5321 GPL and corrected pointer to point to the correct license.
5323 2002-07-04 Andreas Jaeger <aj@suse.de>
5325 * scripts/config.guess: New upstream version.
5326 * scripts/config.sub: Likewise.
5328 2002-07-02 Andreas Schwab <schwab@suse.de>
5330 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5331 in parallel to bumping up the buffer pointer.
5333 2002-07-01 Jakub Jelinek <jakub@redhat.com>
5335 * math/libm-test.inc (acos_test): Add missing L suffix for
5337 (cpow_test): Likewise.
5338 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5339 error for acos (0.0625).
5341 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5343 * locale/iso-639.def: Add entry for Ganda.
5344 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5346 (address_finish): Handle entries with two letter ISO 639 code.
5348 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5349 directory if it existed before.
5350 * iconv/iconvconfig.c: Implement --prefix option.
5352 * math/libm-test.inc (cexp_test): Add missing L suffix for
5353 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
5354 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5357 2002-05-29 H.J. Lu <hjl@gnu.org>
5359 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5362 2002-05-28 H.J. Lu <hjl@gnu.org>
5364 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5365 are not dlopened on the dependency list of a dlopened object.
5367 2002-06-30 Ulrich Drepper <drepper@redhat.com>
5369 * elf/dl-lookup.c (add_dependency): It is not necessary to add
5370 dependencies if they are created between objects which are created
5371 while processing RTLD_NOW for objects loaded as part of the same
5374 2002-06-14 H.J. Lu <hjl@gnu.org>
5376 * elf/Makefile (tests): Add circleload1.
5377 (modules-names): Add circlemod1, circlemod2, circlemod3,
5378 circlemod1a, circlemod2a and circlemod3a.
5379 ($(objpfx)circleload1): New target.
5380 ($(objpfx)circleload1.out): Likewise.
5381 ($(objpfx)circlemod1.so): Likewise.
5382 ($(objpfx)circlemod2.so): Likewise.
5383 ($(objpfx)circlemod1a.so): Likewise.
5384 ($(objpfx)circlemod2a.so): Likewise.
5385 * elf/circleload1.c: New file.
5386 * elf/circlemod1.c: New file.
5387 * elf/circlemod1a.c: New file.
5388 * elf/circlemod2.c: New file.
5389 * elf/circlemod2a.c: New file.
5390 * elf/circlemod3.c: New file.
5391 * elf/circlemod3a.c: New file.
5393 2002-06-18 Amos Waterland <apw@us.ibm.com>
5395 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5397 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5398 add check for fd not open for writing.
5400 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5401 completed element(s) and do not suspend thread if so. Patch
5402 heavily modified by drepper.
5404 * rt/tst-aio7.c: New file. Regression test for problems which the
5405 above three changes fix.
5406 * rt/Makefile (tests): Add tst-aio7.
5408 2002-06-29 Ulrich Drepper <drepper@redhat.com>
5410 * rt/tst-aio6.c: Fix comment.
5412 * catgets/gencat.c (read_input_file): Handle more than one slash
5413 at end of line correctly [PR libc/3926].
5414 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5416 * catgets/sample.SJIS: Add test case for above bug.
5417 * catgets/test-gencat.c: Adjust test code.
5418 * catgets/test-gencat.sh: Adjust expected results.
5420 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5421 to skip relative relocations.
5422 Patch by Geoff Keating <geoffk@redhat.com>.
5424 2002-05-26 Bruno Haible <bruno@clisp.org>
5426 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5427 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5428 All callers changed.
5429 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5430 STANDARD_FROM_LOOP_ERR_HANDLER.
5431 (utf8_internal_loop): Likewise.
5432 (ucs2_internal_loop): Likewise.
5433 (internal_ucs2_loop): Perform error handling like in
5434 STANDARD_FROM_LOOP_ERR_HANDLER.
5435 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5436 in STANDARD_FROM_LOOP_ERR_HANDLER.
5437 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5439 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5440 in STANDARD_FROM_LOOP_ERR_HANDLER.
5441 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5443 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5444 in STANDARD_FROM_LOOP_ERR_HANDLER.
5445 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5447 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5448 STANDARD_FROM_LOOP_ERR_HANDLER.
5449 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5450 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5451 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5452 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5453 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5454 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5455 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5456 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5457 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5458 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5459 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5460 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5461 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5462 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5463 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5464 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5465 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5466 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5467 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5468 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5469 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5470 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5471 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5472 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5473 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5474 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5475 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5476 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5477 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
5478 an error, still set result = __GCONV_ILLEGAL_INPUT.
5479 (BODY for TO_LOOP): Likewise.
5480 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5481 STANDARD_FROM_LOOP_ERR_HANDLER.
5482 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5483 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5484 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5486 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5487 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5488 STANDARD_FROM_LOOP_ERR_HANDLER.
5489 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5490 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5491 STANDARD_FROM_LOOP_ERR_HANDLER.
5492 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5493 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5494 STANDARD_FROM_LOOP_ERR_HANDLER.
5495 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5496 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5497 STANDARD_FROM_LOOP_ERR_HANDLER.
5498 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5499 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5500 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5502 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5503 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5504 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5505 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5507 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5509 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5510 labels in assembler instructions.
5512 2002-06-25 Ulrich Drepper <drepper@redhat.com>
5514 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5515 not enough content is available.
5516 * libio/tst-eof.c: New file.
5517 * libio/Makefile (tests): Add tst-eof.
5519 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5521 * libio/tst-atime.c: New file.
5522 * libio/Makefile (tests): Add tst-atime.
5524 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5525 handling of overly long words.
5527 2002-06-25 Andreas Jaeger <aj@suse.de>
5529 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5530 to not use 32-bit pc relative relocations.
5531 (elf_machine_dynamic): Likewise.
5533 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5535 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5536 (__GETDENTS): Check for failed getdents64 syscall.
5537 * dirent/Makefile (tests): Add bug-readdir1.
5538 * dirent/bug-readdir1.c: New file.
5540 2002-06-17 Jakub Jelinek <jakub@redhat.com>
5542 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5544 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5545 code. Print TLS modid and offset for modules containing PT_TLS
5548 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5550 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5551 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5552 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5553 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5555 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5557 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5558 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5559 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5560 * nss/getXXent_r.c (NEW, NEW1): Define.
5561 (NEW (REENTRANT_GETNAME)): Strong alias to
5562 INTERNAL (REENTRANT_GETNAME).
5563 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5565 2002-06-21 Ulrich Drepper <drepper@redhat.com>
5567 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5568 (_IO_file_jumps_mmap): Use it.
5569 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5570 * libio/libioP.h: Remove _IO_wdefault_setbuf and
5571 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
5573 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5574 (_IO_wfile_jumps_mmap): Don't use it anymore.
5575 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5576 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5577 _IO_wdefault_setbuf.
5578 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5579 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5580 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5582 2002-06-05 Jakub Jelinek <jakub@redhat.com>
5584 * libio/Makefile (tests): Add tst-mmap-setvbuf.
5585 * libio/tst-mmap-setvbuf.c: New test.
5587 2002-06-21 Andreas Jaeger <aj@suse.de>
5589 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5591 2002-06-18 Jakub Jelinek <jakub@redhat.com>
5593 * include/unistd.h (__fork_internal): Remove.
5594 (__fork): Don't define to __fork_internal.
5595 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5596 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5597 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5598 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5599 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5601 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5603 * po/hr.po: New file.
5605 2002-06-11 Wolfram Gloger <wg@malloc.de>
5607 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5608 Reported by Michael Meissner <meissner@redhat.com>.
5610 2002-06-20 Ulrich Drepper <drepper@redhat.com>
5612 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5613 Patch by Hans Boehm <hans_boehm@hp.com>.
5615 2002-06-20 Andreas Jaeger <aj@suse.de>
5617 * math/libm-test.inc: Use exact values as input parameters,
5618 compute output parameters with 36 digits for 128-bit long doubles.
5619 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5620 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5621 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5623 2002-06-13 Stephen L Moshier <steve@moshier.net>
5625 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5626 argument or result is subnormal.
5628 2002-06-19 Ulrich Drepper <drepper@redhat.com>
5630 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5632 * sysdeps/i386/fpu/s_remquof.S: Likewise.
5633 * sysdeps/i386/fpu/s_remquol.S: Likewise.
5635 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5637 2002-06-17 David Mosberger <davidm@hpl.hp.com>
5639 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5640 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5641 Reported by Peter A. Buhr.
5643 2002-06-15 Roland McGrath <roland@frob.com>
5645 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5648 * sysdeps/mach/hurd/getcwd.c
5649 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5651 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5652 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5654 * sysdeps/alpha/divrem.h: Use local label instead of global one for
5655 jump to local subroutine.
5657 2002-06-14 Roland McGrath <roland@frob.com>
5659 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5660 * sysdeps/mach/hurd/Makeconfig: ... here.
5662 2002-06-13 Andreas Schwab <schwab@suse.de>
5664 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5665 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5666 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5668 2002-06-13 Roland McGrath <roland@frob.com>
5670 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5671 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5672 Use intptr_t instead of int for argc in stack layout.
5673 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5674 (_dl_init_first): Likewise.
5675 (_hurd_stack_setup): Likewise.
5676 (init1): Add a cast.
5677 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5679 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5680 argument to pfinet_siocgifconf RPC.
5682 2002-06-13 Andreas Schwab <schwab@suse.de>
5684 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5687 2002-06-12 Roland McGrath <roland@frob.com>
5689 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5691 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5692 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5694 2002-06-11 Roland McGrath <roland@frob.com>
5696 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5697 file on [!RTLD_STAT64].
5698 * sysdeps/mach/hurd/fxstat64.c: Likewise.
5700 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5701 (__fdopen): Use INTUSE.
5702 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5704 * stdio-common/tmpfile64.c: File removed.
5705 * sysdeps/generic/tmpfile64.c: New file.
5706 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5707 if not already defined.
5708 (tmpfile): Use it in place of __GT_FILE.
5710 * include/unistd.h: Declare __chown_internal.
5712 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5713 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5715 2002-06-09 Roland McGrath <roland@frob.com>
5717 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
5718 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
5719 value of HURD_INTERFACE_VERSION >= 20020609.
5720 * sysdeps/mach/hurd/configure: Regenerated.
5721 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
5722 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
5723 convert a struct stat64 into a struct stat and return 0 or -1
5724 with errno set to EOVERFLOW.
5725 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
5726 for struct statfs64 to struct statfs.
5727 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
5728 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
5729 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
5730 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
5731 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
5732 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
5733 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
5734 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
5735 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
5736 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
5737 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
5738 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
5739 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
5740 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
5741 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
5742 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
5743 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
5744 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
5745 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
5746 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
5747 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
5748 Use struct stat64 for io_stat argument.
5749 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
5750 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
5752 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
5753 * hurd/fd-write.c (_hurd_fd_write): Likewise.
5754 * hurd/hurd/fd.h: Update decls.
5755 * sysdeps/mach/hurd/getcwd.c
5756 (_hurd_canonicalize_directory_name_internal): Use ino64_t
5757 and struct dirent64.
5758 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
5759 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
5760 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
5761 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
5763 2002-06-08 Roland McGrath <roland@frob.com>
5765 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
5766 instead of unsigned long int for __allocation and __size members.
5768 2002-06-09 Jakub Jelinek <jakub@redhat.com>
5770 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5771 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5772 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5773 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5775 2002-06-07 Roland McGrath <roland@frob.com>
5777 * sysdeps/mach/hurd/bits/environments.h: File removed.
5779 2002-06-07 Jakub Jelinek <jakub@redhat.com>
5781 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
5782 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
5783 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
5784 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
5785 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
5786 (sendfile64): Likewise.
5787 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
5788 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
5789 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
5791 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
5793 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
5796 2002-06-04 Bruno Haible <bruno@clisp.org>
5798 * sysdeps/cris/stackinfo.h: New file.
5800 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
5801 to an integer type before performing bit operations on it.
5803 2002-06-05 Roland McGrath <roland@frob.com>
5805 * sysdeps/generic/sendfile.c: Include <errno.h>.
5806 * sysdeps/generic/sendfile64.c: Likewise.
5808 * io/Makefile (routines): Add sendfile and sendfile64.
5809 (headers): Add sys/sendfile.h to the list.
5810 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
5811 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
5812 * io/sys/sendfile.h: ... here.
5813 * sysdeps/generic/sendfile.c: New file.
5814 * sysdeps/generic/sendfile64.c: New file.
5816 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
5817 Move sendfile, sendfile64 to ...
5818 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
5819 * sysdeps/mach/hurd/sendfile.c: New file.
5820 * sysdeps/mach/hurd/sendfile64.c: New file.
5822 * sysdeps/mach/nanosleep.c: New file.
5824 2002-06-04 Roland McGrath <roland@frob.com>
5826 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
5827 * sysdeps/alpha/elf/configure: New file (generated).
5829 2002-06-02 Roland McGrath <roland@frob.com>
5831 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
5833 2002-06-01 Roland McGrath <roland@frob.com>
5835 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
5836 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
5838 2002-05-19 Ulrich Drepper <drepper@redhat.com>
5840 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
5842 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
5843 Remove nstimes setting.
5844 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
5845 * resolv/res_send.c (res_nsend): Don't close unconditionally if
5846 there is mix of IPv6 and IPv4 nameservers.
5847 Use nsmap array to find free slots and preserve nameserver ordering.
5850 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5852 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
5853 use this header with LFS.
5855 * po/sk.po: Update from translation team.
5857 2002-05-28 Andreas Schwab <schwab@suse.de>
5859 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
5860 message when finding object of wrong class.
5862 2002-05-28 Jakub Jelinek <jakub@redhat.com>
5864 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
5865 Patch by <radu@netsoft.ro>.
5867 2002-05-30 Ulrich Drepper <drepper@redhat.com>
5869 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
5871 * sysdeps/unix/sysv/linux/readahead.c: New file.
5872 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
5873 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
5874 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
5875 Add sendfile64 alias to sendfile syscall.
5876 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5877 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5878 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5879 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
5882 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
5883 special section for PIC register loading.
5884 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5886 * config.h.in: Define HAVE_HIDDEN.
5887 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
5889 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
5891 2002-05-28 Roland McGrath <roland@frob.com>
5893 * sysdeps/mach/alpha/setfpucw.c: New file.
5895 2002-05-26 Roland McGrath <roland@frob.com>
5897 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
5898 Use integer_t instead of int for IOC_VOID case.
5900 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
5902 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
5904 2002-05-26 Bruno Haible <bruno@clisp.org>
5906 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
5907 end of the ISO-8859-7 from idx table.
5909 2002-05-27 Ulrich Drepper <drepper@redhat.com>
5911 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
5913 2002-05-24 David S. Miller <davem@redhat.com>
5915 * string/bits/string2.h (memset): Do not try to optimize when
5916 not _STRING_ARCH_unaligned if GCC will do the right thing.
5918 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5920 * posix/regex.c: Define `inline' as a macro into nothing for the
5921 compilers which lack the keyword.
5922 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
5923 for the compatibility of gawk.
5924 * posix/regcomp.c: Add fake implementation of isblank() for the
5925 environments which lack the function.
5926 Don't use free_charset() in case of non-i18n envs.
5927 (build_range_exp): Don't use i18n related code in case of non-i18n
5929 (build_collating_symbol): Likewise.
5930 (build_equiv_class): Likewise.
5931 (build_charclass): Likewise.
5932 (re_compile_fastmap_iter): Likewise.
5933 (parse_bracket_exp): Likewise.
5934 (build_word_op): Likewise.
5935 (regfree): Don't use free_charset() in case of non-i18n envs.
5936 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
5937 re_token_type_t in case of non-i18n envs.
5938 Don't define re_charset_t in case of non-i18n envs.
5939 Change the type of wcs of re_string_t from wchar_t to wint_t,
5940 since we store also WEOF.
5941 * posix/regex_internal.c: (re_string_realloc_buffers): Change
5942 the type of wcs of re_string_t from wchar_t to wint_t.
5943 (re_string_reconstruct): Likewise.
5944 (create_ci_newstate): Don't use i18n related code in case of
5946 (create_cd_newstate): Likewise.
5948 2002-05-24 Ulrich Drepper <drepper@redhat.com>
5950 * iconv/loop.c: Fix typo.
5952 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5954 * inet/ether_line.c (ether_line): Fix a typo causing only
5955 lower 4 bits of each ethernet address byte being assigned.
5956 Don't modify what line points to.
5957 * inet/tst-ether_aton.c (main): Add ether_line tests.
5959 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
5961 * manual/filesys.texi: Don't make readlink example leak memory
5962 when readlink fails.
5964 2002-05-20 Ulrich Drepper <drepper@redhat.com>
5966 * iconv/loop.c: Fix condition for defining unaligned loop. Add
5967 some more security checks.
5969 2002-05-17 David S. Miller <davem@redhat.com>
5971 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
5973 2002-05-16 David S. Miller <davem@redhat.com>
5975 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
5976 (elf_machine_dynamic): Use it to force PIC register to be loaded.
5977 (elf_machine_load_address): Likewise.
5978 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
5980 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
5981 is unaligned, do not forget to fully initialize %g1 magic value.
5983 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
5984 register definitions and provide 32-bit variants of structures
5985 during 64-bit builds.
5987 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
5988 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
5989 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
5990 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
5991 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
5992 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
5993 Do not clear implicit one bit here, it must be done post-rounding.
5994 Only pad to the left using left shift if value uses less than the
5995 available fractional bits.
5997 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5999 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6000 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6001 (shared-only-routines): Likewise.
6002 * sysdeps/powerpc/libgcc-compat.c: New file.
6003 * sysdeps/wordsize-32/cmpdi2.c: Removed.
6004 * sysdeps/wordsize-32/fixdfdi.c: Removed.
6005 * sysdeps/wordsize-32/fixsfdi.c: Removed.
6006 * sysdeps/wordsize-32/shdi3.c: Removed.
6008 2002-05-16 Bruno Haible <bruno@clisp.org>
6010 * MakeTAGS (libc.pot): Don't sort the output.
6011 * po/header.pot: Update to match xgettext 0.11 output.
6013 2002-05-16 Bruno Haible <bruno@clisp.org>
6015 * MakeTAGS (subdirs): Remove duplicates.
6017 2002-05-19 Ulrich Drepper <drepper@redhat.com>
6019 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6020 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
6023 2002-05-19 Andreas Jaeger <aj@suse.de>
6025 * sysdeps/unix/sysv/linux/configure.in: Warn against an
6026 installation in /usr/local.
6028 2002-05-16 Bruno Haible <bruno@clisp.org>
6030 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6031 string as argument of #error.
6033 2002-05-15 Ulrich Drepper <drepper@redhat.com>
6035 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6036 don't define static. Remove old __realpath function. TC1 of
6037 POSIX 2001 will allow the second parameter to be NULL.
6038 * stdlib/test-canon.c: Comment out test for NULL as second
6039 parameter of realpath.
6041 * time/offtime.c (__offtime): Set errno if overflow is detected.
6043 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6044 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6047 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6050 2002-05-15 Roland McGrath <roland@frob.com>
6052 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6054 2002-05-12 Bruno Haible <bruno@clisp.org>
6056 * iconvdata/testdata/EUC-JISX0213: New file.
6057 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6058 * iconvdata/testdata/SHIFT_JISX0213: New file.
6059 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6060 * iconvdata/testdata/ISO-2022-JP-3: New file.
6061 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6062 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6063 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6064 contains comments indicating precomposed characters.
6066 2002-04-21 Bruno Haible <bruno@clisp.org>
6068 * iconvdata/iso-2022-jp-3.c: New file.
6069 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6070 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6071 (LDFLAGS-ISO-2022-JP-3.so): New variable.
6072 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6073 (distribute): Add iso-2022-jp-3.c.
6075 2002-05-12 Bruno Haible <bruno@clisp.org>
6077 * iconvdata/tst-table-to.c (main): Restore handling of
6078 transliterations, broken by last patch.
6080 2002-05-12 Bruno Haible <bruno@clisp.org>
6082 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6084 2002-05-12 Bruno Haible <bruno@clisp.org>
6086 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6087 when there is not enough room in the output buffer.
6088 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6090 2002-04-20 Bruno Haible <bruno@clisp.org>
6092 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6094 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6095 Also make this macro work if FROM_DIRECTION evaluates to 0.
6096 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6097 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6098 of consume_incomplete.
6099 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6100 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6102 * iconvdata/cp1258.c: Likewise.
6103 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6104 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6106 * iconvdata/ibm933.c: Likewise.
6107 * iconvdata/ibm935.c: Likewise.
6108 * iconvdata/ibm937.c: Likewise.
6109 * iconvdata/ibm939.c: Likewise.
6110 * iconvdata/iso-2022-cn.c: Define
6111 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6112 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6113 * iconvdata/iso-2022-cn-ext.c: Likewise.
6114 * iconvdata/iso-2022-jp.c: Define
6115 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6116 {MIN,MAX}_NEEDED_{FROM,TO}.
6117 * iconvdata/tcvn5712-1.c: Define
6118 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6119 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6120 * iconvdata/euc-jisx0213.c: Define
6121 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6122 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6123 * iconvdata/shift_jisx0213.c: Likewise.
6125 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6127 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6128 shdi3, fixdfdi, fixsfdi in csu dir.
6129 (shared-only-routines): Likewise.
6130 * sysdeps/wordsize-32/cmpdi2.c: New file.
6131 * sysdeps/wordsize-32/shdi3.c: New file.
6132 * sysdeps/wordsize-32/fixdfdi.c: New file.
6133 * sysdeps/wordsize-32/fixsfdi.c: New file.
6134 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6135 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6136 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6138 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6139 Only use va_arg if the argument will be used [PR libc/3259].
6141 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
6143 * catgets/catgets.c (catopen): Free buffer if internal catalog
6146 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6148 * debug/xtrace.sh: Make more robust. For realtime tracking use
6149 non-buffering methods.
6150 * debug/pcprofiledump.c: Implement -u option.
6151 Patch by Roger Luethi <rl@hellgate.ch>.
6153 2002-05-11 Jakub Jelinek <jakub@redhat.com>
6155 * include/netinet/in.h (bindresvport_internal): Add prototype.
6156 * include/rpc/auth.h (authunix_create_internal,
6157 authunix_create_default_internal, authnone_create_internal,
6158 authdes_pk_create_internal): Add prototypes.
6159 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6160 clntudp_create_internal, clntudp_bufcreate_internal,
6161 clntunix_create_internal): Add prototypes.
6162 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6163 svc_getreq_internal, svc_getreq_common_internal,
6164 svc_getreqset_internal, svc_getreq_poll_internal,
6165 svc_register_internal, svc_unregister_internal,
6166 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6167 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6168 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6169 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6170 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6171 * inet/rcmd.c (rcmd_af): Use __listen.
6172 (rresvport_af): Use __bind.
6173 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6174 authunix_create, authunix_create_default, authnone_create,
6175 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6176 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6177 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6178 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6179 _authenticate, add INTDEF after such function definitions.
6180 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6181 __setsockopt, __getsockname instead of non-__ variants.
6182 * sunrpc/pmap_rmt.c: Likewise.
6183 * sunrpc/rtime.c: Likewise.
6184 * sunrpc/svc_udp.c: Likewise.
6185 * sunrpc/clnt_unix.c: Likewise.
6186 * sunrpc/svc_unix.c: Likewise.
6187 * sunrpc/bindrsvprt.c: Likewise.
6188 * sunrpc/svc_tcp.c: Likewise.
6189 * sunrpc/auth_none.c: Likewise.
6190 * sunrpc/clnt_raw.c: Likewise.
6191 * sunrpc/clnt_tcp.c: Likewise.
6192 * sunrpc/auth_unix.c: Likewise.
6193 * sunrpc/key_call.c: Likewise.
6194 * sunrpc/clnt_gen.c: Likewise.
6195 * sunrpc/pm_getmaps.c: Likewise.
6196 * sunrpc/clnt_simp.c: Likewise.
6197 * sunrpc/pmap_clnt.c: Likewise.
6198 * sunrpc/svc_run.c: Likewise.
6199 * sunrpc/svc.c: Likewise.
6200 * sunrpc/svc_simple.c: Likewise.
6201 * sunrpc/pm_getport.c: Likewise.
6202 * sunrpc/auth_des.c: Likewise.
6203 * sunrpc/svc_auth.c: Likewise.
6204 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6205 __register_frame_info_table_bases, __deregister_frame_info_bases):
6207 (__register_frame_info_bases_internal,
6208 __register_frame_info_table_bases_internal,
6209 __deregister_frame_info_bases_internal): Add prototypes.
6210 (__register_frame_info, __register_frame): Use INTUSE in call to
6211 __register_frame_info_bases.
6212 (__register_frame_info_table): Similarly.
6213 (__deregister_frame_info, __deregister_frame): Similarly.
6214 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6215 sendto as weak alias.
6216 * sysdeps/mach/hurd/sendto.c: Likewise.
6217 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6218 recvfrom as weak alias.
6219 * sysdeps/mach/hurd/recvfrom.c: Likewise.
6220 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6221 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6222 recvmsg as weak alias.
6223 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6224 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6225 sendmsg as weak alias.
6226 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6227 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6228 setsockopt, add setsockopt as weak alias.
6229 * sysdeps/mach/hurd/setsockopt.c: Likewise.
6230 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6232 * sysdeps/mach/hurd/bind.c: Likewise.
6233 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6235 * sysdeps/mach/hurd/listen.c: Likewise.
6236 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6237 getsockname, add getsockname as weak alias.
6238 * sysdeps/mach/hurd/getsockname.c: Likewise.
6239 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6240 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6241 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6242 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6243 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6244 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6246 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6247 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6248 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6249 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6250 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6251 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6252 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6253 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6254 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6255 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6256 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6257 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6259 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6261 * locale/programs/localedef.h (show_archive_content): Add verbose
6263 * locale/programs/localedef.c (main): Adjust caller.
6264 * locale/programs/locarchive.c (struct nameent, struct dataent): New
6266 (nameentcmp, dataentcmp): New functions.
6268 (show_archive_content): Print verbose listing with --list-archive -v.
6270 2002-05-14 Ulrich Drepper <drepper@redhat.com>
6272 * locale/programs/locarchive.c (open_archive): Take extra argument
6273 readonly. If true open file with O_RDONLY and don't create the
6274 archive if it doesn't exist.
6276 (close_archive): Don't do anything if fd element is -1.
6277 * locale/programs/localedef.h (open_archive): Adjust prototype.
6278 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6281 * malloc/malloc.c (__posix_memalign): Correct check for size of
6282 alignment value [PR libc/3444].
6284 * include/stdio.h: Remove references to old stdio implementation.
6286 * libio/Makefile (bug-ungetwc2-ENV): Define.
6288 2002-05-13 Roland McGrath <roland@frob.com>
6290 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6292 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6294 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
6296 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6297 Allocate three, not two, more than LEN when appending '/.'.
6298 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
6299 if NAME ends with '/.' if it is shorter than 2 chars.
6301 2002-05-12 Roland McGrath <roland@frob.com>
6303 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6304 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6306 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6307 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6309 2002-05-10 Jakub Jelinek <jakub@redhat.com>
6311 * sysdeps/ia64/Makefile: Remove extra endif.
6312 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6314 2002-05-10 Andreas Schwab <schwab@suse.de>
6316 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6318 2002-05-09 Andreas Jaeger <aj@suse.de>
6320 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6321 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6322 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6324 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6325 * sysdeps/wordsize-64/glob.c: ...here.
6326 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6327 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6328 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6330 2002-05-08 Roland McGrath <roland@frob.com>
6332 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6333 O_NOTRANS flag in "." lookup.
6335 2002-05-05 Ulrich Drepper <drepper@redhat.com>
6337 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6339 2002-05-04 Ulrich Drepper <drepper@redhat.com>
6341 * locale/duplocale.c (__duplocale): Update special members only
6342 when allocation succeeded.
6344 2002-05-03 Roland McGrath <roland@frob.com>
6346 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6347 we can only build libc.so.0.3(GLIBC_2.2.6) now.
6349 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6351 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6352 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6353 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6354 * sysdeps/ia64/ia64libgcc.S: New file.
6356 2002-05-02 Ulrich Drepper <drepper@redhat.com>
6358 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6360 * malloc/memusage.c: Distinguish anonymous mmap.
6362 2002-05-01 Roland McGrath <roland@frob.com>
6364 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6365 and use INTDEF on it.
6366 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6368 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6370 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6372 2002-05-01 Ulrich Drepper <drepper@redhat.com>
6374 * malloc/memusage.c: Add support for tracking mmap & friends.
6375 * malloc/memusage.sh: Implement -m/--mmap option.
6377 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6379 * locale/programs/locarchive.c (create_archive): Add archivefname
6380 argument, create fname from it.
6381 (enlarge_archive): Honour output_prefix.
6382 (open_archive): Likewise.
6384 2002-04-30 Jakub Jelinek <jakub@redhat.com>
6386 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6387 too many stpcpy macros.
6389 2002-04-26 Bruno Haible <bruno@clisp.org>
6391 * locale/programs/ld-collate.c (collate_read): Cast first argument
6394 2002-04-26 Bruno Haible <bruno@clisp.org>
6396 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6397 __dcngettext_internal): New declarations.
6398 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6399 attribute declarations.
6401 2002-04-30 Roland McGrath <roland@frob.com>
6403 Removed old GNU stdio implementation; GNU libio is now the only option.
6404 * configure.in: Removed --enable-libio option and @stdio@ subst var.
6405 Define USE_IN_LIBIO unconditionally.
6406 * configure: Regenerated.
6407 * Makeconfig (stdio): Set to libio by default.
6408 * config.make.in (stdio): Variable removed.
6409 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6410 * sysdeps/unix/sysv/linux/configure: Regenerated.
6411 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6412 * sysdeps/mach/hurd/configure: Regenerated.
6413 * stdio/.cvsignore: File removed.
6414 * stdio/Makefile: File removed.
6415 * stdio/Versions: File removed.
6416 * stdio/__fbufsize.c: File removed.
6417 * stdio/__flbf.c: File removed.
6418 * stdio/__fpending.c: File removed.
6419 * stdio/__fpurge.c: File removed.
6420 * stdio/__freadable.c: File removed.
6421 * stdio/__freading.c: File removed.
6422 * stdio/__fsetlocking.c: File removed.
6423 * stdio/__fwritable.c: File removed.
6424 * stdio/__fwriting.c: File removed.
6425 * stdio/clearerr.c: File removed.
6426 * stdio/fclose.c: File removed.
6427 * stdio/fcloseall.c: File removed.
6428 * stdio/feof.c: File removed.
6429 * stdio/ferror.c: File removed.
6430 * stdio/fflush.c: File removed.
6431 * stdio/fgetc.c: File removed.
6432 * stdio/fgetpos.c: File removed.
6433 * stdio/fgets.c: File removed.
6434 * stdio/fileno.c: File removed.
6435 * stdio/fmemopen.c: File removed.
6436 * stdio/fopen.c: File removed.
6437 * stdio/fopncook.c: File removed.
6438 * stdio/fputc.c: File removed.
6439 * stdio/fputs.c: File removed.
6440 * stdio/fread.c: File removed.
6441 * stdio/freopen.c: File removed.
6442 * stdio/fseek.c: File removed.
6443 * stdio/fsetpos.c: File removed.
6444 * stdio/ftell.c: File removed.
6445 * stdio/fwrite.c: File removed.
6446 * stdio/getc.c: File removed.
6447 * stdio/getchar.c: File removed.
6448 * stdio/getdelim.c: File removed.
6449 * stdio/gets.c: File removed.
6450 * stdio/glue.c: File removed.
6451 * stdio/internals.c: File removed.
6452 * stdio/linewrap.c: File removed.
6453 * stdio/linewrap.h: File removed.
6454 * stdio/memstream.c: File removed.
6455 * stdio/newstream.c: File removed.
6456 * stdio/obstream.c: File removed.
6457 * stdio/putc.c: File removed.
6458 * stdio/putchar.c: File removed.
6459 * stdio/puts.c: File removed.
6460 * stdio/rewind.c: File removed.
6461 * stdio/setbuf.c: File removed.
6462 * stdio/setbuffer.c: File removed.
6463 * stdio/setlinebuf.c: File removed.
6464 * stdio/setvbuf.c: File removed.
6465 * stdio/stdio.h: File removed.
6466 * stdio/ungetc.c: File removed.
6467 * stdio/vasprintf.c: File removed.
6468 * stdio/vscanf.c: File removed.
6469 * stdio/vsnprintf.c: File removed.
6470 * stdio/vsprintf.c: File removed.
6471 * stdio/vsscanf.c: File removed.
6472 * sysdeps/generic/defs.c: File removed.
6473 * sysdeps/generic/fdopen.c: File removed.
6474 * sysdeps/generic/pipestream.c: File removed.
6475 * sysdeps/generic/stdio_init.c: File removed.
6476 * sysdeps/generic/sysd-stdio.c: File removed.
6477 * sysdeps/generic/vdprintf.c: File removed.
6478 * sysdeps/mach/hurd/defs.c: File removed.
6479 * sysdeps/mach/hurd/fdopen.c: File removed.
6480 * sysdeps/mach/hurd/pipestream.c: File removed.
6481 * sysdeps/mach/hurd/stdio_init.c: File removed.
6482 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6483 * sysdeps/mach/hurd/vdprintf.c: File removed.
6484 * sysdeps/posix/defs.c: File removed.
6485 * sysdeps/posix/fdopen.c: File removed.
6486 * sysdeps/posix/pipestream.c: File removed.
6487 * sysdeps/posix/stdio_init.c: File removed.
6488 * sysdeps/posix/vdprintf.c: File removed.
6489 * sysdeps/unix/pipestream.c: File removed.
6490 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6491 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6492 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6494 2002-04-29 Roland McGrath <roland@frob.com>
6496 * include/libc-symbols.h (link_warning): Use `unused' attribute.
6498 2002-04-28 Ulrich Drepper <drepper@redhat.com>
6500 * sysdeps/generic/tls.h: Describe what must be defined.
6502 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6503 glob_in_dir [PR libc/3385].
6504 * posix/globtest.sh: Add test case.
6506 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6509 2002-04-27 Ulrich Drepper <drepper@redhat.com>
6511 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6512 _internal symbol handling.
6513 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6515 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6517 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6518 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6520 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
6522 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6523 not _LIBC and RE_ENABLE_I18N.
6524 (build_range_exp): Implement for not _LIBC.
6525 (build_collating_symbol): Likewise.
6526 (parse_bracket_exp): Unify redundant error handlings.
6527 Don't erase mbcset for non matching list in multibyte envs.
6528 (build_word_op): Add '_' to matching list for \w operator.
6529 * posix/regex_internal.c (re_string_construct): Invoke
6530 build_upper_buffer in case of not RE_ENABLE_I18N.
6531 (re_string_reconstruct): Don't touch cur_state in case of not
6533 * posix/regex_internal.h (attribute_hidden): New macro in case of
6535 (re_charset_t): Define range_starts/ends in case of not _LIBC.
6536 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6538 (transit_state_mb): Likewise.
6539 (check_node_accept_bytes): Implement the code evaluating range
6540 expression in case of not _LIBC.
6541 (find_collation_sequence_value): Hide in case of not _LIBC.
6543 2002-04-26 Jakub Jelinek <jakub@redhat.com>
6545 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6547 (__old_semctl, __new_semctl): Only use va_arg if the argument will
6550 2002-04-26 Ulrich Drepper <drepper@redhat.com>
6552 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6554 * sysdeps/ia64/strncpy.S: Fix recovery code.
6555 Patch by David Mosberger <davidm@hpl.hp.com>.
6557 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6559 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6562 2002-04-14 Bruno Haible <bruno@clisp.org>
6564 * posix/regex.c (re_max_failures): Add back symbol for binary
6567 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
6569 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6570 of buffer building functions.
6571 * posix/regex_internal.c (re_string_allocate): New function.
6572 (re_string_realloc_buffers): New function.
6573 (re_string_skip_chars): New function.
6574 (re_string_reconstruct): New function.
6575 (re_string_construct): Adapt it to new interface of buffer building
6577 (re_string_construct_common): Likewise.
6578 (build_wcs_buffer): Likewise.
6579 (build_wcs_upper_buffer): Likewise.
6580 (build_upper_buffer): Likewise.
6581 (re_string_translate_buffer): Likewise.
6582 (re_string_context_at): Adapt it to variable length buffers.
6583 * posix/regex_internal.h (re_string_t): Add new fields to handle
6584 variable length buffers.
6585 (re_match_context_t): Likewise.
6586 * posix/regexec.c (re_search_internal): Adapt it to new interface
6587 of re_string_t and re_match_context_t.
6588 (acquire_init_state_context): Likewise.
6589 (check_matching): Likewise.
6590 (check_halt_state_context): Likewise.
6591 (proceed_next_node): Likewise.
6592 (set_regs): Likewise.
6593 (sift_states_backward): Likewise.
6594 (clean_state_log_if_need): Likewise.
6595 (sift_states_iter_mb): Likewise.
6596 (sift_states_iter_bkref): Likewise.
6597 (add_epsilon_backreference): Likewise.
6598 (transit_state): Likewise.
6599 (transit_state_sb): Likewise.
6600 (transit_state_mb): Likewise.
6601 (transit_state_bkref): Likewise.
6602 (transit_state_bkref_loop): Likewise.
6603 (check_node_accept): Likewise.
6604 (match_ctx_init): Likewise.
6605 (extend_buffers): New function.
6607 2002-04-21 Bruno Haible <bruno@clisp.org>
6609 * iconvdata/tst-table.sh: For the second check, use the truncated
6610 GB18030 charmap table, like for the first check.
6612 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6614 * elf/dl-load.c (open_verify): Correct __lseek parameters.
6615 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6617 2002-04-23 H.J. Lu <hjl@gnu.org>
6619 * include/math.h (isfinite): Fix a typo.
6621 2002-04-24 Ulrich Drepper <drepper@redhat.com>
6623 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6624 which is created by the test suite.
6626 2002-04-20 Bruno Haible <bruno@clisp.org>
6628 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6629 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6631 2002-04-20 Bruno Haible <bruno@clisp.org>
6633 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6634 to avoid gcc warning.
6636 2002-04-20 Bruno Haible <bruno@clisp.org>
6638 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6639 of data->__statep->__count.
6641 2002-04-20 Bruno Haible <bruno@clisp.org>
6643 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6645 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6647 2002-04-24 Roland McGrath <roland@frob.com>
6649 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6650 use END macro instead of our own .end directive.
6651 Use `callsys' insn mnemonic instead of `call_pal'.
6653 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6655 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6656 macro; we need this for Hurd.
6658 Log entry was missing for 2002/03/24 commit of rev 1.8,
6659 goes with 2002-03-17 changes.
6660 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6661 (sysdep_routines): Append ioperm here.
6662 (sysdep_headers): Append sys/io.h here.
6664 2002-04-23 Roland McGrath <roland@frob.com>
6666 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6667 * sysdeps/mach/hurd/sendto.c: Likewise.
6668 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6669 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6670 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6672 2002-04-22 Roland McGrath <roland@frob.com>
6674 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6675 failure from i386_io_perm_* RPCs to ENOSYS.
6677 2002-04-22 Andreas Jaeger <aj@suse.de>
6679 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6681 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6683 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6684 register instead of destroying %rbx.
6686 2002-04-21 Ulrich Drepper <drepper@redhat.com>
6688 * string/string.h: Declare strerror_r also for XPG6.
6690 2002-04-19 Roland McGrath <roland@frob.com>
6692 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6694 2002-04-20 Ulrich Drepper <drepper@redhat.com>
6696 * Makefile: Add handling of xtests and xcheck targets.
6697 * MakeTAGS: Likewise.
6698 * Makeconfig: Likewise.
6699 * Makerules: Likewise.
6701 * manual/Makefile: Likewise.
6702 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6703 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
6705 2002-04-11 Zack Weinberg <zack@codesourcery.com>
6707 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6709 * sunrpc/auth_none.c: Include bits/libc-lock.h.
6710 Delete #ifdef _RPC_THREAD_SAFE_ block.
6711 (authnone_private): Make a struct, not a pointer to struct.
6712 (authnone_private_guard): New once-control variable.
6713 (authnone_create_once): New function, split out of
6714 authnone_create. No need to allocate memory.
6715 (authnone_create): Just call authnone_create_once via
6716 __libc_once, then return &authnone_private->no_client.
6717 (authnone_marshal): Access private data via CLIENT argument,
6718 not authnone_private pointer.
6719 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
6720 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
6723 2002-04-12 H.J. Lu <hjl@gnu.org>
6725 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
6727 2002-04-18 Bruno Haible <bruno@clisp.org>
6729 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6730 FROM_DIRECTION): Make the FROM direction stateless.
6731 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
6732 FROM_DIRECTION): Likewise.
6734 2002-04-15 Bruno Haible <bruno@clisp.org>
6736 * iconvdata/JISX0213.TXT: New file.
6737 * iconvdata/jisx0213.h: New file.
6738 * iconvdata/jisx0213.c: New file.
6739 * iconvdata/euc-jisx0213.c: New file.
6740 * iconvdata/shift_jisx0213.c: New file.
6741 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
6742 * iconvdata/EUC-JISX0213.precomposed: New file.
6743 * iconvdata/SHIFT_JISX0213.precomposed: New file.
6744 * iconvdata/SHIFT_JISX0213.irreversible: New file.
6745 * iconvdata/tst-table-to.c (main): Make it work for encodings for
6746 which the "to" direction is stateful.
6747 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
6748 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
6750 (libJISX0213-routines): New variable.
6751 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
6752 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
6753 (LDFLAGS-libJISX0213.so): New variable.
6754 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
6755 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
6756 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
6758 2002-04-15 Bruno Haible <bruno@clisp.org>
6760 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
6761 uint32_t. Update to Unicode 3.2.
6762 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
6763 (BODY for TO_LOOP): Handle the ASCII range specially.
6764 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
6765 * iconvdata/testdata/BIG5HKSCS: Remove a character.
6766 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
6768 2002-04-15 Bruno Haible <bruno@clisp.org>
6770 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
6771 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
6773 2002-04-15 Bruno Haible <bruno@clisp.org>
6775 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
6776 (ucs4_to_cns11643): Update.
6777 * iconvdata/cns11643.c: Update to Unicode 3.2.
6778 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
6779 __cns11643_from_ucs4p2_tab): Regenerated.
6780 (__cns11643_from_ucs4p2c_tab): New array.
6781 * iconvdata/cvs11643l1.c: Update comments.
6782 * iconvdata/EUC-TW.irreversible: Remove two entries.
6784 2002-04-15 Bruno Haible <bruno@clisp.org>
6786 * locale/C-translit.h.in: Update to Unicode 3.2.
6787 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
6788 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
6790 2002-04-15 Bruno Haible <bruno@clisp.org>
6792 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
6793 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
6795 2002-04-15 Bruno Haible <bruno@clisp.org>
6797 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
6798 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
6799 always one byte, not 0 bytes in some cases and 2 bytes in others.
6801 * iconvdata/tst-table-from.c (main): Correct the usage message.
6803 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6805 * posix/regcomp.c (parse_expression): Fix incorrect error code.
6806 (parse_dup_op): Fix error handling like "a{}".
6807 (parse_bracket_exp): Add error handling.
6808 (fetch_number): Add error handling for "a{<very_large_number>}".
6810 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
6812 * posix/regcomp.c (parse_bracket_symbol): Add error handling
6813 in case that the symbol name is too long.
6814 (build_charclass): Handle [:lower:]/[:uppper:] correctly
6815 in case of REG_ICASE.
6817 2002-04-19 Andreas Jaeger <aj@suse.de>
6819 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
6820 <hartvige@mips.com>.
6822 2002-04-15 H.J. Lu <hjl@gnu.org>
6824 * include/math.h (__finitel_internal): Declare only if
6825 __NO_LONG_DOUBLE_MATH is not defined.
6826 (__isinfl_internal): Likewise.
6827 (__isnanl_internal): Likewise.
6829 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
6830 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6831 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6832 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
6833 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6834 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6835 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6837 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
6840 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
6841 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
6843 2002-04-15 Bruno Haible <bruno@clisp.org>
6845 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
6846 (BODY for TO_LOOP): Likewise.
6847 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
6848 * iconvdata/tst-table.sh: Add support for encodings which contain
6849 precomposed Unicode characters, known to the iconv converter in both
6850 directions but not listed in the charmap.
6851 * iconvdata/IBM856.irreversible: New file.
6852 * iconvdata/IBM922.irreversible: New file.
6853 * iconvdata/IBM1132.irreversible: New file.
6854 * iconvdata/IBM1133.irreversible: New file.
6855 * iconvdata/IBM1160.irreversible: New file.
6856 * iconvdata/IBM1161.irreversible: New file.
6857 * iconvdata/IBM1163.irreversible: New file.
6858 * iconvdata/IBM1164.irreversible: New file.
6859 * iconvdata/ARMSCII-8.irreversible: New file.
6860 * iconvdata/TCVN5712-1.precomposed: New file.
6861 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
6862 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
6863 ARMSCII-8, TCVN5712-1.
6864 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
6865 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
6866 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
6867 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
6869 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6871 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
6872 for EVENING69. Include offsets in TZ environment variable.
6874 2002-04-18 Ulrich Drepper <drepper@redhat.com>
6876 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
6877 avoid compiler warnings.
6879 * locale/programs/localedef.c (main): Always call
6880 construct_output_path.
6882 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
6884 * locale/programs/locfile.c (to_archive): New variable. To collect
6885 data which has to be added to the locale archive.
6886 (write_all_categories): Take new third parameter with locale name.
6887 Unless no_archive flag set add new locale data to the archive
6888 (write_locale_data): Unless no-archive flag set store generated data
6889 in to_archive data structure instead of generation output file.
6890 Add new parameter with locale category index.
6891 * locale/programs/locfile.h: Add new parameters in declaractions of
6892 write_all_categories and write_locale_data.
6893 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
6894 --add-to-archive, and --delete-from-archive options. Pass extra
6895 parameter to write_all_categories.
6896 * locale/programs/localedef.h: Add prototypes for functions in
6898 * locale/locarchive.h: New file.
6899 * locale/programs/locarchive.c: New file.
6900 * locale/Makefile (distribute): Add programs/locarchive.c and
6902 (localedef-modules): Add md5 and locarchive.
6903 Add vpath to crypt subdir for md5.c.
6905 * locale/programs/ld-address.c: Pass locale category ID as new second
6906 parameter to write_locale_data.
6907 * locale/programs/ld-collate.c: Likewise.
6908 * locale/programs/ld-ctype.c: Likewise.
6909 * locale/programs/ld-identification.c: Likewise.
6910 * locale/programs/ld-measurement.c: Likewise.
6911 * locale/programs/ld-messages.c: Likewise.
6912 * locale/programs/ld-monetary.c: Likewise.
6913 * locale/programs/ld-name.c: Likewise.
6914 * locale/programs/ld-numeric.c: Likewise.
6915 * locale/programs/ld-paper.c: Likewise.
6916 * locale/programs/ld-telephone.c: Likewise.
6917 * locale/programs/ld-time.c: Likewise.
6919 * locale/simple-hash.c: Move compute_hashval function from here...
6920 * locale/hashval.h: ...to here. New file.
6921 * locale/simple-hash.h: Add prototype for compute_hashval.
6923 * include/libintl.h: Minor cleanups.
6925 2002-04-16 Ulrich Drepper <drepper@redhat.com>
6927 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
6929 2002-04-15 Ulrich Drepper <drepper@redhat.com>
6931 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
6933 2002-04-14 Bruno Haible <bruno@clisp.org>
6935 * locale/programs/charmap.c (charmap_read): Don't access result if
6938 2002-02-17 Andreas Schwab <schwab@suse.de>
6940 * elf/reldep7.c: New file.
6941 * elf/reldep7mod1.c: New file.
6942 * elf/reldep7mod2.c: New file.
6943 * elf/Makefile: Add rules to build and run reldep7.
6945 2002-04-14 Jakub Jelinek <jakub@redhat.com>
6947 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
6948 the end of the function. Pass original flags to recursive call if
6949 add_dependency failed.
6950 (_dl_lookup_versioned_symbol): Likewise.
6952 2002-04-13 Jakub Jelinek <jakub@redhat.com>
6954 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
6955 early, but check whether it overflowed afterwards.
6956 * time/tst-mktime.c (main): Add new tests.
6958 2002-04-14 Ulrich Drepper <drepper@redhat.com>
6960 * debug/xtrace.sh: Fix program name in help message.
6961 Patch by Roger Luethi <rl@hellgate.ch>.
6963 * include/sys/stat.h: Add prototypes for __lxstat_internal and
6964 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
6966 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
6967 * sysdeps/mach/hurd/lxstat.c: Likewise.
6968 * sysdeps/unix/common/lxstat.c: Likewise.
6969 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
6970 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
6971 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6972 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6973 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
6974 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
6975 * sysdeps/mach/hurd/lxstat64.c: Likewise.
6976 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
6977 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6979 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
6980 prototypes. Add __mbrlen and __mbrtowc macros.
6981 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
6982 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
6984 * include/unistd.h: Add prototype for __write_internal and add
6985 __libc_write macro is SHARED.
6986 * sysdeps/generic/write.c: Use INTDEF for __write.
6987 * sysdeps/mach/hurd/write.c: Likewise.
6988 * sysdeps/unix/sysv/aix/write.c: Likewise.
6989 * sysdeps/unix/syscalls.list: Add __libc_write alias.
6991 * assert/assert.c: Replace STR_N_SIZE with something usable in
6993 * assert/assert-perr.c: Likewise.
6995 * include/sys/socket.h: Declare __libc_sa_len_internal and define
6996 SA_LEN macro to use it if not NOT_IN_libc.
6997 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
6999 * include/fcntl.h: Declare __open_internal and define __open and
7000 __libc_open macros if not NOT_IN_libc.
7001 * sysdeps/generic/open.c: Use INTDEF for __open.
7002 * sysdeps/mach/hurd/open.c: Likewise.
7003 * sysdeps/unix/sysv/aix/open.c: Likewise.
7004 * sysdeps/unix/syscalls.list: Add __open_internal alias.
7006 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7009 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7010 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7011 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7012 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7014 * include/wctype.h: Declare __iswalpha_l_internal,
7015 __iswdigit_l_internal, __iswspace_l_internal,
7016 __iswxdigit_l_internal, and __iswctype_internal. Define
7017 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7018 __iswxdigit_l macros if not NOT_IN_libc.
7019 * wctype/iswctype.c: Use INTDEF for __iswctype.
7020 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7022 * include/math.h: Declare __isinf_internal, __isinfl_internal,
7023 __isnan_internal, and __isnanl_internal.
7024 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7025 __isnan, and __isnanl.
7026 * stdio-common/printf_size.c: Likewise.
7027 * sysdeps/generic/printf_fphex.c: Likewise.
7028 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7029 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7030 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7031 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7032 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7033 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7034 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7035 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7036 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7037 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7038 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7039 * sysdeps/m68k/s_isinfl.c: Likewise.
7040 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7041 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7043 * include/sys/time.h: Declare __gettimeofday_internal and define
7044 __gettimeofday macro if not NOT_IN_libc.
7045 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7046 * sysdeps/mach/gettimeofday.c: Likewise.
7047 * sysdeps/posix/gettimeofday.c: Likewise.
7048 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7049 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7050 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7051 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7053 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7054 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7055 Remove __lstat and __fstat inline functions.
7056 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7057 * sysdeps/mach/hurd/fxstat.c: Likewise.
7058 * sysdeps/unix/fxstat.c: Likewise.
7059 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7060 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7061 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7062 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7063 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7064 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7065 * sysdeps/mach/hurd/fxstat64.c: Likewise.
7066 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7067 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7069 * include/unistd.h: Declare __getpid_internal and define
7070 __getpid macro if not NOT_IN_libc.
7071 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7072 * sysdeps/generic/getpid.c: Likewise.
7073 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7074 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7076 * include/unistd.h: Declare __getpgid_internal and define
7077 __getpgid macro if not NOT_IN_libc.
7078 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7079 * sysdeps/mach/hurd/getpgid.c: Likewise.
7080 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7081 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7082 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7083 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7085 * include/unistd.h: Declare __getpagesize_internal and define
7086 __getpagesize macro if not NOT_IN_libc.
7087 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7089 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7090 * sysdeps/mach/getpagesize.c: Likewise.
7091 * sysdeps/posix/getpagesize.c: Likewise.
7092 * sysdeps/unix/getpagesize.c: Likewise.
7093 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7094 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7095 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7096 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7098 2002-04-13 Andreas Jaeger <aj@suse.de>
7100 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7101 as clobber to reduce register pressure.
7102 (__strpbrk_cg): Likewise.
7103 (__mempcpy_by4): Likewise.
7104 (__strstr_cg): Likewise.
7105 Add prototype for __memrchr.
7107 2002-04-13 Andreas Schwab <schwab@suse.de>
7109 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7110 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7111 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7113 2002-04-13 Ulrich Drepper <drepper@redhat.com>
7115 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
7116 check whether the caller prefers getting the most recent version of
7117 a symbol of the earliest version.
7118 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7119 _dl_do_lookup to also take the new parameter and pass it on.
7120 Change 'explicit' parameter of _dl_lookup_symbol and
7121 _dl_lookup_versioned_symbol to flags. Adjust tests.
7122 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7123 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7124 _dl_lookup_versioned_symbol.
7125 * elf/dl-reloc.c: Likewise.
7126 * elf/dl-runtime.c: Likewise.
7127 * elf/dl-sym.c: Likewise.
7128 * sysdeps/mips/dl-machine.h: Likewise.
7130 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7132 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7134 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7136 2002-04-10 Andreas Jaeger <aj@suse.de>
7138 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7140 * include/argz.h: Remove extra char from last patch.
7142 2002-04-09 Ulrich Drepper <drepper@redhat.com>
7144 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7145 * sysdeps/unix/sysv/aix/chown.c: Likewise.
7146 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7147 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7148 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7149 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7151 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7153 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7154 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7155 * intl/ngettext.c: Likewise.
7157 * include/sys/socket.h: Declare __connect_internal and define
7158 __connect macro if not NOT_IN_libc.
7159 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7160 * sysdeps/unix/sysv/aix/connect.c: Likewise.
7161 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7163 * include/unistd.h: Declare __close_internal and define __close macro
7165 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7166 WJUMP3): Add extra parenthesis to avoid expanding element names with
7167 macors like __close.
7168 * sysdeps/unix/syscalls.list: Add __close_internal alias.
7170 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7172 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7173 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7174 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7176 * include/unistd.h: Declare __fork_internal and define __fork macro
7178 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7179 * sysdeps/unix/sysv/aix/fork.c: Likewise.
7180 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7182 * include/stdio_ext.h: Declare __fsetlocking_internal and define
7183 __fsetlocking macro to use it if not NOT_IN_libc.
7184 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7186 * libio/__fbufsize.c: Correct copyright.
7187 * libio/__flbf.c: Likewise.
7188 * libio/__fpending.c: Likewise.
7189 * libio/__fpurge.c: Likewise.
7190 * libio/__freadable.c: Likewise.
7191 * libio/__freading.c: Likewise.
7192 * libio/__fsetlocking.c: Likewise.
7193 * libio/__fwritable.c: Likewise.
7194 * libio/__fwriting.c: Likewise.
7196 * include/stdio.h: Declare __asprintf_internal and define __asprintf
7197 macro to use it if not NOT_IN_libc.
7198 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7200 * include/mntent.h: Declare __setmntent_internal,
7201 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
7202 __getmntent_r, and __endmntent macros to use these functions if not
7204 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7207 * include/math.h: Declare __finite_internal, __finitef_internal, and
7208 __finitel_internal. Redefine isfinite macro if in libc or libm using
7210 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7211 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7212 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7213 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7214 * sysdeps/i386/fpu/s_finitef.S: Likewise.
7215 * sysdeps/i386/fpu/s_finitel.S: Likewise.
7216 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7217 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7218 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7219 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7221 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
7222 to use this function if not NOT_IN_libc.
7223 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7224 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7225 * sysdeps/mach/hurd/fcntl.c: Likewise.
7226 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7227 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7229 * include/argz.h: Declare __argz_count_internal and
7230 __argz_stringify_internal.
7231 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7233 * string/argz-count.c: Use INTDEF for __argz_count.
7234 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7236 * include/stdlib.h: Declare __cxa_atexit_internal and define
7237 __cxa_atexit macro if not NOT_IN_libc.
7238 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7239 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7241 * assert/assert.c: Use INTDEF for __assert_fail.
7242 * assert/__assert.c: Use INTUSE for call to __assert_fail.
7243 * include/assert.h: Declare __assert_fail_internal.
7245 * extra-lib.mk: Mark assignment to lib with override.
7247 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7249 * Makerules: Use cppflags-iterator.mk to add defines for all test
7252 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
7254 * elf/elf.h: Define R_SH_TLS_xxx macros.
7255 * elf/rtld.c: Remove an extra parenthesis.
7256 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7258 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7259 * sysdeps/sh/dl-lookupcfg.h: New file.
7260 * sysdeps/sh/dl-tls.h: New file.
7261 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7262 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7263 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7264 R_SH_TLS_TPOFF32 relocations.
7266 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7268 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7270 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7271 * include/stdlib.h: Likewise.
7273 2002-04-08 Jakub Jelinek <jakub@redhat.com>
7275 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7276 instead of _RTLD_LOCAL.
7277 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7278 * include/unistd.h: Likewise.
7279 * sysdeps/generic/ldsodefs.h: Likewise.
7281 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7282 if in libc or ld.so.
7284 2002-04-08 Andreas Jaeger <aj@suse.de>
7286 * elf/cache.c (print_entry): Support x86-64.
7288 2002-04-08 Ulrich Drepper <drepper@redhat.com>
7290 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7291 with one accessing the locale data structures directly.
7292 * stdio-common/printf-prs.c: Include localeinfo.h for new
7293 MB_CUR_MAX definition.
7295 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7296 is the name of the source file without extension.
7297 * Makefile (distribute): Add cppflags-iterator.mk.
7298 * cppflags-iterator.mk: New file.
7299 * extra-lib.mk: For the sources of the library run
7300 cppflags-iterator.mk.
7302 * include/libintl.h: Declare __dcgettext_internal and
7303 _libc_intl_domainname_internal. Define __dcgettext using these
7304 two symbols if used in libc itself.
7305 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7306 _libc_intl_domainname_internal.
7307 * argp/argp-parse.c: Likewise.
7308 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7309 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7310 * intl/gettext.c: Likewise.
7311 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7313 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7315 * posix/regex_internal.c (gettext): Likewise.
7317 2002-04-08 Andreas Jaeger <aj@suse.de>
7319 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7321 * sysdeps/x86_64/fpu/s_llrint.S: New file.
7322 * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7323 * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7324 * sysdeps/x86_64/fpu/s_lrint.S: New file.
7325 * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7326 * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7328 2002-04-08 Roland McGrath <roland@frob.com>
7330 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7331 widening __hurd_fail value.
7333 2002-04-07 Roland McGrath <roland@frob.com>
7335 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7336 <mach/machine/alpha_instruction.h>.
7337 (_hurd_setup_sighandler): Take proper arguments for current decls.
7338 Update code to use _hurdsig_catch_fault.
7339 Use `callsys' instruction instead of `call_pal'.
7340 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7342 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7343 (ALIGN, at, AT, fp): New macros.
7345 2002-04-06 Roland McGrath <roland@frob.com>
7347 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7349 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7350 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7352 * sysdeps/mach/hurd/bind.c: Use prototype definition.
7353 * sysdeps/mach/hurd/connect.c: Likewise.
7354 * sysdeps/mach/hurd/getsockopt.c: Likewise.
7355 * sysdeps/mach/hurd/setsockopt.c: Likewise.
7357 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7360 * hurd/catch-exc.c: Use integer_t instead of int.
7361 * hurd/hurdfault.c: Likewise.
7363 * sysdeps/mach/hurd/alpha/exc2signal.c
7364 (_hurd_exception2signal): Rewritten.
7365 * sysdeps/mach/hurd/alpha/longjmp-ts.c
7366 (_hurd_longjmp_thread_state): Rewritten.
7368 2002-04-07 Ulrich Drepper <drepper@redhat.com>
7370 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7371 DB_LOOKUP_FCT prototype.
7372 * nss/getXXent_r.c: Likewise.
7373 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7374 * inet/getaliasname_r.c: Likewise.
7375 * inet/getnetbyad_r.c: Likewise.
7376 * inet/getnetbynm_r.c: Likewise.
7377 * inet/getnetent_r.c: Likewise.
7378 * inet/getproto_r.c: Likewise.
7379 * inet/getprtent_r.c: Likewise.
7380 * inet/getprtname_r.c: Likewise.
7381 * inet/getrpcbyname_r.c: Likewise.
7382 * inet/getrpcbynumber_r.c: Likewise.
7383 * inet/getrpcent_r.c: Likewise.
7384 * inet/getservent_r.c: Likewise.
7385 * inet/getsrvbynm_r.c: Likewise.
7386 * inet/getsrvbypt_r.c: Likewise.
7387 * shadow/getspent_r.c: Likewise.
7388 * shadow/getspnam_r.c: Likewise.
7390 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7392 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7393 Use i686-friendly PIC code.
7394 * sysdeps/i386/elf/setjmp.S: Likewise.
7396 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7398 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7400 * elf/Versions: Remove it here.
7402 2002-04-06 Ulrich Drepper <drepper@redhat.com>
7404 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7405 direction. Reported by H . J . Lu <hjl@lucon.org>.
7407 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7409 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7410 test just before the test runs.
7411 * intl/tst-translit.sh: Likewise.
7412 * intl/tst-codeset.sh: Likewise.
7414 * timezone/zic.c: Update from tzcode2002c.
7415 * timezone/asia: Update from tzdata2002c.
7416 * timezone/backward: Likewise.
7417 * timezone/europe: Likewise.
7418 * timezone/northamerica: Likewise.
7419 * timezone/northamerica: Likewise.
7420 * timezone/northamerica: Likewise.
7421 * timezone/southamerica: Likewise.
7422 * timezone/zone.tab: Likewise.
7424 2002-03-23 Jakub Jelinek <jakub@redhat.com>
7426 * sysdeps/generic/brk.c (__curbrk): Declare.
7427 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7428 * sysdeps/generic/dl-sbrk.c: Likewise.
7429 * sysdeps/unix/arm/dl-brk.S: New file.
7430 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7431 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7432 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7433 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7434 * sysdeps/unix/i386/dl-brk.S: New file.
7435 * sysdeps/unix/mips/dl-brk.S: New file.
7436 * sysdeps/unix/sparc/dl-brk.S: New file.
7437 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7438 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7439 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7440 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7442 2002-04-03 Andreas Schwab <schwab@suse.de>
7444 * Makefile (headers): Add gnu/lib-names.h here instead of
7446 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7448 (install-headers): Add dependency on install-headers-nosubdir.
7449 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7450 instead of install-others.
7451 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7454 2002-04-05 Ulrich Drepper <drepper@redhat.com>
7456 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7457 Reported by Sam Roberts <sroberts@uniserve.com>.
7459 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7461 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7462 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7463 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7464 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7466 2002-04-03 David Mosberger <davidm@hpl.hp.com>
7468 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7469 (RTLD_START): Ditto.
7470 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7471 dependency violation.
7473 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7475 * time/mktime.c (__mktime_internal): Move check for year < 70 below
7476 all variable declarations.
7478 2002-04-04 Andreas Schwab <schwab@suse.de>
7480 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7482 2002-04-04 Andreas Jaeger <aj@suse.de>
7484 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7485 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7487 * sysdeps/x86_64/fpu/s_fabs.c: New file.
7488 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7489 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7491 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7493 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7495 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7496 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7498 * configure.in: Handle all mips entries the same.
7500 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7501 * sysdeps/mips/mips3/*: Likewise.
7502 * sysdeps/mips/p40/bits/endian.h: Likewise.
7504 2002-04-04 Ulrich Drepper <drepper@redhat.com>
7506 * misc/dirname.c (dirname): Ignore trailing slashes at end of
7507 non-null result [PR libc/2600].
7509 * misc/tst-dirname.c: Add more tests.
7511 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7513 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7514 define a code_set_name provide one based on the filename.
7516 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7518 2001-12-28 Andreas Jaeger <aj@suse.de>
7520 * time/mktime.c (__mktime_internal): Check for year < 70
7523 2002-04-03 Andreas Jaeger <aj@suse.de>
7525 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7527 Reported by Andi Kleen <ak@suse.de>.
7529 2002-04-03 Ulrich Drepper <drepper@redhat.com>
7531 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7532 * sysdeps/generic/w_lgammaf.c: Likewise.
7533 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7535 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7536 Adjust for new output format of the backtrace functions.
7538 * misc/syslog.c (vsyslog): Only use cleanup handler if
7539 _LIBC_REENTRANT is defined [PR libc/2924].
7541 * libio/Makefile (tests): Add bug-ungetwc2.
7542 * libio/bug-ungetwc2.c: New file.
7544 * manual/install.texi: Typographical and grammatical cleanup.
7545 Patch by Dennis Grace <dgrace@us.ibm.com>.
7547 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7548 parameter if mtflag. Patch by <jeongyun@innovay.com>.
7550 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
7551 always "&". Adjust callers.
7552 Add "_" prefix to several generated definitions.
7553 Patch by paul@serice.net [PR libc/3158].
7555 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7557 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7558 size of _dl_arm_cap_flags.
7559 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7561 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7564 2002-03-22 H.J. Lu <hjl@gnu.org>
7566 * scripts/firstversions.awk: Check the first version.
7568 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7570 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7571 dependencies must be stable to work correctly.
7572 Reported by martin.lubich@datacon.at.
7574 * libio/bug-ungetwc1.c: New file.
7575 * libio/Makefile (tests): Add bug-ungetwc1.
7577 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7578 if stream was last used for writing.
7580 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7581 number [PR libc/3111].
7583 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7585 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7587 2002-04-02 Jakub Jelinek <jakub@redhat.com>
7589 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7590 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7591 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7592 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7593 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7595 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7597 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7600 2002-03-29 Jakub Jelinek <jakub@redhat.com>
7602 * sysdeps/i386/fpu/s_fabs.S: New file.
7603 * sysdeps/i386/fpu/s_fabsf.S: New file.
7604 * sysdeps/i386/fpu/s_fabsl.S: New file.
7605 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7606 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7607 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7609 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7611 * rt/tst-shm.c (do_test): Add one more test for size of shared
7614 2002-03-29 Wolfram Gloger <wg@malloc.de>
7616 * malloc/malloc.c: Add short description and prototypes for
7617 malloc_get_state, malloc_set_state and posix_memalign, for
7618 consistency and to avoid warnings with -Wstrict-prototypes.
7619 Reported by Andreas Jaeger <aj@suse.de>.
7621 2002-04-02 Ulrich Drepper <drepper@redhat.com>
7623 * po/gl.po: Update from translation team.
7625 2002-03-31 Roland McGrath <roland@frob.com>
7627 * hurd/hurdselect.c (_hurd_select): Fix
7628 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7629 Use a union rather than casts to compare mach_msg_type_t as int.
7631 2002-03-25 Roland McGrath <roland@frob.com>
7633 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7634 check off the end of NAME when it's shorter than 2 chars.
7635 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7637 2002-03-17 Roland McGrath <roland@frob.com>
7639 * sysdeps/mach/hurd/i386/sys/io.h: New file.
7640 * sysdeps/mach/hurd/i386/ioperm.c: New file.
7641 * sysdeps/mach/hurd/i386/Dist: Add them.
7642 * sysdeps/mach/hurd/i386/Versions
7643 (libc: GLIBC_2.2.6): New set, add ioperm.
7644 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7645 (mach_interface_list): Check for mach_i386.defs.
7646 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7647 * sysdeps/mach/configure: Regenerated.
7649 2002-03-22 Ulrich Drepper <drepper@redhat.com>
7651 * po/fr.po: Update from translation team.
7653 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
7655 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7656 getpriority from syscalls list.
7658 2002-03-28 Andreas Jaeger <aj@suse.de>
7660 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7661 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7662 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7663 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7665 2002-03-27 Andreas Jaeger <aj@suse.de>
7667 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7668 sigcontext): Follow further kernel change.
7670 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7673 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7674 Change for struct sigcontext change.
7676 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7677 Follow changes in struct sigcontext.
7679 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7680 sysycall, use wrapper instead.
7682 2002-03-26 Andreas Jaeger <aj@suse.de>
7684 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7685 read and write accesses as detailed as possible.
7686 (__memcpy_by2): Likewise.
7687 (__memcpy_g): Likewise.
7688 (memmove): Likewise.
7690 (__memset_ccn_by4): Likewise.
7691 (__memset_ccn_by2): Likewise.
7692 (__memset_gcn_by4): Likewise.
7693 (__memset_gcn_by2): Likewise.
7695 (__memrchr): Likewise.
7696 (rawmemchr): Likewise.
7697 (__strlen_g): Likewise.
7698 (__strcpy_g): Likewise.
7699 (__mempcpy_by4): Likewise.
7700 (__mempcpy_by2): Likewise.
7701 (__mempcpy_byn): Likewise.
7702 (__stpcpy_g): Likewise.
7703 (__strncpy_by4): Likewise.
7704 (__strncpy_by2): Likewise.
7705 (__strncpy_byn): Likewise.
7706 (__strncpy_gg): Likewise.
7707 (__strcat_c): Likewise.
7708 (__strcat_g): Likewise.
7709 (__strncat_g): Likewise.
7710 (__strcmp_gg): Likewise.
7711 (__strncmp_g): Likewise.
7712 (__strchr_c): Likewise.
7713 (__strchr_g): Likewise.
7714 (__strchrnul_c): Likewise.
7715 (__strchrnul_g): Likewise.
7716 (__strrchr_c): Likewise.
7717 (__strrchr_g): Likewise.
7718 (__strrchr_c): Likewise.
7719 (__strrchr_g): Likewise.
7720 (__strcspn_c1): Likewise.
7721 (__strcspn_cg): Likewise.
7722 (__strcspn_g): Likewise.
7723 (__strcspn_g): Likewise.
7724 (__strspn_c1): Likewise.
7725 (__strspn_cg): Likewise.
7726 (__strspn_g): Likewise.
7727 (__strspn_g): Likewise.
7728 (__strpbrk_cg): Likewise.
7729 (__strpbrk_g): Likewise.
7730 (__strstr_cg): Likewise.
7731 (__strstr_g): Likewise.
7733 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
7734 Michal Ludvig <mludvig@suse.cz>.
7736 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
7737 compatibilty, adjust for kernel changes.
7739 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7740 sigcontext): Adjust for kernel changes.
7742 2002-03-25 Andreas Jaeger <aj@suse.de>
7744 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
7746 Reported by Artur Zaprzala <zybi@talex.com.pl>.
7748 2002-03-24 Andreas Jaeger <aj@suse.de>
7750 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
7752 * stdio-common/tst-fdopen.c (main): Remove unused variable.
7754 * iconv/tst-iconv3.c (main): Use correct printf strings.
7756 2002-03-18 Roland McGrath <roland@frob.com>
7758 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
7759 (CMGROUP_MAX): New macro.
7761 2002-03-23 Roland McGrath <roland@frob.com>
7763 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
7764 * sysdeps/posix/shm_unlink.c: Likewise.
7766 2002-03-22 Roland McGrath <roland@frob.com>
7768 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
7769 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
7770 under --enable-libio.
7771 * sysdeps/mach/hurd/configure: Regenerated.
7773 2002-03-23 Roland McGrath <roland@frob.com>
7775 * sysdeps/mach/hurd/i386/Makefile
7776 (sysdep_routines, shared-only-routines): Don't add framestate,
7777 reverting 2001-10-02 change.
7778 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
7779 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
7780 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7781 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
7782 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
7783 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
7784 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
7785 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
7786 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
7787 Do it here instead, only if [$(unwind-find-fde) = yes].
7789 2002-03-23 Andreas Jaeger <aj@suse.de>
7791 * signal/signal.h: Fix typo. Patch by Steve Kemp
7792 <skx@tardis.ed.ac.uk>.
7794 2002-03-22 Andreas Jaeger <aj@suse.de>
7796 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
7799 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7800 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
7801 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7802 user_fpregs_struct): Rename fwd.
7804 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7805 Follow sigcontext changes.
7807 2002-03-22 Andreas Jaeger <aj@suse.de>
7809 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
7810 changes for NaNs on MIPS.
7811 Patch by Hartvig Ekner <hartvige@mips.com>.
7813 2002-03-21 Ulrich Drepper <drepper@redhat.com>
7815 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
7816 Use realloc if too large.
7817 (addgrbyid): Likewise.
7818 * nscd/hstcache.c (addhstbyname): Likewise.
7819 (addhstbyaddr): Likewise.
7820 (addhstbynamev6): Likewise.
7821 (addhstbyaddrv6): Likewise.
7822 * nscd/pwdcache.c (addpwbyname): Likewise.
7823 (addpwbyuid): Likewise.
7825 2002-03-21 Andreas Jaeger <aj@suse.de>
7827 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7828 _fpstate): Add separate struct for x86-64.
7830 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7831 user_fpregs_struct): Change member names to follow kernel.
7833 2002-03-20 Ulrich Drepper <drepper@redhat.com>
7835 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
7836 Correctly close the UDP connection right away [PR libc/3120].
7838 2002-03-20 Andreas Jaeger <aj@suse.de>
7840 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
7841 user_fpregs_struct): Fix for changed kernel struct.
7842 (struct user_regs_struct): Likewise.
7843 (struct user): Likewise.
7844 Add 32-bit x86 compatibility.
7846 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
7848 2002-03-19 Andreas Jaeger <aj@suse.de>
7850 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
7852 2002-03-18 Andreas Jaeger <aj@suse.de>
7854 * iconvdata/Makefile: Only run tests when shared libs are
7857 2002-03-17 Andreas Jaeger <aj@suse.de>
7859 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
7861 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
7863 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
7866 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
7867 (CAUSE_SHIFT): New macro.
7868 Patch by Hartvig Ekner <hartvige@mips.com>.
7870 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
7871 * sysdeps/generic/unwind-pe.h: Likewise.
7873 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
7876 * libio/stdio.c (AL2): Define variant when visibility attribute is
7879 * include/libc-symbols.h (_INTVARDEF): Define variant when
7880 visibility attribute is not supported.
7882 2002-03-16 Ulrich Drepper <drepper@redhat.com>
7884 * po/fr.po: Update from translation team.
7886 2002-02-25 Bruno Haible <bruno@clisp.org>
7888 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
7890 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7892 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
7893 buffers if _IO_file_attach failed.
7895 * libio/fileops.c (_IO_file_open): Close file descriptor if
7896 _IO_SEEKOFF call failed.
7898 2002-03-15 H.J. Lu <hjl@gnu.org>
7899 Ulrich Drepper <drepper@redhat.com>
7901 * configure.in: Check for availability of
7902 init_array/fini_array/preinit_array handling in binutils.
7903 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
7904 * config.make.in (have-initfini-array): New variable.
7906 2002-03-15 Ulrich Drepper <drepper@redhat.com>
7908 * stdio-common/tst-printf.c (main): Comment out one test which
7909 checked the compiler's ability to fold floating-point constants
7910 but not really printf.
7911 (rfg3): Make s const.
7912 * stdio-common/tst-printf.sh: Adjust for removed test.
7914 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
7915 internal function. Adjust for internal_function calling convention.
7916 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
7917 as internal_function.
7919 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
7922 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
7923 declaration and definition.
7924 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
7926 * nss/getXXent_r.c: Likewise.
7927 * nss/nsswitch.h (db_lookup_function): Add internal_function to
7930 * include/time.h: Declare __localtime_r as hidden.
7932 * include/aliases.h: Declare __getaliasent_r as hidden.
7933 * include/grp.h: Declare __getgrent_r as hidden.
7934 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
7935 __getservent_r, and __getprotoent_r as hidden.
7936 * include/pwd.h: Declare __getpwent_r as hidden.
7937 * include/shadow.h: Declare __getspent_r as hidden.
7938 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
7940 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
7941 and __gconv_transliterate as hidden.
7942 Add internal_function to __gconv_get_path declaration.
7943 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
7944 definition. Add attribute_hidden to __gconv_read_conf definition.
7946 2002-03-14 Ulrich Drepper <drepper@redhat.com>
7948 * elf/rtld.c: Declare _environ as hidden.
7949 * sysdeps/generic/dl-environ.c: Likewise.
7950 * sysdeps/generic/dl-sysdep.c: Likewise.
7952 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
7953 _dl_mcount_internal as hidden.
7955 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
7956 * sysdeps/generic/dl-brk.c: New file.
7957 * sysdeps/generic/dl-sbrk.c: New file.
7958 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
7959 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
7961 * elf/dl-minimal.c (malloc): Declare _end as hidden.
7962 (__errno_location): New function. Declare errno as hidden.
7963 * elf/rtld.c (_dl_argc): Define as hidden.
7964 (_dl_skip_args): Define as hidden.
7965 (_begin, _end): Declare as hidden.
7966 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
7967 * sysdeps/generic/entry.h (_start): Declare as hidden.
7968 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
7969 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
7970 _dl_runtime_resolve and _dl_runtime_profile as hidden.
7971 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
7973 2002-03-14 Roland McGrath <roland@frob.com>
7975 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
7977 * Makeconfig (%.v.i, %.v): New implicit rules.
7978 (preprocess-versions): Variable removed.
7979 ($(common-objpfx)shlib-versions.v.i): New target giving just the
7980 shlib-versions input files as dependencies.
7981 ($(common-objpfx)soversions.i): Depend on that instead of the input
7982 files. Use it as input instead of using a pipeline.
7983 (postclean-generated): Append soversions.i, shlib-versions.v, and
7984 shlib-versions.v.i here.
7985 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
7986 the Versions.def input files as dependencies.
7987 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
7988 ($(common-objpfx)Versions.all): Depend on that instead of the input
7989 files. Use it as input instead of using a pipeline.
7990 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
7991 (postclean-generated): Append those .v and .v.i files here.
7993 2002-03-14 Jakub Jelinek <jakub@redhat.com>
7995 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
7996 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
7999 2002-03-14 Jakub Jelinek <jakub@redhat.com>
8001 * sysdeps/generic/mp_clz_tab.c: New file.
8002 * sysdeps/i386/mp_clz_tab.c: New file.
8003 * sysdeps/hppa/mp_clz_tab.c: New file.
8004 * sysdeps/powerpc/mp_clz_tab.c: New file.
8005 * stdlib/Makefile (aux): Revert last patch.
8006 * math/Makefile (gmp-objs): Likewise.
8008 2002-03-13 Paul Eggert <eggert@twinsun.com>
8010 * time/strftime.c: Comment fixes for references to obsolescent
8011 standards, In most cases the simplest fix is to remove the
8012 confusing comments. Cross-referencing all the standards properly
8013 is a bit of a pain, and it should be enough to put that info in
8014 the documentation as I did in my recent time.texi patch.
8016 2002-03-13 Paul Eggert <eggert@twinsun.com>
8018 * manual/time.texi (Formatting Calendar Time):
8019 ISO C99 also specifies the E and O modifiers.
8020 %P is a GNU extension, and is not in ISO C99.
8021 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8022 %T is also in ISO C99.
8023 The RFC 822 example is not valid in arbitrary locales.
8024 Reword the POSIX.2 wording slightly, to make it a bit clearer
8025 that POSIX.2 formats are also supported by later POSIX versions.
8026 If a format was introduced in ISO C99 it is also required by
8029 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8031 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8032 _sys_nerr_internal with INTVARDEF2.
8033 * include/libc-symbols.h (INTVARDEF2): New macro.
8034 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8035 (_sys_nerr_internal): Library.
8037 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8038 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8040 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8042 2002-03-13 Wolfram Gloger <wg@malloc.de>
8044 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8046 2002-03-02 Andreas Schwab <schwab@suse.de>
8048 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8049 'h' flag and positional arg.
8050 * stdio-common/tst-printf.c (rfg3): New function to test
8051 positional arguments.
8052 (main): Fix some warnings.
8054 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8056 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8057 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8059 2002-03-13 Ulrich Drepper <drepper@redhat.com>
8061 * grp/initgroups.c (__nss_group_data): Declare as hidden.
8063 * include/locale.h (_nl_C_locobj): Declare as hidden.
8065 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8066 * time/strptime.c (_nl_C_LC_TIME): Likewise.
8068 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8070 * include/sys/gmon.h: Declare _gmonparam as hidden.
8072 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8073 (__ctype32_wctrans): Likewise.
8074 (__ctype32_width): Likewise.
8076 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8079 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8081 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
8082 hidden. Change all users of these variables.
8084 * posix/regex_internal.h (__re_error_msgid): Renamed from
8085 re_error_msgid. Declare as hidden.
8086 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
8089 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8090 (__printf_function_table): Likewise.
8091 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8093 (__printf_function_table): Likewise.
8095 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8096 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8098 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8099 * nss/nsswitch.c: Declare _nss_*_database as hidden.
8101 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8102 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8104 2002-03-12 Ulrich Drepper <drepper@redhat.com>
8106 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8107 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8108 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8109 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8110 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8111 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8112 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8113 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8114 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8115 _nl_C_LC_CTYPE_width: Declare as hidden.
8116 * include/locale.h: Declare _nl_locale_file_list.
8117 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8118 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8119 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8120 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8121 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8122 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8123 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8124 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8125 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8126 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8127 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8128 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8129 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8130 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8131 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8132 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8133 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8134 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8135 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8136 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8137 _nl_C_LC_CTYPE_width, and as hidden.
8138 * locale/findlocale.c: Declare _nl_C as hidden.
8139 * locale/newlocale.c: Likewise.
8140 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
8141 _nl_locale_file_list.
8142 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8143 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8144 Define _nl_C_locobj as hidden.
8146 * malloc/mtrace.c (_mtrace_file): Define as hidden.
8147 (_mtrace_line): Likewise.
8149 * include/time.h: Declare __mon_yday as hidden.
8150 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8152 * libio/libioP.h: Declare __libio_codecvt as hidden.
8153 * libio/fileops.c: Declare __libio_translit as hidden.
8154 * libio/iofwide.c: Define __libio_translit as hidden.
8156 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8157 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8158 * login/getutline_r.c: Likewise.
8159 * login/utmpname.c: Likewise.
8161 * login/utmp-private.h: Declare __libc_utmp_file_functions,
8162 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8163 __libc_utmp_file_name as hidden.
8165 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8166 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8167 * locale/freelocale.c: Likewise.
8168 * locale/lc-time.c: Likewise.
8170 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8171 (__libc_ptyname2): Likewise.
8172 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8174 (__libc_ptyname2): Likewise.
8176 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8177 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8178 * sysdeps/generic/init-first.c: Likewise.
8179 * sysdeps/i386/init-first.c: Likewise.
8180 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8181 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8182 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8183 * sysdeps/sh/init-first.c: Likewise.
8184 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8185 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8187 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8188 (_itowa_upper_digits): Likewise.
8190 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8191 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8194 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8195 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8196 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8197 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8199 * gmon/gmon.c (__bb_head): Define as hidden.
8200 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8202 * argp/argp-parse.c (_argp_hang): Define as static.
8204 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8205 handling in latest compilers.
8207 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8209 * libio/fileops.c (_IO_file_jumps): Likewise.
8210 * libio/stdfiles.c (_IO_list_all): Likewise.
8211 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8213 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8215 * include/malloc.h: Add __libc_malloc_initialized declaration
8216 here. Mark variable hidden.
8217 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8219 * elf/dl-open.c (__libc_argc): Declare as hidden.
8220 (__libc_argv): Likewise.
8221 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8222 (__libc_argv): Likewise.
8223 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8224 __libc_argv as hidden.
8225 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8226 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8227 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8228 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8230 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8231 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8232 * stdlib/erand48.c: Likewise.
8233 * stdlib/jrand48.c: Likewise.
8234 * stdlib/lcong48.c: Likewise.
8235 * stdlib/lrand48.c: Likewise.
8236 * stdlib/mrand48.c: Likewise.
8237 * stdlib/nrand48.c: Likewise.
8238 * stdlib/seed48.c: Likewise.
8239 * stdlib/srand48.c: Likewise.
8241 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8242 (_itoa_lower_digits_internal): New declaration.
8243 (_itoa_upper_digits_internal): New declaration.
8244 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8245 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8246 (_itoa_upper_digits_internal): New declaration.
8247 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8249 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8250 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8252 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8253 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8255 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8256 (_itowa_lower_digits): Likewise.
8257 (_itowa_upper_digits): Likewise.
8258 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8259 (_itowa_upper_digits): Likewise.
8261 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8262 not already defined.
8263 (GERMANIC_PLURAL): Declare as hidden.
8265 * posix/getopt.c (__getopt_initialized): Declare as hidden.
8266 (attribute_hidden): Define as empty macro if not already defined.
8268 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8269 (__gconv_max_path_elem_len): Likewise.
8270 (__gconv_path_envvar): Likewise.
8272 * math/Makefile (gmp-objs): Remove mp_clz_tab.
8273 * stdlib/Makefile (aux): Remove mp_clz_tab.
8274 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
8276 * stdlib/exit.h (__exit_funcs): Declare as hidden.
8278 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8280 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8281 _nl_category_names, _nl_category_name_sizes, _nl_current,
8282 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8284 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8285 (_nl_current_default_domain): Likewise
8286 (_nl_state_lock): Likewise.
8287 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8288 (_nl_current_default_domain): Likewise
8289 (_nl_state_lock): Likewise.
8290 * intl/bindtextdom.c (_nl_state_lock): Likewise.
8292 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8293 (_fpioconst_pow10): Likewise.
8295 * include/time.h (_tmbuf): Add attribute_hidden.
8297 * time/tzset.c (tzstring_list): Define as static.
8299 * include/time.h: Add attribute_hidden to __tzname_cur_max and
8300 __use_tzfile declaration.
8302 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8303 and __wcsmbs_last_locale declaration.
8305 2002-02-25 Paul Eggert <eggert@twinsun.com>
8307 * timezone/Makefile (tzbases): Move systemv from here...
8308 (tzlinks): to here, since the entries in systemv were all changed
8309 from Zone to Link lines in tz-2001a. Bug reported (and patch
8310 tested) by Peter Breitenlohner.
8312 2002-03-07 Jakub Jelinek <jakub@redhat.com>
8314 * time/tst-posixtz.c (tests): Add new tests.
8315 (main): Test whether tzset() sets daylight properly.
8317 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8319 * time/tzset.c (tz_compute): Move __daylight, __tzname and
8320 __tzname_cur_max setting...
8321 (tzset_internal): ...here.
8323 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8325 * time/tzset.c (compute_change): Don't return any value.
8326 (tz_compute): Likewise. Don't handle southern hemisphere here.
8327 (__tz_convert): But here.
8329 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8331 * manual/examples/mkfsock.c: Include <string.h> as well.
8332 Patch by Alain De Carolis <alaind@wseurope.com>.
8334 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
8336 * posix/regexec.c (re_match): Fix incorrect register sizes.
8337 (re_search): Likewise.
8339 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8341 * posix/regcomp.c (regfree): Remove a disused condition.
8342 * posix/regex_internal.c (re_acquire_state): Likewise.
8343 (re_acquire_state_context): Likewise.
8344 (register_state): Remove a redundant malloc invocation.
8345 * posix/regex_internal.h: (re_state_table_entry): Simplify
8348 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
8350 * posix/regcomp.c (regcomp): Add __builtin_expect to error
8351 handling conditions.
8352 (regerror): Likewise.
8353 (regfree): Likewise.
8354 (re_compile_internal): Likewise.
8355 (init_dfa): Likewise.
8356 (init_word_char): Likewise.
8357 (create_initial_state): Likewise.
8358 (analyze): Likewise.
8359 (analyze_tree): Likewise.
8360 (duplicate_node): Likewise.
8361 (calc_eclosure): Likewise.
8362 (calc_eclosure_iter): Likewise.
8364 (parse_reg_exp): Likewise.
8365 (parse_branch): Likewise.
8366 (parse_expression): Likewise.
8367 (parse_subexp): Likewise.
8368 (parse_dup_op): Likewise.
8369 (parse_bracket_exp): Likewise.
8370 (build_equiv_class): Likewise.
8371 (build_charclass): Likewise.
8372 (build_word_op): Likewise.
8373 (fetch_number): Likewise.
8374 (create_tree): Likewise.
8375 (duplicate_tree): Likewise.
8376 * posix/regex.c (BE): New macro.
8377 * posix/regexec.c (re_match): Add __builtin_expect to error
8378 handling conditions.
8379 (re_match_2): Likewise.
8380 (re_search): Likewise.
8381 (re_search_internal): Likewise.
8382 (check_matching): Likewise.
8383 (proceed_next_node): Likewise.
8384 (set_regs): Likewise.
8385 (sift_states_backward): Likewise.
8386 (add_epsilon_backreference): Likewise.
8387 (transit_state): Likewise.
8388 (transit_state_sb): Likewise.
8389 (transit_state_mb): Likewise.
8390 (transit_state_bkref): Likewise.
8391 (transit_state_bkref_loop): Likewise.
8392 (build_trtable): Likewise.
8393 (group_nodes_into_DFAstates): Likewise.
8394 (match_ctx_init): Likewise.
8395 (match_ctx_add_entry): Likewise.
8396 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8397 to error handling conditions.
8398 (re_string_construct_toupper): Likewise.
8399 (build_wcs_buffer): Likewise.
8400 (build_wcs_upper_buffer): Likewise.
8401 (build_upper_buffer): Likewise.
8402 (re_string_translate_buffer): Likewise.
8403 (re_node_set_alloc): Likewise.
8404 (re_node_set_init_1): Likewise.
8405 (re_node_set_init_2): Likewise.
8406 (re_node_set_init_copy): Likewise.
8407 (re_node_set_intersect): Likewise.
8408 (re_node_set_init_union): Likewise.
8409 (re_node_set_merge): Likewise.
8410 (re_node_set_insert): Likewise.
8411 (re_dfa_add_node): Likewise.
8412 (re_acquire_state): Likewise.
8413 (re_acquire_state_context): Likewise.
8414 (create_new_state_common): Likewise.
8415 (register_state): Likewise.
8416 (create_ci_new_state): Likewise.
8417 (create_cd_new_state): Likewise.
8418 (re_string_context_at): Remove redundant condition.
8420 2002-01-16 Roger Sayle <roger@eyesopen.com>
8422 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8424 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8426 2002-03-11 Jakub Jelinek <jakub@redhat.com>
8428 * sysdeps/i386/elf/configure.in: Fix comment.
8430 * sysdeps/sparc/sparc64/configure.in: New file.
8431 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8432 if .dynamic comes before .got.
8433 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8435 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8436 HP_TIMING_ACCUM): Fix typos.
8438 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8440 * string/strfry.c: Add some more randomness to the seed.
8441 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8443 * po/es.po: Update from translation team.
8444 * po/fr.po: Likewise.
8446 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8448 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8449 when determining type of format.
8450 Patch by James Antill <james@anqd.org> [PR libc/2787].
8452 2002-03-04 Jakub Jelinek <jakub@redhat.com>
8454 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8456 2002-03-11 Roland McGrath <roland@frob.com>
8458 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8460 * Versions.def (libc): Add GLIBC_2.2.6.
8461 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8462 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8463 __errno_location instead of __hurd_errno_location, and don't inline it.
8464 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8465 * hurd/errno.c: New file.
8466 * hurd/Makefile (routines): Add errno.
8468 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8470 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8471 ridiculously large widths and precisions [PR libc/3026].
8473 2002-03-11 Andreas Jaeger <aj@suse.de>
8475 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8477 Patch by Susanne Oberhauser <froh@SuSE.de>.
8479 2002-03-11 Ulrich Drepper <drepper@redhat.com>
8481 * inet/rexec.c (ahostbuf): Define as static.
8483 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8484 (__ctype32_wctrans): Likewise.
8485 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8486 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8487 (__ctype32_wctrans): Likewise.
8488 (__ctype32_width): Likewise.
8490 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8491 They were never exported anyway.
8493 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8494 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
8496 * include/sys/gmon.h: Declare _gmonparam.
8498 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8499 symbols for getdents64. They were never exported.
8501 2002-03-09 Roland McGrath <roland@frob.com>
8503 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8504 Reported by Jon Arney <jarney1@cox.net>.
8506 2002-02-23 Roland McGrath <roland@frob.com>
8508 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8510 (__hurd_errno_location): Function removed.
8512 2002-03-06 Andreas Jaeger <aj@suse.de>
8514 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8517 2002-03-04 Andreas Jaeger <aj@suse.de>
8519 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8521 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8524 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8526 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8528 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8530 * sysdeps/x86_64/bits/setjmp.h: New file.
8532 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8534 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8536 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8538 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8539 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8541 2002-02-28 Bo Thorsen <bo@suse.de>
8543 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8546 2002-03-03 Andreas Jaeger <aj@suse.de>
8548 * sysdeps/x86_64/bits/wordsize.h: New file.
8550 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8551 * elf/tst-tlsmod1.c: Likewise.
8553 * posix/regcomp.c: Get regex.h from include dir for internal
8556 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8557 to libc-internal.h and include it.
8558 * include/libc-internal.h: Add __init_misc.
8560 * misc/init-misc.c: Include libc-internal.h for prototypes.
8562 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8564 * misc/error.c [_LIBC]: Include libioP.h for prototype of
8567 2002-03-03 Ulrich Drepper <drepper@redhat.com>
8569 * posix/regcomp.c: Compatibility changes to allow using the code
8572 2002-02-28 Hartvig Ekner <hartvige@mips.com>
8574 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8577 2002-03-02 Ulrich Drepper <drepper@redhat.com>
8579 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8580 of .str elements in the returned data structure.
8582 * elf/elf.h: Add Alpha TLS bits.
8584 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8586 * sysdeps/unix/sysv/linux/nice.c: New file.
8588 2002-03-01 Ulrich Drepper <drepper@redhat.com>
8590 * elf/Makefile (dl-routines): Add dl-origin.
8591 (elide-routines.os): Add dl-origin.
8592 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8593 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8595 * include/libc-symbols.c: Define attribute_hidden depending on
8596 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
8598 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8599 * elf/dl-load.c: Likewise.
8600 * elf/rtld.c: Likewise.
8601 * include/unistd.h: Declare __libc_enable_secure_internal.
8602 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8603 Use INTUSE with __libc_enable_secure.
8604 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8606 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8607 * elf/dl-error.c: Likewise,
8608 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8610 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8611 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8612 function definition. Use INTDEF with _dl_get_origin.
8613 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8615 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8616 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
8618 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8619 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8620 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8622 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8623 * elf/dl-deps.c: Likewise.
8624 * elf/dl-error.c: Likewise.
8625 * elf/dl-fini.c: Likewise.
8626 * elf/dl-init.c: Likewise.
8627 * elf/dl-load.c: Likewise.
8628 * elf/dl-lookup.c: Likewise.
8629 * elf/dl-reloc.c: Likewise.
8630 * elf/dl-version.c: Likewise.
8631 * elf/do-lookup.h: Likewise.
8632 * sysdeps/arm/dl-machine.h: Likewise.
8633 * sysdeps/cris/dl-machine.h: Likewise.
8634 * sysdeps/hppa/dl-machine.h: Likewise.
8635 * sysdeps/i386/dl-machine.h: Likewise.
8636 * sysdeps/m68k/dl-machine.h: Likewise.
8637 * sysdeps/powerpc/dl-machine.h: Likewise.
8638 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8639 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8640 * sysdeps/sh/dl-machine.h: Likewise.
8641 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8642 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8643 * sysdeps/x86_64/dl-machine.h: Likewise.
8644 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
8645 _dl_argv[0]. Use INTUSE with _dl_argv.
8646 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8647 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8649 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8651 * elf/rtld.c (_rtld_global): Remove .protected.
8652 (_rtld_local): Strong alias to _rtld_global.
8653 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8655 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8656 _rtld_local instead of _rtld_global.
8657 (_rtld_local): Add hidden extern, possibly in .sdata section.
8658 * configure.in: Add tests for visibility attribute and .sdata.
8659 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8660 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8661 * sysdeps/arm/dl-machine.h: Likewise.
8662 * sysdeps/generic/ldsodefs.h: Likewise.
8663 * sysdeps/hppa/dl-machine.h: Likewise.
8664 * sysdeps/cris/dl-machine.h: Likewise.
8665 * sysdeps/i386/dl-machine.h: Likewise.
8666 * sysdeps/ia64/dl-machine.h: Likewise.
8667 * sysdeps/m68k/dl-machine.h: Likewise.
8668 * sysdeps/mips/mips64/dl-machine.h: Likewise.
8669 * sysdeps/mips/dl-machine.h: Likewise.
8670 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8671 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8672 * sysdeps/sh/dl-machine.h: Likewise.
8673 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8674 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8675 * sysdeps/x86_64/dl-machine.h: Likewise.
8677 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8679 * login/login.c (login): Always initialize ut_line field
8682 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8684 * sysdeps/i386/Makefile (sysdep_routines): Add
8686 (shared-only-routines): Likewise.
8687 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8688 (shared-only-routines): Likewise.
8689 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8690 (shared-only-routines): Likewise.
8691 * sysdeps/wordsize-32/divdi3.c: New file.
8693 2002-02-28 Ulrich Drepper <drepper@redhat.com>
8695 * locale/iso-4217.def: Remove obsolete currencies for countries
8698 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
8700 * posix/regcomp.c (regcomp): Remove a redundant condition.
8701 (init_word_char): Add a check on malloc failure.
8702 (create_initial_state): Likewise.
8703 (duplicate_node): Likewise.
8704 (calc_eclosure): Likewise.
8705 (calc_eclosure_iter): Likewise.
8706 (parse_expression): Likewise.
8707 (parse_bracket_exp): Remove unnecessary malloc invocations.
8708 (build_equiv_class): Likewise.
8709 (build_charclass): Likewise.
8710 * posix/regex_internal.c (re_node_set_intersect): Add a check
8712 (re_node_set_add_intersect): Likewise.
8713 (re_node_set_merge): Likewise.
8714 (re_acquire_state): Likewise.
8715 (re_acquire_state_context): Likewise.
8716 (create_newstate_common): Likewise.
8717 (register_state): Likewise.
8718 (create_ci_newstate): Likewise.
8719 (create_cd_newstate): Likewise.
8720 * posix/regex_internal.h: Fix prototypes of re_acquire_state
8721 and re_acquire_state_context.
8722 * posix/regexec.c (regexec): Suit it to the error handling of
8724 (re_match): Likewise.
8725 (re_search): Likewise.
8726 (re_search_internal): Add a check on malloc failure.
8727 (acquire_init_state_context): Likewise.
8728 (check_matching): Likewise.
8729 (proceed_next_node): Likewise.
8730 (set_regs): Likewise.
8731 (sift_states_backward): Likewise.
8732 (sift_states_iter_bkref): Likewise.
8733 (add_epsilon_backreference): Likewise.
8734 (transit_state): Likewise.
8735 (transit_state_sb): Likewise.
8736 (transit_state_mb): Likewise.
8737 (transit_state_bkref_loop): Likewise.
8738 (build_trtable): Likewise.
8739 (group_nodes_into_DFAstates): Likewise.
8740 (match_ctx_init): Likewise.
8741 (match_ctx_add_entry): Likewise.
8743 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8745 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
8746 l_libname if profiling is enabled [PR libc/2916].
8748 * sysdeps/ia64/dl-tls.h: New file.
8750 2002-02-27 Jakub Jelinek <jakub@redhat.com>
8752 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
8753 Work around an Alpha gas bug.
8755 2002-02-27 Ulrich Drepper <drepper@redhat.com>
8757 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
8758 uses read to load the catalog.
8759 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
8761 2002-02-26 Ulrich Drepper <drepper@redhat.com>
8763 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
8764 regex_internal.c, and regex_internal.h.
8765 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
8766 * posix/regex.c: Complete rewrite.
8767 * posix/regexec.c: New file.
8768 * posix/regcomp.c: New file.
8769 * posix/regex_internal.c: New file.
8770 * posix/regex_internal.h: New file.
8771 * posix/regex.h (RE_ICASE): New macro.
8772 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
8774 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
8775 ungetwc. It's a macro.
8776 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
8778 Reported by Jason Merrill <jason@redhat.com>.
8780 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8782 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
8783 position to fp->_offset if it is set.
8784 * stdio-common/Makefile (tests): Add tst-fdopen.
8785 * stdio-common/tst-fdopen.c: New test.
8787 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8789 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
8790 * stdio-common/tst-ungetc.c (main): Add another test.
8792 2002-02-25 Ulrich Drepper <drepper@redhat.com>
8794 * assert/assert-perr.c: Use INTUSE to reference functions and variables
8795 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
8796 aliases. Add prototypes for the new aliases.
8797 * assert/assert.c: Likewise.
8798 * include/libc-symbols.h: Likewise.
8799 * include/stdio.h: Likewise.
8800 * include/netinet/in.h: Likewise.
8801 * include/rpc/auth.h: Likewise.
8802 * include/rpc/auth_unix.h: Likewise.
8803 * include/rpc/key_prot.h: Likewise.
8804 * include/rpc/pmap_prot.h: Likewise.
8805 * include/rpc/pmap_rmt.h: Likewise.
8806 * include/rpc/rpc_msg.h: Likewise.
8807 * include/rpc/xdr.h: Likewise.
8808 * inet/gethstbyad_r.c: Likewise.
8809 * inet/gethstbynm2_r.c: Likewise.
8810 * inet/gethstbynm_r.c: Likewise.
8811 * inet/gethstent_r.c: Likewise.
8812 * inet/in6_addr.c: Likewise.
8813 * libio/__fpurge.c: Likewise.
8814 * libio/filedoalloc.c: Likewise.
8815 * libio/fileops.c: Likewise.
8816 * libio/ftello.c: Likewise.
8817 * libio/ftello64.c: Likewise.
8818 * libio/genops.c: Likewise.
8819 * libio/iofclose.c: Likewise.
8820 * libio/iofdopen.c: Likewise.
8821 * libio/iofflush.c: Likewise.
8822 * libio/iofflush_u.c: Likewise.
8823 * libio/iofgetpos.c: Likewise.
8824 * libio/iofgetpos64.c: Likewise.
8825 * libio/iofgets.c: Likewise.
8826 * libio/iofgets_u.c: Likewise.
8827 * libio/iofopen.c: Likewise.
8828 * libio/iofopncook.c: Likewise.
8829 * libio/iofputs.c: Likewise.
8830 * libio/iofread.c: Likewise.
8831 * libio/iofread_u.c: Likewise.
8832 * libio/iofsetpos.c: Likewise.
8833 * libio/iofsetpos64.c: Likewise.
8834 * libio/ioftell.c: Likewise.
8835 * libio/iofwrite.c: Likewise.
8836 * libio/iogetline.c: Likewise.
8837 * libio/iogets.c: Likewise.
8838 * libio/iogetwline.c: Likewise.
8839 * libio/iolibio.h: Likewise.
8840 * libio/iopadn.c: Likewise.
8841 * libio/iopopen.c: Likewise.
8842 * libio/ioseekoff.c: Likewise.
8843 * libio/ioseekpos.c: Likewise.
8844 * libio/iosetbuffer.c: Likewise.
8845 * libio/iosetvbuf.c: Likewise.
8846 * libio/ioungetc.c: Likewise.
8847 * libio/ioungetwc.c: Likewise.
8848 * libio/iovdprintf.c: Likewise.
8849 * libio/iovsprintf.c: Likewise.
8850 * libio/iovsscanf.c: Likewise.
8851 * libio/libioP.h: Likewise.
8852 * libio/memstream.c: Likewise.
8853 * libio/obprintf.c: Likewise.
8854 * libio/oldfileops.c: Likewise.
8855 * libio/oldiofclose.c: Likewise.
8856 * libio/oldiofdopen.c: Likewise.
8857 * libio/oldiofgetpos.c: Likewise.
8858 * libio/oldiofgetpos64.c: Likewise.
8859 * libio/oldiofopen.c: Likewise.
8860 * libio/oldiofsetpos.c: Likewise.
8861 * libio/oldiofsetpos64.c: Likewise.
8862 * libio/oldiopopen.c: Likewise.
8863 * libio/oldstdfiles.c: Likewise.
8864 * libio/putc.c: Likewise.
8865 * libio/setbuf.c: Likewise.
8866 * libio/setlinebuf.c: Likewise.
8867 * libio/stdfiles.c: Likewise.
8868 * libio/stdio.c: Likewise.
8869 * libio/strops.c: Likewise.
8870 * libio/vasprintf.c: Likewise.
8871 * libio/vscanf.c: Likewise.
8872 * libio/vsnprintf.c: Likewise.
8873 * libio/vswprintf.c: Likewise.
8874 * libio/wfiledoalloc.c: Likewise.
8875 * libio/wfileops.c: Likewise.
8876 * libio/wgenops.c: Likewise.
8877 * libio/wstrops.c: Likewise.
8878 * malloc/mtrace.c: Likewise.
8879 * misc/error.c: Likewise.
8880 * misc/syslog.c: Likewise.
8881 * nss/getXXbyYY_r.c: Likewise.
8882 * nss/getXXent_r.c: Likewise.
8883 * nss/hosts-lookup.c: Likewise.
8884 * stdio-common/getw.c
8885 * stdio-common/printf-prs.c: Likewise.
8886 * stdio-common/printf_fp.c: Likewise.
8887 * stdio-common/printf_size.c: Likewise.
8888 * stdio-common/putw.c: Likewise.
8889 * stdio-common/scanf.c: Likewise.
8890 * stdio-common/sprintf.c: Likewise.
8891 * stdio-common/tmpfile64.c: Likewise.
8892 * stdio-common/vfprintf.c: Likewise.
8893 * stdio-common/vfscanf.c: Likewise.
8894 * stdlib/strfmon.c: Likewise.
8895 * sunrpc/auth_des.c: Likewise.
8896 * sunrpc/auth_none.c: Likewise.
8897 * sunrpc/auth_unix.c: Likewise.
8898 * sunrpc/authdes_prot.c: Likewise.
8899 * sunrpc/authuxprot.c: Likewise.
8900 * sunrpc/clnt_perr.c: Likewise.
8901 * sunrpc/clnt_raw.c: Likewise.
8902 * sunrpc/clnt_tcp.c: Likewise.
8903 * sunrpc/clnt_udp.c: Likewise.
8904 * sunrpc/clnt_unix.c: Likewise.
8905 * sunrpc/key_call.c: Likewise.
8906 * sunrpc/key_prot.c: Likewise.
8907 * sunrpc/openchild.c: Likewise.
8908 * sunrpc/pm_getmaps.c: Likewise.
8909 * sunrpc/pm_getport.c: Likewise.
8910 * sunrpc/pmap_clnt.c: Likewise.
8911 * sunrpc/pmap_prot.c: Likewise.
8912 * sunrpc/pmap_prot2.c: Likewise.
8913 * sunrpc/pmap_rmt.c: Likewise.
8914 * sunrpc/rpc_cmsg.c: Likewise.
8915 * sunrpc/rpc_prot.c: Likewise.
8916 * sunrpc/svc_authux.c: Likewise.
8917 * sunrpc/svc_raw.c: Likewise.
8918 * sunrpc/svc_simple.c: Likewise.
8919 * sunrpc/svc_tcp.c: Likewise.
8920 * sunrpc/svc_udp.c: Likewise.
8921 * sunrpc/svc_unix.c: Likewise.
8922 * sunrpc/xdr.c: Likewise.
8923 * sunrpc/xdr_array.c: Likewise.
8924 * sunrpc/xdr_mem.c: Likewise.
8925 * sunrpc/xdr_rec.c: Likewise.
8926 * sunrpc/xdr_ref.c: Likewise.
8927 * sunrpc/xdr_stdio.c: Likewise.
8928 * sysdeps/generic/_strerror.c: Likewise.
8929 * sysdeps/generic/printf_fphex.c: Likewise.
8930 * sysdeps/generic/tmpfile.c: Likewise.
8931 * sysdeps/gnu/errlist.awk: Likewise.
8932 * sysdeps/gnu/errlist.c: Likewise.
8934 * libio/Makefile (routines): Remove iosprint.
8935 * libio/iosprintf.c: Removed
8938 2002-02-24 Ulrich Drepper <drepper@redhat.com>
8940 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
8941 non_dynamic_init and exported now.
8942 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
8943 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
8945 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8946 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8947 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8949 2002-02-23 Ulrich Drepper <drepper@redhat.com>
8951 * elf/dl-close.c (free_slotinfo): Check for end of list and return
8954 * locale/iso-639.def: Add language codes for Walloon.
8956 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
8957 total number of relocations performed.
8959 * elf/sprof.c (load_profdata): If do_test provide information as
8960 to why loading failed.
8961 * elf/dl-profile.c (_dl_start_profile): Initialize all of
8964 * csu/set-init.c: Moved to...
8965 * sysdeps/mach/hurd/set-init.c: ...here. New file.
8966 * csu/Makefile: Don't compile set-init.
8967 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
8968 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
8970 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8971 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8972 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
8974 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
8977 2002-02-22 Ulrich Drepper <drepper@redhat.com>
8979 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
8980 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
8981 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
8982 (_dl_deallocate_tls): New function.
8983 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
8986 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8988 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
8989 * stdio-common/tst-fseek.c (main): Add test for this.
8991 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
8993 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
8995 2002-02-19 Jakub Jelinek <jakub@redhat.com>
8997 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
8998 pointer before dereferencing.
9000 2002-02-18 Roland McGrath <roland@frob.com>
9002 * sysdeps/mach/hurd/times.c: Fix typo in last change.
9004 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9005 Use task_policy in place of task_priority.
9007 * sysdeps/generic/bits/mman.h
9008 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9009 * sysdeps/mach/msync.c: New file.
9011 * sysdeps/mach/powerpc/syscall.S: New file.
9013 * mach/msg.c [MACH_MSG_OVERWRITE]
9014 (__mach_msg_trap, __mach_msg_overwrite): New functions.
9015 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9017 * sysdeps/mach/configure.in: Check for clock.defs to put into
9018 mach_interface_list.
9019 * sysdeps/mach/configure: Regenerated.
9021 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9022 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9023 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9024 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9025 (mach-shortcuts): Add device_read_overwrite_request,
9026 device_read_overwrite, vm_read_overwrite, thread_switch.
9028 * configure.in (base_machine): Set to $machine by default.
9029 * configure: Regenerated.
9031 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9032 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9033 * sysdeps/mach/configure: Regenerated.
9034 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9036 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9038 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9040 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9041 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9043 2002-02-17 Roland McGrath <roland@frob.com>
9045 * sysdeps/mach/hurd/times.c
9046 [NO_CREATION_TIME] (startup_time): New static variable.
9047 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9048 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9049 creation_time from task_basic_info.
9050 (__times): Use __gettimeofday instead of __host_get_time.
9052 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9053 Use untyped Mach IPC message format.
9055 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9057 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9058 _S_catch_exception_raise_state_identity,
9059 _hurdsig_fault_catch_exception_raise_state,
9060 _hurdsig_fault_catch_exception_raise_state_identity.
9062 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9064 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9065 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9067 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9068 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9070 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9071 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
9072 them as no-op macros.
9073 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9074 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9076 * sysdeps/powerpc/dl-machine.h
9077 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9079 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9080 Use untyped Mach IPC message format.
9082 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9083 Handle untyped Mach IPC message formats.
9085 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9086 Expect different argument conventions when this is defined.
9087 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9088 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9089 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9090 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9091 for OSF Mach variant.
9092 (faulted): Use mig_reply_error_t for REPLY.
9093 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9094 in __thread_set_exception_ports call.
9095 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9096 __mach_port_set_attributes in place of __mach_port_set_qlimit.
9098 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9099 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9100 on Darwin, which includes bogons.
9102 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9103 variable LOADBASE so it's not declared when it's not used.
9105 2002-02-16 Roland McGrath <roland@frob.com>
9107 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9108 to use BI.creation_time.
9110 * mach/Machrules (MIG): Add -x c to CPP value passed down.
9112 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9113 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9114 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9115 host_page_size instead of vm_statistics.
9117 * sysdeps/mach/Makefile (mach-before-compile): Don't include
9118 mach_interface.h here, since not all variants use that name.
9120 * sysdeps/mach/configure.in: Add some checks for Mach headers
9121 to ensure a sane installation.
9122 (mach_interface_list): Define this variable by checking for .defs
9123 files found in various variants.
9124 * configure.in (mach_interface_list): AC_SUBST this.
9125 * config.make.in (mach-interface-list): New substituted variable.
9126 * mach/Makefile (user-interfaces): Define this using the value
9127 of $(mach-interface-list) instead of mach, mach4.
9128 Updated other references to mach_interface to use it as well.
9130 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9132 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9133 mig_reply_error_t for OSF Mach variant.
9135 * mach/Makefile (routines): Remove bootprivport.
9136 * mach/bootprivport.c: File removed. It has never been used.
9138 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9139 Grok the OSF flavor of message format.
9140 (mach_msg_destroy_port): For MAKE_SEND and
9141 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9142 no-senders notification.
9144 2002-02-06 Roland McGrath <roland@frob.com>
9146 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9147 to here if 2.0 compatibility enabled ...
9148 (libc: GLIBC_2.1.3): ... from here.
9150 2002-02-15 Ulrich Drepper <drepper@redhat.com>
9152 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9154 * elf/dl-close.c (_dl_close): Likewise.
9156 2002-02-14 Ulrich Drepper <drepper@redhat.com>
9158 * elf/Makefile: Add rules to build and run tst-tls8.
9159 * elf/tst-tls8.c: New file.
9160 * elf/tst-tlsmod4.c: New file.
9162 * stdlib/test-a64l.c (tests): Add more test cases.
9164 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9165 Reported by Walter Harms <WHarms@bfs.de>.
9167 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
9169 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9170 definitions for struct sigcontext.
9171 Suggested by David Mosberger-Tang.
9173 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9175 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
9176 for removing reference of module in slotinfo list.
9177 (_dl_close): Use remove_slotinfo.
9178 * sysdeps/generic/dl-tls.c: General pretty printing.
9179 (oom): Define only if SHARED.
9180 (_dl_next_tls_modid): Correct starting point for the case we assume
9181 there is a gap. Add missing instruction grouping (doh!). Correct
9182 tests for reaching maximum index.
9183 * elf/Makefile: Add rules to build and run tst-tls7.
9184 * elf/tst-tls7.c: New file.
9185 * elf/tst-tlsmod3.c: New file.
9187 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9189 * elf/tst-tlsmod2.c: Likewise.
9191 * elf/dl-close.c (_dl_close): When closing an object using TLS
9192 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9193 true. Increment dl_tls_generation only if we closed any TLS-using
9195 * elf/tst-tls6.c: New file.
9196 * elf/Makefile: Add rules to build and run tst-tls6.
9198 * po/da.po: Update from translation team.
9200 * locale/categories.def: Fix typo [PR libc/2948].
9201 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9203 * locale/iso-4217.def: Update from official version [PR libc/2950].
9204 * glibcbug.in: Honor TMPDIR [PR libc/2951].
9205 * locale/programs/ld-collate.c (collate_finish): Bail out with a
9206 message if input is too confusion instead of using assert.
9207 (collate_read): Don't crash on unknown symbol [PR libc/2952].
9208 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9210 * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9211 * elf/tst-tls2.c: Likewise.
9212 * elf/tst-tls3.c: Likewise.
9214 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9216 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9218 2002-02-13 Ulrich Drepper <drepper@redhat.com>
9220 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9221 if this is really necessary.
9223 * elf/dl-close.c (_dl_close): Implement freeing entries in the
9225 (free_mem): Free memory for the slotinfo array if possible.
9227 2002-02-12 Andreas Schwab <schwab@suse.de>
9229 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9231 2002-02-12 Ulrich Drepper <drepper@redhat.com>
9233 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9235 (oom): New function.
9236 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9237 (_dl_determine_tlsoffset): Likewise.
9238 (_dl_allocate_tls): Likewise.
9239 (__TLS_GET_ADDR): Define if not already defined.
9240 (_dl_tls_symaddr): New function.
9241 (allocate_and_init): New function.
9242 (__tls_get_addr): Actually implement handling of generation counter
9243 and deferred allocation.
9244 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9245 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9247 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9248 Declare _dl_tls_symaddr.
9249 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9251 * include/link.h (struct link_map): Remove l_tls_nextimage and
9253 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9254 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9255 (_dl_vsym): Likewise.
9256 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9258 (dl_main): Allow PT_TLS be present for empty segment. Remove
9259 nextimage list handling. Instead add all modules using TLS to
9260 dl_tls_dtv_slotinfo_list.
9261 * elf/dl-open.c (dl_open_worker): After successfully loading all
9262 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9263 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9264 empty segment don't do anything. Remove handling of initimage list.
9265 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9266 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9267 * elf/dl-minimal.c: Define __libc_memalign.
9268 * elf/dl-support.c: Remove _dl_initimage_list. Add
9269 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9271 * include/stdlib.h: Declare __libc_memalign.
9273 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9274 * elf/tst-tls4.c: New file.
9275 * elf/tst-tls5.c: New file.
9276 * elf/tst-tlsmod2.c: New file.
9278 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9280 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9282 * elf/tst-tls1.c: Use test-skeleton.c.
9283 * elf/tst-tls2.c: Likewise.
9284 * elf/tst-tls3.c: Likewise.
9286 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9288 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9290 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9292 2002-02-10 Ulrich Drepper <drepper@redhat.com>
9294 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9296 * elf/tst-tls3.c: New file.
9297 * elf/tst-tlsmod1.c: New file.
9298 * elf/Makefile: Add rules to build and run tst-tls3.
9300 * sysdeps/i386/dl-machine.h: Include <tls.h>.
9301 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9304 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9306 * po/fr.po: Update from translation team.
9308 * elf/tls-macros.h: Add alternative macros for use in PIC.
9310 * elf/dl-lookup.c: Include <tls.h>.
9311 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9313 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9314 required by passing pointer to last element of the list.
9316 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9317 l_tls_initimage to a place where it actually is performed.
9319 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9320 after globfree() calls.
9322 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9323 (openaux): Pass open_mode as new last argument to _dl_map_object.
9324 (_dl_map_object_deps): Add new argument open_mode. Initialize
9325 open_mode element of args variable with it.
9326 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9327 _dl_map_object_deps.
9328 * elf/rtld.c (dl_main): Add zero as last parameter to
9329 _dl_map_object_deps call.
9330 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9331 * elf/nodlopen2.c: New file.
9332 * elf/nodlopenmod2.c: New file.
9333 * elf/Makefile: Add rules to build and run nodlopen2.
9335 * elf/tst-tls1.c: Move TLS helper macros to...
9336 * elf/tls-macros.h: ...here. New file.
9337 * elf/tst-tls2.c: New file.
9338 * elf/Makefile (tests): Add tst-tls2.
9339 (distribute): Add tls-macros.h.
9341 * po/sv.po: Update from translation team.
9343 * elf/tst-tls1.c (main): Add complete set of tests. Split
9344 architecture specific definitions from the actual test code.
9346 * po/tr.po: Update from translation team.
9348 2002-02-09 Ulrich Drepper <drepper@redhat.com>
9350 * elf/Makefile (tests): Add tst-tls1.
9351 * elf/tst-tls1.c: New file.
9353 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9354 alignment of TCB for now.
9356 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9357 initialization image for the application itself.
9359 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9360 loop to initialize TLS block.
9362 2002-02-08 Richard Henderson <rth@redhat.com>
9364 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9365 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9367 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9369 2002-02-09 Jakub Jelinek <jakub@redhat.com>
9371 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9373 2002-02-08 Ulrich Drepper <drepper@redhat.com>
9375 * po/ca.po: Update from translation team.
9376 * po/sk.po: Likewise.
9378 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9379 (dl_main): Move dtv/static TLS handling before relocation.
9380 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
9381 TLS_INIT_TP to allocate and install the dtv/static TLS block.
9382 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9383 so far uses TLS initialize GL(dl_tls_static_size) and
9384 GL(dl_tls_static_align) to account for the TCB.
9385 (_dl_allocate_tls): New function.
9386 * sysdeps/generic/ldsodefs.h (rtld_global): Add
9387 _dl_initial_dtv_malloced.
9389 * configure.in: Test for __builtin_memset more realistically.
9391 * csu/version.c (banner): If TLS support is available say so.
9393 2002-02-04 H.J. Lu <hjl@gnu.org>
9395 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9397 (__dl_runtime_resolve): Likewise.
9399 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9402 2001-11-15 H.J. Lu <hjl@gnu.org>
9404 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9405 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9407 * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9409 2002-02-07 H.J. Lu <hjl@gnu.org>
9411 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9413 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9416 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9418 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9420 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9421 ___tls_get_addr_internal.
9422 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9424 * po/ko.po: Update from translation team.
9426 2002-02-07 Jakub Jelinek <jakub@redhat.com>
9428 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9429 attribute, change __pad{1,2} type to unsigned int.
9430 (struct stat64): Remove packed attribute.
9432 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9434 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9436 2002-02-07 Andreas Schwab <schwab@suse.de>
9438 * configure.in: Fix check for -zcombreloc.
9440 2002-02-06 H.J. Lu <hjl@gnu.org>
9442 * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9443 * configure.in: Check if __builtin_memset really works.
9444 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9445 __GNUC_PREREQ (2, 96) before using __builtin_memset.
9447 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9449 * io/bug-ftw3.c (main): Don't try the test if root.
9451 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
9453 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9455 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9456 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9457 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9459 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9460 a weak alias for __clone.
9461 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9462 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9463 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9464 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9465 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9466 a weak alias for __mmap64.
9468 2002-02-05 H.J. Lu <hjl@gnu.org>
9470 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9471 (atomic_add): Likewise.
9472 (compare_and_swap): Likewise.
9473 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9475 2002-02-07 Ulrich Drepper <drepper@redhat.com>
9477 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9479 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9480 alignment of the TCB and store total size and alignment of static
9481 TLS block in _dl_tls_static_size and _dl_tls_static_align.
9482 tls_index is a typedef.
9483 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9484 _dl_tls_static_align.
9485 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9486 * elf/dl-support.c: Define _dl_tls_static_size and
9487 _dl_tls_static_align.
9489 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9491 * configure.in: Add --without-tls option.
9492 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9493 --without-tls is given.
9495 * sysdeps/generic/dl-tls.c: Include <tls.h>.
9497 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9499 2002-02-06 Roland McGrath <roland@frob.com>
9501 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9502 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9504 * scripts/versions.awk: Improve error message for missing version.
9505 Each version inherits from the last one only if they have the same
9506 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9507 but not GLIBC_x and FOO_y.
9509 * scripts/firstversions.awk: Handle libraries that don't have each
9510 particular version named in the third column of shlib-versions.
9512 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9514 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9516 * Versions.def [ld]: Add GLIBC_2.3.
9517 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9518 * elf/Makefile (dl-routines): Add dl-tls.
9519 (distribute): Add dl-tls.h.
9520 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9521 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9522 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9523 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9524 along with the other info in the link map. Change queueing of init
9525 images for double linked list. Use _dl_next_tls_modid to compute
9527 * elf/rtld.c (_dl_start_final): Store alignment requirement
9528 along with the other info in rtld map and executable map.
9529 (dl_main): Add ld.so to the init image list if necessary. Compute
9530 final module ID with _dl_next_tls_modid.
9531 * include/link.h (struct link_map): Add l_tls_previmage and
9533 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9534 * sysdeps/i386/elf/Versions: New file.
9535 * sysdeps/generic/dl-tls.c: New file.
9536 * sysdeps/generic/dl-tls.h: New file.
9537 * sysdeps/i386/dl-tls.h: New file.
9539 2002-02-06 Roland McGrath <roland@frob.com>
9541 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9542 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9544 2002-01-05 Roland McGrath <roland@frob.com>
9546 * sysdeps/mach/configure.in: New file.
9547 * sysdeps/mach/configure: New generated file.
9549 * mach/Makefile (user-interfaces): Remove default_pager_helper.
9550 It has never been used by anything.
9552 2002-02-06 H.J. Lu <hjl@gnu.org>
9554 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9557 2002-02-06 Ulrich Drepper <drepper@redhat.com>
9559 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9560 attribute((packed)) to counter stupid people misusing gcc options.
9561 (struct stat64): Likewise.
9563 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9565 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
9566 the variables which are used as booleans.
9568 2002-02-06 Andreas Jaeger <aj@suse.de>
9570 * include/libc-symbols.h (INTUSE): Renamed from INT.
9571 * elf/dl-deps.c: Change users.
9572 * sysdeps/generic/dl-sysdep.c: Likewise.
9573 * sysdeps/generic/dl-cache.c: Likewise.
9574 * elf/dl-reloc.c: Likewise.
9575 * elf/rtld.c: Likewise.
9576 * elf/dl-version.c: Likewise.
9577 * elf/dl-load.c: Likewise.
9578 * elf/dl-dst.h: Likewise.
9579 * elf/dl-init.c: Likewise.
9580 * elf/dl-error.c: Likewise.
9581 * elf/dl-fini.c: Likewise.
9582 * elf/dl-runtime.c: Likewise.
9583 * elf/do-lookup.h: Likewise.
9585 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9587 * stdio-common/_itowa.h: Likewise.
9589 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9591 * elf/dl-minimal.c: Define _itoa_lower_digits.
9593 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9596 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9597 loading modules with the DF_STATIC_TLS flag set.
9598 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9600 * include/link.h (struct link_map): Add l_flags field.
9601 * elf/elf.h (DF_STATIC_TLS): New definition.
9603 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9604 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
9606 * elf/rtld.c (process_dl_debug): Correct printing help message.
9607 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9610 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9611 definition and pass &errno in use of this variable.
9612 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9614 2002-02-04 Andreas Schwab <schwab@suse.de>
9616 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9617 * locale/programs/charmap-dir.c: Wrap calls that output messages
9618 with WITH_CUR_LOCALE. Include "localedef.h" first.
9619 * locale/programs/charmap.c: Likewise.
9620 * locale/programs/ld-address.c: Likewise.
9621 * locale/programs/ld-collate.c: Likewise.
9622 * locale/programs/ld-ctype.c: Likewise.
9623 * locale/programs/ld-identification.c: Likewise.
9624 * locale/programs/ld-measurement.c: Likewise.
9625 * locale/programs/ld-messages.c: Likewise.
9626 * locale/programs/ld-monetary.c: Likewise.
9627 * locale/programs/ld-name.c: Likewise.
9628 * locale/programs/ld-numeric.c: Likewise.
9629 * locale/programs/ld-paper.c: Likewise.
9630 * locale/programs/ld-telephone.c: Likewise.
9631 * locale/programs/ld-time.c: Likewise.
9632 * locale/programs/linereader.c: Likewise.
9633 * locale/programs/linereader.h: Likewise.
9634 * locale/programs/localedef.c: Likewise.
9635 * locale/programs/locfile.c: Likewise.
9636 * locale/programs/repertoire.c: Likewise.
9638 2002-02-05 Ulrich Drepper <drepper@redhat.com>
9640 * elf/rtld.c (_dl_start_final): Determine load address to locate
9641 ehdr with GL(dl_rtld_map).l_map_start.
9643 * po/ca.po: Update from translation team.
9645 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9646 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9648 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9650 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9652 2002-02-04 Ulrich Drepper <drepper@redhat.com>
9654 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9655 * include/link.h (struct link_map): Add various members for TLS
9657 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9658 _rtld_tlsoffset, add _dl_initimage_list.
9659 * sysdeps/i386/dl-lookupcfg.h: New file.
9660 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9661 TLS relocation. When using TLS we now use RESOLVE_MAP.
9662 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9665 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9668 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9669 thread-pointer as soon as possible.
9670 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
9671 elements in rtld_global.
9672 * sysdeps/generic/tls.h: New file.
9673 * elf/Makefile (distribute): Add tls.h.
9674 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9675 relocations. Not complete yet.
9677 * resolv/resolv.h: Allow user to define __need_res_state and only
9678 define __res_start structure then.
9679 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9681 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9682 dl_cpuclock_offset initialization to _dl_start_final.
9683 (_dl_show_auxv): Avoid unnecessary sign extension.
9684 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9686 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9688 * config.h.in: Add HAVE_TLS_SUPPORT.
9689 * sysdeps/i386/elf/configure.in: New file.
9691 2002-02-03 Andreas Schwab <schwab@suse.de>
9693 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9694 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
9696 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
9698 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9699 alloca if the memory reqirements are too high.
9701 2002-02-03 Ulrich Drepper <drepper@redhat.com>
9703 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9704 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9705 the former is available anyway and speed isn't important here.
9706 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9707 * elf/dl-version.c (match_symbol): Likewise.
9708 (_dl_check_map_versions): Likewise.
9709 * elf/rtld.c (process_envvars): Likewise.
9710 (print_statistics): Likewise.
9711 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9712 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
9713 bases. Add assert to catch uses of unimplemented features.
9714 (__strsep): Add assert to catch uses of unimplemented features.
9715 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
9716 and avoid inline optimization.
9717 * elf/rtld.c (process_envvars): Likewise.
9718 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
9719 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
9720 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
9722 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9724 * stdio-common/_itoa.h: Minor simplifications of the code.
9725 * stdio-common/_itoa.c: Likewise.
9727 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
9728 instead of _dl_printf for debugging info output.
9730 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
9731 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
9733 2002-02-01 H.J. Lu <hjl@gnu.org>
9735 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
9736 (atomic_add): Likewise.
9737 (compare_and_swap): Return 0 only when failed to compare. Use
9740 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
9743 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
9745 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
9747 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9749 * elf/dl-minimal.c (__strsep): New minimal implementation.
9751 2002-02-02 Paul Eggert <eggert@twinsun.com>
9753 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
9754 (__mktime_internal): If no tm_isdst is requested, prefer solutions
9755 with tm_isdst > 0 when the requested time falls within a
9756 spring-forward gap [PR libc/2894].
9758 2002-02-03 Andreas Schwab <schwab@suse.de>
9760 * stdio-common/tst-rndseek.c: Increase timeout.
9762 2002-02-02 Ulrich Drepper <drepper@redhat.com>
9764 Change ld.so to not use functions which are exported. One cannot
9765 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
9767 * include/libc-symbols.h: Define INT and INTDEF.
9768 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
9769 _dl_signal_error_internal, _dl_map_object_internal,
9770 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
9771 _dl_lookup_versioned_symbol_internal,
9772 _dl_relocate_object_internal, _dl_debug_state_internal,
9773 _dl_start_profile_internal, and _dl_unload_cache_internal.
9774 * include/dlfcn.h: Declare _dl_catch_error_internal.
9775 * elf/rtld.c: Use INT for calls to any of the *_internal functions
9776 above. Add INTDEF to function definitions.
9777 * elf/dl-debug.c: Likewise.
9778 * elf/dl-deps.c: Likewise.
9779 * elf/dl-dst.h: Likewise.
9780 * elf/dl-error.c: Likewise.
9781 * elf/dl-fini.c: Likewise.
9782 * elf/dl-init.c: Likewise.
9783 * elf/dl-load.c: Likewise.
9784 * elf/dl-lookup.c: Likewise.
9785 * elf/dl-misc.c: Likewise.
9786 * elf/dl-open.c: Likewise.
9787 * elf/dl-profile.c: Likewise.
9788 * elf/dl-reloc.c: Likewise.
9789 * elf/dl-runtime.c: Likewise.
9790 * elf/dl-version.c: Likewise.
9791 * elf/do-lookup.h: Likewise.
9792 * sysdeps/generic/dl-cache.c: Likewise.
9793 * sysdeps/generic/dl-sysdep.c: Likewise.
9794 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
9795 instead of _dl_init.
9796 * sysdeps/arm/dl-machine.h: Likewise.
9797 * sysdeps/cris/dl-machine.h: Likewise.
9798 * sysdeps/hppa/dl-machine.h: Likewise.
9799 * sysdeps/i386/dl-machine.h: Likewise.
9800 * sysdeps/ia64/dl-machine.h: Likewise.
9801 * sysdeps/m68k/dl-machine.h: Likewise.
9802 * sysdeps/mips/dl-machine.h: Likewise.
9803 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9804 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9805 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9806 * sysdeps/sh/dl-machine.h: Likewise.
9807 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9808 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9809 * sysdeps/x86_64/dl-machine.h: Likewise.
9810 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
9812 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
9813 and _dl_debug_initialize.
9815 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
9817 * elf/rtld.c (dl_main): Avoid strrchr.
9818 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
9819 result of readlink. Search from the back for '/'.
9821 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
9822 strncpy if possible.
9824 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
9826 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
9827 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
9828 strspn, and strcspn.
9829 (process_envvars): Don't use strcspn.
9831 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
9832 (_dl_dst_substitute): Likewise.
9834 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9836 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
9837 code which is never used when relocating ld.so itself.
9839 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
9840 starting ld.so itself. Move l_addr variable initialization closer
9842 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
9844 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9846 * Versions.def (libc): Add GLIBC_PRIVATE.
9847 (libdb, libnss_db, libdb1): Remove.
9848 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
9849 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
9850 (libpthread): Add GLIBC_PRIVATE.
9851 (libresolv): Likewise, remove GLIBC_2.1.
9852 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
9853 GLIBC_2.2.3, GLIBC_2.3.
9854 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
9855 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
9856 _dl_sym, _dl_vsym): Likewise.
9857 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
9858 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
9859 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
9860 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
9861 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
9862 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
9863 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
9864 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
9866 (_dl_object_relocation_scope): Remove.
9867 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
9868 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
9869 __gconv_cache): Move to GLIBC_PRIVATE.
9870 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
9871 __internal_setnetgrent): Likewise.
9872 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
9873 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
9874 * locale/Versions (__collate_element_hash, __collate_element_strings,
9875 __collate_symbol_classes, __collate_symbol_hash,
9876 __collate_symbol_strings, _nl_current_LC_COLLATE,
9877 _nl_current_LC_CTYPE): Likewise.
9878 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
9879 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
9880 (libnss_nis, libnss_nisplus): Likewise.
9881 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
9882 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
9883 (libnss_files): Move all symbols to GLIBC_PRIVATE.
9884 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
9885 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
9886 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
9887 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
9888 __ns_get16, __ns_samename): Likewise.
9889 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
9890 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
9892 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
9893 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
9894 __libc_connect): Likewise.
9895 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
9897 * stdlib/Versions (__libc_system): Likewise.
9898 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
9899 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
9900 * sysdeps/ia64/fpu/Versions: Likewise.
9901 * sysdeps/ia64/Versions: Likewise.
9902 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
9903 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
9905 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
9906 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
9907 __libc_sigaction): Likewise.
9908 * termios/Versions (__libc_tcdrain): Likewise.
9910 * misc/sys/cdefs (__attribute_noinline__): Define.
9911 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
9912 __attribute_noinline__.
9914 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
9915 * elf/dl-xstat64.c: New file.
9916 * elf/dl-fxstat64.c: New file.
9917 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
9918 don't export __fxstat64 at multiple versions.
9919 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
9920 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
9922 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
9924 * locale/program/ld-collate.c (collate_finish): Assign a wide
9925 char collation sequence value to multi character collating
9926 elements, and avoid over writing by non-character elements.
9928 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9930 * elf/Makefile (distribute): Add dl-procinfo.c.
9931 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
9932 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9934 2002-02-01 Jakub Jelinek <jakub@redhat.com>
9936 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
9938 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
9939 _rtld_global struct.
9940 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9941 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
9942 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9943 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
9944 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
9945 _dl_fpu_control_set): Remove unused externs.
9946 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
9947 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
9948 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
9949 related variables in _rtld_global struct.
9950 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
9951 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
9954 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9956 * sysdeps/generic/dl-procinfo.c: New file.
9958 2002-02-01 Andreas Schwab <schwab@suse.de>
9960 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
9962 2002-02-01 Ulrich Drepper <drepper@redhat.com>
9964 * elf/rtld.c (_dl_start): Mark as internal_function.
9965 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9967 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
9968 General pretty printing.
9970 2002-01-31 Ulrich Drepper <drepper@redhat.com>
9972 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
9973 * elf/dl-reloc.c: Pretty printing.
9974 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
9975 procinfo-related variables in rtld_global struct.
9976 * elf/dl-support.c: Likewise.
9977 * elf/rtld.c: Likewise.
9978 * sysdeps/i386/i686/Makefile: Likewise.
9979 * sysdeps/i386/i686/hp-timing.c: Likewise.
9980 * sysdeps/i386/i686/hp-timing.h: Likewise.
9981 * sysdeps/ia64/Makefile: Likewise.
9982 * sysdeps/ia64/hp-timing.c: Likewise.
9983 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
9984 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
9985 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
9986 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
9987 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
9988 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
9989 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
9990 * sysdeps/x86_64/Makefile: Likewise.
9992 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
9993 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
9994 _dl_debug_fd to rtld_global.
9995 * elf/Versions: Likewise.
9996 * elf/dl-close.c: Likewise.
9997 * elf/dl-iteratephdr.c: Likewise.
9998 * elf/dl-lookup.c: Likewise.
9999 * elf/dl-misc.c: Likewise.
10000 * elf/dl-open.c: Likewise.
10001 * elf/dl-support.c: Likewise.
10002 * elf/do-lookup.h: Likewise.
10003 * elf/rtld.c: Likewise.
10004 * sysdeps/generic/dl-cache.c: Likewise.
10005 * sysdeps/generic/dl-sysdep.c: Likewise.
10006 * sysdeps/ia64/Versions: Likewise.
10007 * sysdeps/unix/clock_gettime.c: Likewise.
10008 * sysdeps/unix/clock_settime.c: Likewise.
10009 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10010 * sysdeps/sparc/Versions: Removed.
10011 * sysdeps/i386/i686/Versions : Removed.
10012 * sysdeps/x86_64/Versions: Removed.
10013 * configure.in: Define HAVE_PROTECTED if .protected is available.
10014 * config.h.in: Add entry for HAVE_PROTECTED.
10016 2002-01-31 Jakub Jelinek <jakub@redhat.com.
10018 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10019 code in struct _rtld_global. Export this struct, remove all
10020 exports for the signal variables.
10021 * sysdeps/arm/dl-machine: Likewise.
10022 * sysdeps/generic/dl-origin: Likewise.
10023 * sysdeps/generic/dl-sysdep: Likewise.
10024 * sysdeps/generic/dl-cache: Likewise.
10025 * sysdeps/hppa/dl-fptr: Likewise.
10026 * sysdeps/hppa/dl-machine: Likewise.
10027 * sysdeps/cris/dl-machine: Likewise.
10028 * sysdeps/i386/dl-machine: Likewise.
10029 * sysdeps/ia64/dl-machine: Likewise.
10030 * sysdeps/m68k/dl-machine: Likewise.
10031 * sysdeps/mach/hurd/dl-sysdep: Likewise.
10032 * sysdeps/mips/mips64/dl-machine: Likewise.
10033 * sysdeps/mips/dl-machine: Likewise.
10034 * sysdeps/powerpc/elf/libc-start: Likewise.
10035 * sysdeps/powerpc/dl-machine: Likewise.
10036 * sysdeps/powerpc/dl-start: Likewise.
10037 * sysdeps/sparc/sparc32/dl-machine: Likewise.
10038 * sysdeps/sparc/sparc64/dl-machine: Likewise.
10039 * sysdeps/sh/dl-machine: Likewise.
10040 * sysdeps/s390/s390-32/dl-machine: Likewise.
10041 * sysdeps/s390/s390-64/dl-machine: Likewise.
10042 * sysdeps/unix/sysv/aix/libc-start: Likewise.
10043 * sysdeps/unix/sysv/aix/start-libc: Likewise.
10044 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10045 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10046 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10047 * sysdeps/x86_64/dl-machine: Likewise.
10049 2002-01-31 Ulrich Drepper <drepper@redhat.com>
10051 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10054 2002-01-31 Andreas Schwab <schwab@suse.de>
10056 * sysdeps/posix/readv.c: Check for ssize_t overflow.
10058 2002-01-31 Andreas Schwab <schwab@suse.de>
10060 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10061 reference to _dl_pagesize.
10063 2002-01-30 Ulrich Drepper <drepper@redhat.com>
10065 * Versions.def [ld]: Add GLIBC_2.3.
10066 * elf/dl-addr.c: Move global variables for SHARED code in struct
10067 _rtld_global. Export this struct, remove all exports for the
10069 * elf/dl-close.c: Likewise.
10070 * elf/dl-conflict.c: Likewise.
10071 * elf/dl-debug.c: Likewise.
10072 * elf/dl-deps.c: Likewise.
10073 * elf/dl-dst.h: Likewise.
10074 * elf/dl-error.c: Likewise.
10075 * elf/dl-fini.c: Likewise.
10076 * elf/dl-init.c: Likewise.
10077 * elf/dl-iteratephdr.c: Likewise.
10078 * elf/dl-libc.c: Likewise.
10079 * elf/dl-load.c: Likewise.
10080 * elf/dl-lookup.c: Likewise.
10081 * elf/dl-minimal.c: Likewise.
10082 * elf/dl-object.c: Likewise.
10083 * elf/dl-open.c: Likewise.
10084 * elf/dl-profile.c: Likewise.
10085 * elf/dl-profstub.c: Likewise.
10086 * elf/dl-reloc.c: Likewise.
10087 * elf/dl-runtime.c: Likewise.
10088 * elf/dl-support.c: Likewise.
10089 * elf/dl-sym.c: Likewise.
10090 * elf/dl-version.c: Likewise.
10091 * elf/do-lookup.h: Likewise.
10092 * elf/do-rel.h: Likewise.
10093 * elf/dynamic-link.h: Likewise.
10094 * elf/rtld.c: Likewise.
10095 * sysdeps/generic/dl-cache.c: Likewise.
10096 * sysdeps/generic/dl-sysdep.c: Likewise.
10097 * sysdeps/generic/ldsodefs.h: Likewise.
10098 * sysdeps/generic/libc-start.c: Likewise.
10099 * sysdeps/i386/dl-machine.h: Likewise.
10100 * sysdeps/ia64/dl-fptr.c: Likewise.
10101 * sysdeps/ia64/dl-machine.h: Likewise.
10102 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10103 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10104 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10105 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10106 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10107 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10108 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10109 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10111 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10113 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10115 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10117 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10119 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10121 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10123 2002-01-29 Ben Collins <bcollins@debian.org>
10125 * string/bits/string2.h (__mempcpy): Protect size arg for
10126 addition when using __builtin_memcpy.
10128 2002-01-29 Ulrich Drepper <drepper@redhat.com>
10130 * stdlib/Makefile (tests): Add tst-qsort.
10131 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
10133 * manual/signal.texi (Process Signal Mask): Document that
10134 pthread_sigmask, not sigprocmask, must be used in MT programs.
10135 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10137 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10139 * misc/Makefile (tests): Add tst-hsearch.
10140 * misc/tst-hsearch.c: New file.
10142 2002-01-18 Wolfram Gloger <wg@malloc.de>
10144 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10145 * malloc/malloc.h: Likewise.
10146 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10147 * malloc/arena.c: New file.
10148 * malloc/hooks.c: New file.
10149 * malloc/tst-mallocstate.c: New file.
10150 * malloc/Makefile: Add new testcase tst-mallocstate.
10151 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
10153 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10155 * stdlib/msort.c: Remove last patch. The optimization violates the
10156 same rule which qsort.c had problems with.
10158 2002-01-27 Paul Eggert <eggert@twinsun.com>
10160 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10161 to a pivot element that lies outside the array to be sorted, as
10162 ISO C99 requires that the comparison function be called only with
10163 addresses of array elements [PR libc/2880].
10165 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10167 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10168 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
10170 * timezone/asia: Update from tzdata2002b.
10171 * timezone/australasia: Likewise.
10172 * timezone/backward: Likewise.
10173 * timezone/europe: Likewise.
10174 * timezone/leapseconds: Likewise.
10175 * timezone/iso3166.tab: Likewise.
10176 * timezone/zone.tab: Likewise.
10178 2002-01-23 Richard Henderson <rth@redhat.com>
10180 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10182 2002-01-28 Ulrich Drepper <drepper@redhat.com>
10184 * string/strxfrm.c: Allocate one more byte for rulearr and clear
10185 this element [PR libc/2855].
10187 * string/strcoll.c: Handle zero-length arguments specially
10190 2002-01-23 Jakub Jelinek <jakub@redhat.com>
10192 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10193 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10194 short lengths and constant src.
10195 (strcpy): Don't optimize for gcc 3.0+.
10196 (__stpcpy): For gcc 3.0+, don't use
10197 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10198 for short string literal src.
10200 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10202 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10205 2001-01-22 Paul Eggert <eggert@twinsun.com>
10207 * manual/llio.texi (Linked Channels, Cleaning Streams):
10208 Make it clearer that a just-opened input stream might need cleaning.
10210 2002-01-21 H.J. Lu <hjl@gnu.org>
10212 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10213 Don't use label at end of compound statement.
10215 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
10217 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10218 Remove test for negative integer arg; sin_pi does it correctly.
10220 2002-01-20 Ulrich Drepper <drepper@redhat.com>
10222 * nscd/Makefile (distribute): Filter out xmalloc.c.
10224 2002-01-19 Ulrich Drepper <drepper@redhat.com>
10226 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10227 Set offset if read end wasn't the buffer end.
10228 (_IO_file_seekoff_mmap): New function.
10229 (_IO_file_xsgetn_mmap): New function.
10230 (_IO_file_jumps_mmap): Use the two new functions.
10231 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10233 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10234 _IO_file_underflow_mmap.
10235 * libio/iofopen.c: Don't position file descriptor at end of file.
10236 * libio/tst-widetext.c: Improve error messages.
10237 * stdio-common/tst-rndseek.c: Likewise.
10239 2002-01-18 Ulrich Drepper <drepper@redhat.com>
10241 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10242 end of enum for !_GNU_SOURCE.
10243 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10244 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10245 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10246 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10247 values unless _GNU_SOURCE.
10249 * iconvdata/tcvn5712-1.c: Minor cleanups.
10251 2002-01-18 Andreas Schwab <schwab@suse.de>
10253 * sysdeps/unix/sysv/linux/configure.in
10254 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10256 2002-01-16 Roger Sayle <roger@eyesopen.com>
10258 * stdlib/msort.c (msort_with_tmp): Replace implementation with
10259 more efficient "Towers of Hanoi" mergesort.
10260 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10261 for generic, sizeof(int) and sizeof(long) variants respectively.
10263 2002-01-17 Ulrich Drepper <drepper@redhat.com>
10265 * manual/syslog.texi (openlog): Describe possible problems with
10267 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10269 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
10270 * nscd/connections.c (begin_drop_privileges): New function.
10271 (finish_drop_privileges): New function.
10272 (nscd_init): Call the new functions which also install all groups
10273 for the server user.
10274 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10275 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10277 2002-01-17 H.J. Lu <hjl@gnu.org>
10279 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10280 `const' from `got'.
10282 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
10284 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10285 instructions for pointer operations.
10286 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10288 2002-01-17 Andreas Jaeger <aj@suse.de>
10290 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10291 __uint128_t build-in.
10293 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10294 PowerPC, sync with 2.2 branch.
10296 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10298 * posix/getconf.c: Update copyright year.
10299 * nss/getent.c: Likewise.
10300 * nscd/nscd_nischeck.c: Likewise.
10301 * iconv/iconvconfig.c: Likewise.
10302 * iconv/iconv_prog.c: Likewise.
10303 * elf/ldconfig.c: Likewise.
10304 * catgets/gencat.c: Likewise.
10305 * csu/version.c: Likewise.
10306 * elf/ldd.bash.in: Likewise.
10307 * elf/sprof.c (print_version): Likewise.
10308 * locale/programs/locale.c: Likewise.
10309 * locale/programs/localedef.c: Likewise.
10310 * nscd/nscd.c (print_version): Likewise.
10311 * debug/xtrace.sh: Likewise.
10312 * malloc/memusage.sh: Likewise.
10313 * malloc/mtrace.pl: Likewise.
10315 2002-01-16 Andreas Schwab <schwab@suse.de>
10317 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10318 reliably remove "-ia64" from rtld name.
10320 2002-01-16 Ulrich Drepper <drepper@redhat.com>
10322 * iconvdata/gb18030.c: Bug fixes and support for more characters.
10323 Patch by Yu Shao <yshao@redhat.com>.
10325 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
10327 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10328 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10329 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10331 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
10333 * sysdeps/s390/fpu/libm-test-ulps: Update.
10335 2002-01-11 Ulrich Drepper <drepper@redhat.com>
10337 * elf/elf.h: Update x86 relocations.
10339 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10341 * locale/programs/charmap.c (new_width): Check whether byte
10342 sequences for both ends of range have the same length.
10344 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10346 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10348 2002-01-09 Jakub Jelinek <jakub@redhat.com>
10350 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10352 (__full_ieee754_sqrt): Add __attribute_used__.
10354 2002-01-10 Ulrich Drepper <drepper@redhat.com>
10356 * sysdeps/generic/group_member.c (__group_member): Also check
10357 groups[0] [PR libc/2781].
10359 2002-01-08 Ulrich Drepper <drepper@redhat.com>
10361 * Makefile (distribute): Add scripts/cpp.
10362 * elf/Makefile (distribute): Add reldep6mod[01234].c,
10363 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10364 unwind-dw2-fde.h, and dwarf2.h.
10365 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10366 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10367 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10368 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10370 2002-01-07 Roland McGrath <roland@frob.com>
10372 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10373 volatile on type of ARGC so the compiler doesn't get clever.
10375 2002-01-07 Andreas Jaeger <aj@suse.de>
10377 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10378 * sysdeps/i386/bits/byteswap.h: Likewise.
10379 * sysdeps/ia64/bits/byteswap.h: Likewise.
10380 * sysdeps/m68k/bits/byteswap.h: Likewise.
10381 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10382 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10384 2002-01-02 Bruno Haible <bruno@clisp.org>
10386 * intl/plural.y: Fix %expect count.
10388 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10390 * elf/Makefile (routines, shared-only-routines): Add
10391 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10392 * elf/elf.h (PT_GNU_EH_FRAME): Define.
10393 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10394 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10395 Optimize if .eh_frame section contains no FDEs.
10396 (__register_frame, __deregister_frame_info_bases,
10397 __deregister_frame): Likewise.
10398 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10399 DW_CFA_restore handling.
10401 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
10403 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10405 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10406 for x < 0.25 and restore original range reduction method.
10407 (__ieee754_lgammal_r): Make sure signgam is set before returning.
10409 2002-01-07 Ulrich Drepper <drepper@redhat.com>
10411 * libio/fileops.c (_IO_file_underflow_mmap): New function.
10412 (_IO_file_close_mmap): New function.
10413 (_IO_file_jumps_mmap): New variable.
10414 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10415 trying to convert rest of byte buffer.
10416 (_IO_wfile_underflow_mmap): New function.
10417 (_IO_wfile_jumps_mmap): New variable.
10418 * libio/iofopen.c (__fopen_maybe_mmap): New function.
10419 (__fopen_internal): New function. Split out from _IO_new_fopen.
10420 (_IO_new_fopen): Call __fopen_internal.
10421 * libio/iofopen64.c: Just call __fopen_internal.
10422 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10424 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10425 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10426 _IO_file_close_mmap.
10428 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10429 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10431 * stdio-common/Makefile (tests): Add tst-rndseek.
10432 * stdio-common/tst-rndseek.c: New file.
10434 2002-01-05 Roland McGrath <roland@frob.com>
10436 * config.h.in (HAVE_MIG_RETCODE): New #undef.
10437 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10438 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10439 * sysdeps/mach/hurd/configure: Regenerated.
10441 2002-01-03 Ulrich Drepper <drepper@redhat.com>
10443 * elf/elf.h: Add more TLS definitions.
10445 2002-01-02 Ulrich Drepper <drepper@redhat.com>
10447 * include/features.h (__GLIBC_MINOR__): Bump to 3.
10449 2002-01-02 Roland McGrath <roland@frob.com>
10451 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10452 __sigisemptyset. Don't use MASK uninitialized.
10454 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10455 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10456 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10457 __sigdelset, __sigaddset, __sigorset.
10459 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10460 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10462 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10463 _hurd_ports is null.
10465 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10466 for old CMU and new OSF Mach interface flavors.
10467 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10468 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10470 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10472 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10473 Pass extra arguments to task_create for OSF variant.
10474 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10476 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10477 conditional on [HAVE_AUX_VECTOR].
10479 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10480 mach_msg_timeout_t as type of final argument.
10482 * hurd/privports.c (__get_privileged_ports):
10483 Change host_priv_t to mach_port_t in argument type.
10484 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10487 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10488 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
10489 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10490 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10491 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10492 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10494 2002-01-01 Roland McGrath <roland@frob.com>
10496 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10498 2002-01-01 Ulrich Drepper <drepper@redhat.com>
10500 * include/stdlib.h: Define inlines for the _l variants of the strto*
10503 2002-01-01 Roland McGrath <roland@frob.com>
10505 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10507 * mach/Machrules (MIG): Set CPP as well as CC.
10509 2001-12-31 Ulrich Drepper <drepper@redhat.com>
10511 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10512 locale to parse /proc/loadavg [PR libc/2760].
10514 2001-12-31 Jakub Jelinek <jakub@redhat.com>
10516 * elf/dl-conflict.c: Include sys/param.h.
10517 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10518 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10520 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10521 literals to avoid warnings.
10523 2001-12-31 Andreas Jaeger <aj@suse.de>
10525 * configure.in: Don't check for gsed since we do not use it anywhere.
10527 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10529 * io/fts.c: Update from BSD to fix memory leaks.
10531 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
10533 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10534 * elf/chroot_canon.c: Likewise.
10535 * elf/dl-object.c: Likewise.
10536 * iconv/iconv_charmap.c: Likewise.
10537 * iconv/iconv_prog.c: Likewise.
10538 * libio/iogetdelim.c: Likewise.
10539 * locale/lc-time.c: Likewise.
10540 * stdlib/canonicalize.c: Likewise.
10541 * sunrpc/svc.c: Likewise.
10542 * sysdeps/generic/glob.c: Likewise.
10544 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10546 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10547 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10548 remove high order bit from the program counter.
10549 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10551 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
10553 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10554 unnecessary code and add missing reloc types.
10555 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10556 case for reloc type R_390_NONE.
10558 2001-12-28 Andreas Jaeger <aj@suse.de>
10560 * io/bug-ftw3.c: Include string.h for prototypes.
10562 * crypt/md5test.c (main): Remove unused variable.
10564 * dlfcn/modstatic.c: Add prototype to avoid warning.
10566 2001-12-26 Roland McGrath <roland@frob.com>
10568 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10569 check only (SS->pending & MASK) for the signal to return.
10570 From Jeroen Dekkers <jeroen@dekkers.cx>.
10572 2001-12-22 Roland McGrath <roland@frob.com>
10574 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10575 Use preprocessor #if conditionals instead of `if' to avoid
10576 warnings about divide by zero in dead code.
10578 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10579 _hurd_port_init, and __hurd_self_sigstate.
10581 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10583 2001-12-21 Andreas Jaeger <aj@suse.de>
10585 * elf/dblloadmod1.c: Add prototype to avoid warning.
10586 * elf/dblloadmod2.c: Likewise.
10587 * elf/dblloadmod3.c: Likewise.
10588 * elf/reldepmod5.c: Likewise.
10589 * elf/reldepmod6.c: Likewise.
10591 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10592 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10593 used on all architectures.
10595 * sunrpc/svc_tcp.c: Add noreturn attribute for
10596 svctcp_rendezvous_abort.
10597 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10599 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10602 2001-12-19 Jakub Jelinek <jakub@redhat.com>
10604 * manual/llio.texi (aio_fsync): Fix a typo.
10605 Patch by Tammy Fox <tfox@redhat.com>.
10607 2001-12-18 Jakub Jelinek <jakub@redhat.com>
10609 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10610 stack bias from child stack pointer before passing it to clone syscall.
10612 2001-12-18 Ulrich Drepper <drepper@redhat.com>
10614 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10616 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10617 Reported by Thorsten Kukuk <kukuk@suse.de>.
10619 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10622 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10624 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
10626 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10627 conforming: return EBADF if file descriptor is invalid and EINVAL
10628 if file descriptor is no valid tty.
10629 * login/tst-grantpt.c: New file.
10630 * login/Makefile (tests): Add tst-grantpt.
10632 2001-12-17 Ulrich Drepper <drepper@redhat.com>
10634 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10635 different than implemented in last patch.
10636 * io/bug-ftw3.c: Adjust test for changed handling of
10637 inaccessibility of toplevel dir.
10639 2001-12-16 Roland McGrath <roland@frob.com>
10641 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10642 * grp/initgroups.c (internal_getgrouplist): Likewise.
10644 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10645 `default:' to silence new GCC warning.
10646 Rewrite cast of lvalue to silence new GCC warning.
10648 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10650 * sysdeps/mach/hurd/spawni.c: New file, by me with a
10651 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10653 2001-12-14 Ulrich Drepper <drepper@redhat.com>
10655 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
10656 Patch by Stephen R. van den Berg.
10658 * crypt/md5.h: Define md5_uintptr.
10660 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10662 * libio/tst_swprintf.c (main): Add test for string argument with
10664 * stdio-common/Makefile (tests): Add tst-sprintf.
10665 * stdio-common/tst-sprintf.c: New file.
10667 2001-12-13 Andreas Schwab <schwab@suse.de>
10669 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10670 zero precision with wide character string format.
10672 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
10674 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10675 but have a user supplied buffer, return the empty buffer, not NULL.
10677 2001-12-13 Ulrich Drepper <drepper@redhat.com>
10679 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10680 Patch by Eric Sharkey <sharkey@netrics.com>.
10682 * crypt/md5test.c (main): Add test for multiple calls to
10683 __md5_process_bytes to itererate over input string.
10685 2001-12-12 Ulrich Drepper <drepper@redhat.com>
10687 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10688 from __nis_findfastest. Take timeout value from parameter.
10689 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10690 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10691 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
10693 2001-12-12 Andreas Jaeger <aj@suse.de>
10695 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10696 combreloc test so that it works in this case.
10698 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10700 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
10702 * sysdeps/sh/Makefile: New file.
10703 * sysdeps/sh/_mcount.S: New file.
10704 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10705 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10707 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10709 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10710 limitation [PR libc/2564].
10712 2001-12-11 Jakub Jelinek <jakub@redhat.com>
10714 * elf/Makefile (dl-routines): Add conflict.
10715 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10716 (ld.so): Add _begin local symbol.
10717 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
10719 * elf/dl-deps.c (_dl_build_local_scope): New function.
10720 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
10722 * elf/do-rel.h (VALIDX): Define.
10723 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
10724 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
10726 * elf/dl-conflict.c: New file.
10727 * elf/dl-lookup.c (_dl_debug_bindings): New function.
10728 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
10730 (_dl_lookup_symbol_skip): Likewise.
10731 (_dl_lookup_versioned_symbol): Likewise.
10732 (_dl_lookup_versioned_symbol_skip): Likewise.
10733 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
10734 define to ElfW(Rel).
10735 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
10736 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
10738 Don't adjust address dynamic tags if l_addr is 0.
10739 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
10740 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
10741 (VALIDX, ADDRIDX): Define.
10742 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
10743 (dl_main): Print library list for LD_TRACE_PRELINKING.
10744 If prelinking information can be used, skip relocating libraries and
10745 call _dl_resolve_conflicts instead.
10746 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
10747 * elf/dl-load.c (_dl_map_object): Don't create fake libs
10748 if LD_TRACE_PRELINKING.
10749 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
10751 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
10752 (DL_DEBUG_PRELINK): Define.
10753 (_dl_resolve_conflicts): Add prototype.
10755 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
10756 .plt for prelinked libraries where prelinking info cannot be used.
10757 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
10758 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
10759 * sysdeps/arm/bits/link.h: New file.
10760 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
10761 content of .got[1].
10762 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10763 (ELF_MACHINE_PLT_REL): Define.
10764 (elf_machine_rela, elf_machine_rela_relative): New functions.
10765 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
10766 of adjusting it if prelinked and prelinking cannot be used.
10767 * sysdeps/i386/bits/link.h: New file.
10768 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
10769 content of .got[1].
10770 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
10771 (ELF_MACHINE_PLT_REL): Define.
10772 (elf_machine_rela, elf_machine_rela_relative): New functions.
10773 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
10774 of adjusting it if prelinked and prelinking cannot be used.
10775 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
10776 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
10777 to find out map for R_PPC_JMP_SLOT relocs.
10778 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
10779 (OPCODE_BA): Define.
10780 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10781 libraries where prelinking info cannot be used.
10782 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
10783 (elf_machine_fixup_plt): Call sparc_fixup_plt.
10784 (elf_machine_rela): Set value to 0 if relocating conflicts.
10785 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
10786 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
10787 (sparc64_fixup_plt): Fix a typo.
10788 (elf_machine_rela): Set value to 0 if relocating conflicts.
10789 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
10790 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
10791 libraries where prelinking info cannot be used.
10792 * sysdeps/sh/bits/link.h: New file.
10793 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
10794 content of .got[1].
10795 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
10796 of adjusting it if prelinked and prelinking cannot be used.
10797 * sysdeps/s390/s390-32/bits/link.h: New file.
10798 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10799 Save original content of .got[1].
10800 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10801 of adjusting it if prelinked and prelinking cannot be used.
10802 * sysdeps/s390/s390-64/bits/link.h: New file.
10803 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
10804 Save original content of .got[1].
10805 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
10806 of adjusting it if prelinked and prelinking cannot be used.
10807 * sysdeps/x86_64/bits/link.h: New file.
10808 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10809 Save original content of .got[1].
10810 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
10811 of adjusting it if prelinked and prelinking cannot be used.
10813 2001-12-11 Ulrich Drepper <drepper@redhat.com>
10815 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
10816 where appropriate instead of numbers. Little optimizations.
10818 2001-12-10 Roland McGrath <roland@frob.com>
10820 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
10823 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
10824 set to GLIBC_2.2.5, not GLIBC_2.2.4.
10826 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
10827 Fix conditionals so this is set by default for stdio and not for libio.
10828 * sysdeps/mach/hurd/configure: Regenerated.
10830 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
10832 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
10834 2001-12-10 Ulrich Drepper <drepper@redhat.com>
10836 * io/Makefile (tests): Add bug-ftw3.
10837 * io/bug-ftw3.c: New file.
10839 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
10840 matches and GLOB_NOCHECK is set.
10841 * posix/globtest.sh: Correct expected result for NOCHECK test.
10843 * po/ca.po: Update from translation team.
10845 2001-12-09 Ulrich Drepper <drepper@redhat.com>
10847 Implement transliteration of characters in strings of the locale
10849 * locale/programs/linereader.c: Adjust for additional parameter to
10851 (get_string): If character <Uxxxx> is not found try to transliterate
10853 * locale/programs/ld-ctype.c: Adjust for additional parameter to
10854 lr_token. Add const to charmap parameter of all functions.
10855 (find_translit, find_translit2): New functions.
10856 * locale/programs/charmap.c: Adjust for additional parameter to
10858 * locale/programs/repertoire.c: Likewise.
10859 * locale/programs/linereader.h: Likewise.
10860 * locale/programs/ld-address.c: Likewise. Add const to charmap
10861 parameter of all functions.
10862 * locale/programs/ld-collate.c: Likewise.
10863 * locale/programs/ld-identification.c: Likewise.
10864 * locale/programs/ld-measurement.c: Likewise.
10865 * locale/programs/ld-messages.c: Likewise.
10866 * locale/programs/ld-monetary.c: Likewise.
10867 * locale/programs/ld-name.c: Likewise.
10868 * locale/programs/ld-numeric.c: Likewise.
10869 * locale/programs/ld-paper.c: Likewise.
10870 * locale/programs/ld-paper.c: Likewise.
10871 * locale/programs/ld-telephone.c: Likewise.
10872 * locale/programs/ld-time.c: Likewise.
10873 * locale/programs/locfile.c: Likewise.
10874 * locale/programs/localedef.c: Likewise.
10875 * locale/programs/localedef.h: Likewise.
10876 * locale/programs/locfile.h: Likewise. Add declaration for
10878 * locale/programs/simple-hash.c: Add const to first parameter of
10879 find_entry, iterate_table, and lookup.
10880 * locale/programs/simple-hash.h: Likewise.
10881 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
10883 * include/locale.h: Define __LC_LAST.
10884 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
10886 2001-12-07 Geoff Keating <geoffk@redhat.com>
10888 * sysdeps/powerpc/Dist: Update for recent FP changes.
10889 * sysdeps/powerpc/fpu/Dist: Likewise.
10891 2001-12-07 Andreas Schwab <schwab@suse.de>
10893 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
10895 2001-12-06 Geoff Keating <geoffk@redhat.com>
10897 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
10898 save/restore functions here.
10899 (libm-support): Don't define these functions here.
10900 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
10902 * sysdeps/powerpc/fe_nomask.c: Move to...
10903 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
10904 * sysdeps/powerpc/fprrest.S: Move to...
10905 * sysdeps/powerpc/fpu/fprrest.S: ... here.
10906 * sysdeps/powerpc/fprsave.S: Move to...
10907 * sysdeps/powerpc/fpu/fprsave.S: ... here.
10909 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10911 * sysdeps/unix/sysv/linux/opensock.c: New file.
10913 2001-12-06 Geoff Keating <geoffk@redhat.com>
10915 * config.make.in (with-fp): Define from configure.
10916 * configure.in: Substitute with_fp.
10917 * configure: Regenerate.
10918 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
10919 specified, and don't change FPU environment.
10921 2001-12-06 Ulrich Drepper <drepper@redhat.com>
10923 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
10924 * assert/assert.c: Check result of __asprintf call and don't use
10925 string if it failed.
10926 * assert/assert-perr.c: Likewise.
10927 * inet/rcmd.c: Likewise.
10928 * locale/programs/localedef.c (main): Check result of
10929 construct_output_path and exit if it failed.
10930 (construct_output_path): Check result of asprintf and mkdir calls and
10931 fail if they failed.
10932 * posix/getopt.c: Check result of __asprintf calls and fail if
10934 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
10936 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10938 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
10940 * sysdeps/generic/strncase.c: Likewise.
10941 * string/tester.c: Add tests for strcasecmp and strncasecmp.
10943 2001-12-05 Geoff Keating <geoffk@redhat.com>
10945 * scripts/cpp: Test the exit status from 'type', not 'awk'.
10947 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
10948 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
10949 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
10950 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
10951 * sysdeps/powerpc/fclrexcpt.c: Move to...
10952 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
10953 * sysdeps/powerpc/fpu_control.h: Move to...
10954 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
10956 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10958 * iconvdata/ibm1129.h: Remove duplicate mappings.
10959 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
10960 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
10961 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10963 * timezone/zic.c: Fix handling of turnaround times.
10964 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
10966 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
10968 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
10971 2001-12-05 Ulrich Drepper <drepper@redhat.com>
10973 * posix/regex.c: For use outside glibc defined bounded pointer
10974 macros here. Patch by Jim Meyering <jim@meyering.net>.
10976 * iconvdata/Makefile (modules): Add TCVN5712-1.
10977 * iconvdata/TESTS: Add TCVN5712-1.
10978 * iconvdata/gconv-modules: Likewise.
10979 * iconvdata/tcvn5712-1.c: New file.
10980 * iconvdata/testdata/TCVN-5712: New file.
10981 * iconvdata/testdata/TCVN-5712..UTF8: New file.
10983 2001-12-04 Ulrich Drepper <drepper@redhat.com>
10985 * iconvdata/cp1258.c: Optimize conversion from UCS4.
10987 2001-12-02 Roland McGrath <roland@frob.com>
10989 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
10991 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
10992 Reported by Jeff Bailey <jbailey@nisa.net>.
10994 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
10995 Reported by Jeff Bailey <jbailey@nisa.net>.
10997 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
10998 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
10999 Reported by Jeff Bailey <jbailey@nisa.net>.
11001 2001-12-01 Roland McGrath <roland@frob.com>
11003 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11004 missing backslash in test arguments.
11005 * sysdeps/mach/hurd/configure: Regenerated.
11007 2001-11-26 Roland McGrath <roland@frob.com>
11009 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11010 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11012 2001-11-30 Ulrich Drepper <drepper@redhat.com>
11014 * iconvdata/Makefile (modules): Add ARMSCII-8.
11015 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11016 * iconvdata/armscii-8.c: New file.
11018 2001-11-29 Jakub Jelinek <jakub@redhat.com>
11020 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11021 don't match, fix {{a,b},c} globbing, clean up.
11022 Patch by Flavio Veloso <flaviovs@magnux.com>.
11023 * posix/globtest.sh: Add new tests.
11025 2001-11-29 Andreas Jaeger <aj@suse.de>
11027 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11028 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11030 * sysdeps/generic/abort.c: Include libioP.h for
11031 _IO_flush_all_lockp prototype.
11033 2001-11-29 Ulrich Drepper <drepper@redhat.com>
11035 * posix/regex.h: Define __restrict_arr correctly.
11037 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11039 * iconvdata/ibm1163.c: New file.
11040 * iconvdata/ibm1163.h: New file.
11041 * iconvdata/ibm1164.c: New file.
11042 * iconvdata/ibm1164.h: New file.
11043 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11044 * iconvdata/Makefile: Likewise.
11045 * iconvdata/testdata/IBM1163: New file.
11046 * iconvdata/testdata/IBM1163..UTF8: New file.
11047 * iconvdata/testdata/IBM1164: New file.
11048 * iconvdata/testdata/IBM1164..UTF8: New file.
11049 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11051 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
11052 * iconvdata/ibm1124.h: Likewise.
11053 * iconvdata/ibm1132.h: Likewise.
11054 * iconvdata/ibm1133.h: Likewise.
11055 * iconvdata/ibm1160.h: Likewise.
11056 * iconvdata/ibm1161.h: Likewise.
11057 * iconvdata/ibm1162.h: Likewise.
11058 * iconvdata/ibm856.h: Likewise.
11059 * iconvdata/ibm922.h: Likewise.
11060 * iconvdata/ibm930.h: Likewise.
11061 * iconvdata/ibm932.h: Likewise.
11062 * iconvdata/ibm933.h: Likewise.
11063 * iconvdata/ibm935.h: Likewise.
11064 * iconvdata/ibm937.h: Likewise.
11065 * iconvdata/ibm939.h: Likewise.
11066 * iconvdata/ibm943.h: Likewise.
11067 * iconvdata/ibm930.c: Pretty printing.
11068 * iconvdata/ibm937.c: Avoid access accross array boundary.
11070 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11071 the current locale's codeset.
11072 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11073 empty input string.
11074 * iconv/iconv_prog.c: Pass empty strings as default value for to-
11075 and from-charset. Don't determine locale's charset here.
11077 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
11078 as the old _IO_flush_all but lock only if parameter is nonzero.
11079 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11080 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11081 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11082 if libio is used [PR libc/2575].
11084 2001-11-28 Jakub Jelinek <jakub@redhat.com>
11086 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11087 __signbitl): Only define for ISO C99.
11089 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11091 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11092 herrnop to NETDB_INTERNAL if we run out of buffer space.
11094 2001-11-28 Ulrich Drepper <drepper@redhat.com>
11096 * nss/nss_files/files-XXX.c (internal_getent): Correct input
11097 overflow test for platforms with signed char.
11098 Reported by Andrew Haley <aph@cambridge.redhat.com>.
11100 2001-11-28 Bruno Haible <bruno@clisp.org>
11102 * locale/programs/simple-hash.c (lookup_2): Remove function.
11103 (insert_entry_2): Call lookup instead of lookup_2.
11105 2001-03-04 Bruno Haible <bruno@clisp.org>
11107 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11109 2001-10-31 Bruno Haible <bruno@clisp.org>
11111 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11113 2001-03-21 Bruno Haible <bruno@clisp.org>
11115 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11116 chokes on empty macro arguments.
11117 * intl/plural.y: Add #pragma for alloca on AIX 3.
11119 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11121 * intl/dcigettext.c (guess_category_value): Only implement for
11122 glibc. Otherwise rely on function _nl_locale_name which isn't
11123 present in the glibc sources.
11125 2001-09-24 Bruno Haible <bruno@clisp.org>
11127 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11128 transliteration when building on a glibc system but outside glibc.
11130 2001-09-22 Bruno Haible <bruno@clisp.org>
11132 * intl/plural-eval.c: New file, extracted from dcigettext.c.
11133 * intl/dcigettext.c (plural_eval): Remove function, moved to
11134 intl/plural-eval.c.
11135 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11136 Include plural-eval.c.
11138 2001-09-22 Bruno Haible <bruno@clisp.org>
11140 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11141 don't start with a digit; nplurals must be positive.
11143 2001-09-02 Bruno Haible <bruno@clisp.org>
11145 * intl/plural-exp.h: New file, extracted from gettextP.h.
11146 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11147 * intl/gettextP.h (struct expression, struct parse_args,
11148 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11149 * intl/loadmsgcat.c: Include plural-exp.h.
11150 (PLURAL_PARSE): Move macro to plural-exp.h.
11151 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11153 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
11154 EXTRACT_PLURAL_EXPRESSION.
11155 (_nl_unload_domain): Update.
11156 * intl/dcigettext.c: Include plural-exp.h.
11157 * intl/plural.y: Include plural-exp.h, not gettextP.h.
11158 (FREE_EXPRESSION): Move macro to plural-exp.h.
11159 * intl/Makefile (routines): Add plural-exp.
11160 (distribute): Add plural-exp.h.
11162 2001-07-28 Bruno Haible <bruno@clisp.org>
11164 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11165 isdigit, tolower argument to 'unsigned char'.
11166 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11168 * intl/localealias.c (read_alias_file): Cast isspace argument to
11171 2001-10-20 Bruno Haible <bruno@clisp.org>
11173 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11175 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11176 with the variable 'index' in plural_lookup.
11177 * intl/l10nflist.c (strchr): Likewise.
11178 * intl/localealias.c (strchr): Likewise.
11180 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11181 * intl/bindtextdom.c: Likewise.
11182 * intl/dcigettext.c: Likewise.
11183 * intl/dgettext.c: Likewise.
11184 * intl/dngettext.c: Likewise.
11185 * intl/explodename.c: Likewise.
11186 * intl/finddomain.c: Likewise.
11187 * intl/gettext.c: Likewise.
11188 * intl/l10nflist.c: Likewise.
11189 * intl/loadmsgcat.c: Likewise.
11190 * intl/localealias.c: Likewise.
11191 * intl/ngettext.c: Likewise.
11192 * intl/textdomain.c: Likewise.
11193 * intl/gettext.h: Assume <limits.h> exists.
11195 2001-11-27 Ulrich Drepper <drepper@redhat.com>
11197 * stdio-common/Makefile (tests): Add scanf11.
11198 * stdio-common/scanf11.c: New file.
11200 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11202 * version.h (RELEASE): Define as development.
11203 (VERSION): Set to 2.2.90.
11205 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
11207 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11208 * nis/nss_nis/nis-grp.c: Likewise.
11209 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11211 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11212 * nis/nss_nis/nis-pwd.c: Likewise.
11213 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11215 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11216 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11217 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11219 * nscd/grpcache.c: Use strtoul instead of atol.
11220 * nscd/pwdcache.c: Likewise.
11221 * nss/getent.c: Likewise.
11223 2001-11-27 Paul Eggert <eggert@twinsun.com>
11225 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11226 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11228 2001-11-19 Bruno Haible <bruno@clisp.org>
11230 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11232 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11233 improves the quality of the hash function, especially for short
11236 2001-11-26 Ulrich Drepper <drepper@redhat.com>
11238 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11239 are found call conv_error and not input_error [PR libc/2669].
11241 * math/bits/mathcalls.h: Mark ceil and floor as const.
11242 Reported by David Mosberger.
11244 2001-11-21 Jim Meyering <meyering@lucent.com>
11246 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11247 Define to be __-prefixed.
11248 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11250 2001-11-26 Andreas Jaeger <aj@suse.de>
11252 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11255 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
11257 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11260 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11261 unused variables. Fix threshold for returning 1.0.
11263 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11266 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11267 remove unused variables.
11269 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11271 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11272 include local math header files.
11274 2001-11-22 Andreas Jaeger <aj@suse.de>
11276 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11279 2001-11-21 Andreas Jaeger <aj@suse.de>
11281 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11283 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11286 2001-11-15 Andreas Jaeger <aj@suse.de>
11288 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11289 compilers that support it.
11291 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11292 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11293 * stdlib/stdlib.h: Likewise.
11295 2001-11-17 Ulrich Drepper <drepper@redhat.com>
11297 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11298 statement with gotos.
11299 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11301 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
11303 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11305 2001-11-15 Ulrich Drepper <drepper@redhat.com>
11307 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11309 2001-10-02 Jakub Jelinek <jakub@redhat.com>
11310 H.J. Lu <hjl@gnu.org>
11312 * Versions.def (libc): Add GCC_3.0.
11313 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11314 if gcc supports this flag.
11315 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11316 (gcc3): Allow glibc to be compiled with gcc 3.x.
11317 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11318 * config.make.in (static-libgcc, unwind-find-fde): Add.
11319 * Makerules (build-shlib-helper, build-module-helper): Use it.
11320 * scripts/versions.awk: Make sure GLIBC_ versions come first.
11321 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11323 (_fini): Call __deregister_frame_info_bases if
11324 __register_frame_info_bases was used to register.
11325 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11327 (__register_frame_info_bases, __register_frame_info_table_bases,
11328 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11329 * elf/Makefile (routines): Add unwind-dw2-fde.
11330 (shared-only-routines): Add unwind-dw2-fde.
11331 * sysdeps/alpha/gccframe.h: New file.
11332 * sysdeps/arm/gccframe.h: New file.
11333 * sysdeps/generic/framestate.c: New file.
11334 * sysdeps/generic/dwarf2.h: New file.
11335 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11336 * sysdeps/generic/unwind-dw2-fde.c: New file.
11337 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11338 * sysdeps/generic/unwind-dw2-fde.h: New file.
11339 * sysdeps/generic/unwind-dw2.c: New file.
11340 * sysdeps/generic/unwind-pe.h: New file.
11341 * sysdeps/generic/unwind.h: New file.
11342 * sysdeps/hppa/gccframe.h: New file.
11343 * sysdeps/i386/gccframe.h: New file.
11344 * sysdeps/m68k/gccframe.h: New file.
11345 * sysdeps/mips/gccframe.h: New file.
11346 * sysdeps/powerpc/gccframe.h: New file.
11347 * sysdeps/s390/gccframe.h: New file.
11348 * sysdeps/sh/gccframe.h: New file.
11349 * sysdeps/sparc/gccframe.h: New file.
11350 * sysdeps/vax/gccframe.h: New file.
11351 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11352 Set on all architectures except ia64.
11353 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11355 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11356 __deregister_frame_info): Move to elf/Versions.
11357 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11358 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11359 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11360 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11361 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11362 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11363 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11364 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11365 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11366 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11367 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11368 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11369 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11370 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11371 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11372 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11373 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11374 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11376 2001-11-15 Jeff Law <law@redhat.com>
11378 * posix/regex.c (uintptr_t): Do not provide a definition if the
11379 system provided one.
11381 2001-11-13 Roland McGrath <roland@frob.com>
11383 * stdio-common/tmpfile.c: Moved to ...
11384 * sysdeps/generic/tmpfile.c: ... here.
11385 * sysdeps/mach/hurd/tmpfile.c: New file.
11387 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11388 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11389 (fopenport): Define as weak alias.
11391 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11392 * libio/libioP.h: ... to here.
11394 2001-11-12 Ulrich Drepper <drepper@redhat.com>
11396 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11397 program header twice. Construct list with the needed information.
11399 2001-11-10 Ulrich Drepper <drepper@redhat.com>
11401 * po/ca.po: Update from translation team.
11403 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11404 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
11405 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11406 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11408 2001-11-10 Andreas Jaeger <aj@suse.de>
11410 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11411 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11412 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11414 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11416 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11418 * elf/dl-load.c (is_dst): New function.
11419 (_dl_dst_count): Use is_dst to check for DST variable.
11420 (_dl_dst_substitute): Likewise.
11422 2001-11-09 Roland McGrath <roland@frob.com>
11424 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11425 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11426 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11427 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11428 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11429 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11430 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11431 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11432 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11433 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11434 * sysdeps/mach/hurd/powerpc/Dist: New file.
11436 * hurd/privports.c (__get_privileged_ports):
11437 Only contact the proc server if necessary for this call.
11438 Suggested by Neal H Walfield <neal@cs.uml.edu>.
11439 Check error return for mach_port_mod_refs.
11441 2001-11-09 Andreas Schwab <schwab@suse.de>
11443 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11445 2001-11-09 Ulrich Drepper <drepper@redhat.com>
11447 * elf/dl-load.c (lose): Remove some unnecessary code. The new
11448 object is always the last in the list.
11449 (_dl_map_object_from_fd): Delete code to remove from object list
11450 when DF_1_NOOPEN is seen. This is done in lose.
11452 2001-11-08 Ulrich Drepper <drepper@redhat.com>
11454 * elf/dl-object.c (_dl_new_object): Various small optimizations.
11456 2001-11-07 Ulrich Drepper <drepper@redhat.com>
11458 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11459 HWCAP_CHECK macro code.
11461 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11462 Now returns MAP_FAILED on error.
11463 * elf/rtld.c: Adjust caller.
11464 * sysdeps/generic/dl-cache.c: Likewise.
11465 * sysdeps/generic/ldsodefs.h: Adjust description.
11467 * elf/dl-version.c (match_symbol): Optimize error handling for size.
11468 (_dl_check_map_versions): Likewise.
11470 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11472 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11473 _dl_signal_error directly, always use lose. Set fd to -1 after
11475 (lose): Don't call close if fd == -1.
11477 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
11479 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
11480 Also fix typo @code {mbsinit} to @code{mbsinit}.
11482 2001-11-06 Ulrich Drepper <drepper@redhat.com>
11484 * elf/dl-profile.c: Replace state variable with simple flag named
11485 running. Remove commented-out code.
11487 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11488 (_dl_init_paths): Likewise.
11489 (_dl_map_object_from_fd): Likewise.
11490 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11492 2001-11-06 Roland McGrath <roland@frob.com>
11494 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11495 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11497 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11498 sysdeps/powerpc/elf/sysdep.h.
11499 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11501 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11503 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
11505 (process_envvars): Some more optimizations.
11506 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11508 * elf/elf.h: Add dynamic tag definitions for prelinking.
11510 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11511 Rewrite code to remove environment varables for SUID binaries.
11512 Small optimization in LD_PROFILE handling.
11513 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11515 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11517 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11519 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11520 strings. Change type of second parameter.
11521 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11524 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11526 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
11528 * manual/string.texi: Fix typos.
11529 * manual/examples/argp-ex2.c: Likewise.
11531 2001-11-05 Roland McGrath <roland@frob.com>
11533 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11534 the more-specific unix/sysv/linux/powerpc file and breaks everything.
11535 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11536 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11537 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11538 here, put under [__ELF__].
11540 2001-11-05 Ulrich Drepper <drepper@redhat.com>
11542 * manual/charset.texi: Extensive editing work.
11543 * manual/nss.texi: Likewise.
11544 Changes by Dennis Grace <dgrace@us.ibm.com>.
11546 2001-11-04 Roland McGrath <roland@frob.com>
11548 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11549 parameter to dir_mkfile.
11551 2001-11-02 Jakub Jelinek <jakub@redhat.com>
11553 * string/bits/string2.h (__strndup): If n is smaller than len, set
11555 * string/tester.c (test_strndup): New function.
11558 2001-11-01 Ulrich Drepper <drepper@redhat.com>
11560 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11562 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11563 * scripts/cpp: New file.
11565 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11566 for rtld_search_dirs content. Minor optimizations.
11568 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11570 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11571 avoiding unnecessary duplication.
11573 2001-10-31 Jakub Jelinek <jakub@redhat.com>
11575 * elf/dl-load.c (_dl_map_object): If library was found using
11576 LD_LIBRARY_PATH, don't try RUNPATH list.
11578 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
11580 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11581 Correct second argument of register_dump call.
11582 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11585 2001-10-31 Ulrich Drepper <drepper@redhat.com>
11587 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11589 * iconvdata/TESTS: Likewise.
11590 * iconvdata/gconv-modules: Likewise.
11591 * iconvdata/ibm1132.c: New file.
11592 * iconvdata/ibm1132.h: New file.
11593 * iconvdata/ibm1133.c: New file.
11594 * iconvdata/ibm1133.h: New file.
11595 * iconvdata/ibm1162.c: New file.
11596 * iconvdata/ibm1162.h: New file.
11597 * iconvdata/testdata/IBM1132: New file.
11598 * iconvdata/testdata/IBM1132..UTF8: New file.
11599 * iconvdata/testdata/IBM1133: New file.
11600 * iconvdata/testdata/IBM1133..UTF8: New file.
11601 * iconvdata/testdata/IBM1162: New file.
11602 * iconvdata/testdata/IBM1162..UTF8: New file.
11603 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11605 * string/string.h: Fix typo in comment.
11606 * wcsmbs/wchar.h: Likewise.
11608 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
11610 * manual/getopt.texi (getopt_long, getopt_long_only): Include
11611 const in type of longopts parameter.
11613 2001-10-29 Andreas Jaeger <aj@suse.de>
11615 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11617 2001-10-29 Kevin Ryde <user42@zip.com.au>
11619 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11620 output, clarify `#' behaviour on 0.
11621 (Floating-Point Conversions): Clarify that %g only uses %e when
11622 the exponent would be greater than 1.
11624 2001-10-28 Roland McGrath <roland@frob.com>
11626 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11627 * sysdeps/mach/powerpc/machine-sp.h: New file.
11628 * sysdeps/mach/powerpc/sysdep.h: New file.
11629 * sysdeps/mach/powerpc/thread_state.h: New file.
11631 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11632 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
11633 expect to need the same thing on every platform.
11635 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11636 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11638 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11639 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11640 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11641 Move all these assembly-related definitions to ...
11642 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11644 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11645 by Peter Bruin <pjbruin@dds.nl>.
11647 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11648 packing results for a `poll' call.
11650 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11652 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11654 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11655 bracket expression.
11657 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11659 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11661 2001-10-24 H.J. Lu <hjl@gnu.org>
11663 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11664 Use __BEGIN_DECLS/__END_DECLS around prototypes.
11665 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11667 2001-10-21 Jim Meyering <meyering@lucent.com>
11669 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
11670 this code would end up calling gettext even in packages built
11671 with --disable-nls.
11672 * posix/getopt.c (_): Likewise.
11673 * posix/regex.c (_): Likewise.
11675 2001-10-26 Ulrich Drepper <drepper@redhat.com>
11677 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11678 lookup not ip6.int.
11679 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11680 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11682 2001-10-19 Jakub Jelinek <jakub@redhat.com>
11684 * misc/sys/cdefs.h (__attribute_used__): Define.
11685 * elf/rtld.c (_dl_start): Add __attribute_used__.
11686 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11688 2001-10-25 Andreas Schwab <schwab@suse.de>
11690 * stdlib/a64l.c: Expect least significant digit first.
11691 * stdlib/l64a.c: Produce least significant digit first.
11692 * stdlib/Makefile (tests): Add test-a64l.
11693 * stdlib/test-a64l.c: New file.
11694 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11696 2001-10-21 Ulrich Drepper <drepper@redhat.com>
11698 * po/sk.po: Update from translation team.
11700 2001-10-18 Ulrich Drepper <drepper@redhat.com>
11702 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11704 2001-10-18 Andreas Schwab <schwab@suse.de>
11706 * math/libm-test.inc (print_ulps): Print ulp values rounded to
11708 (print_function_ulps): Likewise.
11709 (print_complex_function_ulps): Likewise.
11710 (print_max_error): Likewise.
11711 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
11713 2001-10-16 Andreas Schwab <schwab@suse.de>
11715 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11718 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
11719 BSD_SETJMP or BSD__SETJMP is defined, resp.
11720 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
11721 a tail call to __sigsetjmp that would require extending the
11723 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
11724 * sysdeps/m68k/bsd-setjmp.S: Deleted.
11725 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
11726 Reported by Jes Sorensen <jes@trained-monkey.org>.
11728 2001-10-16 Andreas Jaeger <aj@suse.de>
11730 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
11731 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
11732 close PR libc/2589.
11734 2001-10-15 Ulrich Drepper <drepper@redhat.com>
11736 * po/ca.po: New file. Contributed by the translation team.
11738 2001-10-15 Ralf Baechle <ralf@gnu.org>
11740 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
11741 a varargs prototype. Remove dependency from kernel header files.
11743 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
11744 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
11746 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11748 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
11749 to generate hexadecimal identifier.
11750 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
11752 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
11754 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
11756 2001-10-14 Ulrich Drepper <drepper@redhat.com>
11758 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
11759 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
11760 Contributed by Stephen L Moshier <moshier@mediaone.net>.
11762 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
11763 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11764 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
11765 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
11766 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
11767 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
11769 * timezone/africa: Update from tzdata2001d.
11770 * timezone/asia: Likewise.
11771 * timezone/australasia: Likewise.
11772 * timezone/backward: Likewise.
11773 * timezone/europe: Likewise.
11774 * timezone/leapseconds: Likewise.
11775 * timezone/northamerica: Likewise.
11776 * timezone/southamerica: Likewise.
11777 * timezone/zone.tab: Likewise.
11779 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
11781 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
11782 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
11784 2001-10-12 Ulrich Drepper <drepper@redhat.com>
11786 * elf/elf.h (PT_TLS): New definition.
11788 2001-10-10 Jeff Bailey <jbailey@nisa.net>
11790 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
11793 2001-10-07 Roland McGrath <roland@frob.com>
11795 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
11797 2001-10-10 Ulrich Drepper <drepper@redhat.com>
11799 * elf/elf.h: Add more ELFOSABI_* constants.
11801 2001-10-04 Ben Collins <bcollins@debian.org>
11803 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
11804 decleration of __need_wchar_t.
11806 2001-10-03 Jakub Jelinek <jakub@redhat.com>
11808 * string/bits/string2.h (__strsep_g): Add prototype.
11809 (__strsep): Use it.
11810 * string/Versions (__strsep): Remove.
11811 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
11813 2001-10-07 Ulrich Drepper <drepper@redhat.com>
11815 * manua/llio.texi: Clarify file references added by mmap.
11816 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
11818 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
11820 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
11821 Add sc_loadrs and sc_rbs_bas to match current kernel.
11823 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11825 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
11827 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
11829 2001-09-27 Jakub Jelinek <jakub@redhat.com>
11831 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
11832 object has been bumped because of relocation dependency, avoid
11833 duplicates in l_scope.
11834 (show_scope): Fix typos.
11835 * elf/Makefile: Add rules to build and run reldep6.
11836 * elf/reldep6.c: New file.
11837 * elf/reldep6mod0.c: New file.
11838 * elf/reldep6mod1.c: New file.
11839 * elf/reldep6mod2.c: New file.
11840 * elf/reldep6mod3.c: New file.
11841 * elf/reldep6mod4.c: New file.
11843 2001-09-26 Jakub Jelinek <jakub@redhat.com>
11845 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
11847 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
11848 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
11849 for non-lazy binding. Fix .plt[32768+] handling.
11850 (elf_machine_plt_value): Don't add addend.
11851 (elf_machine_rela): Call sparc64_fixup_plt instead of
11852 elf_machine_fixup_plt.
11853 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
11854 dynamic linker at 0xfffff800XXXXXXXX.
11856 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
11858 2001-09-28 Ulrich Drepper <drepper@redhat.com>
11860 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
11862 2001-09-25 Jakub Jelinek <jakub@redhat.com>
11864 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
11865 declare __cmsg_data field if its size would be bigger than 0.
11866 (CMSG_DATA): Adjust accordingly.
11867 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
11868 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
11869 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
11870 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
11871 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11872 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
11873 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11875 2001-09-25 Ulrich Drepper <drepper@redhat.com>
11877 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
11878 * iconvdata/testdata/IBM1160: New file.
11879 * iconvdata/testdata/IBM1160..UTF8: New file.
11880 * iconvdata/testdata/IBM1161: New file.
11881 * iconvdata/testdata/IBM1161..UTF8: New file.
11882 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11884 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11886 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
11887 UL_SETFSIZE computations better.
11889 * rt/Makefile: Remove use of filter for librt again.
11891 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
11892 UL_SETFSIZE computations better.
11894 * string/Versions: Export __strsep for GLIBC_2.2.5.
11895 * string/bits/string2.h: Define all __STRING_INLINE functions if
11896 _FORCE_INLINES is defined.
11897 Use int instead of char of parameter types.
11898 (__strsep): Don't use __strsep_g. Don't define it.
11899 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
11900 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
11902 (__stpcpy_a_small): Renamed from __stpcpy_small.
11903 (__strcspn_c1): Don't define if _FORCE_INLINES.
11904 (__strspn_c1): Likewise.
11906 2001-09-22 Ben Collins <bcollins@debian.org>
11908 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
11909 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
11910 * sysdeps/ia64/bits/sigaction.h: Likewise.
11911 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
11913 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
11915 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
11917 2001-09-24 Jakub Jelinek <jakub@redhat.com>
11919 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
11921 2001-09-24 Ulrich Drepper <drepper@redhat.com>
11923 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
11925 2001-09-20 H.J. Lu <hjl@gnu.org>
11927 * include/dlfcn.h (__RTLD_SPROF): New definiton.
11928 * elf/dl-open.c (dl_open_worker): Return immediately after loading
11930 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
11931 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
11933 2001-09-20 H.J. Lu <hjl@gnu.org>
11935 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
11938 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11940 * nss/getent.c: Accept -s parameter to overwrite rules in
11941 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
11943 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
11944 with as many ".0" as necessary to form a complete address
11945 inet_network understands.
11947 * nss/getent.c: Various cleanups. Use simpler and fewer function
11950 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11952 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
11954 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
11956 2001-09-22 Ulrich Drepper <drepper@redhat.com>
11958 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
11960 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
11961 * iconvdata/ibm1160.c: New file.
11962 * iconvdata/ibm1160.h: New file.
11963 * iconvdata/ibm1161.c: New file.
11964 * iconvdata/ibm1161.h: New file.
11965 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11967 2001-09-19 Jakub Jelinek <jakub@redhat.com>
11969 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
11970 difference between base address and first PT_LOAD's virtual address,
11971 not the base address.
11973 2001-09-11 Tom Rix <trix@redhat.com>
11975 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
11976 ifdef for __getopt_clean_environment.
11977 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
11979 2001-09-22 Andreas Jaeger <aj@suse.de>
11981 * elf/reldep4.c (main): Add proper prototype to fix warning.
11983 * elf/reldep5.c (main): Remove unused variable.
11985 * math/math_private.h: Add prototypes.
11987 2001-09-21 Andreas Jaeger <aj@suse.de>
11989 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
11990 * sysdeps/x86_64/Dist: New file.
11991 * sysdeps/x86_64/soft-fp/Dist: New file.
11993 * sysdeps/gnu/Dist: Remove eval.c.
11995 2001-09-20 Ulrich Drepper <drepper@redhat.com>
11997 * malloc/memusage.c (realloc): Don't count already allocated
11998 memory in the sums.
11999 (me): Always use dlsym() to find the real implementations.
12001 * malloc/memusage.sh: Make -n option actually do something.
12003 2001-09-20 Andreas Jaeger <aj@suse.de>
12005 * elf/elf.h (R_390_NUM): Correct value.
12007 * Versions.def: Add missing versions 2.2.3 for libthread_db and
12010 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12011 for x86-64, install x86-64 into */lib64.
12013 * shlib-versions: Add x86-64.
12015 * elf/elf.h: Add x86-64 relocations.
12017 2001-09-19 Ulrich Drepper <drepper@redhat.com>
12019 * po/fr.po: Update from translation team.
12021 2001-09-19 Andreas Jaeger <aj@suse.de>
12023 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12024 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12025 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12026 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12027 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12028 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12029 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12030 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12031 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12032 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12033 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12034 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12035 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12036 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12037 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12038 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12039 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12040 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12041 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12042 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12043 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12044 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12045 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12046 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12047 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12048 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12049 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12050 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12051 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12052 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12053 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12054 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12055 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12056 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12057 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12058 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12059 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12060 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12061 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12062 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12063 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12064 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12065 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12066 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12067 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12068 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12069 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12070 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12071 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12072 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12073 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12074 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12075 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12076 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12077 * sysdeps/unix/x86_64/sysdep.S: New file.
12078 * sysdeps/unix/x86_64/sysdep.h: New file.
12079 * sysdeps/x86_64/Implies: New file.
12080 * sysdeps/x86_64/Makefile: New file.
12081 * sysdeps/x86_64/Versions: New file.
12082 * sysdeps/x86_64/__longjmp.S: New file.
12083 * sysdeps/x86_64/abort-instr.h: New file.
12084 * sysdeps/x86_64/atomicity.h: New file.
12085 * sysdeps/x86_64/bits/endian.h: New file.
12086 * sysdeps/x86_64/bits/setjmp.h: New file.
12087 * sysdeps/x86_64/bits/string.h: New file.
12088 * sysdeps/x86_64/bp-asm.h: New file.
12089 * sysdeps/x86_64/bsd-_setjmp.S: New file.
12090 * sysdeps/x86_64/bsd-setjmp.S: New file.
12091 * sysdeps/x86_64/dl-machine.h: New file.
12092 * sysdeps/x86_64/elf/initfini.c: New file.
12093 * sysdeps/x86_64/elf/start.S: New file.
12094 * sysdeps/x86_64/ffs.c: New file.
12095 * sysdeps/x86_64/ffsll.c: New file.
12096 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12097 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12098 * sysdeps/x86_64/fpu/e_acosl.c: New file.
12099 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12100 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12101 * sysdeps/x86_64/fpu/e_expl.c: New file.
12102 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12103 * sysdeps/x86_64/fpu/e_log10l.S: New file.
12104 * sysdeps/x86_64/fpu/e_log2l.S: New file.
12105 * sysdeps/x86_64/fpu/e_logl.S: New file.
12106 * sysdeps/x86_64/fpu/e_powl.S: New file.
12107 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12108 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12109 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12110 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12111 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12112 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12113 * sysdeps/x86_64/fpu/fegetenv.c: New file.
12114 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12115 * sysdeps/x86_64/fpu/fegetround.c: New file.
12116 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12117 * sysdeps/x86_64/fpu/fesetenv.c: New file.
12118 * sysdeps/x86_64/fpu/fesetround.c: New file.
12119 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12120 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12121 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12122 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12123 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12124 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12125 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12126 * sysdeps/x86_64/fpu/s_atanl.c: New file.
12127 * sysdeps/x86_64/fpu/s_cosl.S: New file.
12128 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12129 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12130 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12131 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12132 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12133 * sysdeps/x86_64/fpu/s_logbl.c: New file.
12134 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12135 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12136 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12137 * sysdeps/x86_64/fpu/s_rintl.c: New file.
12138 * sysdeps/x86_64/fpu/s_significandl.c: New file.
12139 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12140 * sysdeps/x86_64/fpu/s_sinl.S: New file.
12141 * sysdeps/x86_64/fpu/s_tanl.S: New file.
12142 * sysdeps/x86_64/gmp-mparam.h: New file.
12143 * sysdeps/x86_64/hp-timing.c: New file.
12144 * sysdeps/x86_64/hp-timing.h: New file.
12145 * sysdeps/x86_64/htonl.S: New file.
12146 * sysdeps/x86_64/memusage.h: New file.
12147 * sysdeps/x86_64/setjmp.S: New file.
12148 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12149 * sysdeps/x86_64/stackinfo.h: New file.
12150 * sysdeps/x86_64/sysdep.h: New file.
12151 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12153 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12156 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12158 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12159 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12161 2001-09-18 Andreas Schwab <schwab@suse.de>
12163 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12164 list, now that l_scope is a pointer.
12166 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12169 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
12171 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12172 (elf_machine_rela_relative): Add a missing declaration.
12174 2001-09-18 Jakub Jelinek <jakub@redhat.com>
12176 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12177 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12178 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12179 ldd-rewrite scripts.
12181 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12183 * elf/ldd.bash.in: Update copyright message.
12185 2001-09-17 H.J. Lu <hjl@gnu.org>
12187 * hurd/hurdmalloc.c (bcopy): Removed.
12188 (realloc): Replace bcopy with memcpy.
12189 * hurd/path-lookup.c (file_name_path_scan): Likewise.
12190 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12191 * sunrpc/rpcinfo.c (pmapdump): Likewise.
12193 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12194 (gethostbyaddr): Likewise.
12195 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12197 2001-09-18 Ulrich Drepper <drepper@redhat.com>
12199 * sysdeps/gnu/eval.c: Removed.
12201 2001-09-18 Andreas Jaeger <aj@suse.de>
12203 * sysdeps/i386/fpu/s_logbl.S: Move to ...
12204 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12206 * sysdeps/i386/fpu/s_rintl.S: Move to ...
12207 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12209 * sysdeps/i386/fpu/s_significandl.S: Move to ...
12210 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12212 2001-09-16 Ulrich Drepper <drepper@redhat.com>
12214 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12217 2001-09-14 H.J. Lu <hjl@gnu.org>
12219 * sysdeps/mips/fpu/libm-test-ulps: Updated.
12221 2001-09-14 Ulrich Drepper <drepper@redhat.com>
12223 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12224 Patch by Florian La Roche <laroche@redhat.com>.
12226 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12228 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12231 2001-09-14 Andreas Schwab <schwab@suse.de>
12233 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
12234 Sumner <bls@sgi.com>.
12235 * posix/execlp.c: Likewise.
12237 2001-09-13 Jakub Jelinek <jakub@redhat.com>
12239 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12240 is already found earlier in the search scope.
12242 2001-09-12 Jakub Jelinek <jakub@redhat.com>
12244 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12247 2001-09-13 Ulrich Drepper <drepper@redhat.com>
12249 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12251 2001-09-12 Ulrich Drepper <drepper@redhat.com>
12253 * config.h.in: Enforce optimization to be used.
12254 * Makeconfig (preprocess-versions): Define ASSEMBLER.
12255 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12256 * posix/Makefile (annexc-CFLAGS): Define to -O.
12257 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12259 2001-09-11 Ulrich Drepper <drepper@redhat.com>
12261 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12262 Patch by Stephan Kulow.
12264 2001-09-08 Ben Collins <bcollins@debian.org>
12266 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12267 usage of RESOLVE() (r_type, not reloc->r_type).
12269 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12271 * elf/dl-object.c: Avoid allocating extra memory block for name.
12272 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12273 allocated separately.
12274 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12276 2001-09-08 H.J. Lu <hjl@gnu.org>
12278 * po/zh_TW.po: Fix a typo.
12280 2001-09-07 Tom Rix <trix@redhat.com>
12282 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12284 2001-08-26 Tom Rix <trix@redhat.com>
12286 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12287 command line options.
12288 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12289 * sysdeps/unix/sysv/aix/start.c: Removed.
12290 * sysdeps/unix/sysv/aix/start-libc.c: New file.
12291 * sysdeps/unix/sysv/aix/init-first.c: New file.
12292 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12294 2001-09-08 Ben Collins <bcollins@debian.org>
12296 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12297 * sysdeps/generic/dl-machine.h: Likewise.
12298 * sysdeps/hppa/dl-fptr.c: Likewise.
12299 * sysdeps/ia64/dl-fptr.c: Likewise.
12300 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12301 * sysdeps/mips/dl-machine.h: Likewise.
12302 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12303 * sysdeps/powerpc/dl-machine.c: Likewise.
12305 2001-09-07 Ben Collins <bcollins@debian.org>
12307 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12309 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12311 2001-09-08 Ulrich Drepper <drepper@redhat.com>
12313 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12314 dependencies if necessary.
12316 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12317 loaded directly) determine length if l_initfini list by iterating
12318 over its elements. Minor optimizations.
12319 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12320 for dependency objects.
12321 If object was already loaded check whether any of the dependencies
12322 is already on the relocation dependency list. If yes, remove the
12323 latter. Minor optimizations.
12324 * elf/dl-lookup.c (add_dependency): Add check for self reference of
12325 maps here. Search l_initfini list only if the object was loaded
12326 directly and not only as a dependency.
12327 (_dl_lookup_symbol): Add relocation dependency also if object
12328 is not in global scope. Remove test for self-reference here.
12329 (_dl_lookup_versioned_symbol): Likewise.
12330 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
12331 element of first name record.
12332 * elf/loadtest.c: Add some more test to recognize early if an object
12334 * elf/Makefile: Add rules to build and run reldep5.
12335 * elf/reldep5.c: New file.
12336 * elf/reldepmod5.c: New file.
12337 * elf/reldepmod6.c: New file.
12339 * elf/reldep2.c: Fix typo.
12341 2001-09-07 Ulrich Drepper <drepper@redhat.com>
12343 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12344 elements. Change l_scope to be a pointer only.
12345 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12346 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12347 here add searchlist of newly open file to the dependency's scope.
12348 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12349 only searchlist from its scope. Free own scope array if necessary.
12350 * elf/Makefile (tests): Add dblload and dblunload now.
12352 2001-09-06 Andreas Jaeger <aj@suse.de>
12354 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12357 2001-09-05 Ulrich Drepper <drepper@redhat.com>
12359 * elf/Makefile: Add rules to build new tests. Don't run them yet since
12361 * elf/dblload.c: New file.
12362 * elf/dblloadmod1.c: New file.
12363 * elf/dblloadmod2.c: New file.
12364 * elf/dblloadmod3.c: New file.
12365 * elf/dblunload.c: New file.
12367 2001-09-04 Richard Henderson <rth@redhat.com>
12369 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12370 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12372 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12374 Correct very misleading message for error in failed runtime relocation.
12375 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12376 place of the error.
12377 (_dl_signal_cerror): Likewise.
12378 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12379 * elf/dl-close.c: Likewise.
12380 * elf/dl-deps.c: Likewise.
12381 * elf/dl-load.c: Likewise.
12382 * elf/dl-lookup.c: Likewise.
12383 * elf/dl-open.c: Likewise.
12384 * elf/dl-reloc.c: Likewise.
12385 * elf/dl-sym.c: Likewise.
12386 * elf/dl-version.c: Likewise.
12387 * sysdeps/generic/dl-sysdep.c: Likewise.
12389 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12391 * iconv/strtab.c (strtabinit): Initialize null Strent.
12392 (newstring): Move len == 0 handling...
12393 (strtabadd): ...here.
12394 If len == 1, return null Strent.
12395 When inserting a suffix of an existing string, check if
12396 it is not equal to some suffix already recorded.
12397 Copy left and right members over if adding longer string.
12399 2001-09-04 Jakub Jelinek <jakub@redhat.com>
12401 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12403 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12404 (__syscall_gethostname): Add prototype.
12406 2001-09-04 Ulrich Drepper <drepper@redhat.com>
12408 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12410 2001-09-02 Ulrich Drepper <drepper@redhat.com>
12412 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12414 2001-08-27 Roland McGrath <roland@frob.com>
12416 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12417 short, copy that much into NAME anyway before returning error.
12419 2001-09-01 Richard Henderson <rth@redhat.com>
12421 * sysdeps/alpha/elf/Dist: Remove file.
12422 * sysdeps/alpha/elf/Makefile: Remove file.
12423 * sysdeps/alpha/elf/crtbegin.S: Remove file.
12424 * sysdeps/alpha/elf/crtend.S: Remove file.
12425 * sysdeps/alpha/elf/initfini.c: New file.
12427 2001-09-01 Mark Kettenis <kettenis@gnu.org>
12429 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12430 * iconv/tst-iconv3.c: Likewise.
12432 2001-09-01 Jakub Jelinek <jakub@redhat.com>
12434 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12436 2001-09-01 Ulrich Drepper <drepper@redhat.com>
12438 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12440 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12441 * iconv/iconv_prog.c (insert_cache): New function.
12442 (print_known_names): If cache is used call insert_cache to use the
12443 information from the cache [PR libc/2509].
12445 2001-08-31 Ulrich Drepper <drepper@redhat.com>
12447 * time/strptime.c (strptime_internal): Recognize 'l' format and
12448 handle it like 'I' for symmetry with strftime.
12450 2001-08-31 Richard Henderson <rth@redhat.com>
12452 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12453 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12454 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12455 (print_statistics): Make scalar unsigned long long.
12456 * sysdeps/alpha/hp-timing.h: New file.
12458 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12460 * stdio-common/perror.c (perror): Save errno early, pass it
12461 down to perror_internal.
12462 (perror_internal): Add errnum argument.
12464 2001-08-31 Jakub Jelinek <jakub@redhat.com>
12466 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12467 Don't add old memory content for R_ALPHA_REFQUAD.
12469 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12471 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12474 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12475 instead of open, __close instead of close, __getpagesize instead
12478 * string/argz-stringify.c (__argz_stringify): Use __strnlen
12479 instead of strnlen.
12480 * include/string.h (strndupa): Redefine here to use __strnlen
12481 instead of strnlen.
12482 * string/strndup.c (__strndup): Use __strnlen not strnlen.
12484 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12487 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12489 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12490 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
12491 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12492 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12493 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12494 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12495 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12497 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12499 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12501 2001-08-30 Andreas Jaeger <aj@suse.de>
12503 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12504 contributed Stephen L Moshier.
12506 2001-08-30 Jakub Jelinek <jakub@redhat.com>
12508 * sunrpc/etc.rpc (sgi_fam): Add.
12510 2001-08-30 Ulrich Drepper <drepper@redhat.com>
12512 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12514 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12516 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12517 first is from a previous call.
12518 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12520 2001-08-29 Andreas Schwab <schwab@suse.de>
12522 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12524 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12526 * config.make.in (INSTALL_SCRIPT): Define.
12527 * Makeconfig (INSTALL_SCRIPT): Define.
12528 * Makerules (do-install-script): New macro to install scripts using
12530 (install-bin-script): New rule to install scripts with
12532 (install-bin-script-nosubdir): New rule.
12533 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12534 (distinfo-vars): Add $(install-bin-script).
12535 * Rules (others): Likewise.
12536 * Makefile (glibcbug): Install with install-bin-script.
12537 * debug/Makefile (xtrace): Likewise.
12538 (catchsegv): Likewise.
12539 * elf/Makefile (ldd): Likewise.
12540 * malloc/Makefile (mtrace): Likewise.
12541 * timezone/Makefile (tzselect): Likewise.
12543 2001-08-29 H.J. Lu <hjl@gnu.org>
12545 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12546 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12547 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12549 2001-08-29 Andreas Schwab <schwab@suse.de>
12551 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12553 2001-08-28 H.J. Lu <hjl@gnu.org>
12555 * Makeconfig (combreloc-LDFLAGS): New variable.
12556 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12557 * config.make.in (have-z-combreloc): New variable.
12558 * configure.in: Substitute libc_cv_z_combreloc.
12560 2001-08-29 Ulrich Drepper <drepper@redhat.com>
12562 * po/sv.po: Update from translation team.
12563 * po/fr.po: Likewise.
12564 * po/da.po: Likewise.
12566 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12568 * Makerules: Fix a typo: MD% -> MD5.
12570 2001-08-28 Ulrich Drepper <drepper@redhat.com>
12572 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12573 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12575 2001-08-28 Andreas Jaeger <aj@suse.de>
12577 * manual/libc-texinfo.sh: Add entry about free manuals.
12579 * manual/contrib.texi (Contributors): Fix cross reference.
12581 * manual/libc.texinfo (Copying): Include freemanuals.
12583 * manual/Makefile (appendices): Add freemanuals.
12585 * manual/freemanuals.texi: New file.
12586 Patch by Brian Youmans <3diff@gnu.org>.
12588 * manual/libm-err-tab.pl: Pretty print more platforms, print a
12591 * manual/math.texi (Errors in Math Functions): Fix grammar, start
12592 table on separate page.
12593 Patch by Brian Youmans <3diff@gnu.org>.
12595 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12597 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
12598 the connection went down after we first used it try to connect
12599 again and resend the message before printing to the console.
12600 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12602 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12604 * string/tst-strlen.c (main): Test strnlen (, -1) too.
12605 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12608 2001-08-27 Ulrich Drepper <drepper@redhat.com>
12610 * iconv/strtab.c (searchstring): Use correct length for comparison.
12611 (strtabadd): Account total size correct if new string has old string as
12614 2001-08-27 Jakub Jelinek <jakub@redhat.com>
12616 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12618 2001-08-27 Andreas Jaeger <aj@suse.de>
12620 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12622 * math/libm-test.inc (j0_test): Add extra tests.
12623 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12624 not x, in Hankel approximation.
12625 Patches by Stephen L Moshier.
12627 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12629 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12632 * configure.in: Fix test for .rela.dyn section.
12634 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12636 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12638 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12639 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12640 Pass type_class to _dl_lookup_*.
12641 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12642 Pass around just type_class instead of noexec, noplt pair.
12643 (_dl_lookup_versioned_symbol): Likewise.
12644 (_dl_lookup_symbol_skip): Pass around just type_class instead of
12645 noexec, noplt pair.
12646 (_dl_lookup_versioned_symbol_skip): Likewise.
12647 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12648 * elf/do-lookup.h (do_lookup): Likewise.
12649 * include/link.h (struct link_map): Replace noexec and noplt fields
12650 in l_lookup_cache with type_class field.
12651 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12652 ELF_RTYPE_CLASS_COPY): Define.
12653 Adjust prototypes for _dl_lookup_symbol and
12654 _dl_lookup_versioned_symbol.
12655 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12656 elf_machine_lookup_noexec_p): Remove.
12657 (elf_machine_type_class): Define.
12658 * sysdeps/arm/dl-machine.h: Likewise.
12659 * sysdeps/hppa/dl-machine.h: Likewise.
12660 * sysdeps/cris/dl-machine.h: Likewise.
12661 * sysdeps/i386/dl-machine.h: Likewise.
12662 * sysdeps/ia64/dl-machine.h: Likewise.
12663 * sysdeps/m68k/dl-machine.h: Likewise.
12664 * sysdeps/mips/mips64/dl-machine.h: Likewise.
12665 * sysdeps/mips/dl-machine.h: Likewise.
12666 * sysdeps/powerpc/dl-machine.h: Likewise.
12667 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12668 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12669 * sysdeps/sh/dl-machine.h: Likewise.
12670 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12671 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12673 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12675 * manual/message.texi (Advanced gettext functions): Change
12676 description of plural forms for Slovak.
12677 Reported by Marcel Telka <marcel@telka.sk>.
12679 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12680 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12682 2001-08-26 Jakub Jelinek <jakub@redhat.com>
12684 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12685 typo. Patch by Florian La Roche <laroche@redhat.com>.
12687 2001-08-26 Ulrich Drepper <drepper@redhat.com>
12689 * include/link.h (struct link_map): Add l_lookup_cache element.
12690 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12691 (RESOLVE_MAP): Likewise.
12692 (_dl_relocate_object): Remove cache initialization.
12693 * elf/dl-lookup.c: Rip out cache handling code.
12694 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12697 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12698 remove some __builtin_expect.
12699 (_dl_lookup_versioned_symbol): Likewise.
12701 * config.h.in: Add HAVE_Z_COMBRELOC.
12702 * configure.in: Add test for -z combreloc.
12704 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12705 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
12706 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
12707 case to almost no code.
12709 2001-08-25 Ulrich Drepper <drepper@redhat.com>
12711 * po/tr.po: Update from translation team.
12713 2001-08-24 Andreas Jaeger <aj@suse.de>
12715 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12718 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12720 * elf/rtld.c (print_statistics): Printf % after percent values.
12721 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
12723 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
12724 don't have to compute the hash value and initialize current_value.
12725 Move reference_name variable to where it is needed.
12726 (_dl_lookup_versioned_symbol): Likewise.
12728 2001-08-24 Roland McGrath <roland@frob.com>
12730 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
12731 Just test that strerror returns non-null for a few errno codes.
12733 2001-08-23 Roland McGrath <roland@frob.com>
12735 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
12736 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
12738 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
12740 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
12743 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12745 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
12748 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
12749 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
12751 * elf/rtld.c: Include <sys/param.h>.
12752 * elf/dl-reloc.c: Likewise.
12754 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12756 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
12757 empty to prevent junk from being generated.
12758 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
12760 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12762 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
12763 records. Rename endrel to relative, initialize it to r, and use it
12764 in elf_machine_rel_relative calls. Point r after relative relocs.
12766 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12768 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
12771 2001-08-24 Jakub Jelinek <jakub@redhat.com>
12773 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
12774 necessary. Undefine newly defined macros at the end.
12775 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
12776 Rename from elf_machine_rel_relative.
12777 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
12778 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
12779 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
12780 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
12782 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
12784 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
12785 Fix argument types.
12786 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
12787 Fix argument types.
12788 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
12789 Likewise. Fix argument types.
12790 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
12791 Likewise. Fix argument types.
12792 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
12793 Fix argument types.
12794 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
12795 ElfW(Rel) in argument.
12796 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
12799 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
12801 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
12803 2001-08-24 Andreas Jaeger <aj@suse.de>
12805 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
12806 Stephen L Moshier <moshier@mediaone.net>.
12808 2001-08-24 Ulrich Drepper <drepper@redhat.com>
12810 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
12811 first if RELCOUNT is set.
12813 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
12814 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
12815 elf_machine_rel_relative.
12816 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
12817 Minor optimizations.
12818 * sysdeps/arm/dl-machine.h: Likewise.
12819 * sysdeps/cris/dl-machine.h: Likewise.
12820 * sysdeps/hppa/dl-machine.h: Likewise.
12821 * sysdeps/i386/dl-machine.h: Likewise.
12822 * sysdeps/ia64/dl-machine.h: Likewise.
12823 * sysdeps/m68k/dl-machine.h: Likewise.
12824 * sysdeps/mips/dl-machine.h: Likewise.
12825 * sysdeps/powerpc/dl-machine.h: Likewise.
12826 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12827 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12828 * sysdeps/sh/dl-machine.h: Likewise.
12829 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12830 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12832 2001-08-23 Roland McGrath <roland@frob.com>
12834 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
12836 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
12837 sysdeps/mach version. Implement counting ("recursive") mutexes
12838 on top of cthreads mutexes.
12839 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
12841 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
12842 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
12843 (__libc_cleanup_region_start, __libc_cleanup_region_end,
12844 __libc_clean_end): Define these to call the cleanup function after
12845 normal exit when they're supposed to.
12847 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
12848 Take new first arg DOIT, a boolean saying whether to really install
12849 any cleanup handler.
12850 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
12851 (__libc_cleanup_end): Likewise.
12852 * sysdeps/generic/bits/libc-lock.h: Same changes.
12853 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
12854 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
12855 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
12857 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
12858 * sysdeps/generic/bits/stdio-lock.h
12859 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
12861 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12863 * elf/ldconfig.c (search_dir): Remove stale symlinks.
12865 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12867 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
12869 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
12871 (_dl_lookup_versioned_symbol): Likewise.
12872 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
12874 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
12875 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
12876 (lookup_cache, lookup_cache_versioned): Add declarations.
12878 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12880 * stdlib/tst-random.c (main): Swap parameters in fail call.
12881 Patch by Pete Bevin <pete@petebevin.com>.
12883 2001-08-23 Jakub Jelinek <jakub@redhat.com>
12885 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
12887 2001-08-23 Ulrich Drepper <drepper@redhat.com>
12889 * malloc/obstack.c: Indent preprocessor directives.
12890 Patch by Jim Meyering <meyering@ascend.com>.
12892 * po/ja.po: Update from translation team.
12894 2001-08-23 Roland McGrath <roland@frob.com>
12896 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
12898 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
12899 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
12901 2001-08-22 Roland McGrath <roland@frob.com>
12903 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
12904 __libc_lock_define_recursive.
12905 * elf/dl-open.c: Don't declare it here any more.
12906 * elf/dl-close.c: Likewise.
12907 * elf/dl-lookup.c: Likewise.
12908 * elf/dl-iteratephdr.c: Likewise.
12909 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
12910 __libc_lock_unlock_recursive.
12911 * elf/dl-close.c (_dl_close): Likewise
12912 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
12913 * elf/dl-open.c (_dl_open): Likewise
12915 * sysdeps/generic/bits/libc-lock.h
12916 (__libc_lock_define_recursive): New macro.
12917 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
12918 (_IO_lock_lock): Use __libc_lock_lock_recursive.
12919 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
12921 * conform/conformtest.pl (checknamespace): Sort the output list.
12923 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
12924 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
12925 definitions conditional on [__USE_XOPEN].
12927 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
12928 these unconditionally, not only use [__USE_BSD], so as to match
12929 the sysdeps/unix/sysv/linux files.
12931 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12933 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
12936 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
12939 2001-08-22 Roland McGrath <roland@frob.com>
12941 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
12942 conditionalization of sa_handler/sa_sigaction member types to
12943 match the sysdeps/unix/sysv/linux file.
12945 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12947 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
12948 symbol sizes a bit better.
12950 * sysdeps/ia64/strncpy.S: Complete rewrite.
12951 Contributed by Jakub Jelinek <jakub@redhat.com>.
12953 * string/stratcliff.c (main): Add strncpy test.
12955 2001-08-22 Roland McGrath <roland@frob.com>
12957 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
12958 and don't declare unsetenv or _environ directly.
12959 (unsetenv): Return int, not void. Use __environ instead of _environ.
12961 2001-08-01 Mark Kettenis <kettenis@gnu.org>
12963 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
12964 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
12965 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
12966 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
12967 test for cmsg struct size.
12969 2001-04-23 Paul Eggert <eggert@twinsun.com>
12971 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12972 Rename __argc to ___argc in prototypes to avoid compatibility
12973 problems with systems that reserve the identifier "__argc".
12974 Similarly for __argv.
12976 2001-08-21 Roland McGrath <roland@frob.com>
12978 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
12980 * mach/Makefile (tests): Removed.
12981 * mach/hello.c: File removed.
12983 2001-08-22 Ulrich Drepper <drepper@redhat.com>
12985 * po/sv.po: Update from translation team.
12987 * stdio-common/vfscanf.c: Fix handling of %l[].
12988 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
12990 * libio/Makefile (tests): Add tst-sscanf.
12991 * libio/tst-sscanf.c: New file.
12993 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
12994 * malloc/mtrace.c (tr_where): dli_sname always points to a
12995 non-empty string if != NULL.
12996 Reported by Tim Janik <timj@gtk.org>.
12998 2001-08-22 Jakub Jelinek <jakub@redhat.com>
13000 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13001 buf. Free resources on failure.
13002 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13003 (makefd_xprt): Likewise.
13004 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13005 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13006 * sunrpc/auth_unix.c (authunix_create): Likewise.
13008 2001-08-21 Jakub Jelinek <jakub@redhat.com>
13010 * string/strnlen.c: Remove.
13011 * sysdeps/generic/strnlen.c: New file.
13012 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13014 2001-08-21 Roland McGrath <roland@frob.com>
13016 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13017 as a macro, not an extern inline function.
13019 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13020 * Versions.def (libc): Add GLIBC_2.2.5 set.
13021 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13022 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13024 2001-08-20 Roland McGrath <roland@frob.com>
13026 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13027 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13029 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13031 * string/bits/string2.h: Remove strnlen optimization here.
13032 * sysdeps/i386/i486/bits/string.h: Add it here.
13034 2001-08-21 Wolfram Gloger <wg@malloc.de>
13036 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13038 2001-08-21 Ulrich Drepper <drepper@redhat.com>
13040 * po/gl.po: Update from translation team.
13042 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13044 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13045 * misc/err.c (convert_and_print): Likewise.
13047 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13050 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13052 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13053 change of the gregset_t type.
13054 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13056 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
13058 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13060 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13062 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13064 * string/strnlen.c: Fix the implementation. We cannot use memchr.
13066 2001-08-18 Mark Kettenis <kettenis@gnu.org>
13068 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13069 before calling the cthreads initialization code.
13071 2001-08-20 Ulrich Drepper <drepper@redhat.com>
13073 * argp/argp-help.c: Fix two problems introduced in last change.
13075 * include/dirent.h: Include <dirstream.h> first.
13077 2001-08-19 Ulrich Drepper <drepper@redhat.com>
13079 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13081 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13082 * sunrpc/xdr_rec.c: Likewise.
13083 * sunrpc/xdr_mem.c: Likewise.
13084 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13085 * sunrpc/rpc_cmsg.c: Likewise.
13086 * sunrpc/getrpcport.c (getrpcport): Likewise.
13087 * sunrpc/clnt_simp.c (callrpc): Likewise.
13088 * sunrpc/clnt_gen.c (clnt_create): Likewise.
13089 * string/envz.c: Likewise.
13091 * po/ko.po: Update from translation team.
13093 * argp/argp-help.c: Handle wide oriented stderr stream.
13095 2001-08-18 Ulrich Drepper <drepper@redhat.com>
13097 * sysdeps/generic/strtol.c: Little optimizations. Add some
13100 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13102 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13103 * wcsmbs/wcwidth.c (wcwdith): Likewise.
13104 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13106 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13108 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13110 * time/time.h (struct timespec): Use __time_t for tv_sec element.
13112 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
13113 wchar_t for function declarations and defintions.
13115 * misc/sys/select.h: Define __need_time_t before including <time.h>.
13116 Define suseconds_t if it hasn't happened yet.
13118 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13120 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13122 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13125 * conform/data/stddef.h-data: Remove wint_t.
13127 * conform/conformtest.pl: Change namespace test to take #undef
13128 lines into account.
13130 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13132 * conform/data/sys/socket.h-data: Add sockatmark.
13134 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13136 * io/fts.c: Update from recent BSD source.
13138 2001-08-17 Roland McGrath <roland@frob.com>
13140 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13141 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13144 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13146 * locale/duplocale.c (__duplocale): Also initialize the special
13147 __ctype_* elements.
13149 * conform/data/netdb.h-data: Adjust gai_strerror return type.
13151 2001-08-17 Andreas Jaeger <aj@suse.de>
13153 * misc/getpass.c: Include wchar.h for prototypes.
13154 * malloc/obstack.c: Likewise.
13156 2001-08-17 Ulrich Drepper <drepper@redhat.com>
13158 * sunrpc/svc_simple.c (universal): Use __write instead of write.
13160 * wcsmbs/wcscoll.c: Also define __wcscoll.
13161 * include/wchar.h: Declare __wcscoll.
13163 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13164 * libio/vwprintf.c: Likewise.
13165 * libio/wprintf.c: Likewise.
13167 * iconv/gconv_cache.c: Use __munmap instead of munmap.
13169 2001-08-16 Ulrich Drepper <drepper@redhat.com>
13171 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13172 instead of mbrtowc.
13173 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13174 wcslen, and __wcscoll instead of wcscoll.
13176 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13178 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13179 __getuid instead of getuid.
13181 * stdio-common/perror.c (perror): Use __close instead of close.
13182 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13183 * libio/freopen.c (freopen): Likewise.
13184 * libio/freopen64.c (freopen64): Likewise.
13186 * libio/tst-ungetwc2.c (main): Define str const.
13188 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13189 * libio/fwprintf.c: Also define __fwprintf.
13190 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13191 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13192 * assert/assert-perr.c: Likewise.
13193 * assert/assert.c: Likewise.
13194 * gmon/gmon.c: Likewise.
13195 * inet/rcmd.c: Likewise.
13196 * malloc/obstack.c: Likewise.
13197 * misc/err.c: Likewise.
13198 * misc/error.c: Likewise.
13199 * misc/getpass.c: Likewise.
13200 * posix/getopt.c: Likewise.
13201 * resolv/res_hconf.c: Likewise.
13202 * stdio-common/perror.c: Likewise.
13203 * stdio-common/psignal.c: Likewise.
13204 * stdlib/fmtmsg.c: Likewise.
13205 * sunrpc/auth_unix.c: Likewise.
13206 * sunrpc/clnt_perr.c: Likewise.
13207 * sunrpc/clnt_tcp.c: Likewise.
13208 * sunrpc/clnt_udp.c: Likewise.
13209 * sunrpc/clnt_unix.c: Likewise.
13210 * sunrpc/svc_simple.c: Likewise.
13211 * sunrpc/svc_tcp.c: Likewise.
13212 * sunrpc/svc_udp.c: Likewise.
13213 * sunrpc/svc_unix.c: Likewise.
13214 * sunrpc/xdr.c: Likewise.
13215 * sunrpc/xdr_array.c: Likewise.
13216 * sunrpc/xdr_rec.c: Likewise.
13217 * sunrpc/xdr_ref.c: Likewise.
13218 * sysdeps/generic/wordexp.c: Likewise.
13220 * po/it.po: Update from translation team.
13222 * misc/err.c: Handle wide oriented stderr stream.
13224 2001-08-14 Tom Rix <trix@redhat.com>
13226 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13227 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13229 2001-08-13 Tom Rix <trix@redhat.com>
13231 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13232 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13235 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
13237 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13238 Store the access registers to the ucontext structure.
13239 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13242 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13243 Load the access registers from the ucontext structure.
13244 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13247 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13248 offsets to the new ucontext layout.
13249 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13251 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13252 of the ucontext structure.
13253 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13255 2001-08-15 Ulrich Drepper <drepper@redhat.com>
13257 * misc/error.c (error): Handle wide oriented stderr stream correctly.
13258 (error_at_line): Likewise.
13260 * stdio-common/perror.c (perror): Implement according to standard.
13261 The stream orientation must not be changed if the stream was not
13262 oriented before the call.
13263 * stdio-common/Makefile (tests): Add tst-perror.
13264 * stdio-common/tst-perror.c: New file.
13267 See ChangeLog.12 for earlier changes.